Getting everything ready for you…

Loading courses, problems and your progress. This takes just a moment.

0s

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

What you will learn

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

Level it up

On your resume

Learn on Codify