index.html
Copy Code
<!--
SYNTAXIS_CHALLENGE
slug: streaming-dashboard
title: Streaming Entertainment Dashboard
difficulty: advanced
technologies: HTML, CSS, JavaScript
suggested_tier: PRO
description: Build a dark cinematic streaming dashboard with hero trailer showcase, genre filters, original vector movie posters, watchlist toggling, and an interactive content details modal.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>CINEVA — Dark Cinematic Streaming Dashboard</title>
<link href="css/styles.css" rel="stylesheet"/></head>
<body>
<!-- Left Sidebar Navigation -->
<aside class="sidebar">
<a class="brand" href="#">
<div class="brand-icon">
<svg fill="#FFFFFF" height="20" viewbox="0 0 24 24" width="20">
<polygon points="5 3 19 12 5 21 5 3"></polygon>
</svg>
</div>
<span class="brand-title">CINEVA</span>
</a>
<div class="nav-group-title">Browse Content</div>
<ul class="nav-list">
<li class="nav-item"><a class="active" href="#">
<svg fill="none" height="18" stroke="currentColor" stroke-width="2" viewbox="0 0 24 24" width="18"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path></svg>
Home
</a></li>
<li class="nav-item"><a href="#">
<svg fill="none" height="18" stroke="currentColor" stroke-width="2" viewbox="0 0 24 24" width="18"><polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline></svg>
Trending
</a></li>
<li class="nav-item"><a href="#">
<svg fill="none" height="18" stroke="currentColor" stroke-width="2" viewbox="0 0 24 24" width="18"><rect height="15" rx="2" ry="2" width="20" x="2" y="7"></rect><polyline points="17 2 12 7 7 2"></polyline></svg>
Original Series
</a></li>
<li class="nav-item"><a href="#">
<svg fill="none" height="18" stroke="currentColor" stroke-width="2" viewbox="0 0 24 24" width="18"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path></svg>
Watchlist
<span class="nav-badge" id="sidebar-watchlist-count">2</span>
</a></li>
</ul>
<div class="nav-group-title">Collections</div>
<ul class="nav-list">
<li class="nav-item"><a href="#">
<svg fill="none" height="18" stroke="currentColor" stroke-width="2" viewbox="0 0 24 24" width="18"><circle cx="12" cy="12" r="10"></circle><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"></path><path d="M2 12h20"></path></svg>
Sci-Fi Vistas
</a></li>
<li class="nav-item"><a href="#">
<svg fill="none" height="18" stroke="currentColor" stroke-width="2" viewbox="0 0 24 24" width="18"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>
Neon Noir
</a></li>
</ul>
<!-- User Profile Strip -->
<div class="user-profile-pill">
<div class="profile-avatar">EA</div>
<div>
<div>Elena Archer</div>
<div>4K Ultra Pass</div>
</div>
</div>
</aside>
<!-- Main View Area -->
<main class="content-area">
<!-- Topbar -->
<header class="topbar">
<div class="search-box">
<svg fill="none" height="18" stroke="currentColor" stroke-width="2" viewbox="0 0 24 24" width="18">
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" x2="16.65" y1="21" y2="16.65"></line>
</svg>
<input id="movie-search" placeholder="Search original titles, creators, genres..." type="text"/>
</div>
<div class="topbar-actions">
<button aria-label="Audio Settings" class="icon-button" title="Audio Settings">
<svg fill="none" height="18" stroke="currentColor" stroke-width="2" viewbox="0 0 24 24" width="18"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path></svg>
</button>
<button aria-label="Notifications" class="icon-button" title="Notifications">
<div class="dot-notify"></div>
<svg fill="none" height="18" stroke="currentColor" stroke-width="2" viewbox="0 0 24 24" width="18"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>
</button>
</div>
</header>
<!-- Large Featured Hero -->
<section class="hero-banner">
<!-- Original Vector Cinematic Backdrop -->
<svg class="hero-bg-svg" fill="none" preserveaspectratio="xMidYMid slice" viewbox="0 0 1200 500" xmlns="http://www.w3.org/2000/svg">
<rect fill="#0C101A" height="500" width="1200"></rect>
<!-- Nebular Glows -->
<circle cx="950" cy="200" fill="#2F0F40" opacity="0.6" r="280"></circle>
<circle cx="1100" cy="120" fill="#E50914" opacity="0.25" r="180"></circle>
<circle cx="300" cy="400" fill="#0E3D48" opacity="0.4" r="220"></circle>
<!-- Planetary Horizon Curve -->
<ellipse cx="600" cy="650" fill="#05080E" rx="900" ry="280"></ellipse>
<ellipse cx="600" cy="650" opacity="0.5" rx="900" ry="280" stroke="#486581" stroke-width="2"></ellipse>
<!-- Ring system -->
<ellipse cx="850" cy="180" opacity="0.4" rx="140" ry="25" stroke="#9FB3C8" stroke-width="3" transform="rotate(-25 850 180)"></ellipse>
<circle cx="850" cy="180" fill="#1B2A4A" r="45"></circle>
<!-- Warp light streaks -->
<line opacity="0.3" stroke="#627D98" stroke-dasharray="60 30" stroke-width="1.5" x1="100" x2="450" y1="80" y2="120"></line>
<line opacity="0.2" stroke="#E50914" stroke-dasharray="40 20" stroke-width="1" x1="200" x2="700" y1="160" y2="210"></line>
<!-- Deep space stars -->
<circle cx="150" cy="80" fill="#FFFFFF" r="1.5"></circle>
<circle cx="280" cy="50" fill="#FFFFFF" opacity="0.8" r="2"></circle>
<circle cx="420" cy="130" fill="#FFFFFF" r="1"></circle>
<circle cx="740" cy="70" fill="#F5A623" r="2"></circle>
<circle cx="1020" cy="90" fill="#FFFFFF" r="1.5"></circle>
</svg>
<div class="hero-overlay"></div>
<div class="hero-content">
<div class="hero-tags">
<span class="tag-badge">Exclusive Premiere</span>
<span class="meta-item">
<svg fill="#F5A623" height="14" viewbox="0 0 24 24" width="14"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon></svg>
9.6 Match
</span>
<span class="meta-item">2h 38m</span>
<span class="meta-item">4K Dolby Atmos</span>
</div>
<h1 class="hero-title">CHRONO VECTOR</h1>
<p class="hero-desc">
When quantum orbital physicist Maya Thorne intercepts a signal rebounding from a dead galaxy, she triggers an irreversible collapse across parallel temporal corridors.
</p>
<div class="hero-actions">
<button class="btn-play">
<svg fill="currentColor" height="20" viewbox="0 0 24 24" width="20">
<polygon points="5 3 19 12 5 21 5 3"></polygon>
</svg>
Watch Trailer
</button>
<button class="btn-more-info">
<svg fill="none" height="18" stroke="currentColor" stroke-width="2" viewbox="0 0 24 24" width="18">
<circle cx="12" cy="12" r="10"></circle>
<line x1="12" x2="12" y1="16" y2="12"></line>
<line x1="12" x2="12.01" y1="8" y2="8"></line>
</svg>
More Details
</button>
</div>
</div>
</section>
<!-- Genre Filter Pills -->
<section class="filter-section">
<div class="genre-scroll">
<button class="genre-pill active">All Titles</button>
<button class="genre-pill">Sci-Fi & Cyber</button>
<button class="genre-pill">Psychological Thriller</button>
<button class="genre-pill">Neo-Noir & Crime</button>
<button class="genre-pill">Cosmic Fantasy</button>
</div>
</section>
<!-- Shelf 1: Trending Now -->
<section class="shelf-section">
<div class="shelf-header">
<h2 class="shelf-title">Trending Now</h2>
<a class="shelf-see-all" href="#">Explore All (28)</a>
</div>
<div class="cards-row" id="shelf-trending">
<!-- Movie 1 -->
<article class="movie-card" data-genre="sci-fi" data-id="chrono-vector">
<div class="poster-art">
<button aria-label="Toggle Watchlist" class="card-fav-btn active">
<svg fill="currentColor" height="16" viewbox="0 0 24 24" width="16"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path></svg>
</button>
<svg fill="none" viewbox="0 0 300 220" xmlns="http://www.w3.org/2000/svg">
<rect fill="#0C1322" height="220" width="300"></rect>
<circle cx="150" cy="110" r="70" stroke="#E50914" stroke-dasharray="8 6" stroke-width="2"></circle>
<ellipse cx="150" cy="110" rx="90" ry="30" stroke="#507393" stroke-width="2" transform="rotate(-30 150 110)"></ellipse>
<circle cx="150" cy="110" fill="#1F2E4D" r="35"></circle>
<polygon fill="#FFFFFF" points="142,95 165,110 142,125"></polygon>
</svg>
<div class="progress-bar-container"><div class="progress-fill"></div></div>
</div>
<div class="card-details">
<div class="card-meta-row">
<div class="card-rating">★ 9.4</div>
<span class="card-quality">4K HDR</span>
</div>
<h3 class="card-title">Chrono Vector</h3>
<div class="card-genre-sub">Sci-Fi • 2h 38m • Resuming</div>
</div>
</article>
<!-- Movie 2 -->
<article class="movie-card" data-genre="noir" data-id="silicon-shadows">
<div class="poster-art">
<button aria-label="Toggle Watchlist" class="card-fav-btn active">
<svg fill="currentColor" height="16" viewbox="0 0 24 24" width="16"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path></svg>
</button>
<svg fill="none" viewbox="0 0 300 220" xmlns="http://www.w3.org/2000/svg">
<rect fill="#130E1C" height="220" width="300"></rect>
<path d="M0 220L110 100L210 160L300 70V220H0Z" fill="#251638"></path>
<line opacity="0.7" stroke="#FF007A" stroke-width="3" x1="80" x2="80" y1="20" y2="200"></line>
<line opacity="0.6" stroke="#00F0FF" stroke-width="2" x1="220" x2="220" y1="50" y2="210"></line>
<circle cx="150" cy="70" fill="#FEE140" opacity="0.8" r="28"></circle>
</svg>
</div>
<div class="card-details">
<div class="card-meta-row">
<div class="card-rating">★ 8.9</div>
<span class="card-quality">HD</span>
</div>
<h3 class="card-title">Silicon Shadows</h3>
<div class="card-genre-sub">Neon Noir • 8 Episodes</div>
</div>
</article>
<!-- Movie 3 -->
<article class="movie-card" data-genre="thriller" data-id="the-sound-vault">
<div class="poster-art">
<button aria-label="Toggle Watchlist" class="card-fav-btn">
<svg fill="none" height="16" stroke="currentColor" stroke-width="2" viewbox="0 0 24 24" width="16"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path></svg>
</button>
<svg fill="none" viewbox="0 0 300 220" xmlns="http://www.w3.org/2000/svg">
<rect fill="#151D18" height="220" width="300"></rect>
<path d="M30 110C80 40 120 180 170 80C220 190 260 50 300 110" fill="none" stroke="#38EF7D" stroke-width="3"></path>
<rect height="80" rx="8" stroke="#11998E" stroke-width="2" width="80" x="110" y="70"></rect>
</svg>
<div class="progress-bar-container"><div class="progress-fill"></div></div>
</div>
<div class="card-details">
<div class="card-meta-row">
<div class="card-rating">★ 9.1</div>
<span class="card-quality">4K</span>
</div>
<h3 class="card-title">The Sound Vault</h3>
<div class="card-genre-sub">Psychological • 1h 52m</div>
</div>
</article>
<!-- Movie 4 -->
<article class="movie-card" data-genre="fantasy" data-id="astral-colossus">
<div class="poster-art">
<button aria-label="Toggle Watchlist" class="card-fav-btn">
<svg fill="none" height="16" stroke="currentColor" stroke-width="2" viewbox="0 0 24 24" width="16"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path></svg>
</button>
<svg fill="none" viewbox="0 0 300 220" xmlns="http://www.w3.org/2000/svg">
<rect fill="#1E1610" height="220" width="300"></rect>
<polygon fill="#E65C00" opacity="0.8" points="150,30 220,180 80,180"></polygon>
<circle cx="150" cy="110" fill="#F9D423" r="24"></circle>
</svg>
</div>
<div class="card-details">
<div class="card-meta-row">
<div class="card-rating">★ 9.3</div>
<span class="card-quality">IMAX</span>
</div>
<h3 class="card-title">Astral Colossus</h3>
<div class="card-genre-sub">Cosmic Fantasy • 2h 14m</div>
</div>
</article>
</div>
</section>
<!-- Shelf 2: Original Series -->
<section class="shelf-section">
<div class="shelf-header">
<h2 class="shelf-title">Popular Series & Miniseries</h2>
<a class="shelf-see-all" href="#">All Series (14)</a>
</div>
<div class="cards-row" id="shelf-series">
<!-- Series 1 -->
<article class="movie-card" data-genre="sci-fi" data-id="orbital-decay">
<div class="poster-art">
<button aria-label="Toggle Watchlist" class="card-fav-btn">
<svg fill="none" height="16" stroke="currentColor" stroke-width="2" viewbox="0 0 24 24" width="16"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path></svg>
</button>
<svg fill="none" viewbox="0 0 300 220" xmlns="http://www.w3.org/2000/svg">
<rect fill="#0A1826" height="220" width="300"></rect>
<circle cx="150" cy="180" fill="#173552" r="110"></circle>
<rect fill="#D3E0EA" height="60" rx="3" width="30" x="135" y="40"></rect>
<line stroke="#00C9FF" stroke-width="4" x1="90" x2="210" y1="70" y2="70"></line>
</svg>
</div>
<div class="card-details">
<div class="card-meta-row">
<div class="card-rating">★ 9.5</div>
<span class="card-quality">Season 2</span>
</div>
<h3 class="card-title">Orbital Decay</h3>
<div class="card-genre-sub">Sci-Fi • 10 Episodes</div>
</div>
</article>
<!-- Series 2 -->
<article class="movie-card" data-genre="noir" data-id="midnight-wire">
<div class="poster-art">
<button aria-label="Toggle Watchlist" class="card-fav-btn">
<svg fill="none" height="16" stroke="currentColor" stroke-width="2" viewbox="0 0 24 24" width="16"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path></svg>
</button>
<svg fill="none" viewbox="0 0 300 220" xmlns="http://www.w3.org/2000/svg">
<rect fill="#141419" height="220" width="300"></rect>
<circle cx="150" cy="110" fill="#2E1114" r="50"></circle>
<line stroke="#E50914" stroke-width="3" x1="0" x2="300" y1="160" y2="60"></line>
<line stroke="#E50914" stroke-dasharray="10 5" stroke-width="1.5" x1="0" x2="300" y1="60" y2="160"></line>
</svg>
</div>
<div class="card-details">
<div class="card-meta-row">
<div class="card-rating">★ 8.8</div>
<span class="card-quality">Miniseries</span>
</div>
<h3 class="card-title">Midnight Wire</h3>
<div class="card-genre-sub">Crime Thriller • 6 Episodes</div>
</div>
</article>
<!-- Series 3 -->
<article class="movie-card" data-genre="thriller" data-id="echo-chambers">
<div class="poster-art">
<button aria-label="Toggle Watchlist" class="card-fav-btn">
<svg fill="none" height="16" stroke="currentColor" stroke-width="2" viewbox="0 0 24 24" width="16"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path></svg>
</button>
<svg fill="none" viewbox="0 0 300 220" xmlns="http://www.w3.org/2000/svg">
<rect fill="#1B1917" height="220" width="300"></rect>
<circle cx="150" cy="110" r="80" stroke="#CA8A04" stroke-width="2"></circle>
<circle cx="150" cy="110" r="50" stroke="#EAB308" stroke-width="3"></circle>
<circle cx="150" cy="110" fill="#FEF08A" r="20"></circle>
</svg>
</div>
<div class="card-details">
<div class="card-meta-row">
<div class="card-rating">★ 9.0</div>
<span class="card-quality">New</span>
</div>
<h3 class="card-title">Echo Chambers</h3>
<div class="card-genre-sub">Drama • Season 1</div>
</div>
</article>
<!-- Series 4 -->
<article class="movie-card" data-genre="fantasy" data-id="sol-aeterna">
<div class="poster-art">
<button aria-label="Toggle Watchlist" class="card-fav-btn">
<svg fill="none" height="16" stroke="currentColor" stroke-width="2" viewbox="0 0 24 24" width="16"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path></svg>
</button>
<svg fill="none" viewbox="0 0 300 220" xmlns="http://www.w3.org/2000/svg">
<rect fill="#1C1028" height="220" width="300"></rect>
<path d="M50 180C100 100 200 100 250 180" fill="#7C3AED" opacity="0.6"></path>
<circle cx="150" cy="80" fill="#C084FC" r="30"></circle>
</svg>
</div>
<div class="card-details">
<div class="card-meta-row">
<div class="card-rating">★ 9.2</div>
<span class="card-quality">4K</span>
</div>
<h3 class="card-title">Sol Aeterna</h3>
<div class="card-genre-sub">Cosmic Fantasy • 12 Episodes</div>
</div>
</article>
</div>
</section>
</main>
<!-- Content Details Modal -->
<div class="modal-backdrop" id="movie-modal">
<div class="detail-modal">
<button aria-label="Close details" class="btn-close-modal">✕</button>
<div class="modal-hero-art" id="modal-art-box">
<!-- Injected dynamically -->
</div>
<div class="modal-body">
<div class="modal-meta-line">
<span id="modal-match">98% Match</span>
<span id="modal-year">2025</span>
<span id="modal-rating-badge">TV-MA</span>
<span id="modal-duration">2h 38m</span>
<span>ULTRA HD</span>
</div>
<h2 class="modal-title" id="modal-title">Chrono Vector</h2>
<p class="modal-synopsis" id="modal-desc">
When quantum orbital physicist Maya Thorne intercepts a signal rebounding from a dead galaxy, she triggers an irreversible collapse across parallel temporal corridors.
</p>
<div>
<button class="btn-play">
<svg fill="currentColor" height="20" viewbox="0 0 24 24" width="20"><polygon points="5 3 19 12 5 21 5 3"></polygon></svg>
Resume Playback
</button>
<button class="btn-more-info" id="modal-fav-btn">
+ Add to Watchlist
</button>
</div>
<div class="modal-grid-info">
<div class="modal-info-item">
<h5>Creator / Director</h5>
<p id="modal-director">Kaelen Vance</p>
</div>
<div class="modal-info-item">
<h5>Starring</h5>
<p id="modal-cast">Maya Hawke, Steven Yeun, Tilda Swinton</p>
</div>
<div class="modal-info-item">
<h5>Audio & Visuals</h5>
<p>Dolby Atmos • Vision HDR10+</p>
</div>
</div>
</div>
</div>
</div>
<!-- Notification Toast -->
<div class="toast" id="toast">
<svg fill="none" height="18" stroke="#E50914" stroke-width="2.5" viewbox="0 0 24 24" width="18"><polyline points="20 6 9 17 4 12"></polyline></svg>
<span id="toast-msg">Added to your Watchlist</span>
</div>
<script src="js/script.js"></script></body>
</html>
css/styles.css
Copy Code
/* Syntaxis starter styles for: Streaming Entertainment Dashboard
Recreate the supplied Stitch reference design.
The completed Stitch CSS is intentionally excluded from this learner starter.
*/
:root {
--bg-dark: #0B0E14;
--bg-surface: #121824;
--bg-card: #182030;
--bg-card-hover: #222C42;
--accent: #E50914;
--accent-glow: rgba(229, 9, 20, 0.4);
--accent-amber: #F5A623;
--text-main: #FFFFFF;
--text-muted: #8E9BAE;
--border-color: rgba(255, 255, 255, 0.08);
--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--radius-sm: 6px;
--radius-md: 12px;
--radius-lg: 20px;
--transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
* {
box-sizing: border-box;
}
html, body {
margin: 0;
min-height: 100%;
}
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
/* TODO:
- Match the supplied reference design.
- Build responsive desktop and mobile states.
- Implement focus/hover/active/open/error/success states where required.
*/
js/script.js
Copy Code
// Syntaxis learner starter: streaming-dashboard
// Build a dark cinematic streaming dashboard with hero trailer showcase, genre filters, original vector movie posters, watchlist toggling, and an interactive content details modal.
document.addEventListener('DOMContentLoaded', () => {
console.info('Starter ready: streaming-dashboard');
// TODO:
// Implement the interactions visible in the supplied Stitch reference
// using vanilla JavaScript.
});