Projects › Beginner
Personal Portfolio Website
A fast, responsive one-page site with your intro, skills, projects and a contact form — the first thing a recruiter opens.
Level: Beginner · Time: 3–5 days · Tech stack: HTML, CSS, JavaScript
Features to build
- Hero section with your name, role and photo
- Skills grid and project cards with live/GitHub links
- Dark / light theme toggle saved in localStorage
- Working contact form (Formspree or EmailJS)
- Fully responsive, scores 90+ on Lighthouse
What you will learn
- Semantic HTML
- Flexbox and Grid
- Media queries
- DOM events
- Deploying a static site
Step-by-step guide
1. Plan the sections
Sketch the page on paper first: Hero → About → Skills → Projects → Contact → Footer. Keep it to one page.
2. Write semantic HTML
<header class="hero">
<h1>Hi, I'm Asha 👋</h1>
<p>Computer Science student · I build web apps with React and Node.</p>
<a href="#projects" class="btn">See my work</a>
</header>
<section id="projects">
<h2>Projects</h2>
<div class="grid"> <!-- one <article class="card"> per project --> </div>
</section>
Use <header>, <section>, <article>, <footer> — it helps SEO and screen readers.
3. Style with CSS variables + Grid
:root { --bg: #0f172a; --text: #e2e8f0; --brand: #7c5cff; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
auto-fit + minmax makes the grid responsive without media queries.
4. Add the theme toggle
const btn = document.querySelector('#theme');
const apply = (t) => document.documentElement.dataset.theme = t;
apply(localStorage.getItem('theme') || 'dark');
btn.addEventListener('click', () => {
const next = document.documentElement.dataset.theme === 'dark' ? 'light' : 'dark';
apply(next); localStorage.setItem('theme', next);
});
5. Make the contact form work
Static sites have no backend — point the form at a free service like Formspree: <form action="https://formspree.io/f/xxxx" method="POST">. Validate the email field with type="email" required.
6. Polish & deploy
- Compress images (WebP), add
alttext and a favicon. - Run Lighthouse in Chrome DevTools and fix anything below 90.
- Push to GitHub and deploy free on GitHub Pages, Netlify or Vercel. Add the link to your resume and LinkedIn.
Level it up
- Rebuild it in React or Next.js
- Add a blog section written in Markdown
- Animate sections on scroll with IntersectionObserver
On your resume
- Built a responsive portfolio website (HTML, CSS, JavaScript) with a theme toggle and a working contact form; scores 95+ on Lighthouse.