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


ItemValue
Created2022-04-18
CategoryBusiness Examples
HTML filesindex.html
Sourcetarget/20220418

Preview


Basic (2022-04-18) screenshot
Open the example in a new tab

Page Sections


SectionDescription
T005 header, nav, heroEmpty 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 cards6 icon + title + text + MORE cards, 3 / 2 / 1 columns (_768="2" _640="1").
C027 numbered list + imageBackground-image block with dark overlay link, text, 4 numbered links (2 / 1 columns) and an image.
C028 text + image gridIntro text block followed by 6 image tiles.
C029 linked icon featuresBackground-image block with 4 icon figures linking to joball.tw pages, each with title and text.
C025 social contactInstagram / GitHub contact items on var(--col-sys-dark).
B001 footer3 columns BC001 intro / BC005 links + social icons / BC002 link list, copyright bar.

Interactions


  • Inline script in #nav: #btn-nav-show adds show to the previous sibling of the T005 block (#nav-top, a fixed bar sliding in from top: -4rem) and sets body overflow to hidden; #btn-nav-collaspe adds collaspe to #nav and after 300ms removes it, removes show from the T005 block and sets body overflow to scroll. #nav-top has no content in the markup.

Dependencies



Styling


ItemValue
SCSS entrysass/PDWebsitemplate.min.scss
Output CSScss/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.
  1. cd target/20220418
  2. 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-sys rgba(255, 150, 60, 0.9), --col-sys-dark rgb(195, 90, 0, 0.9), --max-width 1140px, --default-radius 0.5rem, --module-hint 1.
  • Fixed top bar with backdrop-filter blur and T005-nav-top-show / T005-nav-top-hide keyframes; max-width breakpoints 479 / 639 / 767 / 1139px.

External Assets


  • https://fakeimg.pl/1024/282828/eae0d0/?text=sample
  • https://pardn.io/image/head.png
  • https://demo-web.pardn.io/image/20220418.jpg
  • https://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)


中文