第六週 - 格線系統
- 報到 Code:
jHYw7fHOtBfF
- 公布全部完課率獎品
- Gui Ting Liu 志工整理洧杰老師批改筆記
- 公布彩蛋課程,網站架站一條龍
- 買網址、設定 DNS
- SEO 關鍵字搜尋設計
- Google Seach console 提交網站流程
- Google analytics 分析服務綁定
截止繳交作業時間點
- 8/20 第八週上課結束
- 8/27(五) 彩蛋課程 下週才會公布
- 8/29(日) 繳交截止日
- 9/3(五) 版型發表會
BS5 格線系統
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Mobile first 與 Desktop first 差別
格線系統 - 減輕 magic number 出現
常見總欄數是 12
- 排版三劍客: .container、.row、.col 1~12
- .container
- .container 固定寬度
- .container-fluid 滿版
- .row
- 名言 1:.col- 的外層只能是 .row
- 名言 2:.row 裡面只能是 .col-
- 名言 3:網頁內容與元件請放在 .col- 裡面
常見錯誤,在 .col 增加寬度
常見錯誤,在格線系統調整左右 margin 與 padding
常見觀念:可以加上下 的 margin 與 padding
常見觀念:最外層至少補一個 container
常見觀念:整體格線邏輯是一致
格線範例
- 左三右九欄,裡面加上元件
- ul ,裡面 li 佔 3 欄,
list-unstyled
- 鐵人邦滿版式設計搭配 BS5 格線
- 六角右上角選單,以上課程都包含 5 欄居中
- 表尾區塊是否寫死
BS5 格線斷點設計
- 文件位置
- 範例處
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
若想先做 PC 版,可用 md、lg 當起手式
格線系統與元件整合
網站範例 + 通用類別搭配
中場休息
BS5 SCSS 載入 (架構圖講解)
- SCSS default 觀念講解
- 六角 Gulp 範例,請記得切換到 feature/bs5 區塊,再按 Download
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
@import "../../../node_modules/bootstrap/scss/functions";
@import "./helpers/variables";
@import "../../../node_modules/bootstrap/scss/bootstrap";
@import './layout/index.scss'
不要去修改 node_modules/bootstrap 裡面的 SCSS,因為別人接手你 code 時,會自行使用 npm install 安裝套件,此時裡面模組就都重新下載了
repo 有更動的地方
- 多加入了一個 bootstrap 模組
- 多加入了一個 bootstrap JS,讓 dist 編譯出來的 vendors.js 可以載入 BS5 JS 套件
- layout.ejs、index.html 加入了些 BS5 範例元件
- SCSS 範例有變更
第六週主線任務
備註一:可觀看 作業設計稿 - 線上預覽操作教學
備註二:線上網址圖片,這裡六角已經上傳到圖片空間,本次作業圖片都放在 exhibition-week6 資料夾,網址如下,其他以此類推:
補充:如果不知道怎麼找到圖片路徑請點我