基礎版型 220418
最後更新
橘色主題 PDWebsitemplate 頁面(T005、C025-C029、B001),導入
class="resize _3" _768="2" _640="1" 等屬性式斷點欄數。概要
| 項目 | 內容 |
|---|---|
| 製作日期 | 2022-04-18 |
| 分類 | 商業網站範例 |
| HTML 檔案 | index.html |
| 原始碼 | target/20220418 |
預覽

在新分頁開啟範例
頁面區塊
| 區塊 | 說明 |
|---|---|
| T005 頁首、導覽、主視覺 | 空的固定 <nav id="nav-top">,其下為背景圖區塊:圖示頂列(首頁/部落格/商店、GitHub / Email)、含展開/HIDE 按鈕與 LIST 下拉的導覽列,以及附 Code / Github 按鈕的主視覺文章。 |
| C026 圖示卡 | 6 張圖示+標題+內文+MORE 卡,3 / 2 / 1 欄(_768="2" _640="1")。 |
| C027 編號列表+圖片 | 背景圖區塊加深色遮罩,文字、4 個編號連結(2 / 1 欄)與一張圖片。 |
| C028 文字+圖片格 | 介紹文字區塊後接 6 張圖片格。 |
| C029 圖示連結特色 | 背景圖區塊,4 個連到 joball.tw 頁面的圖示 figure,各含標題與內文。 |
| C025 社群聯絡 | var(--col-sys-dark) 背景上的 Instagram / GitHub 聯絡項目。 |
| B001 頁尾 | 3 欄 BC001 介紹/BC005 連結與社群圖示/BC002 連結列表,版權列。 |
互動行為
#nav內 inline script:#btn-nav-show對 T005 區塊的前一個兄弟(#nav-top,從top: -4rem滑入的固定列)加show並將 body overflow 設為 hidden;#btn-nav-collaspe對#nav加collaspe,300ms 後移除它、移除 T005 區塊的show並將 body overflow 設為 scroll。#nav-top在標記中沒有內容。
相依資源
| 名稱 | 版本 | 來源 |
|---|---|---|
| Font Awesome Free | 6.5.2 | https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css |
| Noto Sans TC (Google Fonts) | wght 100;300;400;500;700;900 | https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&display=swap |
樣式
| 項目 | 內容 |
|---|---|
| SCSS 入口 | sass/PDWebsitemplate.min.scss |
| 輸出 CSS | css/PDWebsitemplate.min.css |
| Partials | _PDTop.scss (top/_T001-_T005), _PDColum.scss (ul.resize attribute breakpoints + colum/_C001..._C029), _PDBottom.scss (bottom/_B001-_B004, _BC001-_BC006), _PDAnimation.scss, _PDComp.scss (comp/_a[btn], _dev.a[shadow], _div[bg], _img[ic], _to, _wh) |
入口開頭有
@import url("./fontawesome/css/all.css")。_PDColum 定義 ul.resize,含 ._2-._5 預設欄數 class 與 _1024 / _768 / _640 / _480 / _414 欄數屬性。- cd target/20220418
- npx sass sass/PDWebsitemplate.min.scss css/PDWebsitemplate.min.css --no-source-map || exit 1
使用技巧
- 屬性式斷點:
class="resize _3"搭配_768="2"/_640="1"/_480="1"依 max-width 斷點設定欄數。 - inline
<style>於*設定主題變數:橘色--col-sysrgba(255, 150, 60, 0.9)、--col-sys-darkrgb(195, 90, 0, 0.9)、--max-width1140px、--default-radius0.5rem、--module-hint1。 - 固定頂列使用
backdrop-filter模糊與T005-nav-top-show/T005-nav-top-hidekeyframes;max-width 斷點 479 / 639 / 767 / 1139px。
外部資源
https://fakeimg.pl/1024/282828/eae0d0/?text=samplehttps://pardn.io/image/head.pnghttps://demo-web.pardn.io/image/20220418.jpghttps://joball.tw、https://joball.tw/album、https://joball.tw/case、https://joball.tw/post(C029 連結)../icon/watch/1/fff.svg、../image/bg-l.svg、../image/bg-m.svg(編譯後 CSS 引用)