Personal portfolio of Niraj Bhusal, a Computer Engineering graduate from Nepal. Built with React and Vite.
Live: bhusalniraj.com.np
| Route | Description |
|---|---|
/ |
Home: Hero, About, Skills, Education, Projects, Experience, Contact |
/projects |
All projects, with category filters (Machine Learning, Web Apps, Tools) |
/cgpacalculator |
CGPA Calculator for Pokhara University students |
* |
404 page |
- Light and dark theme. The choice is saved in
localStorage; the system setting is used until then. - Typed text animation in the hero (Typed.js) and a particles background.
- Tilt effect on project cards (vanilla-tilt). It is disabled on touch devices, where tap-to-reveal is used instead.
- Contact form sending messages through Web3Forms.
- Scroll-to-top button and scroll position handling between routes.
A tool for Pokhara University students at /cgpacalculator.
- Add semesters, subjects, credits and grades.
- Per-semester SGPA and overall CGPA (CGPA = total honor points ÷ total credits).
- Autofill subjects and credits from the department curriculum (Computer Engineering, Software Engineering).
- Export the result as a PDF marksheet (jsPDF + jspdf-autotable).
Curriculum data lives in src/data/. To add a department, create a new curriculum file with the same shape as ceCurriculum.js and register it in src/pages/CgpaCalculator.jsx.
- React 19
- Vite
- React Router
- Typed.js, vanilla-tilt
- jsPDF, jspdf-autotable
- ESLint
- gh-pages for deployment
Requires Node.js and npm.
git clone https://github.com/niraj5511/portfolio_website.git
cd portfolio_website
npm install
npm run devThe dev server runs at http://localhost:5173 by default.
| Command | What it does |
|---|---|
npm run dev |
Start the dev server |
npm run build |
Build for production into dist/ |
npm run preview |
Preview the production build locally |
npm run lint |
Run ESLint |
npm run deploy |
Build and publish dist/ to the gh-pages branch |
portfolio_website/
├── public/ # Static files: CNAME, 404.html, sitemap.xml, robots.txt, og-image.png
├── src/
│ ├── assets/ # Images
│ ├── components/ # Page sections (Hero, About, Skills, ...) with their CSS
│ ├── context/ # ThemeContext (light/dark)
│ ├── data/ # Curriculum data for the CGPA calculator
│ ├── pages/ # Home, ProjectsPage, CgpaCalculator, NotFound
│ ├── utils/ # Helpers (e.g. touch device detection)
│ ├── App.jsx # Routes
│ └── main.jsx # Entry point
├── index.html
└── vite.config.js
Hosted on GitHub Pages with a custom domain (public/CNAME).
npm run deploypublic/404.html is used so direct links to routes like /projects work on GitHub Pages.
Projects are defined in two places and both need the same entry:
src/components/Work.jsx(home page section)src/pages/ProjectsPage.jsx(setcategorytoml,webortool)
Put the project image in src/assets/ and import it at the top of each file.
- Website: bhusalniraj.com.np
- GitHub: @niraj5511