Production-ready foundation for a personal academic and professional portfolio, built with React, TypeScript, Vite, Tailwind CSS v4, and GitHub Pages.
This repository intentionally includes infrastructure and conventions only. It does not implement portfolio pages, sections, or final visual design.
- React
- TypeScript (strict)
- Vite
- Tailwind CSS v4 (official Vite plugin)
- ESLint
- GitHub Actions + GitHub Pages
.
├── .github/workflows/deploy.yml
├── public/
├── src/
│ ├── assets/
│ ├── components/
│ ├── hooks/
│ ├── lib/
│ ├── styles/
│ │ ├── global.css
│ │ ├── tokens.css
│ │ ├── tokens.ts
│ │ └── README.md
│ ├── types/
│ ├── App.tsx
│ └── main.tsx
├── index.html
├── package.json
├── tsconfig.json
├── vite.config.ts
└── README.md
npm install
npm run devAll landing-page content is defined in src/content/site.ts. React components render the arrays there, so adding an entry does not require editing the page layout.
education: [
{
institution: { name: 'University name', logo: '/logos/university.svg', website: 'https://example.edu' },
degree: 'Degree name',
status: 'In progress',
period: 'Expected graduation: June 2028',
gpa: '9.0/10',
},
]Add professional roles and research affiliations to the experienceResearch array. Set type to experience or research, then provide the organization, optional role and dates, and one or more focusAreas with a title and concise description. Add official organization artwork under public/logos/, then reference it with a root-relative path such as /logos/laboratory.svg. The optional profile photograph belongs at public/images/profile.jpg; no component change is needed when it is added.
npm run dev— run local Vite dev servernpm run build— type-check then build production bundlenpm run preview— preview production build locallynpm run lint— run ESLintnpm run typecheck— run TypeScript project references check
- Canonical source:
src/styles/tokens.css- Holds design-token values as CSS custom properties.
- All values are explicit placeholders marked with
TODOplus valid fallback values.
- TypeScript reference layer:
src/styles/tokens.ts- Exposes typed
var(--...)references for React inline styles and TS utilities. - Does not duplicate raw token values.
- Exposes typed
- Global integration:
src/styles/global.css- Imports Tailwind and canonical tokens.
- Maps Tailwind theme variables to canonical token properties.
- Defines global base/reset rules.
Tailwind semantic utilities map directly to canonical tokens via @theme in global.css.
Example future usage:
bg-background→--ds-color-backgroundtext-text-primary→--ds-color-text-primaryborder-border→--ds-color-border
Token changes in tokens.css propagate to both CSS and Tailwind utilities automatically.
- Build reusable components in
src/componentswith explicit typed props. - Prefer Tailwind utilities for styling.
- Use CSS Modules only when component-level complexity requires them.
Workflow: .github/workflows/deploy.yml
- Build job
- Checkout repository
- Setup latest LTS Node.js with npm cache
npm cinpm run lintnpm run typechecknpm run build- Upload
dist/withactions/upload-pages-artifact
- Deploy job
- Runs after successful build
- Uses
actions/deploy-pages - Publishes to
github-pagesenvironment with deployment URL
Workflow triggers:
- Push to
main - Manual
workflow_dispatch
In repository settings, configure Pages deployment source to GitHub Actions.