Portfolio — Playful / Illustrated Portfolio
A full one-page designer portfolio dressed in a bright, hand-drawn illustrated style — sunshine and bubblegum palette, rounded Baloo display type and a friendly Nunito body. A waving SVG avatar, wobbly underlines, floating doodles, sticker-like tilted project cards, blobby shapes and dashed doodle dividers give it real character. Vanilla JS drives a project filter, bouncy card pokes, animated stat counters, a scroll-spy nav, copy-to-clipboard email and a validated contact form.
MCP
Code
:root {
/* Palette — bright, friendly, illustrated */
--cream: #fff7ec;
--paper: #fffdf8;
--ink: #2a2438;
--ink-soft: #5a5170;
--accent: #ff5d8f; /* bubblegum */
--accent-2: #ffc85e; /* sunshine */
--blob-1: #ffd1e3;
--blob-2: #b6e3ff;
--blob-3: #d8f0c2;
/* Card / skill sticker colors */
--c1: #ff8fb1;
--c2: #6ec6ff;
--c3: #ffb454;
--c4: #9be38b;
--c5: #c79bff;
--c6: #5fd6c4;
--ring: #2a2438;
--shadow: 6px 7px 0 var(--ink);
--shadow-sm: 3px 4px 0 var(--ink);
--radius: 22px;
--font-display: "Baloo 2", system-ui, sans-serif;
--font-body: "Nunito", system-ui, sans-serif;
--maxw: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
font-family: var(--font-body);
color: var(--ink);
background:
radial-gradient(1200px 600px at 90% -10%, var(--blob-1) 0, transparent 55%),
radial-gradient(1000px 500px at -10% 20%, var(--blob-2) 0, transparent 50%),
var(--cream);
line-height: 1.55;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow-x: hidden;
}
h1, h2, h3, .brand-name { font-family: var(--font-display); line-height: 1.1; }
a { color: inherit; }
.skip-link {
position: absolute;
left: 12px;
top: -60px;
background: var(--ink);
color: #fff;
padding: 10px 16px;
border-radius: 12px;
z-index: 100;
transition: top .2s;
font-weight: 700;
}
.skip-link:focus { top: 12px; }
:focus-visible {
outline: 3px solid var(--accent);
outline-offset: 3px;
border-radius: 8px;
}
/* ---------- Floating doodles ---------- */
.doodle-field { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.doodle { position: absolute; width: 70px; height: 70px; opacity: .5; }
.doodle--a { color: var(--accent); top: 16%; left: 6%; animation: float 7s ease-in-out infinite; }
.doodle--b { color: var(--accent-2); top: 60%; right: 8%; width: 50px; height: 50px; animation: float 9s ease-in-out infinite reverse; }
.doodle--c { color: var(--blob-3); top: 82%; left: 12%; animation: float 8s ease-in-out infinite; }
.doodle--d { color: var(--c5); top: 34%; right: 5%; animation: float 11s ease-in-out infinite; }
@keyframes float {
0%, 100% { transform: translateY(0) rotate(-4deg); }
50% { transform: translateY(-18px) rotate(6deg); }
}
/* ---------- Top bar ---------- */
.topbar {
position: sticky;
top: 0;
z-index: 50;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
max-width: var(--maxw);
margin: 0 auto;
padding: 14px 22px;
background: rgba(255, 247, 236, .82);
backdrop-filter: blur(8px);
border-bottom: 3px solid transparent;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand-mark svg { width: 40px; height: 40px; display: block; }
.brand-name { font-size: 1.4rem; }
.brand-dot { color: var(--accent); }
.topnav { display: flex; align-items: center; gap: 6px; }
.navlink {
position: relative;
text-decoration: none;
font-weight: 700;
padding: 8px 12px;
border-radius: 12px;
color: var(--ink-soft);
transition: color .15s, background .15s;
}
.navlink:hover { color: var(--ink); }
.navlink.is-current { color: var(--ink); }
.navlink.is-current::after {
content: "";
position: absolute;
left: 12px; right: 12px; bottom: 3px;
height: 6px;
background: var(--accent-2);
border-radius: 6px;
transform: rotate(-1deg);
}
.navlink--cta {
background: var(--ink);
color: #fff;
box-shadow: var(--shadow-sm);
}
.navlink--cta:hover { background: var(--accent); color: #fff; }
.menu-toggle {
display: none;
flex-direction: column;
gap: 5px;
background: none;
border: 0;
cursor: pointer;
padding: 8px;
}
.menu-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* ---------- Layout helpers ---------- */
main { position: relative; z-index: 1; }
section { max-width: var(--maxw); margin: 0 auto; padding: 72px 22px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-title { font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 800; margin: 0; }
.dot-accent { color: var(--accent); margin-left: 6px; font-size: .6em; vertical-align: middle; }
.section-note { color: var(--ink-soft); font-weight: 600; margin: 10px 0 0; }
/* ---------- Hero ---------- */
.hero {
display: grid;
grid-template-columns: 1fr 1fr;
align-items: center;
gap: 40px;
padding-top: 40px;
}
.hero-art { position: relative; min-height: 380px; display: grid; place-items: center; order: 2; }
.blob { position: absolute; border-radius: 48% 52% 60% 40% / 50% 45% 55% 50%; filter: blur(2px); }
.blob--1 { width: 260px; height: 260px; background: var(--blob-1); top: 10%; left: 8%; animation: blobby 12s ease-in-out infinite; }
.blob--2 { width: 180px; height: 180px; background: var(--blob-2); bottom: 6%; right: 6%; animation: blobby 14s ease-in-out infinite reverse; }
.blob--3 { width: 120px; height: 120px; background: var(--accent-2); top: 12%; right: 14%; opacity: .8; animation: blobby 10s ease-in-out infinite; }
@keyframes blobby {
0%, 100% { border-radius: 48% 52% 60% 40% / 50% 45% 55% 50%; transform: translate(0,0); }
50% { border-radius: 60% 40% 45% 55% / 55% 60% 40% 45%; transform: translate(8px,-10px); }
}
.avatar { position: relative; z-index: 2; width: min(320px, 70vw); display: block; }
.avatar-svg { width: 100%; height: auto; display: block; filter: drop-shadow(6px 8px 0 rgba(42,36,56,.18)); }
.avatar:hover { animation: pop .5s ease; }
@keyframes pop { 0%,100%{transform:scale(1)} 35%{transform:scale(1.06) rotate(-2deg)} }
.wave-hand {
position: absolute;
right: 2%;
top: 8%;
font-size: 2.6rem;
transform-origin: 70% 70%;
}
.wave-hand.is-waving { animation: wave 1.1s ease-in-out 2; }
@keyframes wave {
0%,100% { transform: rotate(0); }
20% { transform: rotate(-18deg); }
40% { transform: rotate(14deg); }
60% { transform: rotate(-12deg); }
80% { transform: rotate(10deg); }
}
.hero-copy { order: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; color: var(--ink-soft); margin: 0 0 10px; }
.sticker {
display: inline-block;
background: var(--accent-2);
color: var(--ink);
font-family: var(--font-display);
font-size: .78rem;
padding: 3px 12px;
border-radius: 30px;
transform: rotate(-3deg);
box-shadow: var(--shadow-sm);
}
.hero-title { font-size: clamp(2.2rem, 7vw, 4rem); margin: 0 0 16px; }
.wobble {
position: relative;
color: var(--accent);
display: inline-block;
}
.wobble::after {
content: "";
position: absolute;
left: 0; right: 0; bottom: -6px;
height: 12px;
background:
radial-gradient(circle at 10px 6px, transparent 6px, var(--accent-2) 7px) repeat-x;
background-size: 22px 12px;
-webkit-mask: linear-gradient(#000 0 0);
border-radius: 4px;
opacity: .9;
}
.hero-sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 44ch; margin: 0 0 26px; font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
display: inline-block;
font-family: var(--font-display);
font-weight: 700;
text-decoration: none;
padding: 12px 24px;
border-radius: 40px;
border: 3px solid var(--ink);
cursor: pointer;
font-size: 1rem;
transition: transform .12s, box-shadow .12s, background .15s;
}
.btn--solid { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn--ghost { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 8px 10px 0 var(--ink); }
.btn:active { transform: translate(2px,3px); box-shadow: 2px 2px 0 var(--ink); }
.btn--big { font-size: 1.1rem; padding: 14px 30px; }
.hero-stats {
display: flex;
gap: 28px;
list-style: none;
padding: 0;
margin: 34px 0 0;
flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 2rem; color: var(--ink); }
.hero-stats span { font-size: .88rem; color: var(--ink-soft); font-weight: 700; }
/* ---------- Dividers ---------- */
.divider { max-width: 100%; margin: 0; padding: 0; color: var(--accent-2); line-height: 0; }
.divider svg { width: 100%; height: 38px; display: block; }
.divider--flip svg { transform: scaleY(-1); color: var(--c2); }
/* ---------- Work / cards ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.chip {
font-family: var(--font-display);
font-weight: 600;
font-size: .92rem;
background: var(--paper);
border: 3px solid var(--ink);
color: var(--ink);
padding: 7px 16px;
border-radius: 30px;
cursor: pointer;
box-shadow: var(--shadow-sm);
transition: transform .12s, background .15s, box-shadow .12s;
}
.chip:hover { transform: translate(-1px,-1px); }
.chip.is-active { background: var(--ink); color: #fff; }
.cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 26px;
}
.card {
position: relative;
background: var(--paper);
border: 3px solid var(--ink);
border-radius: var(--radius);
padding: 18px;
box-shadow: var(--shadow);
transform: rotate(var(--tilt));
transition: transform .18s ease, box-shadow .18s ease;
cursor: pointer;
outline: none;
}
.card:hover, .card:focus-visible {
transform: rotate(0deg) translateY(-6px) scale(1.02);
box-shadow: 9px 12px 0 var(--ink);
}
.card.is-poked { animation: jelly .5s ease; }
@keyframes jelly {
0%,100%{transform:rotate(0) scale(1)}
30%{transform:rotate(0) scale(1.08,.92)}
55%{transform:rotate(0) scale(.95,1.05)}
75%{transform:rotate(0) scale(1.03,.98)}
}
.card-art {
background: color-mix(in srgb, var(--card) 22%, #fff);
border-radius: 16px;
padding: 16px;
margin-bottom: 14px;
display: grid;
place-items: center;
}
.card-art svg { width: 100%; max-width: 150px; height: auto; }
.card-tag {
display: inline-block;
font-family: var(--font-display);
font-size: .72rem;
font-weight: 700;
background: var(--card);
color: var(--ink);
padding: 2px 12px;
border-radius: 20px;
margin-bottom: 6px;
}
.card-title { font-size: 1.45rem; margin: 0 0 6px; }
.card-desc { color: var(--ink-soft); font-weight: 600; margin: 0 0 12px; font-size: .96rem; }
.card-meta { list-style: none; display: flex; justify-content: space-between; padding: 0; margin: 0; font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.card[hidden] { display: none; }
.empty { text-align: center; font-weight: 700; font-size: 1.1rem; color: var(--ink-soft); padding: 30px; }
.link-btn {
background: none; border: 0; padding: 0; cursor: pointer;
font: inherit; color: var(--accent); font-weight: 800;
text-decoration: underline; text-decoration-style: wavy; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--ink); }
/* ---------- About ---------- */
.about {
display: grid;
grid-template-columns: 1.4fr 1fr;
gap: 40px;
align-items: center;
}
.about-card {
background: var(--paper);
border: 3px solid var(--ink);
border-radius: var(--radius);
padding: 32px;
box-shadow: var(--shadow);
transform: rotate(-1deg);
}
.about-card .section-title { text-align: left; margin-bottom: 14px; }
.about-card p { color: var(--ink-soft); font-weight: 600; margin: 0 0 14px; }
.about-card em { color: var(--accent); font-style: normal; font-weight: 800; }
.about-bubbles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bubble {
background: var(--blob-2);
font-family: var(--font-display);
font-weight: 600;
font-size: .82rem;
padding: 5px 14px;
border-radius: 30px;
border: 2px solid var(--ink);
}
.bubble:nth-child(2) { background: var(--blob-1); transform: rotate(2deg); }
.bubble:nth-child(3) { background: var(--blob-3); transform: rotate(-2deg); }
.about-portrait { position: relative; display: grid; place-items: center; }
.portrait-svg { width: min(280px, 80%); height: auto; filter: drop-shadow(6px 8px 0 rgba(42,36,56,.16)); transform: rotate(2deg); }
.star { position: absolute; font-size: 2rem; color: var(--accent-2); }
.star--1 { top: 0; left: 18%; animation: twinkle 2.5s ease-in-out infinite; }
.star--2 { bottom: 6%; right: 16%; color: var(--accent); animation: twinkle 3.2s ease-in-out infinite .6s; }
@keyframes twinkle { 0%,100%{transform:scale(1) rotate(0);opacity:.6} 50%{transform:scale(1.4) rotate(20deg);opacity:1} }
/* ---------- Experience timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 720px; position: relative; }
.timeline::before {
content: "";
position: absolute;
left: 11px; top: 8px; bottom: 8px;
width: 4px;
background: repeating-linear-gradient(var(--ink) 0 8px, transparent 8px 16px);
border-radius: 4px;
}
.t-item { position: relative; padding: 0 0 28px 44px; }
.t-dot {
position: absolute;
left: 2px; top: 4px;
width: 22px; height: 22px;
border-radius: 50%;
background: var(--accent);
border: 3px solid var(--ink);
box-shadow: var(--shadow-sm);
}
.t-item:nth-child(2) .t-dot { background: var(--accent-2); }
.t-item:nth-child(3) .t-dot { background: var(--c2); }
.t-item:nth-child(4) .t-dot { background: var(--c4); }
.t-body {
background: var(--paper);
border: 3px solid var(--ink);
border-radius: 18px;
padding: 16px 20px;
box-shadow: var(--shadow-sm);
transition: transform .15s;
}
.t-item:hover .t-body { transform: translateX(4px) rotate(-.5deg); }
.t-year { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .78rem; color: #fff; background: var(--ink); padding: 2px 12px; border-radius: 20px; margin-bottom: 8px; }
.t-body h3 { font-size: 1.2rem; margin: 0 0 4px; }
.t-body p { margin: 0; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
/* ---------- Skills ---------- */
.skill-cloud { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 0; margin: 0; }
.skill {
font-family: var(--font-display);
font-weight: 700;
font-size: clamp(.95rem, 2.5vw, 1.25rem);
background: var(--s);
color: var(--ink);
padding: 8px 20px;
border-radius: 30px;
border: 3px solid var(--ink);
box-shadow: var(--shadow-sm);
transition: transform .15s;
cursor: default;
}
.skill:nth-child(odd) { transform: rotate(-2deg); }
.skill:nth-child(even) { transform: rotate(2deg); }
.skill:hover { animation: wiggle .4s ease; }
@keyframes wiggle {
0%,100%{transform:rotate(0) scale(1.08)}
25%{transform:rotate(-5deg) scale(1.08)}
75%{transform:rotate(5deg) scale(1.08)}
}
/* ---------- Contact ---------- */
.contact { position: relative; text-align: center; }
.contact-blob {
position: absolute;
inset: 30px 10% auto;
height: 60%;
background: var(--blob-1);
border-radius: 50% 50% 48% 52% / 55% 55% 45% 45%;
filter: blur(40px);
opacity: .55;
z-index: -1;
}
.contact-title { line-height: 1.08; }
.contact-sub { color: var(--ink-soft); font-weight: 600; max-width: 46ch; margin: 14px auto 30px; font-size: 1.08rem; }
.contact-form {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
max-width: 620px;
margin: 0 auto;
background: var(--paper);
border: 3px solid var(--ink);
border-radius: var(--radius);
padding: 26px;
box-shadow: var(--shadow);
text-align: left;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .92rem; }
.field input, .field textarea {
font: inherit;
font-weight: 600;
padding: 11px 14px;
border: 3px solid var(--ink);
border-radius: 14px;
background: var(--cream);
color: var(--ink);
resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #aaa19c; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,93,143,.25); }
.field.has-error input, .field.has-error textarea { border-color: #d6336c; background: #fff0f4; }
.err { color: #d6336c; font-size: .8rem; font-weight: 700; min-height: 1em; }
.contact-form .btn { grid-column: 1 / -1; justify-self: center; }
.contact-or { margin-top: 22px; font-weight: 700; color: var(--ink-soft); }
/* ---------- Footer ---------- */
.footer { text-align: center; padding: 36px 22px 50px; color: var(--ink-soft); font-weight: 600; }
.footer strong { color: var(--ink); }
.footer-mini { font-size: .82rem; opacity: .8; margin-top: 4px; }
/* ---------- Toast ---------- */
.toast {
position: fixed;
left: 50%;
bottom: 26px;
transform: translate(-50%, 30px);
background: var(--ink);
color: #fff;
font-weight: 700;
padding: 12px 22px;
border-radius: 30px;
box-shadow: var(--shadow);
opacity: 0;
pointer-events: none;
transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .3s;
z-index: 200;
max-width: 90vw;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
/* ---------- Responsive ---------- */
@media (max-width: 880px) {
.topnav {
position: absolute;
top: 100%;
left: 0; right: 0;
flex-direction: column;
align-items: stretch;
gap: 4px;
background: var(--paper);
border: 3px solid var(--ink);
border-radius: 18px;
margin: 8px;
padding: 12px;
box-shadow: var(--shadow);
display: none;
}
.topnav.is-open { display: flex; }
.navlink { text-align: center; }
.menu-toggle { display: flex; }
.hero { grid-template-columns: 1fr; text-align: center; }
.hero-art { order: 1; min-height: 300px; }
.hero-copy { order: 2; }
.eyebrow, .hero-actions, .hero-stats { justify-content: center; }
.hero-sub { margin-left: auto; margin-right: auto; }
.cards { grid-template-columns: repeat(2, 1fr); }
.about { grid-template-columns: 1fr; }
.about-portrait { order: -1; }
}
@media (max-width: 560px) {
section { padding: 54px 18px; }
.cards { grid-template-columns: 1fr; }
.card { transform: rotate(0); }
.contact-form { grid-template-columns: 1fr; }
.hero-stats { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: .001ms !important;
animation-iteration-count: 1 !important;
transition-duration: .001ms !important;
scroll-behavior: auto !important;
}
}(function () {
"use strict";
/* ---------- Toast helper ---------- */
var toastEl = document.getElementById("toast");
var toastTimer;
function toast(msg) {
if (!toastEl) return;
toastEl.textContent = msg;
toastEl.classList.add("is-visible");
clearTimeout(toastTimer);
toastTimer = setTimeout(function () {
toastEl.classList.remove("is-visible");
}, 2600);
}
/* ---------- Year + footer ---------- */
var yearEl = document.getElementById("year");
if (yearEl) yearEl.textContent = new Date().getFullYear();
/* ---------- Mobile menu ---------- */
var menuToggle = document.getElementById("menuToggle");
var topnav = document.querySelector(".topnav");
if (menuToggle && topnav) {
topnav.id = topnav.id || "topnav";
menuToggle.setAttribute("aria-controls", topnav.id);
menuToggle.addEventListener("click", function () {
var open = topnav.classList.toggle("is-open");
menuToggle.setAttribute("aria-expanded", String(open));
});
topnav.addEventListener("click", function (e) {
if (e.target.closest(".navlink")) {
topnav.classList.remove("is-open");
menuToggle.setAttribute("aria-expanded", "false");
}
});
}
/* ---------- Waving avatar ---------- */
var avatar = document.getElementById("avatar");
var hand = document.getElementById("waveHand");
function wave() {
if (!hand) return;
hand.classList.remove("is-waving");
// force reflow so the animation can restart
void hand.offsetWidth;
hand.classList.add("is-waving");
}
if (avatar) {
avatar.addEventListener("mouseenter", wave);
avatar.addEventListener("click", function () {
wave();
toast("Hi there! 👋");
});
}
// wave once on load
window.addEventListener("load", function () {
setTimeout(wave, 600);
});
/* ---------- Animated stat counters ---------- */
var counters = Array.prototype.slice.call(document.querySelectorAll("[data-count]"));
var reduceMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
function animateCount(el) {
var target = parseInt(el.getAttribute("data-count"), 10) || 0;
if (reduceMotion) { el.textContent = target; return; }
var start = performance.now();
var dur = 1200;
function tick(now) {
var p = Math.min((now - start) / dur, 1);
var eased = 1 - Math.pow(1 - p, 3);
el.textContent = Math.round(eased * target);
if (p < 1) requestAnimationFrame(tick);
}
requestAnimationFrame(tick);
}
if (counters.length && "IntersectionObserver" in window) {
var countObs = new IntersectionObserver(function (entries) {
entries.forEach(function (entry) {
if (entry.isIntersecting) {
animateCount(entry.target);
countObs.unobserve(entry.target);
}
});
}, { threshold: 0.6 });
counters.forEach(function (c) { countObs.observe(c); });
} else {
counters.forEach(animateCount);
}
/* ---------- Project filter ---------- */
var chips = Array.prototype.slice.call(document.querySelectorAll(".chip"));
var cards = Array.prototype.slice.call(document.querySelectorAll(".card"));
var emptyEl = document.getElementById("empty");
var resetBtn = document.getElementById("resetFilter");
function applyFilter(filter) {
var shown = 0;
cards.forEach(function (card) {
var match = filter === "all" || card.getAttribute("data-type") === filter;
card.hidden = !match;
if (match) shown++;
});
if (emptyEl) emptyEl.hidden = shown !== 0;
chips.forEach(function (chip) {
var active = chip.getAttribute("data-filter") === filter;
chip.classList.toggle("is-active", active);
chip.setAttribute("aria-pressed", String(active));
});
var label = filter === "all" ? "all projects" : filter + " projects";
toast(shown + " " + (shown === 1 ? "project" : "projects") + " · " + label);
}
chips.forEach(function (chip) {
chip.addEventListener("click", function () {
applyFilter(chip.getAttribute("data-filter"));
});
});
if (resetBtn) {
resetBtn.addEventListener("click", function () { applyFilter("all"); });
}
/* ---------- Poke a card (bouncy jelly) ---------- */
cards.forEach(function (card) {
function poke() {
card.classList.remove("is-poked");
void card.offsetWidth;
card.classList.add("is-poked");
}
card.addEventListener("click", poke);
card.addEventListener("keydown", function (e) {
if (e.key === "Enter" || e.key === " ") {
e.preventDefault();
poke();
var title = card.querySelector(".card-title");
toast("Boing! " + (title ? title.textContent : "Nice project") + " 🎈");
}
});
});
/* ---------- Scroll-spy nav ---------- */
var navlinks = Array.prototype.slice.call(document.querySelectorAll("[data-spy]"));
var spyMap = {};
navlinks.forEach(function (l) { spyMap[l.getAttribute("data-spy")] = l; });
var spyTargets = Object.keys(spyMap)
.map(function (id) { return document.getElementById(id); })
.filter(Boolean);
if (spyTargets.length && "IntersectionObserver" in window) {
var spyObs = new IntersectionObserver(function (entries) {
entries.forEach(function (entry) {
if (entry.isIntersecting) {
navlinks.forEach(function (l) { l.classList.remove("is-current"); });
var link = spyMap[entry.target.id];
if (link) link.classList.add("is-current");
}
});
}, { rootMargin: "-45% 0px -50% 0px", threshold: 0 });
spyTargets.forEach(function (t) { spyObs.observe(t); });
}
/* ---------- Copy email ---------- */
var EMAIL = "[email protected]";
function copyEmail() {
function done() { toast("Email copied — talk soon! 💌"); }
function fail() { toast("Couldn't copy. Email: " + EMAIL); }
if (navigator.clipboard && navigator.clipboard.writeText) {
navigator.clipboard.writeText(EMAIL).then(done).catch(legacyCopy);
} else {
legacyCopy();
}
function legacyCopy() {
try {
var ta = document.createElement("textarea");
ta.value = EMAIL;
ta.setAttribute("readonly", "");
ta.style.position = "absolute";
ta.style.left = "-9999px";
document.body.appendChild(ta);
ta.select();
var ok = document.execCommand("copy");
document.body.removeChild(ta);
ok ? done() : fail();
} catch (e) {
fail();
}
}
}
var copyBtn = document.getElementById("copyEmail");
if (copyBtn) copyBtn.addEventListener("click", copyEmail);
/* ---------- Contact form validation ---------- */
var form = document.getElementById("contactForm");
function setError(field, msg) {
var wrap = field.closest(".field");
var err = wrap ? wrap.querySelector(".err") : null;
if (wrap) wrap.classList.toggle("has-error", !!msg);
if (err) err.textContent = msg || "";
field.setAttribute("aria-invalid", msg ? "true" : "false");
}
function validateField(field) {
var v = field.value.trim();
if (!v) { setError(field, "This one's required ✨"); return false; }
if (field.type === "email" && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v)) {
setError(field, "Hmm, that email looks off"); return false;
}
setError(field, "");
return true;
}
if (form) {
var fields = Array.prototype.slice.call(form.querySelectorAll("input, textarea"));
fields.forEach(function (f) {
f.addEventListener("blur", function () { validateField(f); });
f.addEventListener("input", function () {
if (f.closest(".field").classList.contains("has-error")) validateField(f);
});
});
form.addEventListener("submit", function (e) {
e.preventDefault();
var allOk = true;
var firstBad = null;
fields.forEach(function (f) {
var ok = validateField(f);
if (!ok && !firstBad) firstBad = f;
allOk = allOk && ok;
});
if (!allOk) {
if (firstBad) firstBad.focus();
toast("Almost! Just fix the highlighted bits.");
return;
}
var name = form.querySelector("#name").value.trim().split(" ")[0];
form.reset();
fields.forEach(function (f) { setError(f, ""); });
toast("Thanks " + name + "! Your message is on its way 🚀");
});
}
})();<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Maya Okafor — Product Designer who makes friendly things</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:ital,wght@0,400;0,600;0,700;1,600&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<a class="skip-link" href="#work">Skip to projects</a>
<!-- Floating doodles in the background -->
<div class="doodle-field" aria-hidden="true">
<svg class="doodle doodle--a" viewBox="0 0 80 80"><path d="M6 40c12-26 28 26 40 0s28-26 28 0" fill="none" stroke="currentColor" stroke-width="5" stroke-linecap="round"/></svg>
<svg class="doodle doodle--b" viewBox="0 0 60 60"><path d="M30 4l7 16 18 2-13 12 4 18-16-9-16 9 4-18L9 22l18-2z" fill="currentColor"/></svg>
<svg class="doodle doodle--c" viewBox="0 0 90 70"><path d="M45 6C20 6 6 22 6 38s18 26 39 26 39-12 39-26S70 6 45 6z" fill="currentColor"/></svg>
<svg class="doodle doodle--d" viewBox="0 0 70 70"><circle cx="35" cy="35" r="30" fill="none" stroke="currentColor" stroke-width="5" stroke-dasharray="2 12" stroke-linecap="round"/></svg>
</div>
<header class="topbar">
<a class="brand" href="#top">
<span class="brand-mark" aria-hidden="true">
<svg viewBox="0 0 44 44"><circle cx="22" cy="22" r="20" fill="var(--blob-2)"/><path d="M12 26c4 6 16 6 20 0" fill="none" stroke="var(--ink)" stroke-width="3" stroke-linecap="round"/><circle cx="16" cy="18" r="2.6" fill="var(--ink)"/><circle cx="28" cy="18" r="2.6" fill="var(--ink)"/></svg>
</span>
<span class="brand-name">Maya<span class="brand-dot">.</span></span>
</a>
<nav class="topnav" aria-label="Primary">
<a href="#work" class="navlink" data-spy="work">Work</a>
<a href="#about" class="navlink" data-spy="about">About</a>
<a href="#experience" class="navlink" data-spy="experience">Path</a>
<a href="#skills" class="navlink" data-spy="skills">Skills</a>
<a href="#contact" class="navlink navlink--cta" data-spy="contact">Say hi</a>
</nav>
<button class="menu-toggle" id="menuToggle" aria-expanded="false" aria-controls="topnav" aria-label="Toggle menu">
<span></span><span></span><span></span>
</button>
</header>
<main id="top">
<!-- HERO -->
<section class="hero" aria-labelledby="hero-title">
<div class="hero-art" aria-hidden="true">
<span class="blob blob--1"></span>
<span class="blob blob--2"></span>
<span class="blob blob--3"></span>
<span class="avatar" id="avatar">
<svg viewBox="0 0 200 200" class="avatar-svg">
<circle cx="100" cy="100" r="86" fill="var(--blob-1)"/>
<path d="M40 132c8-34 34-52 60-52s52 18 60 52" fill="var(--cream)"/>
<path d="M44 96c0-40 24-62 56-62s56 22 56 62c0 6-4 8-8 4-6-6-14-10-24-10-8 0-12 4-24 4s-16-4-24-4c-10 0-18 4-24 10-4 4-8 2-8-4z" fill="var(--ink)"/>
<circle cx="78" cy="104" r="6" fill="var(--ink)"/>
<circle cx="122" cy="104" r="6" fill="var(--ink)"/>
<path d="M84 128c8 8 24 8 32 0" fill="none" stroke="var(--ink)" stroke-width="5" stroke-linecap="round"/>
<circle cx="66" cy="120" r="7" fill="var(--accent-2)" opacity=".6"/>
<circle cx="134" cy="120" r="7" fill="var(--accent-2)" opacity=".6"/>
</svg>
<span class="wave-hand" id="waveHand" role="img" aria-label="waving hand">👋</span>
</span>
</div>
<div class="hero-copy">
<p class="eyebrow">Hello hello, I'm Maya <span class="sticker">open to work</span></p>
<h1 id="hero-title" class="hero-title">
I design <span class="wobble">friendly</span><br />products people<br />love to use.
</h1>
<p class="hero-sub">
Product designer & illustrator in Lisbon. I turn fuzzy ideas into
warm, playful interfaces — with the occasional doodle in the margins.
</p>
<div class="hero-actions">
<a href="#work" class="btn btn--solid">See my work</a>
<a href="#contact" class="btn btn--ghost">Let's chat</a>
</div>
<ul class="hero-stats" aria-label="Highlights">
<li><strong data-count="48">0</strong><span>products shipped</span></li>
<li><strong data-count="9">0</strong><span>happy years</span></li>
<li><strong data-count="12">0</strong><span>design awards</span></li>
</ul>
</div>
</section>
<div class="divider" aria-hidden="true">
<svg viewBox="0 0 1200 40" preserveAspectRatio="none"><path d="M0 20c50-22 100 22 150 0s100-22 150 0 100 22 150 0 100-22 150 0 100 22 150 0 100-22 150 0 100 22 150 0" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round"/></svg>
</div>
<!-- WORK -->
<section id="work" class="work" aria-labelledby="work-title">
<div class="section-head">
<h2 id="work-title" class="section-title">Selected play<span class="dot-accent">●</span></h2>
<p class="section-note">A few things I'm proud of. Tap a sticker to peek inside.</p>
</div>
<div class="filters" role="group" aria-label="Filter projects by type">
<button class="chip is-active" data-filter="all" aria-pressed="true">Everything</button>
<button class="chip" data-filter="mobile" aria-pressed="false">Mobile</button>
<button class="chip" data-filter="brand" aria-pressed="false">Brand</button>
<button class="chip" data-filter="web" aria-pressed="false">Web</button>
<button class="chip" data-filter="play" aria-pressed="false">Just for fun</button>
</div>
<div class="cards" id="cards">
<article class="card" data-type="mobile" tabindex="0" style="--tilt:-2deg;--card:var(--c1)">
<div class="card-art" aria-hidden="true">
<svg viewBox="0 0 120 90"><rect x="38" y="8" width="44" height="74" rx="10" fill="var(--ink)"/><rect x="42" y="14" width="36" height="62" rx="6" fill="#fff"/><circle cx="60" cy="32" r="9" fill="var(--card)"/><rect x="48" y="48" width="24" height="5" rx="2.5" fill="var(--card)"/><rect x="48" y="58" width="16" height="5" rx="2.5" fill="#dcd6ee"/></svg>
</div>
<span class="card-tag">Mobile</span>
<h3 class="card-title">Sprout</h3>
<p class="card-desc">A gentle plant-care app that reminds you to water without the guilt.</p>
<ul class="card-meta"><li>iOS · Android</li><li>2024</li></ul>
</article>
<article class="card" data-type="brand" tabindex="0" style="--tilt:1.5deg;--card:var(--c2)">
<div class="card-art" aria-hidden="true">
<svg viewBox="0 0 120 90"><circle cx="60" cy="45" r="30" fill="var(--card)"/><path d="M40 45c8-14 32-14 40 0-8 14-32 14-40 0z" fill="#fff"/><circle cx="60" cy="45" r="7" fill="var(--ink)"/></svg>
</div>
<span class="card-tag">Brand</span>
<h3 class="card-title">Lumo Coffee</h3>
<p class="card-desc">Identity & packaging for a roaster that names blends after constellations.</p>
<ul class="card-meta"><li>Branding</li><li>2023</li></ul>
</article>
<article class="card" data-type="web" tabindex="0" style="--tilt:-1deg;--card:var(--c3)">
<div class="card-art" aria-hidden="true">
<svg viewBox="0 0 120 90"><rect x="14" y="14" width="92" height="62" rx="8" fill="var(--ink)"/><rect x="18" y="26" width="84" height="46" rx="4" fill="#fff"/><rect x="24" y="32" width="30" height="6" rx="3" fill="var(--card)"/><rect x="24" y="44" width="50" height="5" rx="2.5" fill="#e7e0d2"/><rect x="24" y="54" width="40" height="5" rx="2.5" fill="#e7e0d2"/></svg>
</div>
<span class="card-tag">Web</span>
<h3 class="card-title">Mosaic Docs</h3>
<p class="card-desc">A collaborative docs tool where every cursor is a tiny dancing creature.</p>
<ul class="card-meta"><li>Web app</li><li>2023</li></ul>
</article>
<article class="card" data-type="play" tabindex="0" style="--tilt:2deg;--card:var(--c4)">
<div class="card-art" aria-hidden="true">
<svg viewBox="0 0 120 90"><path d="M30 60l30-44 30 44z" fill="var(--card)"/><circle cx="60" cy="62" r="10" fill="var(--ink)"/><path d="M20 70h80" stroke="var(--ink)" stroke-width="5" stroke-linecap="round"/></svg>
</div>
<span class="card-tag">Just for fun</span>
<h3 class="card-title">Doodle-a-Day</h3>
<p class="card-desc">A tiny PWA that prompts one silly drawing every morning. 600+ doodles in.</p>
<ul class="card-meta"><li>Side project</li><li>2022→</li></ul>
</article>
<article class="card" data-type="mobile" tabindex="0" style="--tilt:-1.5deg;--card:var(--c5)">
<div class="card-art" aria-hidden="true">
<svg viewBox="0 0 120 90"><rect x="20" y="20" width="80" height="50" rx="10" fill="var(--card)"/><path d="M30 46h60M30 56h40" stroke="#fff" stroke-width="5" stroke-linecap="round"/><circle cx="84" cy="56" r="6" fill="#fff"/></svg>
</div>
<span class="card-tag">Mobile</span>
<h3 class="card-title">Chatter</h3>
<p class="card-desc">A voice-note messenger for grandparents — big buttons, bigger hearts.</p>
<ul class="card-meta"><li>iOS</li><li>2022</li></ul>
</article>
<article class="card" data-type="brand" tabindex="0" style="--tilt:1deg;--card:var(--c6)">
<div class="card-art" aria-hidden="true">
<svg viewBox="0 0 120 90"><path d="M60 14l10 24 26 2-20 18 6 26-22-14-22 14 6-26-20-18 26-2z" fill="var(--card)"/></svg>
</div>
<span class="card-tag">Brand</span>
<h3 class="card-title">Northstar Schools</h3>
<p class="card-desc">A hopeful, hand-lettered identity for a network of free coding schools.</p>
<ul class="card-meta"><li>Branding</li><li>2021</li></ul>
</article>
</div>
<p class="empty" id="empty" hidden>
Nothing here yet — <button class="link-btn" id="resetFilter">show everything</button> instead?
</p>
</section>
<div class="divider divider--flip" aria-hidden="true">
<svg viewBox="0 0 1200 40" preserveAspectRatio="none"><path d="M0 20c50-22 100 22 150 0s100-22 150 0 100 22 150 0 100-22 150 0 100 22 150 0 100-22 150 0 100 22 150 0" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round"/></svg>
</div>
<!-- ABOUT -->
<section id="about" class="about" aria-labelledby="about-title">
<div class="about-card">
<h2 id="about-title" class="section-title">A little about me<span class="dot-accent">●</span></h2>
<p>
I'm Maya — a product designer who believes software should feel like a
friend, not a form. I started out drawing comic strips, fell in love with
the way a single curve can make a button feel <em>kind</em>, and never
really stopped.
</p>
<p>
These days I lead design at a tiny studio, mentor at a code school, and
fill far too many sketchbooks. When I'm not pushing pixels you'll find me
baking questionable bread or doodling strangers on the metro.
</p>
<div class="about-bubbles" aria-hidden="true">
<span class="bubble">tea, not coffee 🍵</span>
<span class="bubble">rounded corners 4 life</span>
<span class="bubble">cat person 🐈</span>
</div>
</div>
<div class="about-portrait" aria-hidden="true">
<span class="star star--1">✦</span>
<span class="star star--2">✦</span>
<svg viewBox="0 0 200 220" class="portrait-svg">
<rect x="20" y="40" width="160" height="160" rx="40" fill="var(--blob-3)"/>
<circle cx="100" cy="120" r="56" fill="var(--cream)"/>
<path d="M58 116c0-30 18-48 42-48s42 18 42 48c0 4-3 6-6 3-5-5-11-8-18-8-6 0-9 3-18 3s-12-3-18-3c-7 0-13 3-18 8-3 3-6 1-6-3z" fill="var(--ink)"/>
<circle cx="86" cy="124" r="4.5" fill="var(--ink)"/>
<circle cx="114" cy="124" r="4.5" fill="var(--ink)"/>
<path d="M90 142c6 5 14 5 20 0" fill="none" stroke="var(--ink)" stroke-width="4" stroke-linecap="round"/>
</svg>
</div>
</section>
<!-- EXPERIENCE -->
<section id="experience" class="experience" aria-labelledby="exp-title">
<div class="section-head">
<h2 id="exp-title" class="section-title">My squiggly path<span class="dot-accent">●</span></h2>
<p class="section-note">Not a straight line — and that's the fun part.</p>
</div>
<ol class="timeline">
<li class="t-item">
<span class="t-dot" aria-hidden="true"></span>
<div class="t-body">
<span class="t-year">2022 — now</span>
<h3>Lead Product Designer · Tiny&Co</h3>
<p>Heading design for a 6-person studio. Shipped Sprout & Mosaic, built our doodle design system.</p>
</div>
</li>
<li class="t-item">
<span class="t-dot" aria-hidden="true"></span>
<div class="t-body">
<span class="t-year">2019 — 2022</span>
<h3>Product Designer · Hearth</h3>
<p>Redesigned onboarding for a 2M-user wellness app; lifted activation by 28% with friendlier copy.</p>
</div>
</li>
<li class="t-item">
<span class="t-dot" aria-hidden="true"></span>
<div class="t-body">
<span class="t-year">2017 — 2019</span>
<h3>Visual Designer · Penpal Agency</h3>
<p>Brand & illustration for plucky startups. Learned to ship fast and keep the joy.</p>
</div>
</li>
<li class="t-item">
<span class="t-dot" aria-hidden="true"></span>
<div class="t-body">
<span class="t-year">2015 — 2017</span>
<h3>BA Illustration · Lisbon School of Art</h3>
<p>Comics, animation, and a stubborn belief that interfaces can have a sense of humour.</p>
</div>
</li>
</ol>
</section>
<!-- SKILLS -->
<section id="skills" class="skills" aria-labelledby="skills-title">
<div class="section-head">
<h2 id="skills-title" class="section-title">Things I'm good at<span class="dot-accent">●</span></h2>
<p class="section-note">Hover a sticker for a wiggle.</p>
</div>
<ul class="skill-cloud">
<li class="skill" style="--s:var(--c1)">Product Design</li>
<li class="skill" style="--s:var(--c2)">Illustration</li>
<li class="skill" style="--s:var(--c3)">Prototyping</li>
<li class="skill" style="--s:var(--c4)">Design Systems</li>
<li class="skill" style="--s:var(--c5)">Branding</li>
<li class="skill" style="--s:var(--c6)">UX Research</li>
<li class="skill" style="--s:var(--c2)">Figma</li>
<li class="skill" style="--s:var(--c3)">Motion</li>
<li class="skill" style="--s:var(--c1)">Hand Lettering</li>
<li class="skill" style="--s:var(--c4)">Workshops</li>
<li class="skill" style="--s:var(--c5)">Front-end</li>
<li class="skill" style="--s:var(--c6)">Storytelling</li>
</ul>
</section>
<div class="divider" aria-hidden="true">
<svg viewBox="0 0 1200 40" preserveAspectRatio="none"><path d="M0 20c50-22 100 22 150 0s100-22 150 0 100 22 150 0 100-22 150 0 100 22 150 0 100-22 150 0 100 22 150 0" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round"/></svg>
</div>
<!-- CONTACT -->
<section id="contact" class="contact" aria-labelledby="contact-title">
<span class="contact-blob" aria-hidden="true"></span>
<h2 id="contact-title" class="section-title contact-title">Let's make something<br />delightful together!</h2>
<p class="contact-sub">Got a fuzzy idea? A weird side project? A bread recipe? I'm all ears.</p>
<form class="contact-form" id="contactForm" novalidate>
<div class="field">
<label for="name">Your name</label>
<input id="name" name="name" type="text" autocomplete="name" placeholder="Sam Friendly" required />
<span class="err" data-for="name"></span>
</div>
<div class="field">
<label for="email">Your email</label>
<input id="email" name="email" type="email" autocomplete="email" placeholder="[email protected]" required />
<span class="err" data-for="email"></span>
</div>
<div class="field field--full">
<label for="msg">What's on your mind?</label>
<textarea id="msg" name="msg" rows="3" placeholder="Tell me about your idea…" required></textarea>
<span class="err" data-for="msg"></span>
</div>
<button type="submit" class="btn btn--solid btn--big">Send it my way ✏️</button>
</form>
<p class="contact-or">or just email me — <button class="link-btn" id="copyEmail" type="button">[email protected]</button></p>
</section>
</main>
<footer class="footer">
<p>Made with too much love & a tablet pen by <strong>Maya Okafor</strong> · <span id="year"></span></p>
<p class="footer-mini">Fictional portfolio · all projects imaginary · go draw something today</p>
</footer>
<div class="toast" id="toast" role="status" aria-live="polite"></div>
<script src="script.js"></script>
</body>
</html>Playful / Illustrated Portfolio
A complete single-page portfolio for fictional product designer Maya Okafor, re-skinned in a bright, illustrated, hand-drawn style. The hero pairs a waving SVG avatar floating over morphing blobs with a rounded Baloo headline, a wobbly hand-doodled underline and a peel-off “open to work” sticker. Doodle squiggles, stars and dashed circles drift in the background, and every section — selected work, about, the squiggly career path, skills and contact — is rebuilt from the same content with sticker badges, tilted cards and dashed doodle dividers. The palette is sunshine yellow, bubblegum pink and soft pastel blobs on warm cream; all imagery is pure CSS gradients and inline SVG.
Every interaction is real vanilla JS. The Selected Works grid filters by type — Everything, Mobile, Brand, Web, Just for fun — toggling aria-pressed, showing a friendly empty state with a reset link and announcing the count via a toast. Cards do a springy jelly “poke” on click or keyboard activation; the hero stats count up with an IntersectionObserver; the avatar waves on hover, click and page load; a scroll-spy underlines the current nav item; the email copies to the clipboard with an execCommand fallback; and the contact form validates inline with cheerful error messages before confirming with a personalised toast.
The layout collapses gracefully behind a hamburger menu: the hero stacks and centers, the card grid steps from three to two to one column (cards un-tilt on the smallest screens), the about section reorders the portrait above the prose, and the contact form folds to a single column down to ~360px. It keeps WCAG AA contrast, visible :focus-visible rings, a skip link, keyboard-operable cards and chips, and fully honors prefers-reduced-motion.
Illustrative portfolio — fictional person and projects.