index.html
Copy Code
<!--
SYNTAXIS_CHALLENGE
slug: profile-card-studio
title: Profile Card Studio
difficulty: BEGINNER
technologies: HTML, CSS, JavaScript
suggested_tier: FREE
description: Build a premium developer/social profile card with follower stats, interactive follow state, project metrics, and bespoke badge styling.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>Profile Card Studio — Syntaxis Challenge</title>
<link href="css/styles.css" rel="stylesheet"/></head>
<body>
<main class="container">
<article aria-label="Developer Profile Card" class="profile-card">
<!-- Decorative geometric banner -->
<header class="profile-header">
<svg fill="none" preserveaspectratio="none" viewbox="0 0 400 140" xmlns="http://www.w3.org/2000/svg">
<circle cx="40" cy="20" fill="#ffffff" r="80"></circle>
<circle cx="360" cy="110" fill="#ffffff" r="100"></circle>
<path d="M-20 120 Q 150 40 420 110" fill="none" stroke="#ffffff" stroke-opacity="0.4" stroke-width="4"></path>
<path d="M-40 60 Q 200 130 440 30" fill="none" stroke="#ffffff" stroke-dasharray="6 6" stroke-opacity="0.6" stroke-width="2"></path>
</svg>
<div aria-label="Current status: Open to work" class="status-badge">
<span class="status-dot"></span>
<span>Open to work</span>
</div>
</header>
<div class="profile-body">
<!-- Avatar Section -->
<div class="avatar-wrapper">
<svg aria-label="Elena Rostova avatar" class="avatar-img" fill="none" role="img" viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<rect fill="#1e293b" height="100" width="100"></rect>
<!-- Stylized Vector Portrait -->
<circle cx="50" cy="40" fill="#fed7aa" r="22"></circle>
<path d="M28 36 C28 20, 72 20, 72 36 C72 40, 68 46, 68 46 C68 46, 32 46, 32 46 C32 46, 28 40, 28 36 Z" fill="#9a3412"></path>
<path d="M34 26 C42 12, 60 12, 68 26 Z" fill="#7c2d12"></path>
<circle cx="43" cy="38" fill="#1c1917" r="2.5"></circle>
<circle cx="57" cy="38" fill="#1c1917" r="2.5"></circle>
<path d="M46 47 Q50 51 54 47" fill="none" stroke="#1c1917" stroke-linecap="round" stroke-width="1.8"></path>
<path d="M20 92 C20 70, 32 64, 50 64 C68 64, 80 70, 80 92 Z" fill="#3b82f6"></path>
<path d="M42 64 L50 78 L58 64 Z" fill="#fed7aa"></path>
</svg>
<span aria-label="Verified Creator" class="verified-icon" title="Verified Creator">
<svg fill="none" height="22" viewbox="0 0 24 24" width="22" xmlns="http://www.w3.org/2000/svg">
<circle cx="12" cy="12" fill="#58a6ff" r="10"></circle>
<path d="M8 12.5L10.5 15L16 9" stroke="#0d1117" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"></path>
</svg>
</span>
</div>
<!-- Meta -->
<div class="profile-meta">
<div class="name-row">
<h1 class="profile-name">Elena Rostova</h1>
<span class="role-badge">Staff Frontend</span>
</div>
<div class="handle-location">
<span>@erostova</span>
<span>•</span>
<span class="location-tag">
<svg fill="none" height="14" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="14">
<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path>
<circle cx="12" cy="10" r="3"></circle>
</svg>
Stockholm, SE
</span>
</div>
</div>
<!-- Bio -->
<p class="profile-bio">
Building design systems and micro-interactions. Obsessed with accessibility, buttery 60fps animations, and zero-dependency web architecture.
</p>
<!-- Tech tags -->
<div aria-label="Skills and tags" class="skills-list">
<span class="skill-chip">Design Systems</span>
<span class="skill-chip">Web Components</span>
<span class="skill-chip">WebGL</span>
<span class="skill-chip">TypeScript</span>
<span class="skill-chip">A11y</span>
</div>
<!-- Stats -->
<div class="stats-row">
<div class="stat-item">
<span class="stat-value" id="followersCount">14.8k</span>
<span class="stat-label">Followers</span>
</div>
<div class="stat-item">
<span class="stat-value" id="likesCount">48.2k</span>
<span class="stat-label">Likes</span>
</div>
<div class="stat-item">
<span class="stat-value">62</span>
<span class="stat-label">Projects</span>
</div>
</div>
<!-- Actions -->
<div class="action-group">
<button aria-pressed="false" class="btn-follow" id="followBtn">
<svg fill="none" height="18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" viewbox="0 0 24 24" width="18">
<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
<circle cx="8.5" cy="7" r="4"></circle>
<line x1="20" x2="20" y1="8" y2="14"></line>
<line x1="23" x2="17" y1="11" y2="11"></line>
</svg>
<span id="followText">Follow</span>
</button>
<button aria-label="Like profile" aria-pressed="false" class="btn-like" id="likeBtn">
<svg fill="none" height="20" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="20">
<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path>
</svg>
</button>
</div>
<!-- Social Icons -->
<footer aria-label="Social Profiles" class="social-links">
<!-- GitHub -->
<a aria-label="GitHub" class="social-icon-btn" href="#github">
<svg fill="none" height="18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="18">
<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>
</svg>
</a>
<!-- Twitter/X -->
<a aria-label="Twitter" class="social-icon-btn" href="#twitter">
<svg fill="currentColor" height="17" viewbox="0 0 24 24" width="17">
<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"></path>
</svg>
</a>
<!-- LinkedIn -->
<a aria-label="LinkedIn" class="social-icon-btn" href="#linkedin">
<svg fill="none" height="18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="18">
<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path>
<rect height="12" width="4" x="2" y="9"></rect>
<circle cx="4" cy="4" r="2"></circle>
</svg>
</a>
<!-- Portfolio / Dribbble -->
<a aria-label="Personal Website" class="social-icon-btn" href="#portfolio">
<svg fill="none" height="18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewbox="0 0 24 24" width="18">
<circle cx="12" cy="12" r="10"></circle>
<line x1="2" x2="22" y1="12" y2="12"></line>
<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>
</svg>
</a>
</footer>
</div>
</article>
</main>
<script src="js/script.js"></script></body>
</html>
css/styles.css
Copy Code
/* Syntaxis starter styles for: Profile Card Studio
Recreate the supplied reference design. The completed Stitch CSS is intentionally not included.
*/
:root {
--bg-gradient: radial-gradient(circle at 10% 20%, #0d1117 0%, #161b22 90%);
--card-bg: rgba(22, 27, 34, 0.85);
--card-border: rgba(240, 246, 252, 0.1);
--card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
--accent: #58a6ff;
--accent-glow: rgba(88, 166, 255, 0.25);
--text-main: #f0f6fc;
--text-muted: #8b949e;
--btn-active-bg: #238636;
--btn-active-hover: #2ea043;
--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* {
box-sizing: border-box;
}
html, body {
margin: 0;
min-height: 100%;
}
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
/* TODO:
1. Build the desktop reference.
2. Add responsive/mobile states.
3. Add hover, focus, error, success, open/closed, selected, or active states required by the brief.
*/
js/script.js
Copy Code
// Syntaxis challenge starter: profile-card-studio
// Build a premium developer/social profile card with follower stats, interactive follow state, project metrics, and bespoke badge styling.
document.addEventListener('DOMContentLoaded', () => {
console.info('Starter ready: profile-card-studio');
// TODO: Wire the required user interactions and event handlers.
});