|
| 1 | +import type { Metadata } from "next"; |
| 2 | +import Link from "next/link"; |
| 3 | +import { NavBar } from "@/components/nav-bar"; |
| 4 | +import { Footer } from "@/components/footer"; |
| 5 | +import { Download, Puzzle, Monitor, Smartphone } from "lucide-react"; |
| 6 | + |
| 7 | +export const metadata: Metadata = { |
| 8 | + title: "Get the shoplit extension (beta) · shoplit", |
| 9 | + description: "Add products to your shoplit cart in one click from Amazon, Myntra, Nykaa, Flipkart & AJIO.", |
| 10 | +}; |
| 11 | + |
| 12 | +const desktopSteps = [ |
| 13 | + { t: "Download & unzip", b: "Download the file below and unzip it — you'll get a folder called shoplit-extension." }, |
| 14 | + { t: "Open Chrome extensions", b: "Go to chrome://extensions and turn on Developer mode (top-right toggle)." }, |
| 15 | + { t: "Load it", b: "Click “Load unpacked” and select the unzipped shoplit-extension folder. Pin the shoplit icon." }, |
| 16 | + { t: "Connect your account", b: "Open the connect page, copy the code shown there, and paste it into the extension's popup → Connect." }, |
| 17 | + { t: "Start adding", b: "Open any product on Amazon, Myntra, Nykaa, Flipkart or AJIO and hit “+ Add to shoplit”." }, |
| 18 | +]; |
| 19 | + |
| 20 | +const mobileSteps = [ |
| 21 | + { t: "Open the product in your shopping app", b: "On Nykaa, Myntra, Amazon, Flipkart or AJIO, open the product page." }, |
| 22 | + { t: "Tap Share → Copy", b: "Use the app's Share button and copy the link (or the whole “Check out this product…” text)." }, |
| 23 | + { t: "Paste into shoplit", b: "On shoplit.in open your cart, and in “Add a product” paste it. shoplit pulls the title automatically." }, |
| 24 | + { t: "Add", b: "Tweak the price/image if needed, pick the cart, and add. Done — no extension required." }, |
| 25 | +]; |
| 26 | + |
| 27 | +export default function GetExtensionPage() { |
| 28 | + return ( |
| 29 | + <> |
| 30 | + <NavBar variant="marketing" /> |
| 31 | + <main className="mx-auto max-w-2xl px-4 sm:px-6 py-16"> |
| 32 | + <div className="text-center mb-10"> |
| 33 | + <span |
| 34 | + className="inline-grid place-items-center size-14 rounded-2xl text-accent mb-4" |
| 35 | + style={{ backgroundColor: "color-mix(in srgb, var(--accent) 12%, transparent)" }} |
| 36 | + > |
| 37 | + <Puzzle size={26} /> |
| 38 | + </span> |
| 39 | + <p className="text-sm text-accent uppercase tracking-widest font-medium mb-2">Browser extension · Beta</p> |
| 40 | + <h1 className="font-serif text-4xl sm:text-5xl leading-[1.05] mb-3">Add to shoplit in one click</h1> |
| 41 | + <p className="text-muted text-lg leading-relaxed"> |
| 42 | + Grab products straight from the product page — no copy-pasting links. It's pending |
| 43 | + Chrome Web Store review; until then, set it up manually (a minute on desktop). |
| 44 | + </p> |
| 45 | + </div> |
| 46 | + |
| 47 | + {/* DESKTOP */} |
| 48 | + <section className="rounded-2xl border border-rule bg-cream p-6 sm:p-8"> |
| 49 | + <div className="flex items-center gap-2 mb-4"> |
| 50 | + <Monitor size={18} className="text-accent" /> |
| 51 | + <h2 className="font-serif text-2xl">On desktop (Chrome, Edge, Brave)</h2> |
| 52 | + </div> |
| 53 | + <a |
| 54 | + href="/shoplit-extension.zip" |
| 55 | + download |
| 56 | + className="inline-flex items-center gap-2 rounded-full bg-ink text-cream px-6 py-3 font-medium hover:opacity-90 transition-opacity" |
| 57 | + > |
| 58 | + <Download size={18} /> Download for Chrome |
| 59 | + </a> |
| 60 | + <ol className="mt-7 space-y-5"> |
| 61 | + {desktopSteps.map((s, i) => ( |
| 62 | + <li key={s.t} className="flex gap-4"> |
| 63 | + <span className="grid place-items-center size-7 shrink-0 rounded-full bg-accent text-cream text-sm font-semibold">{i + 1}</span> |
| 64 | + <div> |
| 65 | + <p className="font-medium">{s.t}</p> |
| 66 | + <p className="text-sm text-muted leading-relaxed">{s.b}</p> |
| 67 | + </div> |
| 68 | + </li> |
| 69 | + ))} |
| 70 | + </ol> |
| 71 | + <div className="mt-7 pt-6 border-t border-rule flex flex-wrap items-center gap-x-5 gap-y-2 text-sm"> |
| 72 | + <Link href="/connect-extension" className="text-accent font-medium underline underline-offset-4 hover:opacity-80"> |
| 73 | + Open the connect page → |
| 74 | + </Link> |
| 75 | + <span className="text-muted">No account yet? <Link href="/login" className="text-ink hover:underline underline-offset-4">Create one free</Link></span> |
| 76 | + </div> |
| 77 | + </section> |
| 78 | + |
| 79 | + {/* MOBILE */} |
| 80 | + <section className="rounded-2xl border border-rule bg-paper p-6 sm:p-8 mt-6"> |
| 81 | + <div className="flex items-center gap-2 mb-3"> |
| 82 | + <Smartphone size={18} className="text-accent" /> |
| 83 | + <h2 className="font-serif text-2xl">On mobile</h2> |
| 84 | + </div> |
| 85 | + <p className="text-sm text-muted leading-relaxed mb-5"> |
| 86 | + Heads up: <strong className="text-ink">Chrome on phones doesn't support extensions</strong> — that's |
| 87 | + an Android/iOS limitation, not a shoplit one. But you don't need it: add products by |
| 88 | + sharing the link into shoplit. |
| 89 | + </p> |
| 90 | + <ol className="space-y-5"> |
| 91 | + {mobileSteps.map((s, i) => ( |
| 92 | + <li key={s.t} className="flex gap-4"> |
| 93 | + <span className="grid place-items-center size-7 shrink-0 rounded-full bg-ink text-cream text-sm font-semibold">{i + 1}</span> |
| 94 | + <div> |
| 95 | + <p className="font-medium">{s.t}</p> |
| 96 | + <p className="text-sm text-muted leading-relaxed">{s.b}</p> |
| 97 | + </div> |
| 98 | + </li> |
| 99 | + ))} |
| 100 | + </ol> |
| 101 | + <p className="text-xs text-muted mt-6 leading-relaxed"> |
| 102 | + Power users on Android: <strong className="text-ink">Kiwi Browser</strong> does support Chrome |
| 103 | + extensions — you can load the same downloaded folder there via its Extensions menu. |
| 104 | + </p> |
| 105 | + </section> |
| 106 | + |
| 107 | + <p className="text-center text-xs text-muted mt-6"> |
| 108 | + Once it's approved on the Chrome Web Store, desktop install becomes a single click — we'll update this page. |
| 109 | + </p> |
| 110 | + </main> |
| 111 | + <Footer /> |
| 112 | + </> |
| 113 | + ); |
| 114 | +} |
0 commit comments