|
| 1 | +import { Header } from "@/components/Header"; |
| 2 | +import { Footer } from "@/components/Footer"; |
| 3 | +import { Breadcrumb } from "@/components/Breadcrumb"; |
| 4 | +import { PageSection } from "@/components/PageSection"; |
| 5 | +import { FlowSteps } from "@/components/ExampleFlow"; |
| 6 | +import { UseCaseTabs } from "@/components/UseCaseTabs"; |
| 7 | +import { ContactForm } from "@/components/ContactForm"; |
| 8 | +import { faqsFor, type Solution } from "@/lib/solutions"; |
| 9 | +import { BOOKING_LABEL, BOOKING_URL, SITE_URL } from "@/lib/site"; |
| 10 | + |
| 11 | +const card = "rounded-card border border-line bg-paper p-6 sm:p-8"; |
| 12 | +const TAGLINE = "Every quote request, from every inbox, drafted into a quote you approve."; |
| 13 | + |
| 14 | +export function QuotelinePage({ s }: { s: Solution }) { |
| 15 | + const faqs = faqsFor(s); |
| 16 | + const jsonLd = [ |
| 17 | + { |
| 18 | + "@context": "https://schema.org", |
| 19 | + "@type": "FAQPage", |
| 20 | + mainEntity: faqs.map((f) => ({ |
| 21 | + "@type": "Question", |
| 22 | + name: f.q, |
| 23 | + acceptedAnswer: { "@type": "Answer", text: f.a }, |
| 24 | + })), |
| 25 | + }, |
| 26 | + { |
| 27 | + "@context": "https://schema.org", |
| 28 | + "@type": "BreadcrumbList", |
| 29 | + itemListElement: [ |
| 30 | + { "@type": "ListItem", position: 1, name: "Home", item: `${SITE_URL}/` }, |
| 31 | + { "@type": "ListItem", position: 2, name: "Solutions", item: `${SITE_URL}/solutions/` }, |
| 32 | + { "@type": "ListItem", position: 3, name: s.name, item: `${SITE_URL}/solutions/${s.slug}/` }, |
| 33 | + ], |
| 34 | + }, |
| 35 | + ]; |
| 36 | + |
| 37 | + return ( |
| 38 | + <> |
| 39 | + <Header /> |
| 40 | + <main id="main"> |
| 41 | + {/* 1. Hero */} |
| 42 | + <section className="bg-canvas"> |
| 43 | + <div className="mx-auto max-w-6xl px-4 pb-16 pt-8 sm:px-6 md:pb-20"> |
| 44 | + <Breadcrumb |
| 45 | + items={[ |
| 46 | + { label: "Home", href: "/" }, |
| 47 | + { label: "Solutions", href: "/solutions/" }, |
| 48 | + { label: s.name }, |
| 49 | + ]} |
| 50 | + /> |
| 51 | + <p className="mt-10 flex flex-wrap items-center gap-x-3 gap-y-1"> |
| 52 | + <span className="rounded-full bg-sprout px-3 py-1 text-sm font-medium text-forest"> |
| 53 | + {s.name} |
| 54 | + </span> |
| 55 | + <span className="text-sm text-ink">for custom-order businesses</span> |
| 56 | + </p> |
| 57 | + <h1 className="h1 mt-5 max-w-3xl">{s.headline}</h1> |
| 58 | + <p className="mt-5 max-w-2xl text-lg text-ink"> |
| 59 | + Quoteline gathers requests from your email, web form and messages, and drafts the |
| 60 | + quote for you to approve. |
| 61 | + </p> |
| 62 | + <div className="mt-8 flex flex-col gap-3 sm:flex-row"> |
| 63 | + <a href="#contact" className="btn btn-primary"> |
| 64 | + Talk to our team |
| 65 | + </a> |
| 66 | + <a href="#contact" className="btn btn-ghost"> |
| 67 | + Become a design partner |
| 68 | + </a> |
| 69 | + </div> |
| 70 | + </div> |
| 71 | + </section> |
| 72 | + |
| 73 | + {/* 2. In your words */} |
| 74 | + <PageSection> |
| 75 | + <h2 className="h2">In your words</h2> |
| 76 | + <ul className="mt-8 grid gap-4 md:grid-cols-3"> |
| 77 | + {s.problems.map((p) => ( |
| 78 | + <li key={p} className={card}> |
| 79 | + <p className="font-display text-xl leading-snug">“{p}”</p> |
| 80 | + </li> |
| 81 | + ))} |
| 82 | + </ul> |
| 83 | + </PageSection> |
| 84 | + |
| 85 | + {/* 3 + 4. What we build + flow */} |
| 86 | + <PageSection tone="canvas"> |
| 87 | + <h2 className="h2">What we build</h2> |
| 88 | + <p className="mt-4 max-w-3xl font-display text-2xl leading-snug">{TAGLINE}</p> |
| 89 | + <p className="mt-4 max-w-3xl text-lg text-ink">{s.build}</p> |
| 90 | + <div className="mt-10"> |
| 91 | + <p className="text-ink">{s.flowIntro}</p> |
| 92 | + <div className="mt-4"> |
| 93 | + <FlowSteps steps={s.flow} /> |
| 94 | + </div> |
| 95 | + </div> |
| 96 | + </PageSection> |
| 97 | + |
| 98 | + {/* 5 + 6. Who it is for + visuals */} |
| 99 | + <PageSection> |
| 100 | + <h2 className="h2">Who it is for</h2> |
| 101 | + <p className="mt-4 max-w-3xl text-lg text-ink"> |
| 102 | + Any small business that answers requests for custom quotes. Here is how a request could |
| 103 | + look in three kinds of business. |
| 104 | + </p> |
| 105 | + <div className="mt-8"> |
| 106 | + <UseCaseTabs /> |
| 107 | + </div> |
| 108 | + </PageSection> |
| 109 | + |
| 110 | + {/* 7. How it works + timeline */} |
| 111 | + <PageSection tone="canvas"> |
| 112 | + <h2 className="h2">How it works</h2> |
| 113 | + <ol className="mt-8 grid gap-4 md:grid-cols-3"> |
| 114 | + {s.steps.map((step, i) => ( |
| 115 | + <li key={step} className={card}> |
| 116 | + <span className="flex h-9 w-9 items-center justify-center rounded-full bg-forest text-sm font-medium text-white"> |
| 117 | + {i + 1} |
| 118 | + </span> |
| 119 | + <p className="mt-4 text-ink">{step}</p> |
| 120 | + </li> |
| 121 | + ))} |
| 122 | + </ol> |
| 123 | + <div className="mt-6 rounded-card bg-sprout px-6 py-4 text-forest"> |
| 124 | + <span className="font-medium">Typical timeline: </span> |
| 125 | + {s.timeline} |
| 126 | + </div> |
| 127 | + </PageSection> |
| 128 | + |
| 129 | + {/* 8. What we need */} |
| 130 | + <PageSection> |
| 131 | + <h2 className="h2">What we need from you</h2> |
| 132 | + <ul className="mt-8 grid gap-3 sm:grid-cols-2"> |
| 133 | + {s.need.map((n) => ( |
| 134 | + <li key={n} className="flex items-start gap-3 rounded-card border border-line bg-paper px-5 py-4"> |
| 135 | + <span aria-hidden="true" className="mt-2 h-2.5 w-2.5 shrink-0 rounded-full bg-leaf" /> |
| 136 | + <span>{n}</span> |
| 137 | + </li> |
| 138 | + ))} |
| 139 | + </ul> |
| 140 | + </PageSection> |
| 141 | + |
| 142 | + {/* 9. FAQ */} |
| 143 | + <PageSection tone="canvas"> |
| 144 | + <h2 className="h2">Questions</h2> |
| 145 | + <div className="mt-8 max-w-3xl divide-y divide-line border-y border-line"> |
| 146 | + {faqs.map((f) => ( |
| 147 | + <details key={f.q} className="group py-5"> |
| 148 | + <summary className="flex cursor-pointer items-center justify-between gap-4 text-lg font-medium"> |
| 149 | + {f.q} |
| 150 | + <span |
| 151 | + aria-hidden="true" |
| 152 | + className="text-2xl leading-none text-forest transition-transform group-open:rotate-45" |
| 153 | + > |
| 154 | + + |
| 155 | + </span> |
| 156 | + </summary> |
| 157 | + <p className="mt-3 text-ink">{f.a}</p> |
| 158 | + </details> |
| 159 | + ))} |
| 160 | + </div> |
| 161 | + </PageSection> |
| 162 | + |
| 163 | + {/* 10. CTA block + form */} |
| 164 | + <PageSection id="contact"> |
| 165 | + <div className="mx-auto max-w-2xl rounded-card bg-sprout p-6 text-left sm:p-8"> |
| 166 | + <h2 className="h2 text-forest">{s.ctaLine}</h2> |
| 167 | + <p className="mt-3 text-[#2b3a2e]"> |
| 168 | + We are taking a small number of design partners. You get a pilot on your own requests |
| 169 | + at a reduced fixed price, and we shape the product around how you quote. |
| 170 | + </p> |
| 171 | + {BOOKING_URL && ( |
| 172 | + <a |
| 173 | + href={BOOKING_URL} |
| 174 | + target="_blank" |
| 175 | + rel="noopener noreferrer" |
| 176 | + className="btn btn-primary mt-6" |
| 177 | + > |
| 178 | + {BOOKING_LABEL} |
| 179 | + </a> |
| 180 | + )} |
| 181 | + </div> |
| 182 | + <div className="mx-auto mt-6 max-w-2xl rounded-card border border-line bg-paper p-6 sm:p-8"> |
| 183 | + <ContactForm topic={s.slug} processField /> |
| 184 | + </div> |
| 185 | + </PageSection> |
| 186 | + </main> |
| 187 | + <Footer /> |
| 188 | + {jsonLd.map((d, i) => ( |
| 189 | + <script key={i} type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(d) }} /> |
| 190 | + ))} |
| 191 | + </> |
| 192 | + ); |
| 193 | +} |
0 commit comments