Documentation

Simplify Blog

Two-column personal blog SPA rendered entirely by JS (PDRenderKit 1.0.1): sticky left profile/nav, right pane swapping list, article, about and contact views.

Overview

Item Value
Created 2023-07-12
Category Blog Examples
HTML files index.html
Source target/20230712

Live Preview

Open the example in a new tab

Page Sections

Section Description
Left profile panel (#section-left) Name 'PARDN CHIU', intro text, HOME/ABOUT/CONTACT menu (ul[index] marks the active item), social icon links, copyright.
Post list (.list) 10 article cards (image, title, excerpt, date, category) and a static pager (‹ 1 2 3 ›).
Article view (.article) Hero figure, h1, meta line and rich text body (h3/h4/h6, lists, links), plus an 'ALL POSTS' back button.
About view Self-introduction with skill list, project link (JOBALL) and contact list, ending with a 'Get in touch' button.
Contact view (.contact) Heading, two paragraphs and Name/Email/message inputs with a 'Get in touch' button (no submit handler).

Interactions

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
PDRenderKit 1.0.1 https://cdn.jsdelivr.net/npm/pdrenderkit@1.0.1/dist/PDRenderKit.js
Google Analytics (gtag.js) - https://www.googletagmanager.com/gtag/js?id=G-L5VYEZPVXX
Noto Sans TC (font-family only) - declared in SCSS; no font stylesheet is linked, so it relies on a locally installed font or the sans-serif fallback
Montserrat (font-family only) - declared in SCSS; not loaded by any stylesheet

Styling

Item Value
SCSS entry sass/index.scss
Output CSS css/index.css
Partials _section-left.scss, _section-right.scss, _list.scss, _article.scss

index.scss holds the reset, safe-area vars and the body flex layout (column on mobile, row at >=800px); _section-left styles the sticky profile sidebar, _section-right the content pane and buttons and imports _list (post cards) and _article (article typography). Colors use var(--color-dark-*), var(--width-max) and var(--bgcolor), which are not defined anywhere in this folder.

cd target/20230712
npx sass sass/index.scss css/index.css --no-source-map || exit 1

Techniques

External Assets

中文