Skip to content
utsabshiwakotiPublic

About

My portfolio site: projects, about and resume (React + Vite)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Portfolio

Live at https://utsabshiwakoti.com

My personal site: the projects I've built, a short about section, and a one-page resume.

What it does

  • Home page (index.html): intro, four project case studies with screenshots, live links and source links, my work at UGEC Canada, skills, education and contact links.
  • Resume page (resume.html): the same content laid out as a one-page resume. It prints cleanly to a single Letter page, and that print is the downloadable PDF.

Stack

  • React 19 + Vite 8, plain CSS (no UI framework or icon library)
  • oxlint for linting
  • GitHub Pages, deployed by GitHub Actions on every push to main

Run it locally

npm install
npm run dev        # http://localhost:5173
npm run lint
npm run build      # static site in dist/
npm run preview    # serve the built site

Editing content

Everything the site says lives in src/content.js: projects, skills, education, links. The home page and the resume both read from it, so they never disagree. An empty email or linkedin value is simply hidden.

After changing resume content, regenerate the PDF: open /resume.html, print, "Save as PDF", and save it over public/Utsab-Shiwakoti-Resume.pdf.

Design notes

  • Two static pages, no router. index.html and resume.html share one entry point; each page's <body data-page> says which component to render. That keeps the site fully static, and base: './' in vite.config.js makes it work at a domain root or under a sub-path.
  • One source of content. The resume is not a separate document to keep in sync. It is a second view of content.js.
  • Print stylesheet. @page sets Letter size and margins, the print rules shrink type and spacing, and the mobile layout rules are scoped to screen so a printed page (narrow in CSS pixels) doesn't pick up the stacked mobile layout.
  • Live API card. The terminal in the hero makes a real request to my StatDay API and shows the response and how long it took. The API's free host sleeps when idle, so the card says it is waking the server, and after a timeout falls back to a sample response that is labelled as a sample.
  • Light and dark. A small inline script picks the theme before the first paint (saved choice, otherwise the system setting), so there is no flash; the toggle saves the choice. Print always uses the light palette.
  • Motion is optional. Sections fade in with an IntersectionObserver; people who ask for reduced motion get no animation, and without JavaScript nothing is hidden.
  • Fonts are self-hosted (Inter and JetBrains Mono via Fontsource), so there are no third-party requests for them. Icons are a few inline SVGs, not a library.
  • Accessibility: skip link, semantic landmarks, visible focus outlines, alt text on screenshots, reduced-motion respected.
  • Screenshots are 1200px-wide WebP to keep the page light.

Deploying

The workflow in .github/workflows/deploy.yml lints, builds and publishes dist/ to GitHub Pages. In the repo settings, set Pages → Source to GitHub Actions. The custom domain (utsabshiwakoti.com) is set under Pages → Custom domain, with DNS pointing at GitHub Pages.

What I'd add next

  • A short write-up page per project (problem, approach, trade-offs), linked from each card
  • Generate the resume PDF in CI so it can never go stale
  • Lighthouse check in CI to keep performance and accessibility scores up

About

My portfolio site: projects, about and resume (React + Vite)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages