Creator — Musician Landing
A dark, neon-soaked one-page landing for a fictional electronic artist. It pairs a hype hero with new-release cover art and CTA, a latest-tracks list driven by a mock play and pause mini-player, a tour-dates schedule with ticket states, a music-video gallery, a merch capsule teaser, press quotes, a newsletter signup with validation, and social links. Vanilla JS handles the mobile nav, scroll reveal, toast feedback, and the persistent fake player.
MCP
Code
:root {
--bg: #0c0c12;
--bg-2: #12121c;
--panel: #16161f;
--panel-2: #1c1c28;
--ink: #f4f3fb;
--muted: #a4a3bd;
--faint: #6f6e88;
--line: rgba(255, 255, 255, 0.08);
--magenta: #ff2bd6;
--cyan: #21e6ff;
--grad: linear-gradient(110deg, var(--magenta), var(--cyan));
--glow-m: 0 0 24px rgba(255, 43, 214, 0.55);
--glow-c: 0 0 24px rgba(33, 230, 255, 0.45);
--radius: 16px;
--maxw: 1160px;
--display: "Sora", system-ui, sans-serif;
--mono: "Space Grotesk", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
margin: 0;
background: radial-gradient(1200px 800px at 80% -10%, rgba(255, 43, 214, 0.12), transparent 60%),
radial-gradient(1000px 700px at -10% 20%, rgba(33, 230, 255, 0.1), transparent 55%),
var(--bg);
color: var(--ink);
font-family: var(--display);
line-height: 1.5;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.sr-only, .skip {
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
background: var(--magenta); color: #0c0c12; padding: 10px 16px; border-radius: 10px; z-index: 999; font-weight: 700;
}
/* ---------- buttons ---------- */
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
font-family: var(--display); font-weight: 700; font-size: .95rem;
padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
background: none; color: var(--ink);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--neon {
background: var(--grad); color: #0a0a10; box-shadow: var(--glow-m);
}
.btn--neon:hover { box-shadow: 0 0 34px rgba(255, 43, 214, 0.7), 0 0 30px rgba(33, 230, 255, 0.4); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); background: rgba(255, 255, 255, 0.03); }
.btn--ghost:hover { border-color: var(--cyan); box-shadow: var(--glow-c); color: var(--cyan); }
.btn--mini { padding: 8px 16px; font-size: .82rem; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.btn--mini:hover { border-color: var(--magenta); color: var(--magenta); box-shadow: var(--glow-m); }
.btn--disabled { opacity: .45; pointer-events: none; }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.kicker {
font-family: var(--mono); text-transform: uppercase; letter-spacing: .28em;
font-size: .72rem; color: var(--cyan); margin-bottom: 14px;
}
/* ---------- nav ---------- */
.nav {
position: sticky; top: 0; z-index: 50;
backdrop-filter: blur(14px);
background: rgba(12, 12, 18, 0.55);
border-bottom: 1px solid transparent;
transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled { border-color: var(--line); background: rgba(12, 12, 18, 0.82); }
.nav__inner {
max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
display: flex; align-items: center; gap: 24px;
}
.brand {
font-weight: 800; font-size: 1.25rem; letter-spacing: .04em; display: flex; align-items: center; gap: 10px;
}
.brand__accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__mark {
width: 16px; height: 16px; border-radius: 4px; background: var(--grad);
box-shadow: var(--glow-m); animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.18); opacity: 1; } }
.nav__links { margin-left: auto; display: flex; gap: 26px; }
.nav__links a {
font-size: .92rem; color: var(--muted); position: relative; padding: 4px 0; transition: color .2s ease;
}
.nav__links a::after {
content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--grad); transition: width .25s ease;
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 8px; }
.nav__toggle {
display: none; flex-direction: column; gap: 5px; width: 42px; height: 38px;
background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; padding: 9px;
}
.nav__toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* ---------- hero ---------- */
.hero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 64px 24px 80px; }
.hero__glow {
position: absolute; inset: 0; pointer-events: none;
background: radial-gradient(600px 360px at 70% 30%, rgba(255,43,214,.18), transparent 70%);
filter: blur(10px); z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__eyebrow {
font-family: var(--mono); text-transform: uppercase; letter-spacing: .26em; font-size: .76rem;
color: var(--magenta); margin-bottom: 18px;
}
.hero__title {
font-size: clamp(3.4rem, 11vw, 7.2rem); font-weight: 800; line-height: .88;
text-shadow: 0 0 40px rgba(255,43,214,.25);
}
.hero__title span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__tag { color: var(--muted); font-size: 1.18rem; max-width: 30ch; margin: 24px 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: 34px; border-top: 1px solid var(--line); padding-top: 24px;
}
.hero__stats strong { display: block; font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__stats span { font-size: .8rem; color: var(--faint); text-transform: uppercase; letter-spacing: .14em; }
/* cover */
.cover {
background: linear-gradient(180deg, var(--panel-2), var(--panel));
border: 1px solid var(--line); border-radius: 22px; padding: 16px;
box-shadow: 0 30px 80px rgba(0,0,0,.5), var(--glow-m);
}
.cover__art {
aspect-ratio: 1; border-radius: 16px; position: relative; overflow: hidden;
background:
repeating-linear-gradient(45deg, rgba(33,230,255,.12) 0 2px, transparent 2px 16px),
repeating-linear-gradient(-45deg, rgba(255,43,214,.14) 0 2px, transparent 2px 16px),
linear-gradient(140deg, #2a0a35, #07131f);
display: grid; place-items: center;
}
.cover__art::after {
content: ""; position: absolute; inset: 0;
background: radial-gradient(160px 160px at 30% 20%, rgba(255,43,214,.5), transparent 70%),
radial-gradient(180px 180px at 80% 90%, rgba(33,230,255,.45), transparent 70%);
mix-blend-mode: screen;
}
.cover__title {
position: relative; z-index: 1; font-weight: 800; font-size: clamp(1.4rem, 4vw, 2.1rem);
text-align: center; letter-spacing: .06em; line-height: 1; text-shadow: 0 0 18px rgba(0,0,0,.6);
}
.cover__bar { display: flex; align-items: center; gap: 14px; padding: 14px 8px 6px; }
.cover__play, .track__play, .miniplayer__play {
flex: none; width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
background: var(--grad); color: #0a0a10; display: grid; place-items: center;
box-shadow: var(--glow-m); transition: transform .15s ease, box-shadow .2s ease;
}
.cover__play:hover, .track__play:hover { transform: scale(1.08); }
.cover__play svg, .track__play svg, .miniplayer__play svg { width: 22px; height: 22px; fill: currentColor; }
.ico-pause { display: none; }
[aria-pressed="true"] .ico-play { display: none; }
[aria-pressed="true"] .ico-pause { display: block; }
.cover__meta { display: flex; flex-direction: column; }
.cover__track { font-weight: 700; }
.cover__sub { font-size: .8rem; color: var(--faint); }
.cover__eq { margin-left: auto; display: flex; gap: 3px; align-items: flex-end; height: 26px; opacity: .25; transition: opacity .3s ease; }
.cover__eq.is-on { opacity: 1; }
.cover__eq i, .miniplayer__eq i { width: 4px; background: var(--cyan); border-radius: 2px; height: 30%; }
.cover__eq.is-on i { animation: eq .9s ease-in-out infinite; }
.cover__eq i:nth-child(2) { animation-delay: .15s; } .cover__eq i:nth-child(3) { animation-delay: .3s; }
.cover__eq i:nth-child(4) { animation-delay: .45s; } .cover__eq i:nth-child(5) { animation-delay: .6s; }
@keyframes eq { 0%,100% { height: 25%; } 50% { height: 100%; } }
/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 78px 24px; }
.section__head { margin-bottom: 38px; }
.section__head h2 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; }
/* tracks */
.tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.track {
display: grid; grid-template-columns: auto auto 1fr auto auto; gap: 18px; align-items: center;
padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius);
background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.track:hover { border-color: rgba(255,43,214,.5); transform: translateX(4px); background: rgba(255,43,214,.04); }
.track.is-playing { border-color: var(--cyan); box-shadow: var(--glow-c); }
.track__play { width: 42px; height: 42px; }
.track__play svg { width: 18px; height: 18px; }
.track__n { font-family: var(--mono); color: var(--faint); }
.track__name { font-weight: 700; font-size: 1.05rem; }
.track__tag { font-size: .78rem; color: var(--cyan); border: 1px solid rgba(33,230,255,.3); padding: 3px 10px; border-radius: 999px; }
.track__dur { font-family: var(--mono); color: var(--muted); }
/* tour */
.section--tour { background: linear-gradient(180deg, transparent, rgba(33,230,255,.03), transparent); }
.tour { list-style: none; margin: 0; padding: 0; }
.tour__row {
display: grid; grid-template-columns: 120px 1fr auto auto; gap: 24px; align-items: center;
padding: 20px 8px; border-bottom: 1px solid var(--line); transition: background .2s ease;
}
.tour__row:hover { background: rgba(255,255,255,.02); }
.tour__date b { font-family: var(--mono); font-size: 1.05rem; }
.tour__date i, .tour__place i { display: block; font-style: normal; color: var(--faint); font-size: .82rem; }
.tour__place b { font-size: 1.1rem; }
.tour__status { font-size: .8rem; color: var(--muted); font-family: var(--mono); }
.tour__status--low { color: var(--magenta); }
.tour__status--out { color: var(--faint); text-decoration: line-through; }
/* videos */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video {
position: relative; border: none; padding: 0; cursor: pointer; border-radius: var(--radius); overflow: hidden;
font-family: var(--display); text-align: left; color: var(--ink); background: var(--panel);
transition: transform .25s ease, box-shadow .25s ease;
}
.video:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.5), var(--glow-m); }
.video:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.video__thumb { display: block; aspect-ratio: 16/10; }
.video__thumb--a { background: linear-gradient(135deg, #ff2bd6, #2a0a45); }
.video__thumb--b { background: linear-gradient(135deg, #21e6ff, #07131f); }
.video__thumb--c { background: linear-gradient(135deg, #ff2bd6, #21e6ff); }
.video__play {
position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
width: 60px; height: 60px; border-radius: 50%; background: rgba(12,12,18,.6); backdrop-filter: blur(6px);
display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); transition: transform .2s ease;
}
.video:hover .video__play { transform: translate(-50%, -50%) scale(1.12); }
.video__play svg { width: 26px; height: 26px; fill: var(--ink); }
.video__cap { display: flex; flex-direction: column; padding: 14px 16px; font-weight: 700; }
.video__cap i { font-style: normal; font-weight: 400; font-size: .82rem; color: var(--faint); margin-top: 2px; }
/* press */
.press { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.press__card {
padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
background: linear-gradient(180deg, var(--panel-2), var(--panel)); margin: 0;
transition: transform .2s ease, border-color .2s ease;
}
.press__card:hover { transform: translateY(-4px); border-color: rgba(33,230,255,.4); }
.press__card blockquote { margin: 0 0 18px; font-size: 1.08rem; line-height: 1.45; }
.press__card figcaption b { display: block; }
.press__card figcaption span { color: var(--cyan); font-size: .82rem; font-family: var(--mono); }
/* merch */
.section--merch { background: linear-gradient(180deg, transparent, rgba(255,43,214,.04), transparent); }
.merch__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.merch__copy h2 { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: 16px; }
.merch__copy p { color: var(--muted); margin-bottom: 26px; max-width: 40ch; }
.merch__grid { display: grid; gap: 14px; }
.merch__item {
display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
transition: border-color .2s ease, transform .2s ease;
}
.merch__item:hover { border-color: rgba(255,43,214,.5); transform: translateX(4px); }
.merch__tag { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--cyan); border: 1px solid rgba(33,230,255,.3); border-radius: 999px; padding: 4px 10px; }
.merch__item strong { font-weight: 700; }
.merch__item span:last-child { font-family: var(--mono); color: var(--magenta); font-weight: 700; }
/* about */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.about__portrait {
aspect-ratio: 4/5; border-radius: 20px; border: 1px solid var(--line);
background:
radial-gradient(120px 120px at 30% 25%, rgba(255,43,214,.6), transparent 70%),
radial-gradient(160px 160px at 75% 80%, rgba(33,230,255,.5), transparent 70%),
linear-gradient(160deg, #1a0a25, #07131f);
box-shadow: var(--glow-m);
}
.about__copy h2 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); margin-bottom: 18px; }
.about__copy p { color: var(--muted); margin-bottom: 16px; }
/* newsletter */
.section--news { text-align: center; }
.news { max-width: 640px; margin: 0 auto; }
.news h2 { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: 14px; }
.news > p { color: var(--muted); margin-bottom: 28px; }
.news__form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.news__form input {
flex: 1; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line);
background: var(--panel); color: var(--ink); font-family: var(--display); font-size: .95rem;
}
.news__form input:focus-visible { outline: none; border-color: var(--cyan); box-shadow: var(--glow-c); }
.news__err { color: var(--magenta); margin-top: 12px; font-size: .9rem; }
.socials { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.socials a {
display: inline-block; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
font-size: .85rem; color: var(--muted); transition: all .2s ease;
}
.socials a:hover { border-color: var(--magenta); color: var(--ink); box-shadow: var(--glow-m); }
/* footer */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer__inner {
max-width: var(--maxw); margin: 0 auto; padding: 30px 24px;
display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.brand--sm { font-size: 1.05rem; }
.footer__note { color: var(--faint); font-size: .85rem; }
.footer__back { color: var(--muted); font-size: .88rem; transition: color .2s ease; }
.footer__back:hover { color: var(--cyan); }
/* mini player */
.miniplayer {
position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
display: flex; align-items: center; gap: 14px; z-index: 80;
background: rgba(18, 18, 28, 0.92); backdrop-filter: blur(16px);
border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px 10px 10px;
box-shadow: 0 20px 60px rgba(0,0,0,.6), var(--glow-c); width: min(440px, calc(100vw - 32px));
animation: rise .3s ease;
}
@keyframes rise { from { transform: translate(-50%, 30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.miniplayer__play { width: 42px; height: 42px; }
.miniplayer__play svg { width: 18px; height: 18px; }
.miniplayer__info { flex: 1; min-width: 0; }
.miniplayer__title { font-weight: 700; font-size: .9rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.miniplayer__bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); margin-top: 6px; overflow: hidden; }
.miniplayer__bar span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s linear; }
.miniplayer__eq { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.miniplayer__eq i { animation: eq .9s ease-in-out infinite; }
.miniplayer__eq i:nth-child(2) { animation-delay: .2s; } .miniplayer__eq i:nth-child(3) { animation-delay: .4s; } .miniplayer__eq i:nth-child(4) { animation-delay: .6s; }
.miniplayer__close { background: none; border: none; color: var(--faint); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.miniplayer__close:hover { color: var(--ink); }
/* toast */
.toast {
position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px);
background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
padding: 13px 20px; border-radius: 12px; font-size: .9rem; max-width: 340px; text-align: center;
box-shadow: 0 18px 50px rgba(0,0,0,.6); opacity: 0; pointer-events: none; z-index: 100; transition: opacity .25s ease, transform .25s ease;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
.reveal { opacity: 1; transform: none; transition: none; }
.brand__mark, .cover__eq.is-on i, .miniplayer__eq i { animation: none; }
}
/* ---------- responsive ---------- */
@media (max-width: 900px) {
.videos, .press { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
.nav__links {
position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; margin: 0;
background: rgba(12,12,18,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
padding: 8px 24px 20px; transform: translateY(-130%); transition: transform .3s ease; z-index: 40;
}
.nav__links.is-open { transform: translateY(0); }
.nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
.nav__cta { display: none; }
.nav__toggle { display: flex; }
.hero__grid, .merch__inner, .about { grid-template-columns: 1fr; gap: 40px; }
.hero__art { order: -1; max-width: 420px; }
.videos, .press { grid-template-columns: 1fr; }
.tour__row { grid-template-columns: 86px 1fr; grid-template-areas: "date place" "status btn"; row-gap: 10px; }
.tour__date { grid-area: date; } .tour__place { grid-area: place; }
.tour__status { grid-area: status; align-self: center; } .tour__row .btn { grid-area: btn; justify-self: end; }
.track { grid-template-columns: auto auto 1fr auto; }
.track__tag { display: none; }
}
@media (max-width: 520px) {
.hero { padding: 40px 18px 60px; }
.section { padding: 56px 18px; }
.hero__stats { gap: 22px; }
.news__form { flex-direction: column; }
.news__form input { width: 100%; }
.footer__inner { flex-direction: column; text-align: center; }
}(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-show");
clearTimeout(toastTimer);
toastTimer = setTimeout(function () {
toastEl.classList.remove("is-show");
}, 2800);
}
document.addEventListener("click", function (e) {
var t = e.target.closest("[data-toast]");
if (t) {
if (t.tagName === "A") e.preventDefault();
toast(t.getAttribute("data-toast"));
}
});
/* ---------- mobile nav ---------- */
var toggle = document.getElementById("navToggle");
var nav = document.getElementById("primary-nav");
if (toggle && nav) {
toggle.addEventListener("click", function () {
var open = nav.classList.toggle("is-open");
toggle.setAttribute("aria-expanded", String(open));
});
nav.addEventListener("click", function (e) {
if (e.target.tagName === "A") {
nav.classList.remove("is-open");
toggle.setAttribute("aria-expanded", "false");
}
});
}
/* ---------- sticky nav shadow ---------- */
var navBar = document.querySelector(".nav");
function onScroll() {
if (navBar) navBar.classList.toggle("is-scrolled", window.scrollY > 8);
}
window.addEventListener("scroll", onScroll, { passive: true });
onScroll();
/* ---------- scroll reveal ---------- */
var reveals = Array.prototype.slice.call(document.querySelectorAll(".reveal"));
if ("IntersectionObserver" in window) {
var io = new IntersectionObserver(function (entries) {
entries.forEach(function (en) {
if (en.isIntersecting) {
en.target.classList.add("is-in");
io.unobserve(en.target);
}
});
}, { threshold: 0.12, rootMargin: "0px 0px -40px 0px" });
reveals.forEach(function (el) { io.observe(el); });
} else {
reveals.forEach(function (el) { el.classList.add("is-in"); });
}
/* ---------- mock player ---------- */
var mini = document.getElementById("miniPlayer");
var miniPlay = document.getElementById("miniPlay");
var miniTitle = document.getElementById("miniTitle");
var miniProgress = document.getElementById("miniProgress");
var miniClose = document.getElementById("miniClose");
var heroPlay = document.getElementById("heroPlay");
var heroEq = document.getElementById("heroEq");
var trackBtns = Array.prototype.slice.call(document.querySelectorAll(".track__play"));
var state = { playing: false, current: null, pct: 0, timer: null };
function setPressed(btn, val) {
if (btn) btn.setAttribute("aria-pressed", String(val));
}
function clearTrackHighlights() {
document.querySelectorAll(".track.is-playing").forEach(function (li) {
li.classList.remove("is-playing");
setPressed(li.querySelector(".track__play"), false);
});
setPressed(heroPlay, false);
if (heroEq) heroEq.classList.remove("is-on");
}
function tick() {
if (!state.playing) return;
state.pct += 0.6;
if (state.pct >= 100) state.pct = 0;
if (miniProgress) miniProgress.style.width = state.pct + "%";
}
function startTimer() {
stopTimer();
state.timer = setInterval(tick, 120);
}
function stopTimer() {
if (state.timer) { clearInterval(state.timer); state.timer = null; }
}
function play(title, sourceBtn) {
var sameTrack = state.current === title;
clearTrackHighlights();
state.current = title;
state.playing = true;
if (!sameTrack) state.pct = 0;
if (miniTitle) miniTitle.textContent = title;
if (mini) mini.hidden = false;
setPressed(miniPlay, true);
startTimer();
if (sourceBtn === heroPlay) {
setPressed(heroPlay, true);
if (heroEq) heroEq.classList.add("is-on");
} else {
var li = sourceBtn ? sourceBtn.closest(".track") : null;
if (li) { li.classList.add("is-playing"); setPressed(li.querySelector(".track__play"), true); }
}
}
function pause() {
state.playing = false;
stopTimer();
setPressed(miniPlay, false);
document.querySelectorAll(".track.is-playing .track__play").forEach(function (b) { setPressed(b, false); });
setPressed(heroPlay, false);
if (heroEq) heroEq.classList.remove("is-on");
}
function resume() {
if (!state.current) return;
state.playing = true;
setPressed(miniPlay, true);
startTimer();
var active = document.querySelector('.track[data-track="' + cssEscape(state.current) + '"]');
if (active) { active.classList.add("is-playing"); setPressed(active.querySelector(".track__play"), true); }
else if (heroPlay) { setPressed(heroPlay, true); if (heroEq) heroEq.classList.add("is-on"); }
}
function cssEscape(s) { return String(s).replace(/"/g, '\\"'); }
function toggleTrack(title, btn) {
if (state.current === title && state.playing) {
pause();
} else if (state.current === title && !state.playing) {
resume();
} else {
play(title, btn);
}
}
if (heroPlay) {
heroPlay.addEventListener("click", function () { toggleTrack("Midnight Voltage", heroPlay); });
}
trackBtns.forEach(function (btn) {
var li = btn.closest(".track");
var title = li ? li.getAttribute("data-track") : "Track";
btn.addEventListener("click", function () { toggleTrack(title, btn); });
});
if (miniPlay) {
miniPlay.addEventListener("click", function () {
if (state.playing) pause(); else resume();
});
}
if (miniClose) {
miniClose.addEventListener("click", function () {
pause();
state.current = null;
state.pct = 0;
clearTrackHighlights();
if (mini) mini.hidden = true;
});
}
/* ---------- video "lightbox" mock ---------- */
document.querySelectorAll(".video").forEach(function (v) {
v.addEventListener("click", function () {
toast("▶ Playing “" + v.getAttribute("data-title") + "” — " + v.getAttribute("data-meta"));
});
});
/* ---------- newsletter ---------- */
var form = document.getElementById("newsForm");
var err = document.getElementById("newsErr");
var input = document.getElementById("email");
if (form) {
form.addEventListener("submit", function (e) {
e.preventDefault();
var val = (input.value || "").trim();
var ok = /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(val);
if (!ok) {
if (err) err.hidden = false;
input.focus();
return;
}
if (err) err.hidden = true;
input.value = "";
toast("You're on the list — watch your inbox for the next drop.");
});
input.addEventListener("input", function () { if (err) err.hidden = true; });
}
})();<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>NOVA RAIN — Official Site</title>
<meta name="description" content="Official site of NOVA RAIN — electronic artist & producer. New single MIDNIGHT VOLTAGE out now." />
<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=Sora:wght@400;600;700;800&family=Space+Grotesk:wght@500;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<a class="skip" href="#main">Skip to content</a>
<header class="nav" id="top">
<div class="nav__inner">
<a href="#top" class="brand" aria-label="NOVA RAIN home">
<span class="brand__mark" aria-hidden="true"></span>
NOVA<span class="brand__accent">RAIN</span>
</a>
<nav class="nav__links" id="primary-nav" aria-label="Primary">
<a href="#music">Music</a>
<a href="#tour">Tour</a>
<a href="#videos">Videos</a>
<a href="#merch">Merch</a>
<a href="#about">About</a>
</nav>
<a href="#listen" class="btn btn--neon nav__cta">New Release</a>
<button class="nav__toggle" id="navToggle" aria-expanded="false" aria-controls="primary-nav" aria-label="Toggle menu">
<span></span><span></span><span></span>
</button>
</div>
</header>
<main id="main">
<!-- HERO -->
<section class="hero" aria-labelledby="hero-title">
<div class="hero__glow" aria-hidden="true"></div>
<div class="hero__grid">
<div class="hero__copy reveal">
<p class="hero__eyebrow">New single · out now</p>
<h1 class="hero__title" id="hero-title">NOVA<br /><span>RAIN</span></h1>
<p class="hero__tag">Synth-soaked anthems for the after-hours. Electronic producer carving neon out of noise.</p>
<div class="hero__actions">
<a href="#listen" class="btn btn--neon" data-toast="Streaming "Midnight Voltage" — pretend your speakers just lit up.">Listen to “Midnight Voltage”</a>
<a href="#tour" class="btn btn--ghost">See Tour Dates</a>
</div>
<ul class="hero__stats" aria-label="Highlights">
<li><strong>48M+</strong><span>streams</span></li>
<li><strong>32</strong><span>cities</span></li>
<li><strong>3</strong><span>albums</span></li>
</ul>
</div>
<div class="hero__art reveal" id="listen">
<div class="cover">
<div class="cover__art" role="img" aria-label="Album cover for Midnight Voltage — abstract neon grid">
<span class="cover__title">MIDNIGHT<br/>VOLTAGE</span>
</div>
<div class="cover__bar">
<button class="cover__play" id="heroPlay" aria-pressed="false" aria-label="Play Midnight Voltage">
<svg viewBox="0 0 24 24" class="ico-play" aria-hidden="true"><path d="M8 5v14l11-7z"/></svg>
<svg viewBox="0 0 24 24" class="ico-pause" aria-hidden="true"><path d="M6 5h4v14H6zM14 5h4v14h-4z"/></svg>
</button>
<div class="cover__meta">
<span class="cover__track">Midnight Voltage</span>
<span class="cover__sub">Single · 3:42</span>
</div>
<div class="cover__eq" id="heroEq" aria-hidden="true"><i></i><i></i><i></i><i></i><i></i></div>
</div>
</div>
</div>
</div>
</section>
<!-- MUSIC / TRACKS -->
<section class="section" id="music" aria-labelledby="music-h">
<div class="section__head reveal">
<p class="kicker">Latest tracks</p>
<h2 id="music-h">Press play, lose the room</h2>
</div>
<ul class="tracks" id="trackList">
<li class="track reveal" data-track="Midnight Voltage" data-dur="3:42">
<button class="track__play" aria-pressed="false" aria-label="Play Midnight Voltage">
<svg viewBox="0 0 24 24" class="ico-play" aria-hidden="true"><path d="M8 5v14l11-7z"/></svg>
<svg viewBox="0 0 24 24" class="ico-pause" aria-hidden="true"><path d="M6 5h4v14H6zM14 5h4v14h-4z"/></svg>
</button>
<span class="track__n">01</span>
<span class="track__name">Midnight Voltage</span>
<span class="track__tag">Single</span>
<span class="track__dur">3:42</span>
</li>
<li class="track reveal" data-track="Glass Cathedral" data-dur="4:18">
<button class="track__play" aria-pressed="false" aria-label="Play Glass Cathedral">
<svg viewBox="0 0 24 24" class="ico-play" aria-hidden="true"><path d="M8 5v14l11-7z"/></svg>
<svg viewBox="0 0 24 24" class="ico-pause" aria-hidden="true"><path d="M6 5h4v14H6zM14 5h4v14h-4z"/></svg>
</button>
<span class="track__n">02</span>
<span class="track__name">Glass Cathedral</span>
<span class="track__tag">From “Afterglow”</span>
<span class="track__dur">4:18</span>
</li>
<li class="track reveal" data-track="Static Lover" data-dur="3:05">
<button class="track__play" aria-pressed="false" aria-label="Play Static Lover">
<svg viewBox="0 0 24 24" class="ico-play" aria-hidden="true"><path d="M8 5v14l11-7z"/></svg>
<svg viewBox="0 0 24 24" class="ico-pause" aria-hidden="true"><path d="M6 5h4v14H6zM14 5h4v14h-4z"/></svg>
</button>
<span class="track__n">03</span>
<span class="track__name">Static Lover</span>
<span class="track__tag">Single</span>
<span class="track__dur">3:05</span>
</li>
<li class="track reveal" data-track="Neon Undertow" data-dur="5:11">
<button class="track__play" aria-pressed="false" aria-label="Play Neon Undertow">
<svg viewBox="0 0 24 24" class="ico-play" aria-hidden="true"><path d="M8 5v14l11-7z"/></svg>
<svg viewBox="0 0 24 24" class="ico-pause" aria-hidden="true"><path d="M6 5h4v14H6zM14 5h4v14h-4z"/></svg>
</button>
<span class="track__n">04</span>
<span class="track__name">Neon Undertow</span>
<span class="track__tag">From “Afterglow”</span>
<span class="track__dur">5:11</span>
</li>
</ul>
</section>
<!-- TOUR -->
<section class="section section--tour" id="tour" aria-labelledby="tour-h">
<div class="section__head reveal">
<p class="kicker">On the road</p>
<h2 id="tour-h">The Voltage Tour</h2>
</div>
<ul class="tour" id="tourList">
<li class="tour__row reveal">
<span class="tour__date"><b>JUN 24</b><i>2026</i></span>
<span class="tour__place"><b>Berlin, DE</b><i>Tresor Halle</i></span>
<span class="tour__status tour__status--low">Few left</span>
<a class="btn btn--mini" href="#" data-toast="Tickets are fictional — but the energy is real.">Tickets</a>
</li>
<li class="tour__row reveal">
<span class="tour__date"><b>JUL 02</b><i>2026</i></span>
<span class="tour__place"><b>Amsterdam, NL</b><i>De Marktkantine</i></span>
<span class="tour__status">Available</span>
<a class="btn btn--mini" href="#" data-toast="Tickets are fictional — but the energy is real.">Tickets</a>
</li>
<li class="tour__row reveal">
<span class="tour__date"><b>JUL 11</b><i>2026</i></span>
<span class="tour__place"><b>London, UK</b><i>Printworks</i></span>
<span class="tour__status tour__status--out">Sold out</span>
<a class="btn btn--mini btn--disabled" href="#" aria-disabled="true" data-toast="Sold out — join the waitlist below.">Waitlist</a>
</li>
<li class="tour__row reveal">
<span class="tour__date"><b>AUG 03</b><i>2026</i></span>
<span class="tour__place"><b>Lisbon, PT</b><i>LX Factory Stage</i></span>
<span class="tour__status">Available</span>
<a class="btn btn--mini" href="#" data-toast="Tickets are fictional — but the energy is real.">Tickets</a>
</li>
<li class="tour__row reveal">
<span class="tour__date"><b>AUG 16</b><i>2026</i></span>
<span class="tour__place"><b>Barcelona, ES</b><i>Sala Apolo</i></span>
<span class="tour__status tour__status--low">Few left</span>
<a class="btn btn--mini" href="#" data-toast="Tickets are fictional — but the energy is real.">Tickets</a>
</li>
</ul>
</section>
<!-- VIDEOS -->
<section class="section" id="videos" aria-labelledby="videos-h">
<div class="section__head reveal">
<p class="kicker">On screen</p>
<h2 id="videos-h">Music videos</h2>
</div>
<div class="videos">
<button class="video reveal" data-title="Midnight Voltage" data-meta="Official Video · 3:48">
<span class="video__thumb video__thumb--a"></span>
<span class="video__play" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M8 5v14l11-7z"/></svg></span>
<span class="video__cap">Midnight Voltage<i>Official Video</i></span>
</button>
<button class="video reveal" data-title="Glass Cathedral" data-meta="Live at Tresor · 5:02">
<span class="video__thumb video__thumb--b"></span>
<span class="video__play" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M8 5v14l11-7z"/></svg></span>
<span class="video__cap">Glass Cathedral<i>Live Session</i></span>
</button>
<button class="video reveal" data-title="Static Lover" data-meta="Visualizer · 3:10">
<span class="video__thumb video__thumb--c"></span>
<span class="video__play" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M8 5v14l11-7z"/></svg></span>
<span class="video__cap">Static Lover<i>Visualizer</i></span>
</button>
</div>
</section>
<!-- PRESS / TESTIMONIALS -->
<section class="section section--press" aria-labelledby="press-h">
<div class="section__head reveal">
<p class="kicker">In the press</p>
<h2 id="press-h">What they’re saying</h2>
</div>
<div class="press">
<figure class="press__card reveal">
<blockquote>“NOVA RAIN builds cathedrals out of static — one of the most electric live acts in the underground right now.”</blockquote>
<figcaption><b>Pulsewave Magazine</b><span>Cover feature</span></figcaption>
</figure>
<figure class="press__card reveal">
<blockquote>“Midnight Voltage is the rare single that feels like a memory you haven’t made yet.”</blockquote>
<figcaption><b>Neon Dispatch</b><span>Single of the week</span></figcaption>
</figure>
<figure class="press__card reveal">
<blockquote>“Drenched in magenta, sharpened in cyan. Afterglow is a debut that refuses to dim.”</blockquote>
<figcaption><b>The Frequency Report</b><span>Album review · 9/10</span></figcaption>
</figure>
</div>
</section>
<!-- MERCH -->
<section class="section section--merch" id="merch" aria-labelledby="merch-h">
<div class="merch__inner reveal">
<div class="merch__copy">
<p class="kicker">Merch drop</p>
<h2 id="merch-h">The Voltage Capsule</h2>
<p>Limited-run tour tee, signed vinyl of <em>Afterglow</em>, and a glow-in-the-dark enamel pin. Drops with every show — until they’re gone.</p>
<a href="#" class="btn btn--neon" data-toast="Store is illustrative — no real checkout here.">Shop the drop</a>
</div>
<div class="merch__grid">
<div class="merch__item"><span class="merch__tag">Tee</span><strong>Voltage Tour Tee</strong><span>$34</span></div>
<div class="merch__item"><span class="merch__tag">Vinyl</span><strong>Afterglow LP (signed)</strong><span>$42</span></div>
<div class="merch__item"><span class="merch__tag">Pin</span><strong>Glow Enamel Pin</strong><span>$12</span></div>
</div>
</div>
</section>
<!-- ABOUT -->
<section class="section section--about" id="about" aria-labelledby="about-h">
<div class="about reveal">
<div class="about__portrait" role="img" aria-label="Portrait of NOVA RAIN bathed in neon light"></div>
<div class="about__copy">
<p class="kicker">About</p>
<h2 id="about-h">Built in basements, broadcast to skylines</h2>
<p>NOVA RAIN started as a bedroom experiment with a broken drum machine and a refusal to sleep. Three albums later, the project has become a touring force — fusing club-ready low end with widescreen synth melodies that feel built for the last train home.</p>
<p>Every release is self-produced, every show hand-mixed. The mission stays the same: turn the noise of the night into something you can dance to.</p>
</div>
</div>
</section>
<!-- NEWSLETTER + SOCIALS -->
<section class="section section--news" id="join" aria-labelledby="news-h">
<div class="news reveal">
<h2 id="news-h">Get the next drop first</h2>
<p>Tour presales, unreleased demos, and the occasional 3am voice memo. No noise — just signal.</p>
<form class="news__form" id="newsForm" novalidate>
<label class="sr-only" for="email">Email address</label>
<input id="email" name="email" type="email" placeholder="[email protected]" autocomplete="email" required />
<button type="submit" class="btn btn--neon">Join the list</button>
</form>
<p class="news__err" id="newsErr" role="alert" hidden>Enter a valid email to subscribe.</p>
<ul class="socials" aria-label="Social links">
<li><a href="#" data-toast="Social links are illustrative.">Spotify</a></li>
<li><a href="#" data-toast="Social links are illustrative.">Apple Music</a></li>
<li><a href="#" data-toast="Social links are illustrative.">Bandcamp</a></li>
<li><a href="#" data-toast="Social links are illustrative.">Instagram</a></li>
<li><a href="#" data-toast="Social links are illustrative.">TikTok</a></li>
</ul>
</div>
</section>
</main>
<footer class="footer">
<div class="footer__inner">
<a href="#top" class="brand brand--sm">NOVA<span class="brand__accent">RAIN</span></a>
<p class="footer__note">Illustrative UI only — fictional artist. © 2026 NOVA RAIN.</p>
<a href="#join" class="footer__back">Back to top ↑</a>
</div>
</footer>
<!-- mini player -->
<div class="miniplayer" id="miniPlayer" aria-live="polite" hidden>
<button class="miniplayer__play" id="miniPlay" aria-pressed="true" aria-label="Pause">
<svg viewBox="0 0 24 24" class="ico-play" aria-hidden="true"><path d="M8 5v14l11-7z"/></svg>
<svg viewBox="0 0 24 24" class="ico-pause" aria-hidden="true"><path d="M6 5h4v14H6zM14 5h4v14h-4z"/></svg>
</button>
<div class="miniplayer__info">
<span class="miniplayer__title" id="miniTitle">Midnight Voltage</span>
<div class="miniplayer__bar"><span id="miniProgress"></span></div>
</div>
<div class="miniplayer__eq" aria-hidden="true"><i></i><i></i><i></i><i></i></div>
<button class="miniplayer__close" id="miniClose" aria-label="Stop playback">×</button>
</div>
<div class="toast" id="toast" role="status" aria-live="polite"></div>
<script src="script.js"></script>
</body>
</html>Musician Landing
A full personal-brand landing page for NOVA RAIN, a fictional electronic producer. The design leans
into a moody, electric identity: a near-black #0c0c12 canvas lit by magenta and cyan glows, a bold
display font, animated equalizer bars, and gradient-clipped headlines. The hero stacks the artist name,
tagline, and a new-release CTA next to a generated album cover with an inline play control.
The page moves through five distinct sections built for a musician: a latest-tracks list with per-row play toggles, a tour-dates schedule showing availability states (few left / sold out) and ticket buttons, a music-video gallery with hover lift and a lightbox-style toast, press quotes, a merch capsule teaser with priced items, an about/bio, and a newsletter block with inline email validation and social links. Everything is responsive down to ~360px with a slide-in mobile nav.
Interactions are vanilla JS only: a single mock player keeps state across the hero and track list,
surfacing a persistent bottom mini-player with an animated progress bar that you can pause, resume,
or dismiss. Scroll-reveal, smooth anchor scrolling, a sticky-nav shadow, and a reusable toast() helper
round out the behavior — no frameworks, no audio files, no build step.
Illustrative UI only — fictional creator, not a real person or brand.