Free Personal Website Template (HTML, One Page)

·

Free Personal Website Template (HTML & CSS, One Page)


Want a simple website to introduce yourself online? This free personal website template is a clean, one-page design built with plain HTML and CSS. You do not need WordPress or a website builder. Download it, replace the placeholder text with your own story, and publish your personal site in an afternoon.

It works well for portfolios, online resumes, freelancer profiles, student pages and personal brands. The layout is fully responsive, loads fast, and includes a built-in light and dark theme so visitors can read comfortably on any device. You can use it for personal or commercial projects, and no credit link is required.

What you will build

Hero section with your name, role and two call-to-action buttons
About section with a short bio and quick facts
Skills section with tags and progress bars
Projects section with three ready-to-edit project cards
Experience timeline for work and education
Contact section with social icons and a simple contact form
Light and dark theme toggle that remembers your visitor’s choice
Mobile menu and smooth scrolling for easy browsing

index.html

<!doctype html>
<html lang="en"><head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- EDIT: page title, description, and your published website URL. -->
  <title>Your Name — Designer &amp; Front-end Developer</title>
  <meta name="description" content="Your Name is a designer and front-end developer creating thoughtful, accessible digital experiences.">
  <meta property="og:type" content="website">
  <meta property="og:title" content="Your Name — Personal Portfolio">
  <meta property="og:description" content="Thoughtful design. Friendly experiences. Explore my work and say hello.">
  <meta property="og:url" content="https://example.com/">
  <meta name="theme-color" content="#f8f7fc">
  <link rel="stylesheet" href="css/style.css">
  <script src="js/main.js" defer=""></script>
</head>
<body>
  <a class="skip-link" href="#main">Skip to content</a>
  <header class="site-header">
    <div class="container header-inner">
      <!-- EDIT: your name and initials throughout this page. -->
      <a class="logo" href="#home" aria-label="Your Name, home">Your Name<span aria-hidden="true">.</span></a>
      <nav id="main-nav" aria-label="Main navigation">
        <a href="#home" aria-current="location">Home</a><a href="#about">About</a><a href="#skills">Skills</a><a href="#projects">Projects</a><a href="#experience">Experience</a><a href="#contact">Contact</a>
      </nav>
      <div class="header-actions">
        <button class="icon-button theme-toggle" type="button" aria-label="Switch to dark theme" aria-pressed="false" hidden=""><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" aria-hidden="true"><path d="M20 14.2A8.5 8.5 0 0 1 9.8 4 8.5 8.5 0 1 0 20 14.2Z"></path></svg></button>
        <button class="icon-button menu-toggle" type="button" aria-label="Open navigation" aria-expanded="false" aria-controls="main-nav" hidden=""><span></span><span></span><span></span></button>
      </div>
    </div>
  </header>
  <main id="main">
    <section id="home" class="hero container" aria-labelledby="hero-title">
      <div class="hero-copy">
        <!-- EDIT: greeting, name, role, and introduction. -->
        <p class="eyebrow">A LITTLE CURIOSITY. A LOT OF CARE.</p>
        <h1 id="hero-title">Hi there, I’m<br><span>Your Name.</span><span class="wave" aria-hidden="true">✳</span></h1>
        <p class="role">Designer &amp; front-end developer</p>
        <p class="intro">I turn ideas into thoughtful digital experiences. A little design, a little code, and a whole lot of attention to the details.</p>
        <div class="button-row"><a class="button primary" href="#projects">View My Work <span aria-hidden="true">↗</span></a><a class="button secondary" href="#contact">Contact Me <span aria-hidden="true">→</span></a></div>
        <!-- EDIT: your current availability. -->
        <p class="availability"><span aria-hidden="true"></span> Open to freelance opportunities</p>
      </div>
      <div class="hero-art" aria-label="Avatar with the initials YN" role="img"><div class="orbit orbit-one"></div><div class="orbit orbit-two"></div><span class="art-spark spark-one" aria-hidden="true">✧</span><div class="avatar">YN<span class="avatar-dot" aria-hidden="true">✳</span></div><span class="art-spark spark-two" aria-hidden="true">+</span><span class="art-note" aria-hidden="true">Made of ideas &amp; good coffee.</span></div>
      <a class="explore" href="#about">A little more about me <span aria-hidden="true">↓</span></a>
    </section>
    <section id="about" class="section" aria-labelledby="about-title">
      <div class="container about-grid reveal"><div><p class="eyebrow">01 / A LITTLE INTRODUCTION</p><h2 id="about-title">Good work starts<br>with curiosity.</h2></div><div>
        <!-- EDIT: bio and quick facts. All portfolio content is illustrative. -->
        <p class="body-large">I’m a creative problem-solver who feels equally at home with a sketchbook and a code editor. I enjoy making the complex feel simple, useful, and a little more human.</p><p>Outside of work, you’ll find me exploring neighborhood cafés, collecting books I’ll eventually read, or taking the scenic route home.</p>
        <dl class="facts"><div><dt>Based in</dt><dd>Portland, Oregon</dd></div><div><dt>Experience</dt><dd>3+ years creating</dd></div><div><dt>Availability</dt><dd>Open to new projects</dd></div></dl>
      </div></div>
    </section>
    <section id="skills" class="section" aria-labelledby="skills-title"><div class="container reveal"><div class="section-heading"><div><p class="eyebrow">02 / MY TOOLKIT</p><h2 id="skills-title">A mix of craft &amp; code.</h2></div><p>The tools change. The love of making things stays.</p></div><div class="skills-grid">
      <!-- EDIT: eight skill tags and bar names/percentages. Match --progress to each displayed percentage. -->
      <div class="skill-tags"><span>HTML5</span><span>CSS3</span><span>JavaScript</span><span>UI Design</span><span>Accessibility</span><span>Responsive Design</span><span>Git</span><span>Prototyping</span></div>
      <div class="skill-bars"><div class="skill"><div><span>HTML &amp; CSS</span><span>95%</span></div><div class="track" role="meter" aria-label="HTML and CSS proficiency" aria-valuemin="0" aria-valuemax="100" aria-valuenow="95"><span style="--progress:95%"></span></div></div><div class="skill"><div><span>UI Design</span><span>85%</span></div><div class="track" role="meter" aria-label="UI design proficiency" aria-valuemin="0" aria-valuemax="100" aria-valuenow="85"><span style="--progress:85%"></span></div></div><div class="skill"><div><span>JavaScript</span><span>80%</span></div><div class="track" role="meter" aria-label="JavaScript proficiency" aria-valuemin="0" aria-valuemax="100" aria-valuenow="80"><span style="--progress:80%"></span></div></div><div class="skill"><div><span>Accessibility</span><span>90%</span></div><div class="track" role="meter" aria-label="Accessibility proficiency" aria-valuemin="0" aria-valuemax="100" aria-valuenow="90"><span style="--progress:90%"></span></div></div></div>
    </div></div></section>
    <section id="projects" class="section" aria-labelledby="projects-title"><div class="container reveal"><div class="section-heading"><div><p class="eyebrow">03 / SELECTED WORK</p><h2 id="projects-title">Ideas brought to life.</h2></div><p>A few things I’ve enjoyed putting out into the world.</p></div><div class="project-grid">
      <!-- EDIT: each project title, description, category, and link. Replace example.com URLs with real project URLs. -->
      <article class="project-card"><div class="thumbnail thumb-one" aria-hidden="true"><div class="mock-window"><i></i><i></i><i></i><div class="mock-content"><span>Less noise.<br>More focus.</span><b>Make space for your day ↗</b></div></div><span class="project-number">01</span></div><div class="project-body"><p class="category">DESIGN / DEVELOPMENT</p><h3>Focus Space</h3><p>A calming productivity dashboard that helps people find clarity in their everyday tasks.</p><a href="https://example.com/focus-space">View project <span aria-hidden="true">↗</span><span class="sr-only">: Focus Space (example link)</span></a></div></article>
      <article class="project-card"><div class="thumbnail thumb-two" aria-hidden="true"><div class="mock-brand"><span class="leaf">✳</span><strong>growing<br>good things.</strong><small>THE LITTLE PLANT SHOP</small></div><span class="project-number">02</span></div><div class="project-body"><p class="category">BRANDING / WEB DESIGN</p><h3>The Little Plant Shop</h3><p>A fresh, welcoming storefront for a neighborhood plant shop with a love for all things green.</p><a href="https://example.com/plant-shop">View project <span aria-hidden="true">↗</span><span class="sr-only">: The Little Plant Shop (example link)</span></a></div></article>
      <article class="project-card"><div class="thumbnail thumb-three" aria-hidden="true"><div class="mock-notes"><span>FIELD NOTES / 001</span><strong>Take the<br>long way.</strong><div class="mock-hills"></div></div><span class="project-number">03</span></div><div class="project-body"><p class="category">DEVELOPMENT / PERSONAL</p><h3>Weekend Wanderer</h3><p>A small travel journal for collecting local adventures, favorite places, and stories worth keeping.</p><a href="https://example.com/weekend-wanderer">View project <span aria-hidden="true">↗</span><span class="sr-only">: Weekend Wanderer (example link)</span></a></div></article>
    </div></div></section>
    <section id="experience" class="section" aria-labelledby="experience-title"><div class="container experience-grid reveal"><div><p class="eyebrow">04 / THE JOURNEY SO FAR</p><h2 id="experience-title">Always learning.<br>Always building.</h2><p>A few chapters from my work and education.</p></div>
      <!-- EDIT: timeline dates, roles, organizations, and descriptions. -->
      <ol class="timeline"><li><p class="timeline-date">2024 — PRESENT</p><h3>Front-end Developer</h3><p class="organization">Small Studio · Remote</p><p>Building responsive, accessible websites alongside a small team of thoughtful designers and developers.</p></li><li><p class="timeline-date">2022 — 2024</p><h3>Junior Web Designer</h3><p class="organization">Creative Workshop · Portland</p><p>Helped local businesses find their voice online through friendly design and simple, useful websites.</p></li><li><p class="timeline-date">2018 — 2022</p><h3>BA in Digital Media</h3><p class="organization">Example University</p><p>Explored visual communication, interaction design, and the fundamentals of building for the web.</p></li></ol>
    </div></section>
    <section id="contact" class="section" aria-labelledby="contact-title"><div class="container contact-panel reveal"><div><p class="eyebrow">05 / SAY HELLO</p><h2 id="contact-title">Have something<br>in mind? Let’s talk.</h2><p>A project, a question, or just a friendly hello.<br>I’d love to hear from you.</p>
      <!-- EDIT: email address in both the link and visible text; replace social profile URLs. -->
      <a class="email-link" href="mailto:hello@example.com">hello@example.com <span aria-hidden="true">↗</span></a>
      <div class="socials"><a href="https://github.com/yourusername" aria-label="Your Name on GitHub"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 2a10 10 0 0 0-3.16 19.49c.5.09.68-.22.68-.48v-1.86c-2.78.6-3.37-1.18-3.37-1.18-.45-1.16-1.11-1.47-1.11-1.47-.91-.62.07-.61.07-.61 1 .07 1.53 1.03 1.53 1.03.89 1.53 2.34 1.09 2.91.83.09-.65.35-1.09.64-1.34-2.22-.25-4.56-1.11-4.56-4.94 0-1.09.39-1.98 1.03-2.68-.1-.25-.45-1.27.1-2.65 0 0 .84-.27 2.75 1.02A9.58 9.58 0 0 1 12 6.82c.85 0 1.71.11 2.51.34 1.91-1.29 2.75-1.02 2.75-1.02.55 1.38.2 2.4.1 2.65.64.7 1.03 1.59 1.03 2.68 0 3.84-2.34 4.69-4.58 4.94.36.31.68.92.68 1.85v2.75c0 .27.18.58.69.48A10 10 0 0 0 12 2Z"></path></svg></a><a href="https://www.linkedin.com/in/yourusername/" aria-label="Your Name on LinkedIn"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM3.5 9h3v12h-3V9Zm5 0h3v1.64C12.2 9.5 13.3 9 14.7 9c3.1 0 4.8 1.8 4.8 5.3V21h-3v-6.2c0-1.9-.6-2.9-2.1-2.9-1.6 0-2.9 1.1-2.9 3.3V21h-3V9Z"></path></svg></a><a href="https://x.com/yourusername" aria-label="Your Name on X"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M18.9 3H22l-6.8 7.8L23 21h-6.1l-4.8-6.3L6.6 21H3.4l7.2-8.3L3 3h6.3l4.4 5.8L18.9 3ZM17.8 19h1.7L8.2 4.9H6.4L17.8 19Z"></path></svg></a><a href="https://www.instagram.com/yourusername/" aria-label="Your Name on Instagram"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="5"></rect><circle cx="12" cy="12" r="4"></circle><circle cx="17.5" cy="6.5" r=".8" fill="currentColor" stroke="none"></circle></svg></a></div></div>
      <!-- EDIT: replace action="#" with your Formspree endpoint, or configure Netlify Forms (name and data-netlify="true"). Remove data-demo once connected. This template does not send messages. -->
      <form action="#" method="post" data-demo=""><div class="form-row"><div><label for="name">Your name</label><input id="name" name="name" autocomplete="name" placeholder="Alex Morgan" required="" maxlength="100"></div><div><label for="email">Email address</label><input id="email" name="email" type="email" autocomplete="email" placeholder="alex@example.com" required="" maxlength="254"></div></div><label for="message">What’s on your mind?</label><textarea id="message" name="message" rows="5" placeholder="Tell me a little about your idea…" required="" maxlength="5000"></textarea><p class="form-note" id="form-note">Demo form — connect a form service to receive messages.</p><button class="button primary" type="submit" aria-describedby="form-note">Send Message <span aria-hidden="true">↗</span></button><p class="form-status" role="status" aria-live="polite"></p></form>
    </div></section>
  </main>
  <!-- EDIT: copyright name. Year updates automatically when JavaScript is available. -->
  <footer class="container site-footer"><p>© <span id="year">2026</span> Your Name. Made with care.</p><a href="#home">Back to top <span aria-hidden="true">↑</span></a></footer>


</body></html>

js/main.js

/* No dependencies. The page remains readable with JavaScript disabled. */
(() => {
  'use strict';
  const root = document.documentElement;
  const themeButton = document.querySelector('.theme-toggle');
  const themeQuery = window.matchMedia('(prefers-color-scheme: dark)');
  let savedTheme = null;
  // Storage may be disabled in private browsing or embedded previews.
  try { savedTheme = localStorage.getItem('personal-site-theme'); } catch (_) { /* Use system preference. */ }
  function applyTheme(theme) {
    root.dataset.theme = theme;
    const dark = theme === 'dark';
    themeButton.setAttribute('aria-pressed', String(dark));
    themeButton.setAttribute('aria-label', `Switch to ${dark ? 'light' : 'dark'} theme`);
    document.querySelector('meta[name="theme-color"]').content = getComputedStyle(root).getPropertyValue('--bg').trim();
  }
  if (savedTheme !== 'dark' && savedTheme !== 'light') savedTheme = null;
  applyTheme(savedTheme || (themeQuery.matches ? 'dark' : 'light'));
  themeButton.hidden = false;
  themeButton.addEventListener('click', () => {
    savedTheme = root.dataset.theme === 'dark' ? 'light' : 'dark';
    applyTheme(savedTheme);
    try { localStorage.setItem('personal-site-theme', savedTheme); } catch (_) { /* Theme still works for this visit. */ }
  });
  themeQuery.addEventListener('change', event => {
    if (!savedTheme) applyTheme(event.matches ? 'dark' : 'light');
  });

  const menuButton = document.querySelector('.menu-toggle');
  const nav = document.querySelector('#main-nav');
  const desktopQuery = window.matchMedia('(min-width: 768px)');
  function closeMenu(returnFocus = false) {
    nav.classList.add('is-collapsed');
    menuButton.setAttribute('aria-expanded', 'false');
    menuButton.setAttribute('aria-label', 'Open navigation');
    if (returnFocus) menuButton.focus();
  }
  menuButton.hidden = false;
  closeMenu();
  menuButton.addEventListener('click', () => {
    const open = menuButton.getAttribute('aria-expanded') !== 'true';
    nav.classList.toggle('is-collapsed', !open);
    menuButton.setAttribute('aria-expanded', String(open));
    menuButton.setAttribute('aria-label', `${open ? 'Close' : 'Open'} navigation`);
  });
  nav.addEventListener('click', event => {
    if (event.target.closest('a')) closeMenu();
  });
  document.addEventListener('keydown', event => {
    if (event.key === 'Escape' && menuButton.getAttribute('aria-expanded') === 'true') closeMenu(true);
  });
  document.addEventListener('click', event => {
    if (!event.target.closest('.site-header')) closeMenu();
  });
  desktopQuery.addEventListener('change', () => {
    // Keep keyboard focus visible when a resized menu becomes hidden.
    const focusWasInNav = nav.contains(document.activeElement);
    closeMenu(!desktopQuery.matches && focusWasInNav);
  });

  const links = [...nav.querySelectorAll('a')];
  const sections = links.map(link => document.querySelector(link.hash));
  let scrollQueued = false;
  function updateActiveLink() {
    const offset = document.querySelector('.site-header').offsetHeight + 100;
    let active = sections[0];
    sections.forEach(section => { if (section.getBoundingClientRect().top <= offset) active = section; });
    if (window.innerHeight + window.scrollY >= document.documentElement.scrollHeight - 4) active = sections[sections.length - 1];
    links.forEach(link => {
      if (link.hash === `#${active.id}`) link.setAttribute('aria-current', 'location');
      else link.removeAttribute('aria-current');
    });
    scrollQueued = false;
  }
  window.addEventListener('scroll', () => {
    if (!scrollQueued) { scrollQueued = true; requestAnimationFrame(updateActiveLink); }
  }, { passive: true });
  window.addEventListener('resize', updateActiveLink);
  updateActiveLink();

  const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)');
  if ('IntersectionObserver' in window && !reducedMotion.matches) {
    const observer = new IntersectionObserver(entries => {
      entries.forEach(entry => {
        if (entry.isIntersecting) { entry.target.classList.remove('is-pending'); observer.unobserve(entry.target); }
      });
    }, { threshold: 0.08 });
    document.querySelectorAll('.reveal').forEach(element => {
      element.classList.add('is-pending'); observer.observe(element);
    });
    reducedMotion.addEventListener('change', event => {
      if (event.matches) {
        observer.disconnect();
        document.querySelectorAll('.is-pending').forEach(element => element.classList.remove('is-pending'));
      }
    });
  }
  document.querySelector('#year').textContent = new Date().getFullYear();
  // EDIT: remove data-demo from the HTML after connecting a real form endpoint.
  const demoForm = document.querySelector('form[data-demo]');
  if (demoForm) demoForm.addEventListener('submit', event => {
    event.preventDefault();
    demoForm.querySelector('.form-status').textContent = 'This is a demo; your message was not sent. Please use the email link to get in touch.';
  });
})();

css/style.css

/* EDIT: customize these design tokens. Colors, spacing, and corner radii live here. */
:root {
  color-scheme: light;
  --bg: #f8f7fc; --surface: #ffffff; --text: #252335; --muted: #676478;
  --accent: #6950cc; --accent-hover: #543bb7; --accent-soft: #eee9fc;
  --border: #e3dfed; --header-bg: #f8f7fcf2; --status: #39775a;
  --avatar-bg: #dfd5fa; --avatar-text: #64509f; --shadow: #3020520b;
  --thumb-one: #ddd6fb; --thumb-one-end: #bdaeea; --thumb-two: #dbe8d4; --thumb-two-end: #b8d1ab;
  --thumb-three: #f3dfd4; --thumb-three-end: #e4bfa7; --art-ink: #353049; --plant-ink: #344c3a;
  --mock-paper: #fffffff0; --hill: #aa7761;
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;
  --radius-sm: .5rem; --radius-md: 1rem; --radius-lg: 1.5rem; --radius-pill: 999px; --radius-circle: 50%;
  --container: 1120px; --header-height: 84px;
}
/* EDIT: dark-theme colors independently if desired. */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #18171f; --surface: #22212d; --text: #f1eef9; --muted: #b5b0c7;
  --accent: #b6a1ff; --accent-hover: #c9baff; --accent-soft: #302741;
  --border: #3a3548; --header-bg: #18171ff2; --status: #8ed0a7;
  --avatar-bg: #3d3157; --avatar-text: #d2bfff; --shadow: #00000020;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + var(--space-4)); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent-soft); color: var(--text); }
p { margin: 0 0 var(--space-5); color: var(--muted); }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 3.8vw, 2.8rem); font-weight: 650; }
h3 { font-size: 1.25rem; letter-spacing: -.025em; }
.container { width: min(var(--container), calc(100% - var(--space-10))); margin-inline: auto; }
.section { padding-block: var(--space-16); }
.eyebrow { color: var(--accent); font-size: .68rem; font-weight: 750; letter-spacing: .15em; margin-bottom: var(--space-5); }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: var(--space-4); left: var(--space-4); z-index: 100; padding: var(--space-3); background: var(--surface); }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-4); }
.logo { font-weight: 750; font-size: 1.25rem; letter-spacing: -.05em; margin-right: auto; }
.logo span { color: var(--accent); }
nav { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: var(--space-4); padding-bottom: var(--space-4); }
nav a { color: var(--muted); font-size: .82rem; font-weight: 550; padding-block: var(--space-2); }
nav a:hover, nav a[aria-current] { color: var(--accent); }
nav a[aria-current] { text-decoration: underline; text-underline-offset: 7px; }
.header-actions { display: flex; gap: var(--space-2); }
.icon-button { background: var(--surface); color: var(--text); border: 1px solid var(--border); width: 38px; height: 38px; border-radius: var(--radius-circle); display: inline-flex; align-items: center; justify-content: center; }
.icon-button svg { width: 19px; height: 19px; }
[hidden] { display: none !important; }
.menu-toggle { flex-direction: column; gap: var(--space-1); }
.menu-toggle span { width: 16px; height: 1px; background: currentColor; }
.hero { padding-top: var(--space-16); padding-bottom: var(--space-8); display: grid; gap: var(--space-8); }
h1 { font-size: clamp(3rem, 7vw, 5rem); font-weight: 720; line-height: 1.12; }
h1 > span:first-child { color: var(--accent); }
.wave { color: var(--accent); display: inline-block; font-weight: 400; font-size: .7em; margin-left: var(--space-3); vertical-align: 10%; }
.role { color: var(--text); margin-top: var(--space-6); margin-bottom: var(--space-3); font-size: 1.15rem; font-weight: 550; }
.intro { max-width: 440px; }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-6); padding: var(--space-3) var(--space-5); border: 1px solid transparent; border-radius: var(--radius-sm); font-size: .84rem; font-weight: 650; transition: background .2s, transform .2s; }
.primary { background: var(--accent); color: var(--surface); }
[data-theme="dark"] .primary { color: var(--bg); }
.primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.secondary { border-color: var(--border); background: var(--surface); }
.secondary:hover { background: var(--accent-soft); }
.availability { display: flex; gap: var(--space-2); align-items: center; margin-top: var(--space-6); font-size: .73rem; }
.availability > span { background: var(--status); width: 6px; height: 6px; border-radius: var(--radius-circle); }
.hero-art { min-height: 320px; position: relative; display: grid; place-items: center; isolation: isolate; }
.avatar { width: 220px; aspect-ratio: 1; border-radius: var(--radius-circle); background: var(--avatar-bg); color: var(--avatar-text); display: grid; place-items: center; font-size: 4.7rem; font-weight: 600; letter-spacing: -.08em; position: relative; transform: rotate(-8deg); }
.avatar-dot { position: absolute; right: 0; bottom: var(--space-3); width: 48px; height: 48px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-circle); display: grid; place-items: center; font-size: 2rem; color: var(--accent); }
.orbit { position: absolute; border: 1px solid var(--border); border-radius: var(--radius-circle); width: 280px; height: 280px; z-index: -1; }
.orbit-two { width: 310px; height: 310px; border-style: dashed; }
.art-spark { position: absolute; color: var(--accent); font-size: 2.7rem; }
.spark-one { top: 0; right: 12%; }.spark-two { bottom: 12%; left: 8%; font-size: 2rem; }
.art-note { position: absolute; bottom: 0; right: 0; background: var(--surface); padding: var(--space-2) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: .7rem; transform: rotate(-6deg); }
.explore { color: var(--muted); font-size: .73rem; display: flex; gap: var(--space-5); align-items: center; }
.about-grid, .skills-grid, .experience-grid { display: grid; gap: var(--space-8); }
.body-large { font-size: 1.12rem; color: var(--text); }
.facts { display: grid; gap: var(--space-5); border-top: 1px solid var(--border); padding-top: var(--space-6); margin-top: var(--space-8); margin-bottom: 0; }
.facts dt { color: var(--muted); font-size: .72rem; margin-bottom: var(--space-1); }
.facts dd { margin: 0; font-weight: 600; font-size: .82rem; }
.section-heading { display: flex; flex-direction: column; gap: var(--space-5); margin-bottom: var(--space-10); }
.section-heading > p { max-width: 280px; font-size: .86rem; margin: 0; }
.skill-tags { display: flex; flex-wrap: wrap; align-content: start; gap: var(--space-3); }
.skill-tags span { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-5); font-size: .85rem; }
.skill + .skill { margin-top: var(--space-5); }
.skill > div:first-child { display: flex; justify-content: space-between; margin-bottom: var(--space-2); font-size: .8rem; font-weight: 550; }
.skill > div > span:last-child { color: var(--muted); }
.track { height: 6px; background: var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.track span { display: block; width: var(--progress); height: 100%; background: var(--accent); border-radius: inherit; }
.project-grid { display: grid; gap: var(--space-6); }
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 8px 25px var(--shadow); }
.thumbnail { height: 230px; display: grid; place-items: center; position: relative; overflow: hidden; padding: var(--space-8); color: var(--art-ink); }
.thumb-one { background: linear-gradient(130deg, var(--thumb-one), var(--thumb-one-end)); }
.thumb-two { background: linear-gradient(145deg, var(--thumb-two), var(--thumb-two-end)); }
.thumb-three { background: linear-gradient(140deg, var(--thumb-three), var(--thumb-three-end)); }
.project-number { position: absolute; top: var(--space-3); right: var(--space-4); font-size: .65rem; }
.mock-window { width: 95%; max-width: 250px; background: var(--mock-paper); padding: var(--space-3); border-radius: var(--radius-sm); transform: rotate(-5deg); }
.mock-window > i { display: inline-block; width: 4px; height: 4px; border-radius: var(--radius-circle); background: var(--thumb-one-end); margin-right: var(--space-1); vertical-align: top; }
.mock-content { padding: var(--space-2) var(--space-3) var(--space-4); }
.mock-content span { font-size: 1.65rem; line-height: 1.1; font-weight: 650; letter-spacing: -.05em; display: block; }
.mock-content b { font-size: .45rem; display: block; margin-top: var(--space-4); font-weight: 500; }
.mock-brand { color: var(--plant-ink); text-align: center; transform: rotate(-4deg); }
.leaf { font-size: 2.5rem; line-height: 1; }.mock-brand strong { font-size: 1.8rem; display: block; line-height: 1.05; font-family: Georgia, serif; font-weight: 500; }
.mock-brand small { font-size: .42rem; letter-spacing: .16em; }
.mock-notes { width: 200px; height: 180px; padding: var(--space-4); background: var(--mock-paper); transform: rotate(6deg); overflow: hidden; }
.mock-notes > span { font-size: .4rem; letter-spacing: .14em; }.mock-notes strong { display: block; font-family: Georgia, serif; font-weight: 500; font-size: 1.7rem; line-height: 1.1; margin-top: var(--space-3); }
.mock-hills { height: 110px; width: 240px; background: var(--hill); border-radius: var(--radius-circle); transform: rotate(-20deg); margin-top: var(--space-5); }
.project-body { padding: var(--space-6); }.category { font-size: .58rem; color: var(--accent); font-weight: 700; letter-spacing: .1em; margin-bottom: var(--space-3); }
.project-body h3 { margin-bottom: var(--space-3); }.project-body > p:not(.category) { font-size: .83rem; }.project-body > a { font-size: .78rem; font-weight: 650; }.project-body > a span[aria-hidden] { margin-left: var(--space-2); color: var(--accent); }
.project-body > a:hover, .email-link:hover, .site-footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.experience-grid > div > p:last-child { font-size: .87rem; margin-top: var(--space-5); }
.timeline { margin: 0 0 0 var(--space-2); padding: 0 0 0 var(--space-8); border-left: 1px solid var(--border); list-style: none; }
.timeline li { position: relative; padding-bottom: var(--space-8); }.timeline li:last-child { padding-bottom: 0; }.timeline li::before { content: ""; position: absolute; width: 9px; height: 9px; border-radius: var(--radius-circle); background: var(--accent); left: calc(-1 * var(--space-8) - 5px); top: 7px; box-shadow: 0 0 0 5px var(--bg); }
.timeline-date { color: var(--accent); font-size: .65rem; font-weight: 650; letter-spacing: .06em; margin-bottom: var(--space-2); }.timeline h3 { font-size: 1.1rem; }.timeline .organization { color: var(--text); font-size: .78rem; margin-top: var(--space-2); margin-bottom: var(--space-3); }.timeline li > p:last-child { font-size: .83rem; margin: 0; }
.contact-panel { background: var(--accent-soft); padding: var(--space-8); border: 1px solid var(--border); border-radius: var(--radius-lg); display: grid; gap: var(--space-10); }
.contact-panel h2 { margin-bottom: var(--space-5); }.contact-panel p { font-size: .85rem; }.email-link { display: inline-block; font-size: 1.05rem; font-weight: 650; }.email-link > span { margin-left: var(--space-3); color: var(--accent); }
.socials { display: flex; gap: var(--space-3); margin-top: var(--space-6); }.socials a { display: grid; place-items: center; width: 36px; height: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-circle); }.socials a:hover { color: var(--accent); }.socials svg { width: 16px; height: 16px; fill: currentColor; }.socials a:last-child svg { fill: none; }
label { display: block; font-size: .75rem; font-weight: 600; margin-bottom: var(--space-2); }
input, textarea { width: 100%; padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: .8rem; margin-bottom: var(--space-4); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }textarea { resize: vertical; min-height: 120px; }.form-row { display: grid; gap: 0; }.contact-panel .form-note { font-size: .7rem; margin-bottom: var(--space-4); }.form-status { margin-top: var(--space-3); margin-bottom: 0; }.form-status:empty { display: none; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); padding-block: var(--space-8); border-top: 1px solid var(--border); font-size: .73rem; }.site-footer p { margin: 0; }.site-footer a span { margin-left: var(--space-3); }
/* Only hide reveal elements after JS confirms observer support. */
.reveal.is-pending { opacity: 0; transform: translateY(18px); }.reveal { transition: opacity .6s ease, transform .6s ease; }
@media (min-width: 768px) {
  .container { width: min(var(--container), calc(100% - var(--space-16))); }
  .section { padding-block: var(--space-20); }
  nav { order: initial; width: auto; padding: 0; gap: var(--space-5); }
  .menu-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; gap: var(--space-5); }
  .hero { grid-template-columns: 1.25fr 1fr; align-items: center; padding-top: var(--space-20); gap: var(--space-10); }
  .hero-art { min-height: 350px; }.explore { grid-column: 1 / -1; margin-top: var(--space-8); }
  .about-grid, .experience-grid { grid-template-columns: .85fr 1.15fr; gap: var(--space-16); }
  .facts { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
  .skills-grid { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
  .section-heading { flex-direction: row; align-items: end; justify-content: space-between; }
  .project-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
  .thumbnail { height: 210px; padding: var(--space-5); }.mock-content span { font-size: 1.3rem; }.project-body { padding: var(--space-5); }
  .contact-panel { padding: var(--space-10); grid-template-columns: 1fr 1fr; gap: var(--space-10); }
}
@media (min-width: 1024px) {
  nav { gap: var(--space-6); }.header-inner { gap: var(--space-8); }
  .hero { padding-top: var(--space-24); padding-bottom: var(--space-10); gap: var(--space-12); }
  .hero-art { min-height: 390px; }.avatar { width: 280px; font-size: 6rem; }.orbit-one { width: 345px; height: 345px; }.orbit-two { width: 385px; height: 385px; }
  .art-note { right: var(--space-4); bottom: var(--space-4); }.spark-one { top: var(--space-2); }
  .project-grid { gap: var(--space-6); }.thumbnail { height: 240px; padding: var(--space-8); }.project-body { padding: var(--space-6); }.mock-content span { font-size: 1.65rem; }
  .contact-panel { padding: var(--space-12); gap: var(--space-16); }.form-row { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
}
@media (max-width: 767px) { nav.is-collapsed { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }*, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal.is-pending { opacity: 1; transform: none; }.primary:hover { transform: none; }
}

How it works

The template has three files. index.html holds your content: name, bio, skills and projects. style.css controls the design, and all colors and spacing are CSS variables at the top, so you can restyle the entire site by changing a few lines. main.js adds the mobile menu, the theme toggle and the scroll animations. There is no database and no server code, so the site stays fast and secure and runs on any static host.

Try a change

Choose Edit code, make a small change, then press Run to preview it.

Use Live preview to try the project, the source Copy buttons to copy files, Edit code to open the editor, or Download ZIP to save the project after a ten-second countdown.

How to edit

Download and unzip the template folder.
Open the folder in a code editor such as VS Code, or Notepad.
Open index.html and look for the comments marked EDIT. Replace “Your Name”, your role and your bio with your own text.
Update the skills, project cards and timeline items. Duplicate a card to add more.
Change the accent color in css/style.css:
css
:root {
--accent: #2563eb;
--bg: #ffffff;
--text: #1f2937;
}
Replace the initials avatar with your photo if you like, and keep the image under 100 KB (WebP works best).
Add your real social links and connect the contact form to Formspree or Netlify Forms.
Open the file in your browser, check the mobile view, then upload the folder to your hosting.

Frequently asked questions

Can I use this template for my portfolio or resume?

Yes. The projects and timeline sections work well as a portfolio or an online resume.

Is it free for commercial use?

Yes. Use it for yourself or for client websites. No credit link is required.

Where can I host my personal website?

Any static host works, including Cloudflare Pages, Netlify and normal shared hosting.

Do I need coding knowledge?

Basic editing is enough. Replace the text and colors by following the EDIT comments in the code.

Discussion (0)

Leave a comment