3 top#index 1 web router.ex web/router.ex 12 scope "/", NanoPlanner do 13 pipe_through browser get "/", TopController, index 16 end URL / to

Similar documents
11 Bootstrap Font Awesome $ cd ~/projects/modest_greeter $ npm install --save jquery popper.js tether --save package.json depen

15 Phoenix HTML 15.1 ModestGreeter RAVT web/router.ex web/router.ex : 12 scope "/", ModestGreeter do 13 pipe_through :browser get "/", TopCont

6 (1) app.html.eex 28 lib/nano_planner_web/templates/layout/app.html.eex 27 <footer> Oiax Inc <%= this_year() %> Oiax Inc. 29 </footer>

8 7 + <div class='col-12 col-md-8'> 8 <%= item.description %> 9 </div> 10 </div> 11 <% end %> 12 </div> class container container-fluid PicoPlan

6 章 付録 マニフェストファイルの設定新規プロジェクトの作成手順追加モジュールのバージョン Bootstrap CSS の適用場所追加モジュールの登録記述アニメーションアイコン CSS の適用場所 3 章の変更 3.2 ダウンロード URL やインストールコマンドが変更になります ❶N

2 Rails pico planner camel case camel pico planner _ pico_planner snake case snake - chain case chain pico planner pico-planner CSS id class 2.3 Rails

PowerPoint プレゼンテーション

9 Bootstrap Font Awesome 52 + gem 'bootstrap', '4.0.0.alpha6' 53 + gem 'tether-rails' Gem bootstrap tether-rails Bootstrap JavaScript Tether Ctrl-C Ra

10 (1) s 10.2 rails c Rails 7 > item = PlanItem.new => #<PlanItem id nil, name nil,...> > item.name = "" => "" > item.valid? => true valid? true false

Intl WebStorm Google Chrome (64-bit) Node.js git for Windows 開発環境バージョンアップの影響 1 章変更なし 2 章変更なしソフトウェアのバージョン指定 3 章

node_fest_2014.key

World Wide Web =WWW Web ipad Web Web HTML hyper text markup language CSS cascading style sheet Web Web HTML CSS HTML

( )

Network Computing の基礎

Bootstrap ngx-bootstrap beta.8 Intl WebStorm Google Chrome 62.0 Node.js git for Windows 開発環境バージョンアップの影響 1 章変更なし

16 (2) 23 - <div class="col-12 col-md-4"> </div> 23 + <div class="col-12 col-md-4 bg-info text-white text-md-right"> </div> HTML bg-info #17

Web

m_sotsuron

6 2 s µ µµµ µµµµ µ µ h µs µ µµµµ µ µ µ s mµµµµµ µµµ µµ µ u m µmµµµµµ µµ µ µ µ µ µ µ µ µ s 1

_勉強会_丸山さつき_v3

CSSNite-LP54-kubo-ito.key

JavaScript の使い方

~/WWW-local/compIID (WWW IID ) $ mkdir WWW-local $ cd WWW-local $ mkdir compiid 3. Emacs index.html n (a) $ cd ~/WWW/compIID

【お試し版】Web制作者のためのCSS設計の教科書(非売品)

untitled

9 rbenv rbenv ruby 9.1 rbenv rbenv rbenv ruby ruby-build ruby 9.2 rbenv macos.bash_profile ~/.bash_profile ~/.bash_profile.bak $ touch ~/.bash_profile

07_経営論集2010 小松先生.indd

年刊EDP 2003

progate-team

WDI-Slides-04.pptx

Web プログラミング 1 HTML+CSS (3) (2 章 ) 2013/5/8( 水 ) 演習室の PC のハードディスクには演習で作成したデータは保管できません 各 PC の ネットワーク接続 ショートカットからメディア情報センターのサーバーにアクセスしてください (Z ドライブとして使用で

vuejs_meetup.key

[2][3] 2.1 Web 1 var s=0;for(var i=0;i<=10;i++){s+=i}alert(s) Web sum s Web % JavaScript [4] Web 1 var a = void 0; // var a = undefined; 2 va



Web データ管理 HTML+CSS (3) (2 章 ) 2011/10/19( 水 ) 湘南工科大学講義資料 Web データ管理 (2011) 阿倍 1/23

Microsoft PowerPoint - css-3days.ppt [互換モード]

8 4 end 5 6 private def message 7 'Hello' 8 end 9 end g = Greeting.new 12 g.hello $ ruby lib/lessons/greeting.rb Hello Ruby public method protec

Microsoft PowerPoint - CSS(Cascading Style Sheets)の基本.pptx

第6回 CSS入門(つづき)

ii

Microsoft PowerPoint - css-3days 互換モード

Webデザイン論

Microsoft PowerPoint - css-3days 互換モード

ch31.dvi

0720

6 2 1

スタイルシートでデザインを整えよう

modarn-japanese-font.key

css.pdf

WPD2009_Plone3_theme-2.key


経営論集2011_07_小松先生.indd

■サイトを定義する

目次 はじめに... 1 CSS?... 3 CSS の例... 4 CSS の基本の形... 5 HTML で CSS を読み込む... 7 <link> タグを置く ( ファイルを読み込む )... 9 <style> タグを置く ( スタイルを直接埋め込む ) セレクタ... 11

JIS Web Web JIS JIS 5.1.a 5.1.b 5.2.a 5.2.b 5.2.c 5.2.d 5.2.e 5.2.f 5.2.g 5.3.a 5.3.b 5.3.c 5.3.d 5.3.e 5.3.f 5.3.g 5.3.h 5.3.i 5.4.a 5.4.b 5.4.c 5.4.

ホームページ制作 基礎編 (HTML5 CSS3 コーディング )

CSS

Web 設計入門


.....

インターネット社会の発展

SVG資料第6回目(その3) SVGとHTMLの間でデータを交換する

1

2.3 解決策 本研究では,Web ブラウザ上で複数の閲覧環境ごとに表示確認とデザインの変更を実現するアプリケーションを提案する. 本アプリケーションは, 普段からレスポンシブ Web デザインによる Web 制作をする人を想定ユーザとし, プロトタイプの Web サイトについて表示確認やデザインの

Web制作者のためのSassの教科書 お試し版

2 詳 細 なレイアウトを 記 述 できる HTMLよりレイアウト 記 述 力 が 高 い 例 )テキストや 画 像 を 好 きな 位 置 に 配 置 できる HTMLから レイアウトに 関 する 記 述 を 除 去 で きる HTMLがシンプルに 文 法 間 違 いを 減 らせる 情 報 を 正

websample 1 2 websample index.html

! "#$%&'()*+,-. STUV WXYZ[\]^_`abcdefghijklmno pqrstuvwxyz{ }~ ƒ ˆ Š Œ Ž š œ žÿ ª«±²³ µ ¹º»¼½¾ ÀÁÂÃÄ ÅÆÇÈÉÊËÌÍÎÏÐ

ボタンのトランジション 1 トランジションを利用して ボタンを作ってみましょう ボタンを工夫することでひときわ光る web ページにすることができます もう Illustrator や Photoshop でボタンの画像を作る必要はありません JavaScript でスクリプトを書く必

HTML5 CSS

@tikeda Sass (scss) Less,CSS

Web±ÜÍ÷¤Î³Ú¤·¤µ¤ò¹â¤á¤ëWeb¥Ú¡¼¥¸²ÄÄ°²½¥·¥¹¥Æ¥à

ウェブデザイン技能検定学科試験 2 級 1. 各設問において 正しいものは 1 を 間違っているものは 2 を 該当設問の解答欄に記せ 第 1 問 文字実体参照の は 改行しない半角スペースを表示する 第 2 問 HTML 5.2 では コメントの中に連続したハイフンを入れることができる 第 3 問

/var/lib/sharelatex/data/compiles/5b35c6e168aeba3d a72a7acd11f6ba07fbbff68/output.dvi

3 3.1 SSedit ua012345% ssedit SuperSQL config.ssql log.txt( logs.txt) SSedit SSedit 3.2 ssql Putty SSedit ua012345% ssql HTML /public html/ssql.ssql 4

Microsoft Word - 教材WebページのHTML5及びCSS3の解説

インターネットマガジン2000年9月号―INTERNET magazine No.68



自己紹介 内毅志 ( おさないたけし ) Movable Type Product and Marketing Manager (2011 年 4 月 )

1221 Transitionの指定項目


jquery

大メニューをマウスカーソルで hover すると 半透明の小メニューが上から伸びてきます 小メニューを hover すると メニューの背景色とテキストの色が変わります NaviMenuAnime01 の説明 HTML の記述 (NaviMenuAnime01.html) id 属性 menu-box

インターネットマガジン1999年7月号―INTERNET magazine No.54


CSSで書籍組版を

子ボックスや孫ボックスなどに position: absolute; と指定すると それぞれ親ボックスに対する絶対位置で配置できるので親ボックスの上に複数の子ボックスや孫ボックスを重ねて配置することができます トランジションやアニメーションを作成するときに非常に便利なので覚えておきましょう top

PowerPoint Presentation

Microsoft Word - 平成25年度調査研究事業報告書-四国大学山本 doc

Microsoft PowerPoint - CSSガイドライン_ ppt [互換モード]

InfoPros13_digest.key

CSS CSS

ターゲティングメール 制作マニュアル

評論・社会科学 91号(よこ)(P)/1.金子

retool_ _intro.indd

合宿事前講座 Web 開発の基本編その 2 情報研究会モブ 薗田海樹 The. H.30 情報研究会 1

A : kerl kerl Erlang/OTP Erlang/OTP 2 2 Elixir/Phoenix URL 2 PDF A.2 Bash macos.bash_profile exp

Sushi Web ページの編集 Card 1 of 10 3 パソコンの画面上で ブラウザとテキストエディタを横に並べます ブラウザ テキストエディタ 4 5 テキストエディタで 自分の自己紹介になるように変更します 変更したらテキストを保存します ( ファイル > 保存 ) 保存したら F5 を

Transcription:

3 NanoPlanner SASS Bootstrap Font Awesome 3.1 RAVT 6 RAVT route action view template Phoenix top index top index top#index RAVT URL / top#index top#index top 23

3 top#index 1 web router.ex web/router.ex 12 scope "/", NanoPlanner do 13 pipe_through browser 14 + 15 + get "/", TopController, index 16 end URL / top#index 2 top#index web/controllers top_controller.ex web/controllers/top_controller.ex (New) 1 defmodule NanoPlanner.TopController do 2 use NanoPlanner.Web, controller 3 4 def index(conn, _params) do 5 render conn, "index.html" 6 end 7 end 7 top#index "index.html.eex" HTML 24

3.1 RAVT index/2 conn Plug.Conn 4 Phoenix Plug.Conn render/2 Ruby on Rails 2017 11 26 Phoenix 1.2.5 mix phoenix.gen.html Rails rails g scaffold 3 top web/views top_view.ex web/views/top_view.ex (New) 1 defmodule NanoPlanner.TopView do 2 use NanoPlanner.Web, view 3 end 15 Phoenix Ruby on Rails Rails Rails Phoenix 25

3 4 top#index EEx $ mkdir -p web/templates/top index.html.eex web/templates/top/index.html.eex (New) 1 <p>top#index</p> mix phoenix.server Phoenix http//localhost4000 3.1 3.1 Ctrl-C 2 Phoenix 26

3.2 3.2 NanoPlanner 10 11 sass-brunch $ npm install --save-dev sass-brunch web/static/css app.css app.scss $ rm web/static/css/app.css $ touch web/static/css/app.scss Bootstrap $ npm install --save jquery popper.js tether bootstrap@4.0.0-beta.2 Elixir/Phoenix 11 web/static/css/app.scss Bootstrap CSS @import brunch-config.js 27

3 brunch-config.js 66 npm { 67 - enabled true 67 + enabled true, 68 + styles { 69 + bootstrap ["dist/css/bootstrap.css"] 70 + }, 71 + globals { 72 + $ "jquery", 73 + jquery "jquery", 74 + Popper "popper.js", 75 + Tether "tether" 76 + } 77 + }, 78 + 79 + watcher { 80 + usepolling true 81 } 82 }; watcher.usepolling true Brunch web/static/js/app.js web/static/js/app.js 10 // Import dependencies 11 // 12 // If you no longer want to use a dependency, remember 13 // to also remove its path from "config.paths.watched". 14 import "phoenix_html" 15 + import "bootstrap" 16 17 // Import local files 28

3.2 JavaScript Web HTML JavaScript Bootstrap Tooltip $(function() { $('[data-toggle="tooltip"]').tooltip(); }); tooltip.js web/static/js web/static/vendor web/static/js JavaScript ES6 JavaScript web/static/vendor Font Awesome $ npm install --save font-awesome $ npm install --save-dev copycat-brunch web/static/css app.scss web/static/css/app.scss 1 + @import "node_modules/font-awesome/scss/font-awesome"; brunch-config.js 29

3 brunch-config.js 52 // Configure your plugins 53 plugins { 54 babel { 55 // Do not use ES6 compiler in vendor code 56 ignore [/web\/static\/vendor/] 57 - } 57 + }, 58 + copycat { 59 + fonts ["node_modules/font-awesome/fonts"] 60 + } 61 }, $ pushd web/static/assets/images $ wget https//www.oiax.jp/books/files/pico_planner.ico $ mv pico_planner.ico nano_planner.ico $ wget https//www.oiax.jp/books/files/clock256.png $ popd pushd popd popd web/templates/layout/app.html.eex 30

3.3 body 10 <title>nanoplanner</title> 11 <%= tag link, rel "stylesheet", 12 href static_path(@conn, "/css/app.css") %> 13 + <%= tag link, rel "shortcut icon", 14 + href static_path(@conn, "/images/nano_planner.ico") %> 15 + <%= tag link, rel "apple-touch-icon", 16 + href static_path(@conn, "/images/clock256.png") %> 17 </head> mix phoenix.server Phoenix http//localhost4000 3.2 3.2 3.3 body body 10 31

3 web/templates/layout app.html.eex web/templates/layout/app.html.eex 19 <body> 20 + <header> 21 + <h1><%= link "NanoPlanner", to top_path(@conn, index, []) %></h1> 22 + </header> 23 + <main> web/templates/layout/app.html.eex 24 - <%= render @view_module, @view_template, assigns %> 24 + <%= render @view_module, @view_template, assigns %> 25 + </main> 26 + <footer> 27 + 2017 Oiax Inc. 28 + </footer> 29 <%= content_tag script, "", src static_path(@conn, "/js/app.js") %> web/static/css/main.scss (New) 1 main { 2 margin 1rem; 3 } 32

3.3 body web/static/css/header.scss (New) 1 header { 2 background-color #ddd; 3 border-style solid; 4 border-width 1px; 5 border-color #ccc; 6 7 h1 { 8 font-size 1.25rem; 9 margin 0.5rem; 10 } 11 } web/static/css/footer.scss (New) 1 footer { 2 background-color #eee; 3 color #777; 4 padding 0.5rem; 5 font-size 0.75rem; 6 font-family Helvetica, Arial, sans-serif; 7 } 3.3 3.3 33

3 8 JavaScript Phoenix dev web/router.ex Ctrl-C 2 Phoenix 34