- After sign-in a 7-step spotlight tour shows students around (replay from the menu); ends on Esc or navigation - Course cards: edge-to-edge photo, student count (Course.enrolledCount), arrow that inverts on hover (fixes white-on-white hover in dark mode) - Landing: stats removed; How it works uses abstract CSS art; payment card grouped by mobile money, bank cards and from abroad; step 2 copy covers local and international payment - SEO: metadata (title template, description, keywords, canonical, Open Graph, Twitter), per-route titles, EducationalOrganization JSON-LD with founder Rezina Brhane and her TikTok, robots.txt, sitemap.xml; same tags on the waitlist page - Footers link the founder's TikTok - Backend issue drafted: design/issues/enrollment-counts.md - Smoke test: blocks third-party requests (Vimeo iframe stalled unloads), tolerates a missed load event; it caught a hook-order crash on the course page, fixed here Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
509 lines
43 KiB
HTML
509 lines
43 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="Join the Sirkul Makeup waitlist: video makeup courses from working Ethiopian artists, founded by Rezina Brhane. Bridal, soft glam, skin prep and traditional Habesha looks, made for your phone." />
|
|
<meta name="theme-color" content="#0A0A0A" />
|
|
<link rel="canonical" href="https://makeup-lms.vercel.app/waitlist/" />
|
|
<meta name="keywords" content="makeup course, makeup class Ethiopia, online makeup course, bridal makeup, Habesha makeup, Rezina Brhane, Sirkul Makeup, የሜካፕ ትምህርት" />
|
|
<meta name="author" content="Rezina Brhane" />
|
|
<meta name="robots" content="index, follow" />
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:site_name" content="Sirkul Makeup" />
|
|
<meta property="og:url" content="https://makeup-lms.vercel.app/waitlist/" />
|
|
<meta property="og:title" content="Your signature look starts here — Sirkul Makeup" />
|
|
<meta property="og:description" content="Join the Sirkul Makeup waitlist: video makeup courses from working Ethiopian artists, founded by Rezina Brhane. Bridal, soft glam, skin prep and traditional Habesha looks, made for your phone." />
|
|
<meta property="og:image" content="https://makeup-lms.vercel.app/photos/hero.jpg" />
|
|
<meta property="og:image:alt" content="Makeup by Sirkul Makeup School" />
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<meta name="twitter:title" content="Your signature look starts here — Sirkul Makeup" />
|
|
<meta name="twitter:description" content="Join the Sirkul Makeup waitlist: video makeup courses from working Ethiopian artists, founded by Rezina Brhane. Bridal, soft glam, skin prep and traditional Habesha looks, made for your phone." />
|
|
<meta name="twitter:image" content="https://makeup-lms.vercel.app/photos/hero.jpg" />
|
|
<script type="application/ld+json">{"@context": "https://schema.org", "@type": "EducationalOrganization", "name": "Sirkul Makeup School/Studio", "alternateName": "Sirkul Makeup", "url": "https://makeup-lms.vercel.app", "logo": "https://makeup-lms.vercel.app/brand/sirkul-logo.png", "image": "https://makeup-lms.vercel.app/photos/hero.jpg", "description": "Video makeup courses from working Ethiopian artists, founded by Rezina Brhane. Bridal, soft glam, skin prep and traditional Habesha looks. Pay once with Telebirr, CBE Birr, cards or PayPal, keep the course for life, and learn on your phone in Amharic, English, Afaan Oromoo or Tigrinya.", "founder": {"@type": "Person", "name": "Rezina Brhane", "jobTitle": "Founder and head of Sirkul Makeup", "sameAs": ["https://www.tiktok.com/@rezinabrhane"]}, "sameAs": ["https://www.tiktok.com/@rezinabrhane"], "areaServed": "ET", "knowsLanguage": ["am", "en", "om", "ti"], "contactPoint": {"@type": "ContactPoint", "contactType": "customer support", "telephone": "+251911234567", "availableLanguage": ["Amharic", "English", "Afaan Oromoo", "Tigrinya"]}}</script>
|
|
<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); }
|
|
|
|
/* ---------- SMS / email toggle: SMS first, since most people here live on their phone ---------- */
|
|
.seg { display: flex; width: max-content; gap: 4px; padding: 4px; margin: 0 auto 10px; border-radius: 999px; background: var(--field); border: 1px solid var(--line); }
|
|
.seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--ink-3); font-weight: 600; font-size: 14px; cursor: pointer; transition: background 220ms var(--ease-out), color 220ms; }
|
|
.seg button[aria-selected="true"] { background: #fff; color: #0A0A0A; }
|
|
.bar .tel { flex: 1; min-width: 0; min-height: 48px; border: 0; background: none; }
|
|
.bar .tel input { height: 48px; }
|
|
.bar .cc { margin-left: 2px; }
|
|
.bar [hidden] { display: none !important; }
|
|
.more { grid-template-columns: 1fr; }
|
|
|
|
/* ---------- motion: headline words rise, then the rest; sections reveal on scroll ---------- */
|
|
h1 .w { display: inline-block; opacity: 0; animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 80ms + 200ms); }
|
|
.pitch > .proof, .pitch > .lead, .pitch > .join { opacity: 0; animation: rise 800ms var(--ease-out) forwards; }
|
|
.pitch > .proof { animation-delay: 80ms; } .pitch > .lead { animation-delay: 620ms; } .pitch > .join { animation-delay: 760ms; }
|
|
.collage { transform: translateY(var(--py, 0px)); }
|
|
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: var(--rd, 0ms); }
|
|
.reveal.in { opacity: 1; transform: none; }
|
|
.looks li.reveal img { transform: scale(1.18); transition: transform 1600ms var(--ease-out); transition-delay: var(--rd, 0ms); }
|
|
.looks li.in img { transform: scale(1); }
|
|
.looks li.in:hover img { transform: scale(1.05); transition-duration: 700ms; transition-delay: 0ms; }
|
|
.cta img { transform: scale(1.12); transition: transform 2400ms var(--ease-out); }
|
|
.cta.in img { transform: scale(1); }
|
|
|
|
/* ---------- portrait reel under the hero ---------- */
|
|
.reel { overflow: hidden; padding: 8px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
|
|
.reel > div { display: flex; gap: 12px; width: max-content; animation: reel 60s linear infinite; }
|
|
.reel:hover > div { animation-play-state: paused; }
|
|
.reel img { width: 190px; height: 250px; object-fit: cover; object-position: center 22%; border-radius: 18px; filter: grayscale(.4) brightness(.85); transition: filter 500ms var(--ease-out), transform 500ms var(--ease-out); }
|
|
.reel img:nth-child(even) { margin-top: 28px; }
|
|
.reel img:hover { filter: none; transform: translateY(-4px); }
|
|
@keyframes reel { to { transform: translateX(calc(-50% - 6px)); } }
|
|
@media (max-width: 760px) { .reel img { width: 120px; height: 160px; border-radius: 14px; } .reel img:nth-child(even) { margin-top: 18px; } }
|
|
|
|
/* courses swipe on phones */
|
|
@media (max-width: 520px) { .looks { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; scrollbar-width: none; } .looks::-webkit-scrollbar { display: none; } .looks li { scroll-snap-align: start; } }
|
|
|
|
/* why us: big numbers on hairlines instead of three boxes */
|
|
.why { gap: 0; border-top: 1px solid var(--line); }
|
|
.why > div { background: none; border: 0; border-radius: 0; padding: 28px 24px 8px 0; }
|
|
.why > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
|
|
.why .n { font-size: clamp(48px, 6vw, 80px); font-weight: 700; letter-spacing: -.05em; color: var(--ink); margin-bottom: 18px; }
|
|
@media (max-width: 760px) { .why > div, .why > div + div { border-left: 0; padding: 24px 0; border-bottom: 1px solid var(--line); } }
|
|
|
|
/* ---------- footer: landing-page card, contact block, credits, powered-by ---------- */
|
|
.foot { padding: clamp(72px, 9vw, 120px) 0 24px; }
|
|
.foot-card { display: grid; gap: 32px; padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: var(--raise); border: 1px solid #1F1F1F; }
|
|
@media (min-width: 760px) { .foot-card { grid-template-columns: 1.3fr 1fr; align-items: end; } }
|
|
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
|
|
.foot-brand img { width: min(100%, 340px); filter: invert(1); }
|
|
.foot-brand p { margin: 0; color: var(--ink-2); font-size: 17px; }
|
|
.foot-brand .founder { font-size: 15px; color: var(--ink-3); } .founder a { color: var(--ink); text-underline-offset: 3px; }
|
|
.foot-contact { display: flex; flex-direction: column; }
|
|
.foot-contact h3 { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
|
|
.foot-contact a { display: flex; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; transition: padding 240ms var(--ease-out), color 160ms; }
|
|
.foot-contact a:hover { padding-left: 6px; }
|
|
.foot-contact a span { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #222; color: var(--ink-2); }
|
|
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 24px 4px 0; font-size: 13px; color: var(--ink-3); }
|
|
.foot-bar summary { padding: 0; font-size: 13px; font-weight: 500; display: inline; }
|
|
.foot-bar details { border: 0; } .foot-bar details p { padding: 8px 0 0; font-size: 13px; color: var(--ink-3); }
|
|
.foot-bar a { text-decoration: none; } .foot-bar a:hover { color: var(--ink); }
|
|
.powered { text-align: center; font-size: 12px; color: var(--ink-3); margin: 24px 0 0; letter-spacing: .04em; }
|
|
.shine { font-weight: 700; text-decoration: none; color: transparent; background: linear-gradient(110deg, var(--ink-2) 40%, #fff 50%, var(--ink-2) 60%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; animation: shine 3.2s linear infinite; }
|
|
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after { animation: none !important; transition: none !important; }
|
|
.card, h1 .w, .pitch > *, .reveal { opacity: 1 !important; transform: none !important; }
|
|
.looks li img, .cta img, .collage { transform: none !important; }
|
|
.shine { color: var(--ink); background: none; }
|
|
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><span class="w" style="--i:0">Your</span> <em><span class="w" style="--i:1">signature</span> <span class="w" style="--i:2">look</span></em> <span class="w" style="--i:3">starts</span> <span class="w" style="--i:4">here.</span></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="seg" role="radiogroup" aria-label="How should we reach you?">
|
|
<button type="button" role="radio" aria-selected="true" aria-checked="true" data-ch="sms"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="6" y="2" width="12" height="20" rx="3"/><path d="M11 18h2"/></svg>SMS</button>
|
|
<button type="button" role="radio" aria-selected="false" aria-checked="false" data-ch="email"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 6h18v12H3zM3 7l9 6 9-6"/></svg>Email</button>
|
|
</div>
|
|
<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>
|
|
<div class="bar">
|
|
<div class="tel" id="telWrap">
|
|
<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" maxlength="20" />
|
|
</div>
|
|
<label class="sr-only" for="email">Email</label>
|
|
<input id="email" name="email" type="email" autocomplete="email" placeholder="Enter your email" maxlength="120" hidden />
|
|
<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="reel" aria-hidden="true"><div><img src="/photos/habesha-tigray.jpg" alt="" loading="lazy" /><img src="/photos/hero.jpg" alt="" loading="lazy" /><img src="/photos/habesha-harari.jpg" alt="" loading="lazy" /><img src="/photos/habesha-eritrean.jpg" alt="" loading="lazy" /><img src="/photos/habesha-bride.jpg" alt="" loading="lazy" /><img src="/photos/habesha-trad.jpg" alt="" loading="lazy" /><img src="/photos/bridal.jpg" alt="" loading="lazy" /><img src="/photos/glam.jpg" alt="" loading="lazy" /><img src="/photos/foundations.jpg" alt="" loading="lazy" /><img src="/photos/clients.jpg" alt="" loading="lazy" /><img src="/photos/habesha-tigray.jpg" alt="" loading="lazy" /><img src="/photos/hero.jpg" alt="" loading="lazy" /><img src="/photos/habesha-harari.jpg" alt="" loading="lazy" /><img src="/photos/habesha-eritrean.jpg" alt="" loading="lazy" /><img src="/photos/habesha-bride.jpg" alt="" loading="lazy" /><img src="/photos/habesha-trad.jpg" alt="" loading="lazy" /><img src="/photos/bridal.jpg" alt="" loading="lazy" /><img src="/photos/glam.jpg" alt="" loading="lazy" /><img src="/photos/foundations.jpg" alt="" loading="lazy" /><img src="/photos/clients.jpg" alt="" loading="lazy" /></div></div>
|
|
|
|
<div class="wrap">
|
|
<section class="block" id="courses">
|
|
<p class="kicker reveal">At launch</p>
|
|
<h2 class="reveal">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 class="reveal"><img src="/photos/hero.jpg" alt="" loading="lazy" /><div><strong>Makeup foundations</strong><span>Skin tone, base and color</span></div></li>
|
|
<li class="reveal"><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 class="reveal"><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 class="reveal"><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 reveal">Why us</p>
|
|
<h2 class="reveal">Learn the craft, <em>your way</em></h2>
|
|
<div class="why reveal">
|
|
<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 reveal">
|
|
<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 class="foot">
|
|
<div class="foot-card reveal">
|
|
<div class="foot-brand">
|
|
<img src="/brand/sirkul-logo.png" alt="Sirkul Makeup School/Studio" />
|
|
<p>Learn the craft. Keep it for life.</p>
|
|
<p class="founder">Founded by <a href="https://www.tiktok.com/@rezinabrhane" target="_blank" rel="noopener">Rezina Brhane</a></p>
|
|
<a class="btn" href="#join" data-focus>Join the waitlist</a>
|
|
</div>
|
|
<!-- Contact details mirror the app's settings (packages/db/seed/demo-seed.mjs → settings/app). -->
|
|
<div class="foot-contact">
|
|
<h3>Contact us</h3>
|
|
<a href="https://t.me/sirkulmakeup_demo" target="_blank" rel="noopener"><span><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M22 2L11 13M22 2l-7 20-4-9-9-4z"/></svg></span>Message us on Telegram</a>
|
|
<a href="tel:+251911234567"><span><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z"/></svg></span>+251 911 234 567</a>
|
|
<a href="https://www.tiktok.com/@rezinabrhane" target="_blank" rel="noopener"><span><svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M16.6 5.8A4.3 4.3 0 0 1 15.5 3h-3.1v12.4a2.6 2.6 0 1 1-2.6-2.6c.3 0 .5 0 .8.1V9.7a5.7 5.7 0 1 0 4.9 5.7V9.1a7.3 7.3 0 0 0 4.3 1.4V7.4a4.3 4.3 0 0 1-3.2-1.6z"/></svg></span>@rezinabrhane on TikTok</a>
|
|
<a href="mailto:support@sirkul-makeup.example"><span><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 6h18v12H3zM3 7l9 6 9-6"/></svg></span>support@sirkul-makeup.example</a>
|
|
</div>
|
|
</div>
|
|
<div class="foot-bar">
|
|
<span>© <span id="year"></span> Sirkul Makeup School/Studio · All rights reserved</span>
|
|
<details><summary>Photo credits</summary><p><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></p></details>
|
|
</div>
|
|
<p class="powered">Powered by <a class="shine" href="https://yaltopia.com" target="_blank" rel="noopener">Yaltopia Tech</a></p>
|
|
</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(channel === 'sms' ? 'phone' : 'email')?.focus({ preventScroll: true }), 400)));
|
|
|
|
// Scroll reveal, and the hero photos drift up a little as the page scrolls.
|
|
const still = matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
const revealEls = document.querySelectorAll('.reveal');
|
|
if ('IntersectionObserver' in window && !still) {
|
|
document.querySelectorAll('.looks .reveal').forEach((el, k) => el.style.setProperty('--rd', k * 90 + 'ms'));
|
|
const io = new IntersectionObserver((es) => es.forEach((e) => { if (e.isIntersecting) { e.target.classList.add('in'); io.unobserve(e.target); } }), { rootMargin: '0px 0px -10% 0px' });
|
|
revealEls.forEach((el) => io.observe(el));
|
|
const collage = document.querySelector('.collage');
|
|
let ticking = false;
|
|
addEventListener('scroll', () => { if (ticking) return; ticking = true; requestAnimationFrame(() => { collage.style.setProperty('--py', Math.min(scrollY, 900) * -0.12 + 'px'); ticking = false; }); }, { passive: true });
|
|
} else revealEls.forEach((el) => el.classList.add('in'));
|
|
|
|
// SMS (default) or email: one contact is enough, the toggle picks which field shows.
|
|
let channel = 'sms';
|
|
document.querySelectorAll('.seg button').forEach((b) => b.addEventListener('click', () => {
|
|
channel = b.dataset.ch;
|
|
document.querySelectorAll('.seg button').forEach((x) => { const on = x === b; x.setAttribute('aria-selected', on); x.setAttribute('aria-checked', on); });
|
|
$('telWrap').hidden = channel !== 'sms'; $('email').hidden = channel !== 'email';
|
|
err.textContent = ''; ['phone', 'email'].forEach((k) => $(k).removeAttribute('aria-invalid'));
|
|
$(channel === 'sms' ? 'phone' : 'email').focus();
|
|
}));
|
|
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(() => {});
|
|
|
|
const contactError = () => channel === 'sms'
|
|
? (normPhone($('phone').value) ? null : ['phone', cc.value === 'ET' ? 'Please enter a phone number, e.g. 911 234 567.' : 'Please check the phone number for the country you picked.'])
|
|
: (emailOk($('email').value.trim()) ? null : ['email', 'Please enter a valid email.']);
|
|
function check() {
|
|
const name = $('name').value.trim();
|
|
const bad = [];
|
|
if (name.length < 2) bad.push(['name', 'Please enter your name.']);
|
|
const c = contactError(); if (c) bad.push(c);
|
|
['name', 'email', 'phone'].forEach((k) => $(k).setAttribute('aria-invalid', String(bad.some(([b]) => b === k))));
|
|
const email = channel === 'email' ? $('email').value.trim().toLowerCase() : '', phone = channel === 'sms' ? normPhone($('phone').value) : '';
|
|
return bad.length ? { error: bad[0] } : { data: { name, email, phone, channel, locale: navigator.language || 'en', createdAt: new Date().toISOString() } };
|
|
}
|
|
form.addEventListener('input', (e) => { if (e.target.getAttribute('aria-invalid') === 'true') { if (more.hidden) { const c = contactError(); e.target.setAttribute('aria-invalid', String(!!c && c[0] === e.target.id)); } else check(); } });
|
|
form.addEventListener('submit', async (e) => {
|
|
e.preventDefault(); err.textContent = '';
|
|
// Step 1 asks only for the phone or email; step 2 adds the name.
|
|
if (more.hidden) {
|
|
const c = contactError();
|
|
['phone', 'email'].forEach((k) => $(k).setAttribute('aria-invalid', String(!!c && c[0] === k)));
|
|
if (c) { err.textContent = c[1]; $(c[0]).focus(); return; }
|
|
more.hidden = false; btn.textContent = 'Get notified';
|
|
$('fine').textContent = 'Last step: what should we call you?';
|
|
$('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) => (r.data.email && x.email === r.data.email) || (r.data.phone && x.phone === r.data.phone))) 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 ${channel === 'sms' ? 'text' : 'email'} 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>
|