Personal Info

Last updated


Personal resume/portfolio one-pager with a fixed left icon sidebar, skill bars, timeline, filterable horizontal portfolio carousel, pricing and contact form.

Overview


ItemValue
Created2023-06-10
CategoryPersonal Examples
HTML filesindex.html
Sourcetarget/20230610

Preview


Personal Info screenshot
Open the example in a new tab

Page Sections


SectionDescription
Left sidebar nav#nav with logo P, 7 icon tabs (#tab-left, sel-driven active state) and copyright; #nav-button toggles it on mobile.
IntroAvatar, name Pardn Chiu, role, GitHub/LinkedIn icons, Contact button and an animated Scroll Down mouse indicator over image/section-0.svg background.
About MePhoto, bio text, 4 percentage skill bars (span[percent]) and 4 stat items (5y, 7y, +20, +40).
Services3 cards: iOS, front-end, back-end development.
ExperienceTwo columns of timeline items: education entries and work entries (UMD你的博客, JOBALL找專家, Pardn Ltd).
PortfoliosALL / Web / iOS filter tabs (tag-filter all / 1 / 2) and #body-portfolio horizontal column-flow grid with prev/next buttons; items generated by JS.
Pricing3 price cards (30k / 120k / 30k) with Contact mail buttons.
Clients#body-client horizontal slider of 2 testimonial cards with prev/next buttons.
Get In TouchForm with name, email, subject, message and a Send Message link (no submit logic).

Interactions


  • js/index.js: #nav-button toggles .show on #nav and swaps its icon between fa-bars and fa-chevron-left.
  • Portfolio: 20 placeholder items with random tag-key 1 or 2 built via "a"._({"tag-key": e.tag}, ["img"._(e.src)])._open(e.href); tab click moves .sel, sets #body-portfolio[tag-filter] and resets scrollLeft, CSS shows matching items.
  • Prev/next buttons page #body-portfolio and #body-client: next sets scrollLeft to (page + 1) * (clientWidth + gap), prev subtracts clientWidth + gap (gap 16px when the global vw <= 414, else 24px).
  • Sidebar tab click jumps document.body.scrollTop to the summed heights of preceding #body children; body scroll listener sets #tab-left sel=0..6 (scroll-spy, vh/3 offset).
  • index.html references js/index.js twice in the head (after the stylesheet and after the inline <style>); inside the file the portfolio prev/next handlers are bound in two separate blocks.

Dependencies



Styling


ItemValue
SCSS entrysass/index.scss
Output CSScss/index.css
Partials_nav.scss, _section-0.scss, _section-1.scss, _section-2.scss, _section-3.scss, _section-4.scss, _section-5.scss, _section-6.scss, _section-7.scss

index.scss: reset, body scroll container with 8rem left padding at >=800px for the sidebar, linear-move keyframe; partials map 1:1 to the 8 sections plus _nav (fixed sidebar, sel-based icon highlight). _section-0 uses ../image/section-0.svg and a mouse-animate keyframe; _section-1 generates skill-bar widths with @for 1..100 over [percent]; _section-4 generates [tag-filter]/[tag-key] filter rules with @for 1..100. Palette vars (brand/fine/info/error/hint, 9 steps each) are in an inline <style> in index.html; section headings use image/header.svg.
  1. cd target/20230610
  2. npx sass sass/index.scss css/index.css --no-source-map || exit 1

Techniques


  • SCSS @for loops generating attribute selectors ([percent="n"]::after width, [tag-filter="n"] [tag-key="n"]).
  • content: attr(percent) "%" to print the value from an HTML attribute.
  • Horizontal paged gallery using flex-flow: column wrap with calc()-computed height and overflow hidden, paged via scrollLeft.
  • Filter by toggling max-width/opacity transitions instead of display.
  • Five 9-step color scales as CSS custom properties; breakpoints 414px, 480px, 640px, 800px, 1024px.

External Assets




中文