diff --git a/README.md b/README.md index c7ab91c..0341a4d 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,6 @@ 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). +Institutions sign up through the form in the B2B section (institution, type, contact person, phone, optional email and usual orders). It posts to the same Apps Script endpoint with `type: 'b2b'`, which adds a row to an "Institutions" tab and emails `NOTIFY`. Until `ENDPOINT` is set, the form opens a pre-filled email to `b2b@gishenpharmacy.org` instead. Institutions can also call `+251 930 099 850`. Setting up the inbox is tracked in [TASKS.md](TASKS.md). diff --git a/index.html b/index.html index 92e5a3a..a4349b0 100644 --- a/index.html +++ b/index.html @@ -174,25 +174,6 @@ @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); } @@ -220,6 +201,11 @@ .t-lead h3 { font-size: clamp(26px, 3vw, 36px); max-width: 16ch; } .t-a { grid-column: span 2; } .t-b { grid-column: span 2; } .t-c { grid-column: span 2; } .t-d { grid-column: span 2; } .t-e { grid-column: span 2; } + .t-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; } + .t-wide h3 { margin: 14px 0 0; } + .t-wide p { max-width: 52ch; } + .t-wide .chip-row { justify-content: flex-end; max-width: 420px; } + @media (max-width: 760px) { .t-wide { grid-template-columns: 1fr; } .t-wide .chip-row { justify-content: flex-start; } } .shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; } .shelf div { aspect-ratio: 1; border-radius: 16px; background: #fff; padding: 12%; transition: transform 400ms var(--ease-out); } .shelf div:nth-child(even) { transform: translateY(18px); } @@ -232,7 +218,7 @@ .chip img { height: 18px; width: auto; } .t-lime .chip { border-color: rgba(16, 20, 16, .25); color: var(--lime-ink); } .icon-lg { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(168, 199, 58, .14); color: var(--lime); } - @media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .t-lead { grid-column: span 2; grid-row: auto; } .t-a, .t-b, .t-c, .t-d, .t-e { grid-column: span 1; } } + @media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .t-lead { grid-column: span 2; grid-row: auto; } .t-a, .t-b, .t-c, .t-d, .t-e { grid-column: span 1; } .t-wide { grid-column: 1 / -1; } } @media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .t-lead, .t-a, .t-b, .t-c, .t-d, .t-e { grid-column: auto; } .shelf { grid-template-columns: repeat(4, 1fr); gap: 8px; } } /* ---------- B2B ---------- */ @@ -244,12 +230,23 @@ .b2b ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; } .b2b li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; font-weight: 500; } .b2b li svg { flex: none; margin-top: 2px; } - .reach { position: relative; z-index: 1; align-self: center; display: grid; gap: 12px; } - .reach a { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 22px; background: var(--lime-ink); color: var(--ink); text-decoration: none; transition: transform 200ms var(--ease-out), background 200ms; } + .reach { position: relative; z-index: 1; display: grid; gap: 10px; } + .bform { padding: clamp(20px, 3vw, 28px); border-radius: 24px; background: var(--lime-ink); color: var(--ink); display: grid; gap: 12px; } + .bform h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.01em; } + .bform label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); } + .bform label small { display: inline; font-size: inherit; font-weight: 500; color: var(--ink-3); } + .bform input, .bform select, .bform textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); font: inherit; font-size: 16px; color: var(--ink); outline: none; resize: vertical; } + .bform input:focus, .bform select:focus, .bform textarea:focus { border-color: var(--line-2); box-shadow: 0 0 0 4px rgba(168, 199, 58, .12); } + .bform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } + .bform .btn { width: 100%; margin-top: 4px; } + .bform .err { margin: 0; } + @media (max-width: 460px) { .bform .two { grid-template-columns: 1fr; } } + .reach .alt { display: grid; gap: 10px; } + .reach a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--lime-ink); color: var(--ink); text-decoration: none; transition: transform 200ms var(--ease-out), background 200ms; } .reach a:hover { transform: translateY(-2px); background: #1A2218; } - .reach .ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--lime); color: var(--lime-ink); } + .reach .ic { flex: none; width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; background: var(--lime); color: var(--lime-ink); } .reach small { display: block; color: var(--ink-3); font-size: 13px; font-weight: 500; } - .reach strong { display: block; font-size: clamp(17px, 1.8vw, 21px); letter-spacing: -.01em; word-break: break-word; } + .reach strong { display: block; font-size: 15px; overflow-wrap: anywhere; letter-spacing: -.01em; word-break: break-word; } .reach .arrow { margin-left: auto; color: var(--lime); flex: none; } .reach p { margin: 4px 4px 0; font-size: 14px; color: #2B3520; } @media (max-width: 860px) { .b2b { grid-template-columns: 1fr; } } @@ -297,7 +294,6 @@ Gishen Pharmacy — ግሸን መድሃኒት ቤት