|
| 1 | +import type { Metadata } from "next"; |
| 2 | +import Link from "next/link"; |
| 3 | +import { MarketingNav } from "@/components/marketing-nav"; |
| 4 | +import { Footer } from "@/components/footer"; |
| 5 | +import { Smartphone, Apple, Share2, ImageIcon } from "lucide-react"; |
| 6 | + |
| 7 | +export const metadata: Metadata = { |
| 8 | + title: "shoplit on your phone · shoplit", |
| 9 | + description: "Add products to your shoplit cart in one tap from your phone — share from Nykaa, Myntra, Amazon, Flipkart & AJIO.", |
| 10 | +}; |
| 11 | + |
| 12 | +const androidSteps = [ |
| 13 | + { t: "Install shoplit", b: "Open shoplit.in in Chrome → menu (⋮) → “Add to Home screen”. A shoplit icon lands on your home screen. (You can also tap “Install app” on your dashboard.)" }, |
| 14 | + { t: "Open a product & tap Share", b: "On Nykaa, Myntra, Amazon, Flipkart or AJIO, open the product page and tap the app’s Share button." }, |
| 15 | + { t: "Choose shoplit", b: "Pick shoplit from the share sheet — it opens with the product link and title already filled in." }, |
| 16 | + { t: "Pick a cart & add", b: "Tweak the price or image if you like, choose which cart it goes in, and tap Add. Done." }, |
| 17 | +]; |
| 18 | + |
| 19 | +const iosSteps = [ |
| 20 | + { t: "Add to Home Screen", b: "Open shoplit.in in Safari → tap Share → “Add to Home Screen”. (iPhone doesn’t let apps share into shoplit — Apple limitation — so adding is by paste.)" }, |
| 21 | + { t: "Copy the product link", b: "On the shopping app or site, tap Share → Copy (or copy the page address)." }, |
| 22 | + { t: "Paste into shoplit", b: "Open shoplit, go to Add a product, and paste. shoplit pulls the title from the link automatically." }, |
| 23 | + { t: "Pick a cart & add", b: "Adjust the price/image if needed, choose the cart, and add." }, |
| 24 | +]; |
| 25 | + |
| 26 | +export default function MobileGuidePage() { |
| 27 | + return ( |
| 28 | + <> |
| 29 | + <MarketingNav /> |
| 30 | + <main className="mx-auto max-w-2xl px-4 sm:px-6 py-16"> |
| 31 | + {/* HERO */} |
| 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 | + <Smartphone size={26} /> |
| 38 | + </span> |
| 39 | + <p className="text-sm text-accent uppercase tracking-widest font-medium mb-2">shoplit on your phone</p> |
| 40 | + <h1 className="font-serif text-4xl sm:text-5xl leading-[1.05] mb-3">Add products in one tap</h1> |
| 41 | + <p className="text-muted text-lg leading-relaxed"> |
| 42 | + No desktop, no copy-pasting details. Install shoplit on your phone and add products |
| 43 | + straight from your shopping apps. |
| 44 | + </p> |
| 45 | + </div> |
| 46 | + |
| 47 | + {/* ANDROID */} |
| 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 | + <Smartphone size={18} className="text-accent" /> |
| 51 | + <h2 className="font-serif text-2xl">On Android</h2> |
| 52 | + </div> |
| 53 | + <ol className="space-y-5"> |
| 54 | + {androidSteps.map((s, i) => ( |
| 55 | + <li key={s.t} className="flex gap-4"> |
| 56 | + <span className="grid place-items-center size-7 shrink-0 rounded-full bg-accent text-cream text-sm font-semibold">{i + 1}</span> |
| 57 | + <div> |
| 58 | + <p className="font-medium">{s.t}</p> |
| 59 | + <p className="text-sm text-muted leading-relaxed">{s.b}</p> |
| 60 | + </div> |
| 61 | + </li> |
| 62 | + ))} |
| 63 | + </ol> |
| 64 | + <div className="mt-6 inline-flex items-center gap-2 text-sm text-muted"> |
| 65 | + <Share2 size={15} className="text-accent" /> |
| 66 | + Look for shoplit in the share sheet after installing. |
| 67 | + </div> |
| 68 | + </section> |
| 69 | + |
| 70 | + {/* iOS */} |
| 71 | + <section className="rounded-2xl border border-rule bg-paper p-6 sm:p-8 mt-6"> |
| 72 | + <div className="flex items-center gap-2 mb-4"> |
| 73 | + <Apple size={18} className="text-accent" /> |
| 74 | + <h2 className="font-serif text-2xl">On iPhone</h2> |
| 75 | + </div> |
| 76 | + <ol className="space-y-5"> |
| 77 | + {iosSteps.map((s, i) => ( |
| 78 | + <li key={s.t} className="flex gap-4"> |
| 79 | + <span className="grid place-items-center size-7 shrink-0 rounded-full bg-ink text-cream text-sm font-semibold">{i + 1}</span> |
| 80 | + <div> |
| 81 | + <p className="font-medium">{s.t}</p> |
| 82 | + <p className="text-sm text-muted leading-relaxed">{s.b}</p> |
| 83 | + </div> |
| 84 | + </li> |
| 85 | + ))} |
| 86 | + </ol> |
| 87 | + </section> |
| 88 | + |
| 89 | + {/* IMAGE NOTE */} |
| 90 | + <div className="mt-6 rounded-2xl border border-rule bg-cream p-5 flex items-start gap-3"> |
| 91 | + <ImageIcon size={18} className="text-accent mt-0.5 shrink-0" /> |
| 92 | + <p className="text-sm text-muted leading-relaxed"> |
| 93 | + <strong className="text-ink">About images:</strong> on mobile, paste an image URL if you have one — |
| 94 | + otherwise leave it blank and your cart shows a clean placeholder you can update anytime from the editor. |
| 95 | + </p> |
| 96 | + </div> |
| 97 | + |
| 98 | + {/* CTA */} |
| 99 | + <div className="mt-10 flex flex-col sm:flex-row items-center justify-center gap-3"> |
| 100 | + <Link |
| 101 | + href="/add" |
| 102 | + className="inline-flex items-center gap-2 rounded-full bg-ink text-cream px-6 py-3 font-medium hover:opacity-90 transition-opacity" |
| 103 | + > |
| 104 | + Add a product by link → |
| 105 | + </Link> |
| 106 | + <Link href="/login" className="text-ink underline-offset-4 hover:underline font-medium"> |
| 107 | + No account yet? Create one free |
| 108 | + </Link> |
| 109 | + </div> |
| 110 | + </main> |
| 111 | + <Footer /> |
| 112 | + </> |
| 113 | + ); |
| 114 | +} |
0 commit comments