Basic (2022-04-12)

Last updated


Static PDWebsitemplate module page (T003, C012, C010, C008, C011, B003) with a red theme: header with contact chips, news timeline, team cards, gallery, footer.

Overview


ItemValue
Created2022-04-12
CategoryBusiness Examples
HTML filesindex.html
Sourcetarget/20220412

Preview


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

Page Sections


SectionDescription
T003 header + nav + heroBackground-image header: brand block, GitHub / Email contact chips, inline nav with a hover dropdown (LIST), then hero text with Code / Github buttons.
C012 dated postsTwo post items with a date badge (01 / 一月), meta list (user / group / tag), title, excerpt, MORE link, plus a My Page button.
C010 profile cards4 cards (image, name, role, text) on a var(--col-sys) background.
C008 gallery8 figure cards in 4 columns with caption title and text.
C011 icon features4 icon + title + text items on var(--col-hint) background.
B003 footerTop bar with social icons, then 4 columns: BC004 3x3 template thumbnails, BC006 link + date list, BC002 GitHub links, BC003 contact form (name / email inputs + submit), copyright bar.

Dependencies



Styling


ItemValue
SCSS entrysass/PDWebsitemplate.min.scss
Output CSScss/PDWebsitemplate.min.css
Partials_PDModuleTop.scss (top/_T-001, _T-002, _T-003, _T004), _PDModuleColum.scss (colum/_C001..._C019), _PDModuleBottom.scss (bottom/_B001-_B003, _BC001-_BC006), _PDModuleAnimation.scss, _PDModuleComp.scss (comp/_a[btn], _dev.a[shadow], _div[bg], _img[ic], _to, _wh)

Same module library as 20220409 (reset inlined at top of the entry, no _init / function imports); each module is scoped by div[sn=XXXX]. Only 6 modules are used by the page.
  1. cd target/20220412
  2. npx sass sass/PDWebsitemplate.min.scss css/PDWebsitemplate.min.css --no-source-map || exit 1

Techniques


  • Attribute-driven module system: sn module ids, df="x2" / df="x4" column grids, df="btn col fff xxl" buttons, wh="1" image frames, df="bg" background blocks.
  • Theme set by CSS variables in inline <style> on *: red --col-sys rgb(200, 30, 60, 0.9), --col-sys-light / --col-sys-hint / --col-sys-dark, --max-width 1140px, --default-radius 0.5rem, --module-hint 1 (shows module labels).
  • Desktop-first max-width media queries (413 / 479 / 639 / 767 / 959 / 1023px) and pointer-fine hover with keyframe color transitions; CSS-only hover dropdown.

External Assets


  • https://fakeimg.pl/1024/282828/eae0d0/?text=sample
  • https://pardn.io/image/head.png
  • https://demo-web.pardn.io/image/20220412.jpg
  • ../icon/watch/1/fff.svg, ../image/bg-l.svg, ../image/bg-m.svg (referenced by compiled CSS)


中文