ORBIT — landing słuchawek
Landing pagePodgląd
Ładowanie podglądu…
Produkt w dużej skali, wybór koloru i karty zastosowań.
Kod źródłowy
Licencja MIT — także do użytku komercyjnego. Zachowaj informacje o autorze i licencji.
HTML
<header id="top"><a class="brand" href="#top">ORBIT / audio</a><nav aria-label="Nawigacja"><a href="#kolekcja">Brzmienie</a><a href="#o-nas">Konstrukcja</a></nav></header><main><section class="orbit-hero"><div class="orbit-copy" data-reveal><p class="eyebrow">Osobista przestrzeń dźwięku</p><h1>W swoim<br>świecie.</h1><p>Album od początku do końca. Ulubiony podcast w drodze. Chwila, która należy do Ciebie.</p><div class="swatches" role="group" aria-label="Kolor słuchawek"><button type="button" data-color="#bfcbeb" data-name="Mgła" aria-pressed="true">Mgła</button><button type="button" data-color="#edb998" data-name="Morela" aria-pressed="false">Morela</button><button type="button" data-color="#bed7bd" data-name="Szałwia" aria-pressed="false">Szałwia</button></div><p id="selection-status" role="status">Kolor: Mgła</p></div><div class="orbit-product" data-reveal><svg viewBox="0 0 400 440" role="img" aria-label="Słuchawki nauszne Orbit" xmlns="http://www.w3.org/2000/svg"><rect width="400" height="440" fill="#6575aa"></rect><circle cx="200" cy="205" r="168" fill="#ffffff" opacity=".12"></circle><path d="M92 265V175C92 30 308 30 308 175V265" stroke="#242944" stroke-width="31" fill="none"></path><path d="M92 250V175C92 42 308 42 308 175V250" stroke="#bfcbeb" stroke-width="17" fill="none"></path><rect x="62" y="184" width="78" height="166" rx="34" fill="#282c46" transform="rotate(-12 100 265)"></rect><rect x="260" y="184" width="78" height="166" rx="34" fill="#282c46" transform="rotate(12 300 265)"></rect><rect x="53" y="185" width="54" height="158" rx="24" fill="#bfcbeb" transform="rotate(-12 80 265)"></rect><rect x="293" y="185" width="54" height="158" rx="24" fill="#bfcbeb" transform="rotate(12 320 265)"></rect><path d="M68 214h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M68 223h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M68 232h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M68 241h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M68 250h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M68 259h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M68 268h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M68 277h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M68 286h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M68 295h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M68 304h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M312 214h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M312 223h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M312 232h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M312 241h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M312 250h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M312 259h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M312 268h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M312 277h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M312 286h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M312 295h20" stroke="#242944" opacity=".35" stroke-width="2"></path><path d="M312 304h20" stroke="#242944" opacity=".35" stroke-width="2"></path></svg><span class="model">O / 01</span></div></section><section class="section" id="kolekcja"><div class="section-head"><h2>Posłuchaj<br>po swojemu.</h2><p>Wybierz sytuację. Odkryj, na co zwrócić uwagę podczas słuchania.</p></div><div class="audio-modes"><button class="button" type="button" data-open="Album" data-description="Wyłącz powiadomienia, ustaw komfortową głośność i posłuchaj całego albumu w kolejności autora.">Cały album</button><button class="button" type="button" data-open="W drodze" data-description="Zachowaj kontakt z otoczeniem i dobierz poziom głośności do warunków.">W drodze</button><button class="button" type="button" data-open="Skupienie" data-description="Wybierz spokojną playlistę bez nagłych zmian dynamiki.">Skupienie</button></div></section><section class="section split" id="o-nas"><h2>Mniej detali.<br>Więcej wygody.</h2><p>Miękkie poduszki, regulowany pałąk i czytelne sterowanie. Koncepcja słuchawek stworzona wokół codziennych rytuałów.</p></section></main><footer><span>ORBIT / kolekcja koncepcyjna</span><a href="#top">Na górę</a></footer><dialog aria-labelledby="dialog-title" aria-describedby="dialog-description"><h2 id="dialog-title">Szczegóły</h2><p id="dialog-description"></p><form method="dialog"><button class="button" type="submit">Zamknij</button></form></dialog>
CSS
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 Arial,Helvetica,sans-serif}button,input,select{font:inherit;border-radius:0}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-underline-offset:5px}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid var(--focus,var(--ink));outline-offset:5px}button:disabled{cursor:default;opacity:.5}h1,h2,h3,p,figure{margin:0}h1,h2{line-height:1;letter-spacing:-.055em}h1{font-size:clamp(54px,8vw,120px)}h2{font-size:clamp(34px,5vw,70px)}h3{font-size:22px;line-height:1.15}p{max-width:60ch}svg{display:block;width:100%;height:auto}header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px 4vw;border-bottom:1px solid var(--line)}.brand{font-size:24px;font-weight:800;text-decoration:none;letter-spacing:-1px}nav{display:flex;gap:24px;flex-wrap:wrap}nav a{min-height:44px;display:inline-flex;align-items:center;text-decoration:none;font-size:14px}nav a:hover{text-decoration:underline}.eyebrow{font:12px/1.4 monospace;letter-spacing:.08em;text-transform:uppercase}.button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 22px;border:1px solid var(--ink);background:var(--ink);color:var(--paper);text-decoration:none}.button:hover{background:var(--paper);color:var(--ink)}.outline{background:transparent;color:var(--ink)}.section{padding:70px 4vw;border-top:1px solid var(--line)}.section>p{margin:22px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:32px}.section-head p{max-width:36ch}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.arrow{width:48px;height:48px;background:transparent;border:1px solid var(--ink);color:var(--ink);font-size:24px}.arrow:hover{background:var(--ink);color:var(--paper)}.muted{color:var(--muted)}.status{font-size:14px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}footer{display:flex;justify-content:space-between;gap:20px;padding:28px 4vw;border-top:1px solid var(--line);font-size:13px}dialog{padding:32px;border:1px solid var(--ink);max-width:540px;width:calc(100% - 40px);background:var(--paper);color:var(--ink)}dialog::backdrop{background:#1119}dialog h2{font-size:36px;letter-spacing:-.03em}dialog p{margin:24px 0}dialog form{display:flex;justify-content:end}[hidden]{display:none!important}.split{display:grid;grid-template-columns:1fr 1fr;gap:40px}.list{list-style:none;padding:0;margin:0}.list li{padding:22px 0;border-bottom:1px solid var(--line)}.list li b{display:block;font-size:20px}.list li span{color:var(--muted)}@media(max-width:640px){header{padding:14px 5vw;gap:10px;flex-wrap:wrap}nav{gap:18px}.brand{font-size:21px}h1{font-size:clamp(46px,13vw,80px)}.section{padding:44px 5vw}.section-head{align-items:start;flex-direction:column;gap:16px}.split{grid-template-columns:1fr}.button{padding:10px 16px}.section-head h2{font-size:42px}footer{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
body{--paper:#eef0f7;--ink:#232a49;--line:#c0c6d7;--muted:#555d77}.orbit-hero{display:grid;grid-template-columns:1fr 1fr;min-height:600px}.orbit-copy{padding:65px 6vw}.orbit-copy h1{margin:20px 0 28px;font-weight:500}.orbit-copy>p{max-width:35ch}.orbit-product{background:#6575aa;position:relative;display:grid;place-items:center;overflow:hidden}.orbit-product svg{height:540px;width:90%;transform:rotate(-12deg);transition:transform .6s}.orbit-product:hover svg{transform:rotate(0deg) scale(1.04)}.model{position:absolute;bottom:26px;right:32px;color:#fff;background:#232a49;padding:4px 8px;font:14px monospace}.swatches{display:flex;gap:8px;flex-wrap:wrap;margin:30px 0 15px}.swatches button{min-height:44px;border:1px solid #6a748e;background:transparent;padding:8px 14px;color:var(--ink)}.swatches button[aria-pressed=true]{background:var(--ink);color:var(--paper)}.audio-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.audio-modes button{height:120px;font-size:24px}@media(max-width:640px){.orbit-hero{grid-template-columns:1fr}.orbit-copy{padding:35px 5vw}.orbit-product svg{height:350px}.audio-modes{grid-template-columns:1fr}.audio-modes button{height:70px}}
JavaScript
const reduced = matchMedia('(prefers-reduced-motion: reduce)').matches;
const dialog = document.querySelector('dialog');
$('[data-open]').on('click', function () {
$('#dialog-title').text($(this).attr('data-open'));
$('#dialog-description').text($(this).attr('data-description'));
dialog.showModal();
});
if (!reduced) document.querySelectorAll('[data-reveal]').forEach((el, i) => el.animate([{opacity:0,transform:'translateY(24px)'},{opacity:1,transform:'translateY(0)'}],{duration:650,delay:i*70,easing:'cubic-bezier(.2,.7,.2,1)'}));
$('[data-color]').on('click',function(){const color=this.dataset.color;$('.orbit-product svg [fill]').each(function(){if(['#bfcbeb','#edb998','#bed7bd'].includes(this.getAttribute('fill')))this.setAttribute('fill',color)});$('.orbit-product svg [stroke]').each(function(){if(['#bfcbeb','#edb998','#bed7bd'].includes(this.getAttribute('stroke')))this.setAttribute('stroke',color)});$('[data-color]').attr('aria-pressed','false');$(this).attr('aria-pressed','true');$('#selection-status').text('Kolor: '+this.dataset.name);});
Edytuj swój pen
Podaj adres e-mail użyty przy zapisie. Wyślemy link do edycji.