From 53a9de007ec51f06c59e87ed8ba4ed4e5e022423 Mon Sep 17 00:00:00 2001 From: kirukib Date: Mon, 9 Nov 2026 06:46:38 +0300 Subject: [PATCH] Hero heartbeat line, 500+ catalog strip, special order requests - Animated ECG trace with a travelling pulse across the hero - Catalog strip under the hero: 500+ products and a scrolling category list - Special orders section and form; Apps Script writes them to a "Special orders" tab and emails NOTIFY, WhatsApp fallback until ENDPOINT is set - Nav, hero nudge and FAQ point to special orders Co-Authored-By: Claude Opus 5.5 --- README.md | 4 ++ index.html | 119 ++++++++++++++++++++++++++++++++-- tools/waitlist-apps-script.gs | 18 +++++ 3 files changed, 135 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 03179b9..c7ab91c 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,10 @@ Deploy it to any static host (Vercel, Netlify, nginx) with the repo root as the The form takes a phone number (SMS, the default) or an email, then asks for a name. Signups go to a Google Sheet through `tools/waitlist-apps-script.gs`, which also emails a notification for each one. Until `ENDPOINT` in `index.html` is set, signups are only saved in the visitor's browser. +## Special orders + +The special order form (item, quantity, name, phone, notes) posts to the same Apps Script endpoint with `type: 'special'`, which writes to a "Special orders" tab and emails `NOTIFY`. Until `ENDPOINT` is set, the request opens as a pre-filled WhatsApp message to `+251 930 099 850`. Redeploy the Apps Script after pulling this change. + ## B2B onboarding Institutions reach Gishen by calling `+251 930 099 850` or emailing `b2b@gishenpharmacy.org`. The email link comes with a pre-filled template. Setting up the inbox is tracked in [TASKS.md](TASKS.md). diff --git a/index.html b/index.html index 5ec4013..92e5a3a 100644 --- a/index.html +++ b/index.html @@ -87,6 +87,14 @@ @keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } } @keyframes drift { from { translate: 0 0; } to { translate: 0 -12px; } } + /* heartbeat line: a dim trace with a bright pulse running along it */ + .ecg { position: absolute; z-index: -1; left: 0; right: 0; bottom: 5%; width: 100%; height: 90px; pointer-events: none; color: var(--lime); } + .ecg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; } + .ecg .trace { opacity: .14; } + .ecg .pulse { stroke-dasharray: 9 91; animation: beat 4.5s linear infinite; filter: drop-shadow(0 0 6px rgba(168, 199, 58, .9)); } + @keyframes beat { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } } + @media (max-width: 860px) { .ecg { bottom: 4%; height: 60px; } } + .pitch { max-width: 720px; text-align: center; display: flex; flex-direction: column; align-items: center; } .proof { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(11, 15, 10, .6); backdrop-filter: blur(8px); font-size: 14px; font-weight: 500; color: var(--ink-2); } .proof .eth { color: var(--lime); font-weight: 600; } @@ -153,6 +161,38 @@ .collage { gap: 8px; } .pack { width: 92px; } .c4 { width: 112px; } } + /* ---------- catalog marquee ---------- */ + .catalog { display: flex; align-items: center; border-top: 1px solid var(--line); background: var(--bg); overflow: hidden; } + .catalog .count { flex: none; display: flex; align-items: baseline; gap: 10px; padding: 18px clamp(16px, 4vw, 48px); border-right: 1px solid var(--line); background: var(--raise); position: relative; z-index: 1; } + .catalog .count b { font-size: 28px; font-weight: 800; letter-spacing: -.04em; color: var(--lime); } + .catalog .count span { font-size: 14px; color: var(--ink-2); white-space: nowrap; } + .marquee { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); } + .marquee ul { display: flex; gap: 10px; width: max-content; margin: 0; padding: 0 10px; list-style: none; animation: slide 60s linear infinite; } + .marquee:hover ul { animation-play-state: paused; } + .marquee li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--field); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; } + .marquee li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); } + @keyframes slide { to { transform: translateX(-50%); } } + @media (max-width: 600px) { .catalog .count span { display: none; } } + + /* ---------- special orders ---------- */ + .special { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; } + .steps3 { list-style: none; counter-reset: s; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; } + .steps3 li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); } + .steps3 li::before { content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(168, 199, 58, .14); color: var(--lime); font-weight: 700; font-size: 14px; } + .steps3 b { display: block; color: var(--ink); } + .sform { padding: clamp(20px, 3vw, 32px); border-radius: 28px; background: var(--raise); border: 1px solid var(--line); display: grid; gap: 14px; } + .sform label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); } + .sform label small { font-weight: 500; color: var(--ink-3); } + .sform input, .sform textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--field); font: inherit; font-size: 16px; color: var(--ink); outline: none; resize: vertical; } + .sform input:focus, .sform textarea:focus { border-color: var(--line-2); box-shadow: 0 0 0 4px rgba(168, 199, 58, .1); } + .sform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } + .sform .btn { width: 100%; } + .sform .fine, .sform .err { margin: 0; } + .sform .alt { text-align: center; font-size: 14px; color: var(--ink-3); margin: 0; } + .sform .alt a { color: var(--ink-2); font-weight: 600; text-underline-offset: 3px; } + @media (max-width: 860px) { .special { grid-template-columns: 1fr; } } + @media (max-width: 460px) { .sform .two { grid-template-columns: 1fr; } } + /* ---------- stats ---------- */ .stats { border-block: 1px solid var(--line); background: var(--raise); } .stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); } @@ -248,7 +288,7 @@ .legal a { color: var(--lime); } @media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } } - @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition: none !important; } .card { opacity: 1; } .reveal { opacity: 1; transform: none; } } + @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition: none !important; } .marquee ul { animation: none; flex-wrap: wrap; width: auto; } .ecg .pulse { display: none; } .card { opacity: 1; } .reveal { opacity: 1; transform: none; } } @@ -257,6 +297,7 @@ Gishen Pharmacy — ግሸን መድሃኒት ቤት