Basic (2022-04-18)
Last updated
Orange-themed PDWebsitemplate page (T005, C025-C029, B001) introducing attribute breakpoints like
class="resize _3" _768="2" _640="1".Overview
| Item | Value |
|---|---|
| Created | 2022-04-18 |
| Category | Business Examples |
| HTML files | index.html |
| Source | target/20220418 |
Preview

Open the example in a new tab
Page Sections
| Section | Description |
|---|---|
| T005 header, nav, hero | Empty fixed <nav id="nav-top"> above a background-image block with icon top bar (home / blog / store, GitHub / Email), nav with show / HIDE buttons and LIST dropdown, and hero article with Code / Github buttons. |
| C026 icon cards | 6 icon + title + text + MORE cards, 3 / 2 / 1 columns (_768="2" _640="1"). |
| C027 numbered list + image | Background-image block with dark overlay link, text, 4 numbered links (2 / 1 columns) and an image. |
| C028 text + image grid | Intro text block followed by 6 image tiles. |
| C029 linked icon features | Background-image block with 4 icon figures linking to joball.tw pages, each with title and text. |
| C025 social contact | Instagram / GitHub contact items on var(--col-sys-dark). |
| B001 footer | 3 columns BC001 intro / BC005 links + social icons / BC002 link list, copyright bar. |
Interactions
- Inline script in
#nav:#btn-nav-showaddsshowto the previous sibling of the T005 block (#nav-top, a fixed bar sliding in fromtop: -4rem) and sets body overflow to hidden;#btn-nav-collaspeaddscollaspeto#navand after 300ms removes it, removesshowfrom the T005 block and sets body overflow to scroll.#nav-tophas no content in the markup.
Dependencies
| Name | Version | Source |
|---|---|---|
| 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 |
Styling
| Item | Value |
|---|---|
| SCSS entry | sass/PDWebsitemplate.min.scss |
| Output 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) |
Entry starts with
@import url("./fontawesome/css/all.css"). _PDColum defines ul.resize with ._2-._5 default column classes and _1024 / _768 / _640 / _480 / _414 column-count attributes.- cd target/20220418
- npx sass sass/PDWebsitemplate.min.scss css/PDWebsitemplate.min.css --no-source-map || exit 1
Techniques
- Attribute breakpoints:
class="resize _3"plus_768="2"/_640="1"/_480="1"set column counts per max-width breakpoint. - Theme CSS variables in inline
<style>on*: orange--col-sysrgba(255, 150, 60, 0.9),--col-sys-darkrgb(195, 90, 0, 0.9),--max-width1140px,--default-radius0.5rem,--module-hint1. - Fixed top bar with
backdrop-filterblur andT005-nav-top-show/T005-nav-top-hidekeyframes; max-width breakpoints 479 / 639 / 767 / 1139px.
External Assets
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 links)../icon/watch/1/fff.svg,../image/bg-l.svg,../image/bg-m.svg(referenced by compiled CSS)