Basic (2022-04-09)
Static business page assembled from PDWebsitemplate modules (T002, C004, C013, C006, C014, C007, B001), selected by sn attributes, green theme.
Overview
Live Preview
Open the example in a new tab
Page Sections
Dependencies
Styling
The full module library is compiled even though the page uses only 7 modules; each module is scoped by div[sn=XXXX] and prints its code via ::after controlled by --module-hint. sass/index.scss (+ _header-0, _section-1) is a separate leftover entry not linked by the page.
cd target/20220409
npx sass sass/PDWebsitemplate.min.scss css/PDWebsitemplate.min.css --no-source-map || exit 1
Techniques
- Attribute-driven modules: sn="T002" etc. select module styles; df="x2/x3" column layouts, df="btn fff col xl" button variants, wh="1" image wrappers, df="sd" shadow cards.
- Theme via CSS custom properties in an inline <style> on *: --col-sys (green rgb(30,120,50)), --max-width 1140px, --default-radius 0.25rem, --module-hint 1.
- Desktop-first max-width breakpoints (413 / 479 / 639 / 767 / 959 / 1023px) and (hover: hover) and (pointer: fine) hover rules with keyframe color transitions.
- CSS-only hover dropdown in the navbar; links collapse (display: none) below 640px.
External Assets
https://fakeimg.pl/1024/282828/eae0d0/?text=sample
https://pardn.io/image/head.png
https://pardn.io/web-template/image/20220409.jpg
- /sample2, /sample2/gallery, /sample2/blog (root-absolute nav links)
- ../icon/watch/1/fff.svg, ../image/bg-l.svg, ../image/bg-m.svg (referenced by compiled CSS, not present in the folder)
Known Issues
- Nav links /sample2, /sample2/gallery and /sample2/blog are root-absolute and point to pages that do not exist. CSS url(../icon/watch/1/fff.svg), url(../image/bg-l.svg) and url(../image/bg-m.svg) resolve to <folder>/icon and <folder>/image, which are not in the folder (bg-l.svg is overridden by inline background-image). The mobile menu <img df="nvb"> has an empty src, its icon CSS is commented out and no JS is loaded, so links are unreachable below 640px.