UI Components Medium
Print-Ready Resume / CV
One-page resume/CV layout that prints cleanly on A4/Letter with @print styles — no headers, correct margins, and break-avoid rules.
Open in Lab
MCP
vanilla-js css
Targets: JS HTML
Code
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background: #f0f0f0;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
padding: 0 0 48px;
}
/* Screen bar */
.screen-bar {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 24px;
background: #fff;
border-bottom: 1px solid #e5e7eb;
margin-bottom: 28px;
position: sticky;
top: 0;
z-index: 10;
}
.screen-bar-title {
font-size: 14px;
font-weight: 700;
color: #374151;
}
.print-btn {
background: #6366f1;
color: #fff;
border: none;
border-radius: 8px;
padding: 8px 18px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
}
.print-btn:hover {
opacity: 0.85;
}
/* Resume */
.resume {
width: 100%;
max-width: 794px;
background: #fff;
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}
/* Header */
.res-header {
background: #1e1b4b;
color: #fff;
padding: 32px 40px 28px;
display: flex;
justify-content: space-between;
align-items: flex-end;
gap: 24px;
}
.res-name {
font-size: 28px;
font-weight: 900;
letter-spacing: -0.02em;
margin-bottom: 4px;
}
.res-title {
font-size: 13px;
font-weight: 400;
color: rgba(255, 255, 255, 0.65);
}
.res-contact {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 3px;
font-size: 11.5px;
color: rgba(255, 255, 255, 0.65);
text-align: right;
}
/* Body */
.res-body {
display: grid;
grid-template-columns: 1fr 240px;
gap: 0;
}
.res-main {
padding: 32px 32px 32px 40px;
border-right: 1px solid #f3f4f6;
}
.res-aside {
padding: 32px 32px 32px 24px;
background: #fafafa;
}
/* Sections */
.res-section {
margin-bottom: 24px;
}
.res-section:last-child {
margin-bottom: 0;
}
.res-section-title {
font-size: 10px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.1em;
color: #6366f1;
margin-bottom: 12px;
padding-bottom: 5px;
border-bottom: 1.5px solid #e0e7ff;
}
.res-summary {
font-size: 13px;
color: #374151;
line-height: 1.7;
}
/* Jobs */
.res-job {
margin-bottom: 18px;
}
.res-job:last-child {
margin-bottom: 0;
}
.res-job-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 12px;
margin-bottom: 8px;
}
.res-job-title {
font-size: 14px;
font-weight: 700;
color: #111827;
}
.res-job-company {
font-size: 12px;
color: #6b7280;
margin-top: 1px;
}
.res-job-dates {
font-size: 11px;
color: #9ca3af;
white-space: nowrap;
flex-shrink: 0;
margin-top: 2px;
}
.res-bullets {
padding-left: 16px;
}
.res-bullets li {
font-size: 12.5px;
color: #374151;
line-height: 1.6;
margin-bottom: 4px;
}
/* Education */
.res-edu-degree {
font-size: 13px;
font-weight: 600;
color: #111827;
margin-bottom: 3px;
}
.res-edu-school {
font-size: 12px;
color: #6b7280;
}
/* Skills */
.res-skill-group {
margin-bottom: 12px;
}
.res-skill-label {
font-size: 10px;
font-weight: 700;
color: #9ca3af;
text-transform: uppercase;
letter-spacing: 0.06em;
margin-bottom: 6px;
}
.res-skills {
display: flex;
flex-wrap: wrap;
gap: 5px;
}
.res-skill {
font-size: 11px;
background: #e0e7ff;
color: #4338ca;
padding: 2px 8px;
border-radius: 4px;
font-weight: 600;
}
/* Certs */
.res-cert {
margin-bottom: 10px;
}
.res-cert-name {
font-size: 12px;
font-weight: 600;
color: #111827;
}
.res-cert-org {
font-size: 11px;
color: #9ca3af;
}
/* Languages */
.res-lang {
display: flex;
justify-content: space-between;
font-size: 12px;
padding: 5px 0;
border-bottom: 1px solid #f3f4f6;
color: #374151;
}
.res-lang:last-child {
border-bottom: none;
}
.res-lang-level {
color: #9ca3af;
}
@media (max-width: 680px) {
.res-header {
flex-direction: column;
align-items: flex-start;
padding: 24px 20px 20px;
}
.res-contact {
align-items: flex-start;
text-align: left;
}
.res-body {
grid-template-columns: 1fr;
}
.res-main {
padding: 24px 20px;
border-right: none;
border-bottom: 1px solid #f3f4f6;
}
.res-aside {
padding: 24px 20px;
}
.res-job-header {
flex-direction: column;
gap: 4px;
}
.res-name {
font-size: 22px;
}
.screen-bar {
position: static;
flex-wrap: wrap;
gap: 8px;
padding: 12px 16px;
}
}
/* Print */
@media print {
.screen-bar {
display: none !important;
}
body {
background: #fff;
padding: 0;
}
.resume {
box-shadow: none;
max-width: 100%;
}
@page {
margin: 0;
size: A4;
}
}(function () {
const printBtn = document.querySelector(".print-btn");
if (!printBtn) return;
const dlBtn = document.createElement("button");
dlBtn.textContent = "\u2B07 Download HTML";
dlBtn.className = "print-btn";
dlBtn.style.cssText = "background:#fff;color:#4f46e5;border:1.5px solid #c7d2fe;margin-left:8px;";
printBtn.after(dlBtn);
dlBtn.addEventListener("click", function () {
const styles = Array.from(document.querySelectorAll("style"))
.map(function (s) {
return s.textContent;
})
.join("\n");
const bodyClone = document.body.cloneNode(true);
bodyClone.querySelector(".screen-bar")?.remove();
const html = [
"<!DOCTYPE html>",
'<html lang="en">',
"<head>",
'<meta charset="UTF-8">',
"<title>Resume - Alex Rivera</title>",
"<style>",
styles,
".screen-bar{display:none!important;}",
"</style>",
"</head>",
"<body>",
bodyClone.innerHTML.trim(),
"</body>",
"</html>",
].join("\n");
const blob = new Blob([html], { type: "text/html" });
const a = document.createElement("a");
a.href = URL.createObjectURL(blob);
a.download = "resume-alex-rivera.html";
a.click();
URL.revokeObjectURL(a.href);
});
document.addEventListener("keydown", function (e) {
if ((e.metaKey || e.ctrlKey) && e.key === "p") {
// browser default print
}
});
})();<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Resume — Alex Rivera</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="screen-bar">
<span class="screen-bar-title">Résumé Preview</span>
<button class="print-btn" onclick="window.print()">🖨 Print / Save PDF</button>
</div>
<div class="resume">
<header class="res-header">
<div class="res-name-block">
<h1 class="res-name">Alex Rivera</h1>
<p class="res-title">Senior Product Designer & Frontend Developer</p>
</div>
<div class="res-contact">
<span>alex.rivera@email.com</span>
<span>+1 (415) 555-0142</span>
<span>San Francisco, CA</span>
<span>linkedin.com/in/alexrivera</span>
<span>github.com/alexrivera</span>
</div>
</header>
<div class="res-body">
<main class="res-main">
<section class="res-section">
<h2 class="res-section-title">Summary</h2>
<p class="res-summary">Product designer and frontend developer with 8+ years building user-centered digital products. Specializing in design systems, accessible UI, and bridging the gap between design and engineering at scale.</p>
</section>
<section class="res-section">
<h2 class="res-section-title">Experience</h2>
<div class="res-job">
<div class="res-job-header">
<div>
<div class="res-job-title">Senior Product Designer</div>
<div class="res-job-company">Stripe · San Francisco, CA</div>
</div>
<div class="res-job-dates">Jan 2022 — Present</div>
</div>
<ul class="res-bullets">
<li>Led design of the new Dashboard onboarding flow, reducing time-to-first-charge by 34%.</li>
<li>Built and maintained Stripe's internal React component library (200+ components, 40 contributors).</li>
<li>Established design-to-code handoff process reducing implementation inconsistencies by 60%.</li>
</ul>
</div>
<div class="res-job">
<div class="res-job-header">
<div>
<div class="res-job-title">Product Designer</div>
<div class="res-job-company">Vercel · Remote</div>
</div>
<div class="res-job-dates">Mar 2019 — Dec 2021</div>
</div>
<ul class="res-bullets">
<li>Redesigned the deployment pipeline UI, increasing daily active usage by 28%.</li>
<li>Contributed to Geist Design System used across all Vercel products.</li>
<li>Shipped the Analytics dashboard with React and D3.js.</li>
</ul>
</div>
<div class="res-job">
<div class="res-job-header">
<div>
<div class="res-job-title">UI/UX Designer</div>
<div class="res-job-company">Figma (contract) · San Francisco, CA</div>
</div>
<div class="res-job-dates">Jun 2017 — Feb 2019</div>
</div>
<ul class="res-bullets">
<li>Designed prototype features for Figma's collaboration tools (comments, multiplayer cursors).</li>
<li>Created accessibility guidelines adopted across the product team.</li>
</ul>
</div>
</section>
<section class="res-section">
<h2 class="res-section-title">Education</h2>
<div class="res-edu">
<div class="res-edu-degree">B.S. Computer Science, Minor in Studio Art</div>
<div class="res-edu-school">University of California, Berkeley · 2017</div>
</div>
</section>
</main>
<aside class="res-aside">
<section class="res-section">
<h2 class="res-section-title">Skills</h2>
<div class="res-skill-group">
<div class="res-skill-label">Design</div>
<div class="res-skills">
<span class="res-skill">Figma</span>
<span class="res-skill">Design Systems</span>
<span class="res-skill">User Research</span>
<span class="res-skill">Prototyping</span>
<span class="res-skill">Accessibility</span>
</div>
</div>
<div class="res-skill-group">
<div class="res-skill-label">Engineering</div>
<div class="res-skills">
<span class="res-skill">React</span>
<span class="res-skill">TypeScript</span>
<span class="res-skill">Next.js</span>
<span class="res-skill">CSS / Tailwind</span>
<span class="res-skill">Storybook</span>
</div>
</div>
</section>
<section class="res-section">
<h2 class="res-section-title">Certifications</h2>
<div class="res-cert">
<div class="res-cert-name">CPACC (Accessibility)</div>
<div class="res-cert-org">IAAP · 2023</div>
</div>
<div class="res-cert">
<div class="res-cert-name">AWS Solutions Architect</div>
<div class="res-cert-org">Amazon · 2022</div>
</div>
</section>
<section class="res-section">
<h2 class="res-section-title">Languages</h2>
<div class="res-lang"><span>English</span><span class="res-lang-level">Native</span></div>
<div class="res-lang"><span>Spanish</span><span class="res-lang-level">Fluent</span></div>
<div class="res-lang"><span>Portuguese</span><span class="res-lang-level">Conversational</span></div>
</section>
</aside>
</div>
</div>
<script src="./script.js"></script>
</body>
</html>Single-page résumé/CV with sidebar, experience section, skills, and education. Uses @media print for correct A4 margins, break-inside: avoid on sections, and a print button that triggers the browser dialog.