- Sirkul logo everywhere (header wordmark, phone monogram, favicon, footer); brand name "Sirkul Makeup" - One font (Plus Jakarta Sans) across app and waitlist; cursive serif removed - Habesha model photos from Wikimedia Commons (CC BY-SA, credited in footer and waitlist) - Landing: light/dark theme toggle, live waitlist pill, photo category cards, how-it-works + grouped payment panel, photo CTA; less emphasis on languages - Footer: framed card with starter-kit list (IconPark icons), student-work photo reel, credits - Waitlist: international country-code picker, live "people waiting" pill fed by a doGet signup count in the Apps Script (count only, no personal data) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
374 lines
28 KiB
HTML
374 lines
28 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
<title>Sirkul Makeup — Join the waitlist</title>
|
|
<meta name="description" content="Video makeup courses from Sirkul Makeup School. Join the waitlist and be first in line the day classes open." />
|
|
<meta name="theme-color" content="#0A0A0A" />
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+Ethiopic:wght@400;600&display=swap" />
|
|
<link rel="icon" href="/brand/sirkul-mark.png" />
|
|
<style>
|
|
:root {
|
|
--bg: #0A0A0A; --raise: #141414; --field: #1A1A1A; --line: #2A2A2A;
|
|
--ink: #F5F5F5; --ink-2: #C9C9C9; --ink-3: #8A8A8A; --bad: #FFB4AB;
|
|
--sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
--eth: 'Noto Sans Ethiopic', var(--sans);
|
|
--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
|
|
color-scheme: dark;
|
|
}
|
|
* { box-sizing: border-box; }
|
|
html { scroll-behavior: smooth; }
|
|
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
|
|
img { max-width: 100%; display: block; }
|
|
a { color: inherit; }
|
|
button, input { font: inherit; color: inherit; }
|
|
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
|
|
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
|
|
|
|
/* ---------- nav ---------- */
|
|
.nav { position: absolute; z-index: 5; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 48px); }
|
|
.brand { display: inline-flex; align-items: center; text-decoration: none; }
|
|
.brand img { height: 46px; width: auto; filter: invert(1); }
|
|
@media (max-width: 420px) { .brand img { height: 36px; } }
|
|
.links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
|
|
.links a { text-decoration: none; color: var(--ink-2); transition: color 160ms; }
|
|
.links a:hover { color: #fff; }
|
|
.nav .ghost { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px; background: #1C1C1C; text-decoration: none; font-weight: 600; font-size: 15px; transition: background 160ms; }
|
|
.nav .ghost:hover { background: #262626; }
|
|
@media (max-width: 760px) { .links { display: none; } }
|
|
|
|
/* ---------- hero: photo cards float around a centered pitch ---------- */
|
|
.hero { position: relative; min-height: max(min(100svh, 980px), 760px); display: grid; place-items: center; padding: 120px 16px 96px; overflow: hidden; isolation: isolate; }
|
|
.collage { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
|
|
.card { position: absolute; width: var(--w, 12.5vw); max-width: 250px; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #1A1A1A;
|
|
opacity: 0; animation: rise 900ms var(--ease-out) forwards, drift 9s ease-in-out infinite alternate; animation-delay: var(--d), calc(var(--d) + 900ms); }
|
|
.card.wide { aspect-ratio: 4 / 5; }
|
|
.card img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
|
|
.c1 { left: -1.5%; top: 24%; --d: 120ms; }
|
|
.c2 { left: 21%; top: -6%; --d: 0ms; }
|
|
.c3 { left: 11%; bottom: -8%; --w: 12vw; --d: 240ms; }
|
|
.c4 { right: 15%; top: 30%; --d: 180ms; }
|
|
.c5 { right: -1%; top: 11%; --w: 13vw; --d: 60ms; }
|
|
.c6 { right: 8%; bottom: -12%; --d: 300ms; }
|
|
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
|
|
@keyframes drift { from { translate: 0 0; } to { translate: 0 -10px; } }
|
|
.collage::after { content: ''; position: absolute; inset: 0; background: radial-gradient(48% 46% at 50% 52%, rgba(10, 10, 10, .9), rgba(10, 10, 10, 0) 100%); }
|
|
|
|
.pitch { max-width: 680px; text-align: center; display: flex; flex-direction: column; align-items: center; }
|
|
.proof { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 6px; border-radius: 999px; border: 1px solid #3A3A3A; background: rgba(10, 10, 10, .6); backdrop-filter: blur(8px); font-size: 15px; font-weight: 500; }
|
|
.faces { display: flex; }
|
|
.faces > * { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid var(--bg); margin-left: -9px; filter: grayscale(.7) brightness(.8); transition: filter 400ms var(--ease-out), transform 400ms var(--ease-out); }
|
|
.faces > :first-child { margin-left: 0; }
|
|
.faces > .on { filter: none; transform: translateY(-3px) scale(1.12); z-index: 1; position: relative; }
|
|
.faces b { display: grid; place-items: center; background: #fff; color: #0A0A0A; font-size: 12px; font-weight: 800; filter: none; animation: rise 500ms var(--ease-out); }
|
|
.live { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; flex: none; animation: live 2s infinite; }
|
|
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }
|
|
h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -.045em; font-weight: 600; margin: 26px 0 0; text-wrap: balance; }
|
|
h1 em, h2 em { font-style: normal; color: var(--ink-3); }
|
|
.lead { max-width: 34ch; margin: 14px 0 0; color: var(--ink-2); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; text-wrap: pretty; }
|
|
|
|
/* ---------- form: email first, then name + phone ---------- */
|
|
.join { width: min(560px, 100%); margin: 32px 0 0; scroll-margin-top: 120px; }
|
|
.bar { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--field); border: 1px solid var(--line); transition: border-color 160ms, box-shadow 160ms; }
|
|
.bar:focus-within { border-color: #4A4A4A; box-shadow: 0 0 0 4px rgba(255, 255, 255, .06); }
|
|
.bar input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 16px; min-height: 48px; font-size: 16px; outline: none; }
|
|
input::placeholder { color: var(--ink-3); }
|
|
.more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; animation: rise 500ms var(--ease-out); }
|
|
.more[hidden] { display: none; }
|
|
.more input { min-height: 56px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--field); font-size: 16px; outline: none; }
|
|
.more input:focus, .tel:focus-within { border-color: #4A4A4A; box-shadow: 0 0 0 4px rgba(255, 255, 255, .06); }
|
|
.tel { display: flex; align-items: center; min-height: 56px; border-radius: 999px; border: 1px solid var(--line); background: var(--field); transition: border-color 160ms, box-shadow 160ms; }
|
|
.tel:has([aria-invalid="true"]) { border-color: var(--bad); }
|
|
.tel input { flex: 1; min-width: 0; min-height: 0; height: 54px; border: 0 !important; background: none; box-shadow: none !important; padding: 0 20px 0 10px; }
|
|
.cc { position: relative; flex: none; display: flex; align-items: center; gap: 6px; height: 40px; margin-left: 8px; padding: 0 10px 0 12px; border-radius: 999px; background: #262626; font-weight: 600; font-size: 15px; }
|
|
.cc:hover { background: #2E2E2E; }
|
|
.cc:focus-within { outline: 2px solid #fff; outline-offset: 2px; }
|
|
.cc select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
|
|
.cc .flag { font-size: 18px; line-height: 1; }
|
|
.cc svg { color: var(--ink-3); }
|
|
input[aria-invalid="true"] { border-color: var(--bad) !important; }
|
|
.bar:has(input[aria-invalid="true"]) { border-color: var(--bad); }
|
|
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: #fff; color: #0A0A0A; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 160ms var(--ease-out), background 160ms; }
|
|
.btn:hover { background: #E8E8E8; }
|
|
.btn:active { transform: scale(0.97); }
|
|
.btn[disabled] { opacity: .7; cursor: progress; }
|
|
.fine { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
|
|
.err { margin: 12px 0 0; font-size: 14px; color: var(--bad); font-weight: 600; }
|
|
.err:empty { display: none; }
|
|
.done { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 20px 14px 14px; border-radius: 24px; background: var(--field); border: 1px solid var(--line); animation: rise 500ms var(--ease-out); }
|
|
.done .tick { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0A0A0A; }
|
|
.done h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
|
|
.done p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
|
|
|
|
@media (max-width: 1100px) { .c2, .c4 { display: none; } .card { --w: 17vw; } .c1 { top: 12%; } .c6 { right: -2%; } }
|
|
@media (max-width: 760px) {
|
|
.hero { min-height: 0; padding: 92px 16px 56px; }
|
|
.collage { position: relative; inset: auto; display: flex; justify-content: center; gap: 10px; height: 214px; margin: 0 -16px 20px; z-index: 0; }
|
|
.collage::after { display: none; }
|
|
.card { position: relative; inset: auto; width: 98px; flex: none; }
|
|
.c1 { rotate: -6deg; top: 18px; } .c5 { top: 0; } .c6 { rotate: 6deg; top: 18px; }
|
|
.c3 { display: none; }
|
|
.hero { display: block; }
|
|
.pitch { margin: 0 auto; }
|
|
.more { grid-template-columns: 1fr; }
|
|
}
|
|
@media (max-width: 420px) {
|
|
.bar { flex-direction: column; border-radius: 24px; }
|
|
.bar input { min-height: 48px; }
|
|
}
|
|
|
|
/* ---------- sections ---------- */
|
|
.block { padding: clamp(72px, 9vw, 120px) 0 0; }
|
|
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
|
|
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; margin: 0; }
|
|
.sub { color: var(--ink-2); margin: 14px 0 0; max-width: 40rem; font-size: 17px; }
|
|
|
|
.looks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; }
|
|
.looks li { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4.4; background: #1A1A1A; }
|
|
.looks img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 700ms var(--ease-out); }
|
|
.looks li:hover img { transform: scale(1.04); }
|
|
.looks div { position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 18px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); display: flex; flex-direction: column; gap: 2px; }
|
|
.looks strong { font-size: 17px; letter-spacing: -.01em; }
|
|
.looks span { font-size: 14px; color: rgba(255, 255, 255, .75); }
|
|
@media (max-width: 980px) { .looks { grid-template-columns: 1fr 1fr; } }
|
|
@media (max-width: 520px) { .looks { grid-template-columns: 1fr; } .looks li { aspect-ratio: 4 / 5; } }
|
|
|
|
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
|
|
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } }
|
|
.why > div { background: var(--raise); border: 1px solid #1F1F1F; border-radius: 20px; padding: 28px; }
|
|
.why .n { font-size: 14px; font-weight: 700; letter-spacing: .06em; line-height: 1; color: var(--ink-3); display: block; margin-bottom: 28px; }
|
|
.why h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.02em; }
|
|
.why p { margin: 0; color: var(--ink-2); font-size: 15px; }
|
|
|
|
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 64px; }
|
|
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
|
|
details { border-bottom: 1px solid var(--line); }
|
|
details:first-child { border-top: 1px solid var(--line); }
|
|
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 2px; font-weight: 600; font-size: 17px; }
|
|
summary::-webkit-details-marker { display: none; }
|
|
summary svg { flex: none; color: var(--ink-3); transition: transform 200ms var(--ease-out); }
|
|
details[open] summary svg { transform: rotate(45deg); }
|
|
details p { margin: 0; padding: 0 2px 22px; color: var(--ink-2); max-width: 52ch; }
|
|
|
|
.cta { position: relative; margin-top: clamp(72px, 9vw, 120px); border-radius: 28px; overflow: hidden; min-height: 420px; display: grid; place-items: center; text-align: center; padding: 48px 24px; isolation: isolate; }
|
|
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
|
|
.cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 50%, rgba(0, 0, 0, .55), rgba(0, 0, 0, .25)), linear-gradient(transparent 40%, rgba(0, 0, 0, .5)); }
|
|
.cta h2 { font-size: clamp(40px, 6vw, 76px); }
|
|
.cta h2 em { color: rgba(255, 255, 255, .72); }
|
|
.cta .btn { margin-top: 24px; min-height: 52px; }
|
|
|
|
footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 40px 0 32px; font-size: 14px; color: var(--ink-3); }
|
|
footer nav { display: flex; gap: 20px; }
|
|
footer a { text-decoration: none; }
|
|
footer a:hover { color: var(--ink); }
|
|
|
|
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .card { opacity: 1; } html { scroll-behavior: auto; } }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header class="nav">
|
|
<a class="brand" href="#top" aria-label="Sirkul Makeup School home"><img src="/brand/sirkul-logo.png" alt="" /></a>
|
|
<nav class="links" aria-label="Sections">
|
|
<a href="#courses">Courses</a>
|
|
<a href="#why">Why us</a>
|
|
<a href="#faq">FAQ</a>
|
|
</nav>
|
|
<a class="ghost" href="#join" data-focus>Join waitlist</a>
|
|
</header>
|
|
|
|
<main>
|
|
<section class="hero" id="top">
|
|
<div class="collage" aria-hidden="true">
|
|
<figure class="card c1" style="margin:0"><img src="/photos/habesha-bride.jpg" alt="" /></figure>
|
|
<figure class="card c2" style="margin:0"><img src="/photos/habesha-harari.jpg" alt="" /></figure>
|
|
<figure class="card c3 wide" style="margin:0"><img src="/photos/habesha-trad.jpg" alt="" /></figure>
|
|
<figure class="card c4" style="margin:0"><img src="/photos/habesha-eritrean.jpg" alt="" /></figure>
|
|
<figure class="card c5" style="margin:0"><img src="/photos/hero.jpg" alt="" /></figure>
|
|
<figure class="card c6" style="margin:0"><img src="/photos/habesha-tigray.jpg" alt="" /></figure>
|
|
</div>
|
|
|
|
<div class="pitch">
|
|
<span class="proof">
|
|
<span class="faces" id="faces" aria-hidden="true"><img src="/photos/habesha-tigray.jpg" alt="" class="on" /><img src="/photos/habesha-harari.jpg" alt="" /><img src="/photos/habesha-bride.jpg" alt="" /><img src="/photos/hero.jpg" alt="" /></span>
|
|
<span class="live" aria-hidden="true"></span>
|
|
<span id="waiting" aria-live="polite">Be one of the first on the list</span>
|
|
</span>
|
|
<h1>Your <em>signature look</em> starts here.</h1>
|
|
<p class="lead">Video makeup courses from working Ethiopian artists. Join the waitlist and we'll tell you the day classes open.</p>
|
|
|
|
<div class="join" id="join">
|
|
<form id="form" novalidate>
|
|
<label class="sr-only" aria-hidden="true">Company<input id="company" name="company" tabindex="-1" autocomplete="off" /></label>
|
|
<div class="more" id="more" hidden>
|
|
<label class="sr-only" for="name">Full name</label>
|
|
<input id="name" name="name" autocomplete="name" placeholder="Full name" required maxlength="80" />
|
|
<div class="tel">
|
|
<label class="cc"><span class="sr-only">Country code</span><span class="flag" id="ccFlag" aria-hidden="true"></span><span id="ccDial" aria-hidden="true"></span><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" aria-hidden="true"><path d="M6 9l6 6 6-6"/></svg><select id="cc" autocomplete="tel-country-code"></select></label>
|
|
<label class="sr-only" for="phone">Phone number</label>
|
|
<input id="phone" name="phone" type="tel" autocomplete="tel-national" inputmode="tel" placeholder="911 234 567" required maxlength="20" />
|
|
</div>
|
|
</div>
|
|
<div class="bar">
|
|
<label class="sr-only" for="email">Email</label>
|
|
<input id="email" name="email" type="email" autocomplete="email" placeholder="Enter your email" required maxlength="120" />
|
|
<button class="btn" id="submit">Join waitlist</button>
|
|
</div>
|
|
<p class="err" id="err" role="alert"></p>
|
|
<p class="fine" id="fine">One message when we open. We never share your details.</p>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<div class="wrap">
|
|
<section class="block" id="courses">
|
|
<p class="kicker">At launch</p>
|
|
<h2>Four courses, <em>one craft</em></h2>
|
|
<p class="sub">Start with the basics, or go straight to the looks clients book you for.</p>
|
|
<ul class="looks">
|
|
<li><img src="/photos/hero.jpg" alt="" loading="lazy" /><div><strong>Makeup foundations</strong><span>Skin tone, base and color</span></div></li>
|
|
<li><img src="/photos/habesha-harari.jpg" alt="" loading="lazy" /><div><strong>Bridal & events</strong><span>Looks that last a 14-hour day</span></div></li>
|
|
<li><img src="/photos/habesha-eritrean.jpg" alt="" loading="lazy" /><div><strong>Skin prep & care</strong><span>The canvas before the color</span></div></li>
|
|
<li><img src="/photos/habesha-trad.jpg" alt="" loading="lazy" /><div><strong>Building your clientele</strong><span>Pricing, kit and bookings</span></div></li>
|
|
</ul>
|
|
</section>
|
|
|
|
<section class="block" id="why">
|
|
<p class="kicker">Why us</p>
|
|
<h2>Learn the craft, <em>your way</em></h2>
|
|
<div class="why">
|
|
<div><span class="n">01</span><h3>Waitlist goes first</h3><p>Everyone on the list gets in on opening day, before we announce it anywhere else.</p></div>
|
|
<div><span class="n">02</span><h3>Pay once, keep it</h3><p>One payment per course with Telebirr or CBE Birr. Yours for life.</p></div>
|
|
<div><span class="n">03</span><h3>Made for your phone</h3><p>Short video lessons that work on a mobile data plan.</p></div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="block faq" id="faq">
|
|
<div><p class="kicker">FAQ</p><h2><em>Good</em> questions</h2></div>
|
|
<div>
|
|
<details><summary>When will classes open?<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></summary><p>We're finishing the first courses now. Everyone on the waitlist hears first, by SMS or email, on opening day.</p></details>
|
|
<details><summary>How do I pay?<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></summary><p>Telebirr or CBE Birr in Ethiopia. International cards are coming for students abroad.</p></details>
|
|
<details><summary>What will you do with my details?<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></summary><p>Only tell you when we open. We don't sell or share them, and you can ask us to delete them at any time.</p></details>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="cta">
|
|
<img src="/photos/habesha-bride.jpg" alt="" loading="lazy" />
|
|
<div>
|
|
<h2>Be first in <em>the chair</em>.</h2>
|
|
<a class="btn" href="#join" data-focus>Join the waitlist</a>
|
|
</div>
|
|
</section>
|
|
|
|
<footer>
|
|
<span>© <span id="year"></span> Sirkul Makeup School/Studio · Photos: <a href="https://commons.wikimedia.org/wiki/File:Tigray_Bride_(48108302903).jpg" rel="noopener">Rod Waddington</a> (CC BY-SA 2.0), <a href="https://commons.wikimedia.org/wiki/File:Femme_harari_v%C3%AAtue_de_la_tenue_traditionnelle,_orn%C3%A9e_de_bijoux_en_or..jpg" rel="noopener">Imagesdumonde</a> (CC BY-SA 4.0), <a href="https://commons.wikimedia.org/wiki/File:Eritrean_woman.jpg" rel="noopener">T.Voekler</a> (CC BY-SA 3.0), <a href="https://www.pexels.com/" rel="noopener">Pexels</a></span>
|
|
<nav aria-label="Footer"><a href="#courses">Courses</a><a href="#faq">FAQ</a><a href="#top">Back to top ↑</a></nav>
|
|
</footer>
|
|
</div>
|
|
</main>
|
|
<script>
|
|
// Google Apps Script web app URL (…/exec) from tools/waitlist-apps-script.gs. Each signup becomes a row in the sheet.
|
|
// While it's empty, signups are kept only in this browser's localStorage, so don't share the page until it's set.
|
|
const ENDPOINT = '';
|
|
|
|
document.getElementById('year').textContent = new Date().getFullYear();
|
|
document.querySelectorAll('[data-focus]').forEach((a) => a.addEventListener('click', () => setTimeout(() => document.getElementById('email')?.focus({ preventScroll: true }), 400)));
|
|
|
|
const form = document.getElementById('form'), err = document.getElementById('err'), btn = document.getElementById('submit'), more = document.getElementById('more');
|
|
const $ = (id) => document.getElementById(id);
|
|
const digits = (p) => p.replace(/[\s()-]/g, '');
|
|
const emailOk = (e) => /^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(e);
|
|
// Country picker: ISO code + dial code. Names come from Intl.DisplayNames, flags from the regional-indicator letters.
|
|
const DIAL = 'AF93 AL355 DZ213 AS1 AD376 AO244 AI1 AG1 AR54 AM374 AW297 AU61 AT43 AZ994 BS1 BH973 BD880 BB1 BY375 BE32 BZ501 BJ229 BM1 BT975 BO591 BA387 BW267 BR55 BN673 BG359 BF226 BI257 KH855 CM237 CA1 CV238 KY1 CF236 TD235 CL56 CN86 CO57 KM269 CG242 CD243 CR506 CI225 HR385 CU53 CY357 CZ420 DK45 DJ253 DM1 DO1 EC593 EG20 SV503 GQ240 ER291 EE372 SZ268 ET251 FJ679 FI358 FR33 GA241 GM220 GE995 DE49 GH233 GR30 GD1 GU1 GT502 GN224 GW245 GY592 HT509 HN504 HK852 HU36 IS354 IN91 ID62 IR98 IQ964 IE353 IL972 IT39 JM1 JP81 JO962 KZ7 KE254 KI686 XK383 KW965 KG996 LA856 LV371 LB961 LS266 LR231 LY218 LI423 LT370 LU352 MO853 MG261 MW265 MY60 MV960 ML223 MT356 MR222 MU230 MX52 MD373 MC377 MN976 ME382 MA212 MZ258 MM95 NA264 NP977 NL31 NZ64 NI505 NE227 NG234 KP850 MK389 NO47 OM968 PK92 PS970 PA507 PG675 PY595 PE51 PH63 PL48 PT351 PR1 QA974 RO40 RU7 RW250 KN1 LC1 VC1 WS685 SM378 ST239 SA966 SN221 RS381 SC248 SL232 SG65 SK421 SI386 SB677 SO252 ZA27 KR82 SS211 ES34 LK94 SD249 SR597 SE46 CH41 SY963 TW886 TJ992 TZ255 TH66 TL670 TG228 TO676 TT1 TN216 TR90 TM993 UG256 UA380 AE971 GB44 US1 UY598 UZ998 VU678 VE58 VN84 YE967 ZM260 ZW263'
|
|
.split(' ').map((x) => [x.slice(0, 2), x.slice(2)]);
|
|
const flag = (cc) => String.fromCodePoint(...[...cc].map((c) => 127397 + c.charCodeAt(0)));
|
|
let names; try { names = new Intl.DisplayNames([navigator.language || 'en'], { type: 'region' }); } catch { names = { of: (c) => c }; }
|
|
const cc = $('cc'), dialOf = Object.fromEntries(DIAL);
|
|
[['ET', '251'], ['ER', '291'], ...DIAL.filter(([c]) => c !== 'ET' && c !== 'ER').sort((a, b) => names.of(a[0]).localeCompare(names.of(b[0])))]
|
|
.forEach(([c, d]) => cc.add(new Option(`${flag(c)} ${names.of(c)} +${d}`, c)));
|
|
const region = (navigator.language || '').split('-')[1]?.toUpperCase();
|
|
cc.value = dialOf[region] ? region : 'ET';
|
|
function showCC() {
|
|
$('ccFlag').textContent = flag(cc.value); $('ccDial').textContent = '+' + dialOf[cc.value];
|
|
$('phone').placeholder = cc.value === 'ET' ? '911 234 567' : 'Phone number';
|
|
}
|
|
cc.addEventListener('change', () => { showCC(); $('phone').focus(); });
|
|
showCC();
|
|
// Returns E.164 or null. A pasted +number wins over the picker; a leading trunk 0 (0911…) is dropped.
|
|
function normPhone(p) {
|
|
const d = digits(p);
|
|
if (/^\+\d{8,15}$/.test(d)) return d;
|
|
if (!/^\d+$/.test(d)) return null;
|
|
const n = d.replace(/^0/, ''), dial = dialOf[cc.value];
|
|
if (cc.value === 'ET') return /^[79]\d{8}$/.test(n) ? '+251' + n : null;
|
|
return n.length >= 4 && dial.length + n.length <= 15 ? '+' + dial + n : null;
|
|
}
|
|
|
|
// Live pill: faces take turns lighting up, and the count of people waiting comes from the sheet (doGet).
|
|
const faces = () => [...$('faces').querySelectorAll('img')];
|
|
if (!matchMedia('(prefers-reduced-motion: reduce)').matches) {
|
|
let fi = 0;
|
|
setInterval(() => { fi = (fi + 1) % faces().length; faces().forEach((f, k) => f.classList.toggle('on', k === fi)); }, 2000);
|
|
}
|
|
let waiting = 0;
|
|
// ponytail: below 20 signups a number reads as empty, so the pill keeps its "be one of the first" line until then.
|
|
const showWaiting = (joined) => {
|
|
if (waiting >= 20) $('waiting').textContent = joined ? `You and ${(waiting - 1).toLocaleString()} others are waiting` : `${waiting.toLocaleString()} people are already waiting`;
|
|
else if (joined) $('waiting').textContent = "You're on the list";
|
|
};
|
|
if (ENDPOINT) fetch(ENDPOINT).then((r) => r.json()).then((d) => { waiting = Number(d.count) || 0; showWaiting(false); }).catch(() => {});
|
|
|
|
function check() {
|
|
const name = $('name').value.trim(), email = $('email').value.trim(), phone = normPhone($('phone').value);
|
|
const bad = [];
|
|
if (name.length < 2) bad.push(['name', 'Please enter your name.']);
|
|
if (!phone) bad.push(['phone', cc.value === 'ET' ? 'Please enter a phone number, e.g. 911 234 567.' : 'Please check the phone number for the country you picked.']);
|
|
if (!emailOk(email)) bad.push(['email', 'Please enter a valid email.']);
|
|
['name', 'email', 'phone'].forEach((k) => $(k).setAttribute('aria-invalid', String(bad.some(([b]) => b === k))));
|
|
return bad.length ? { error: bad[0] } : { data: { name, email: email.toLowerCase(), phone, locale: navigator.language || 'en', createdAt: new Date().toISOString() } };
|
|
}
|
|
form.addEventListener('input', (e) => { if (e.target.getAttribute('aria-invalid') === 'true') { if (more.hidden) e.target.setAttribute('aria-invalid', String(!emailOk(e.target.value.trim()))); else check(); } });
|
|
form.addEventListener('submit', async (e) => {
|
|
e.preventDefault(); err.textContent = '';
|
|
// Step 1 asks only for the email (one field, like the reference); step 2 adds name and phone.
|
|
if (more.hidden) {
|
|
const ok = emailOk($('email').value.trim());
|
|
$('email').setAttribute('aria-invalid', String(!ok));
|
|
if (!ok) { err.textContent = 'Please enter a valid email.'; $('email').focus(); return; }
|
|
more.hidden = false; btn.textContent = 'Get notified';
|
|
$('fine').textContent = 'Last step: so we can text you on opening day.';
|
|
$('name').focus(); return;
|
|
}
|
|
const r = check();
|
|
if (r.error) { err.textContent = r.error[1]; $(r.error[0]).focus(); return; }
|
|
btn.disabled = true;
|
|
try {
|
|
if (ENDPOINT) {
|
|
// text/plain keeps this a "simple" request: Apps Script can't answer a CORS preflight.
|
|
const res = await fetch(ENDPOINT, { method: 'POST', headers: { 'Content-Type': 'text/plain;charset=utf-8' }, body: JSON.stringify({ ...r.data, page: location.href, company: $('company').value }) });
|
|
const out = await res.json().catch(() => ({}));
|
|
if (!res.ok || !out.ok) throw new Error(out.error || res.status);
|
|
} else {
|
|
let list = []; try { list = JSON.parse(localStorage.getItem('waitlist') || '[]'); } catch {}
|
|
if (!list.some((x) => x.email === r.data.email)) list.push(r.data);
|
|
try { localStorage.setItem('waitlist', JSON.stringify(list)); } catch {}
|
|
console.warn('Waitlist ENDPOINT not set: signup saved in this browser only.', r.data);
|
|
}
|
|
const first = r.data.name.split(' ')[0];
|
|
// The new signup's initial joins the faces in the pill.
|
|
const me = document.createElement('b'); me.textContent = first[0].toUpperCase(); $('faces').prepend(me);
|
|
waiting += 1; showWaiting(true);
|
|
form.parentElement.innerHTML = `<div class="done" role="status"><div class="tick"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7"/></svg></div><div><h3>You're on the list, ${first.replace(/[<>&"]/g, '')}.</h3><p>We'll message you the day classes open.</p></div></div>`;
|
|
} catch {
|
|
err.textContent = "Something went wrong. Please try again in a moment.";
|
|
btn.disabled = false;
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|