Free
View template
Canvas — creative portfolio
An editorial portfolio with bold typography, original artwork, project filters and case-study dialogs.
Tools
Company
Blog About us Contact usCreate & learn
PlaygroundAPI TesterTemplatesCreditsGuided projectsChallengesLearnTutorialsPortfolio websites Free template
A clean one-page portfolio with an about section, filterable project cards, a contact section and a light/dark switch.
The preview runs in a sandbox: it cannot reach your account, cookies or the network.
A single-page personal portfolio you can make your own in minutes: change the name, the text and the project list, and it is ready to publish on any static host. It has a sticky header, a hero, an about section with skills, project cards you can filter by type, a contact section and a dark mode switch that remembers your choice. Everything is plain HTML, CSS and JavaScript with no libraries.
Look under the hood
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Alex Morgan - Web developer</title>
<meta name="description" content="Portfolio of Alex Morgan, a web developer who builds fast, accessible websites.">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header class="top">
<a class="brand" href="#home">Alex Morgan</a>
<nav aria-label="Main">
<a href="#about">About</a>
<a href="#work">Work</a>
<a href="#contact">Contact</a>
<button id="theme" type="button" aria-label="Switch between light and dark">Theme</button>
</nav>
</header>
<main id="home">
<section class="hero">
<p class="eyebrow">Web developer</p>
<h1>I build fast, friendly websites that people enjoy using.</h1>
<p class="lead">Based in Lisbon. I turn ideas into accessible, well-structured sites and small web apps.</p>
<a class="button" href="#work">See my work</a>
</section>
<section id="about" class="section">
<h2>About me</h2>
<p>I have six years of experience designing and building websites for small businesses, start-ups and non-profits. I care about clear writing, good typography and pages that load quickly on any phone.</p>
<ul class="skills">
<li>HTML & CSS</li><li>JavaScript</li><li>Accessibility</li><li>Performance</li><li>PHP & Laravel</li><li>Design systems</li>
</ul>
</section>
<section id="work" class="section">
<h2>Selected work</h2>
<div class="filters" role="group" aria-label="Filter projects">
<button type="button" data-filter="all" aria-pressed="true">All</button>
<button type="button" data-filter="website" aria-pressed="false">Websites</button>
<button type="button" data-filter="app" aria-pressed="false">Web apps</button>
</div>
<div class="cards" id="cards">
<article class="card" data-type="website"><h3>Bakery Bloom</h3><p>Online menu and ordering page for a local bakery. 40% more weekend orders.</p><span class="tag">Website</span></article>
<article class="card" data-type="app"><h3>Habit Tracker</h3><p>A small app to build daily habits, with streaks and gentle reminders.</p><span class="tag">Web app</span></article>
<article class="card" data-type="website"><h3>Green Roots</h3><p>A fast, accessible site for an environmental charity, built in two weeks.</p><span class="tag">Website</span></article>
<article class="card" data-type="app"><h3>Invoice Buddy</h3><p>Create and print simple invoices in the browser, no sign-up needed.</p><span class="tag">Web app</span></article>
</div>
</section>
<section id="contact" class="section">
<h2>Let us talk</h2>
<p>Have a project in mind? Write to <a href="mailto:hello@example.com">hello@example.com</a> and I will reply within two working days.</p>
</section>
</main>
<footer class="foot"><p>© 2026 Alex Morgan. Built with plain HTML, CSS and JavaScript.</p></footer>
<script src="app.js"></script>
</body>
</html>
// Theme switch: follows the visitor's system setting at first, then remembers the choice.
const root = document.documentElement;
const themeButton = document.getElementById('theme');
function applyTheme(name) {
root.setAttribute('data-theme', name);
try { localStorage.setItem('theme', name); } catch (error) { /* storage can be blocked: the page still works */ }
}
let saved = null;
try { saved = localStorage.getItem('theme'); } catch (error) { /* ignore */ }
applyTheme(saved || (matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'));
themeButton.addEventListener('click', () => {
applyTheme(root.getAttribute('data-theme') === 'dark' ? 'light' : 'dark');
});
// Project filter: shows only the cards of the chosen type.
const buttons = document.querySelectorAll('.filters button');
const cards = document.querySelectorAll('#cards .card');
buttons.forEach((button) => {
button.addEventListener('click', () => {
const type = button.dataset.filter;
buttons.forEach((b) => b.setAttribute('aria-pressed', String(b === button)));
cards.forEach((card) => { card.hidden = type !== 'all' && card.dataset.type !== type; });
});
});
:root {
--bg: #ffffff;
--ink: #141c20;
--muted: #5a6670;
--line: #e3e6e9;
--card: #f6f7f8;
--brand: #c00000;
--brand-ink: #ffffff;
}
[data-theme='dark'] {
--bg: #11171a;
--ink: #f1f3f4;
--muted: #a7b0b6;
--line: #2a343a;
--card: #1a2327;
--brand: #ff5c5c;
--brand-ink: #11171a;
}
* { box-sizing: border-box; }
body {
margin: 0;
background: var(--bg);
color: var(--ink);
font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
line-height: 1.6;
}
a { color: var(--brand); }
.top {
position: sticky;
top: 0;
z-index: 10;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.5rem 1rem;
padding: 0.75rem 1.5rem;
background: var(--bg);
border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; text-decoration: none; color: var(--ink); }
nav { display: flex; align-items: center; gap: 1rem; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover { color: var(--brand); }
button {
font: inherit;
cursor: pointer;
padding: 0.35rem 0.8rem;
color: var(--ink);
background: transparent;
border: 1px solid var(--line);
border-radius: 0.5rem;
}
main { max-width: 52rem; margin: 0 auto; padding: 0 1.5rem; }
.hero { padding: 5rem 0 3rem; }
.eyebrow { margin: 0; color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
h1 { margin: 0.5rem 0 1rem; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 38rem; }
.button {
display: inline-block;
margin-top: 1rem;
padding: 0.7rem 1.4rem;
background: var(--brand);
color: var(--brand-ink);
border-radius: 0.6rem;
font-weight: 600;
text-decoration: none;
}
.section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
h2 { margin-top: 0; }
.skills { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; list-style: none; }
.skills li { padding: 0.25rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; }
.filters { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.filters button[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.card { padding: 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: 0.9rem; }
.card h3 { margin: 0 0 0.4rem; }
.card p { margin: 0 0 0.8rem; color: var(--muted); }
.card[hidden] { display: none; }
.tag { font-size: 0.75rem; padding: 0.15rem 0.6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.foot { max-width: 52rem; margin: 2rem auto 0; padding: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
First release.