green-hi

byFun n Gyan

hi

No preview

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirements Document for Hi

1. Introduction

Swarna Mahal is a heritage gold and silver jewellery shop in West Bengal, India. This document specifies a complete, production-ready, award-quality public website with an admin panel for the shop. The product must feel like a hand-crafted ₹2 lakh agency project — not a template, not AI-generated. Its audience is families and brides browsing on phones, who need to feel trust, shuddhota and slow craft rather than a discount-shop experience, and a non-technical shop owner who must run the shop's digital presence from a phone.

The public site presents the shop's collections, live gold and silver rates, craft story, bridal selection, savings scheme, gallery and contact details in English and Bengali, and routes enquiries to WhatsApp, phone calls and a protected enquiry form. The admin panel at /admin lets the Owner and Staff set daily rates, manage products and content, and work an enquiries inbox.

2. System Overview

Page 1 of 28

2a. Product Interpretation and Delivery Boundary

The product is a single Cloudflare-native web application: a public, mobile-first, bilingual (EN/বাংলা) jewellery site plus a role-restricted admin panel. All public pages are anonymously reachable; no shopper account exists. The wishlist is deliberately client-side only, stored in localStorage, and never becomes server-owned shopper state.

Admin access is application-owned identity. The Owner and Staff authenticate through a dedicated Login surface (anonymous entry) and then work inside the protected /admin area. Sessions are HttpOnly, Secure, SameSite cookies; passwords are hashed with PBKDF2/Argon2-WASM; login and the public enquiry form are protected by Turnstile and rate limiting. An optional Cloudflare Access layer may sit in front of /admin. The Owner and Staff accounts must exist before first login (provisioned at deployment).

Content ownership is split cleanly: the shop owns all product, rate, content and enquiry data through the admin panel; shoppers own only their local wishlist and their outbound WhatsApp/phone contact. WhatsApp, telephony, maps and email delivery are provider/external surfaces — the site composes prefilled messages and links but does not host those conversations.

Delivery is Cloudflare Pages with Workers/Pages Functions on the Workers runtime (no Node-only or native packages), D1 (SQLite) with migrations and seed data, R2 for images with Cloudflare Images/CDN resizing, KV/Cache API for rates and public lists, Turnstile, WAF rate limits, secrets via Wrangler, and GitHub → Cloudflare Pages CI with preview and production environments. The provisioned scaffold (shared FastAPI backend, MariaDB, React frontend, Redis) is the runtime inventory for this build; feature APIs are added to the shared backend rather than new services, and Redis serves the accepted shared caching/coordination need alongside the Cloudflare KV/Cache layer.

Page 2 of 28

Removed from scope

  • Purple/blue gradients (also: glassmorphism blobs)
  • Generic 3-column icon cards (also: emoji icons)
  • Stock "Welcome to our website" copy (also: Lorem Ipsum)
  • Centered-everything hero (also: identical rounded-card grids repeated down the page)

2c. Page Content and Component Coverage

Page 3 of 28

Home

  • Information/state: cinematic hero (macro gold necklace bleeding off the right edge, ivory Cormorant headline stacked left, gold rate dial bottom-left with live 22K/24K figures), live rate ticker (Gold 22K, Gold 24K, Silver per gram with tick-up/down flash), brand statement, pinned craft story (raw gold → finished jewellery), featured collections horizontal rail, bridal spotlight, hallmark & trust strip (BIS Hallmark, transparent making charges, buyback/exchange), editorial testimonials, gold savings scheme teaser, visit-store block with map, WhatsApp CTA, category marquee, animated counters (years of trust, customers, designs).
  • Primary actions: See collections; open a featured collection; open bridal spotlight; open scheme teaser; open visit-store map; WhatsApp CTA.
  • Supporting actions: EN/বাংলা toggle; wishlist entry points on product cards; floating WhatsApp button; sticky mobile bottom bar (Call / WhatsApp / Directions).
  • Domain entities: Rate (22K, 24K, silver), Collection, Product (featured), Testimonial, Scheme, ShopInfo, Banner/Offer.
  • Component responsibilities: Preloader (gold logo draw-on → curtain reveal); Hero (parallax media, masked headline reveal, canvas gold sparkle); RateDial (needle sweep, count-up); RateTicker (flash on change); CraftStory (pinned ScrollTrigger steps, alpona line art draw-in); CollectionRail (horizontal scroll with gold hairline dividers); TrustStrip; TestimonialEditorial; SchemeTeaser; VisitStore (map embed); Marquee; Counters.
  • States: loading (skeleton for rates and featured products); empty (no featured products → rail hidden gracefully, no broken layout); success (rates and products render); error (rate fetch failure → last-known cached values with a quiet retry); recovery (retry on reconnect); reduced-motion (static stacked arrangement, no pinned scroll).
Page 4 of 28

Collections

  • Information/state: product grid across Gold, Silver, Bridal, Daily Wear, Rings, Necklaces, Earrings, Bangles, Chains, Pooja Items; active filter chips (metal, purity, category, weight, occasion); sort control; wishlist state from localStorage.
  • Primary actions: apply/clear filters; sort; open product detail; add/remove wishlist item.
  • Supporting actions: EN/বাংলা toggle; floating WhatsApp; sticky mobile bar.
  • Domain entities: Product, Category, Metal, Purity, Weight, Occasion, WishlistItem (local).
  • Component responsibilities: FilterPanel (metal, purity, category, weight range, occasion); SortControl; AnimatedGrid (filter/sort transitions); ProductCard (ruled spec rows: purity, gross weight, making charge; hover zoom with slight tilt; cursor changes to "View"); WishlistToggle; SkeletonGrid.
  • States: loading (skeleton loaders); empty (no products match filters → clear-filters prompt); success (animated grid); error (fetch failure → retry); recovery (filters preserved on retry).
Page 5 of 28

Product detail

  • Information/state: zoomable gallery; specs (metal, purity, gross weight, net weight, making charge); estimated price breakdown (rate × weight + making + GST); related pieces.
  • Primary actions: zoom gallery; "Enquire on WhatsApp" (prefilled with product name and link); "Call now"; open related piece; add/remove wishlist.
  • Supporting actions: EN/বাংলা toggle; floating WhatsApp; sticky mobile bar.
  • Domain entities: Product, ProductImage, Rate, PriceBreakdown, RelatedProduct.
  • Component responsibilities: ZoomGallery; SpecTable (ruled rows); PriceBreakdown (rate × weight + making + GST, labelled estimate); WhatsAppEnquireButton (prefilled message); CallNowButton; RelatedRail; WishlistToggle.
  • States: loading (skeleton gallery and specs); empty (product not found → designed not-found treatment with link back to Collections); success; error (rate unavailable → breakdown shows estimate unavailable with retry); recovery.
Page 6 of 28

Gold Rate

  • Information/state: today's Gold 22K, Gold 24K and Silver per gram; last 7/30-day chart from admin-entered history; price estimator calculator.
  • Primary actions: switch 7/30-day range; enter weight/purity in estimator and read estimate.
  • Supporting actions: EN/বাংলা toggle; floating WhatsApp; sticky mobile bar.
  • Domain entities: Rate, RateHistory, EstimatorInput.
  • Component responsibilities: RateDial/RateCards; HistoryChart (7/30-day toggle); Estimator (weight × rate + making + GST); TickerFlash.
  • States: loading (skeleton chart); empty (insufficient history → chart shows available points with note); success; error (fetch failure → cached last-known rates with retry); recovery.

Our Story

  • Information/state: heritage narrative of the shop in warm family-jeweller voice with Bengali touches; client photo/text placeholders clearly marked.
  • Primary actions: read story; continue to Collections or Contact.
  • Supporting actions: EN/বাংলা toggle; floating WhatsApp; sticky mobile bar.
  • Domain entities: StoryContent (EN/BN), MediaAsset.
  • Component responsibilities: EditorialStory layout (asymmetric, overlapping images, alpona ornaments); Placeholder markers.
  • States: loading (content skeleton); empty (placeholder copy shown, clearly marked); success; error (content fetch failure → retry).
Page 7 of 28

Bridal Studio

  • Information/state: bridal jewellery selection; bridal spotlight imagery; enquiry path.
  • Primary actions: browse bridal pieces; open product detail; WhatsApp enquiry.
  • Supporting actions: EN/বাংলা toggle; floating WhatsApp; sticky mobile bar.
  • Domain entities: Product (bridal), Collection, MediaAsset.
  • Component responsibilities: BridalHero; BridalGrid; EnquireCTA.
  • States: loading (skeleton); empty (no bridal pieces → enquiry prompt); success; error (retry); recovery.

Gold Savings Scheme / Offers

  • Information/state: scheme details (admin-managed) and current offers/banners.
  • Primary actions: read scheme terms; read offers; enquire via WhatsApp or Contact.
  • Supporting actions: EN/বাংলা toggle; floating WhatsApp; sticky mobile bar.
  • Domain entities: Scheme, Offer/Banner.
  • Component responsibilities: SchemeDetail; OfferList; EnquireCTA.
  • States: loading; empty (no active offers → scheme only); success; error (retry).
Page 8 of 28

Gallery/Lookbook

  • Information/state: gallery and lookbook images with captions/alt text.
  • Primary actions: open image; browse lookbook sequence.
  • Supporting actions: EN/বাংলা toggle; floating WhatsApp; sticky mobile bar.
  • Domain entities: MediaAsset, Lookbook.
  • Component responsibilities: MasonryGallery; Lightbox; MaskWipeReveals.
  • States: loading (progressive image load); empty (placeholder gallery marked); success; error (image failure → alt fallback); recovery.

Contact

  • Information/state: address, hours, map, Turnstile-protected enquiry form.
  • Primary actions: submit enquiry (name, contact, message, Turnstile); open map/directions; call; WhatsApp.
  • Supporting actions: EN/বাংলা toggle; floating WhatsApp; sticky mobile bar.
  • Domain entities: ShopInfo, Enquiry, TurnstileToken.
  • Component responsibilities: ShopInfoBlock; MapEmbed; EnquiryForm (Turnstile widget, validation, submit states); DirectionsLink.
  • States: loading (form idle); empty (n/a); success (confirmation message, enquiry stored, email notification triggered); error (Turnstile failure or validation error → inline messages, retry); recovery (resubmit).
Page 9 of 28

Login

  • Information/state: anonymous entry for Owner and Staff; email/username and password fields; Turnstile widget.
  • Primary actions: submit credentials with Turnstile; on success receive HttpOnly Secure SameSite session cookie and land in /admin.
  • Supporting actions: none public.
  • Domain entities: AdminUser (Owner/Staff), Session, TurnstileToken.
  • Component responsibilities: CredentialForm; TurnstileWidget; RateLimitFeedback.
  • States: idle; submitting; success (redirect to /admin); error (invalid credentials, Turnstile failure, rate-limited → clear message and retry); recovery.

/admin

  • Information/state: protected admin shell with navigation to Dashboard, Rates, Products, Enquiries inbox, Content, Operations; session identity and role (Owner/Staff).
  • Primary actions: navigate to admin sections; sign out.
  • Supporting actions: optional Cloudflare Access layer in front.
  • Domain entities: AdminUser, Session.
  • Component responsibilities: AdminShell (mobile-first nav); SessionGuard (redirect to Login when unauthenticated); RoleBadge.
  • States: loading (session check); success; error (session expired → redirect to Login); recovery.
Page 10 of 28

Dashboard

  • Information/state: counts (products, enquiries, etc.), recent enquiries, quick "Update today's rate" card.
  • Primary actions: quick-update today's rate; open recent enquiry; jump to sections.
  • Supporting actions: sign out.
  • Domain entities: Rate, Enquiry, Product counts.
  • Component responsibilities: CountCards; RecentEnquiries; QuickRateCard.
  • States: loading (skeletons); empty (no enquiries → friendly empty state); success; error (retry); recovery.

Rates

  • Information/state: current Gold 22K, Gold 24K, Silver per gram; history log.
  • Primary actions: set new rates; save; view history log; trigger instant public update + cache purge.
  • Supporting actions: sign out.
  • Domain entities: Rate, RateHistory.
  • Component responsibilities: RateForm; HistoryLog; CachePurgeAction.
  • States: idle; saving; success (public update + purge confirmed); error (validation/save failure → retry); recovery.
Page 11 of 28

Products

  • Information/state: product list; product editor with multi-image upload (drag-drop, reorder, auto WebP), category, metal, purity, weights, making charge, description EN/BN, tags, featured/new/out-of-stock flags; CSV bulk import.
  • Primary actions: create/edit/delete product; upload and reorder images; toggle flags; import CSV.
  • Supporting actions: sign out.
  • Domain entities: Product, ProductImage, Category, Tag.
  • Component responsibilities: ProductTable; ProductEditor; ImageUploader (drag-drop, reorder, WebP); CSVImporter; FlagToggles.
  • States: loading; empty (no products → create prompt); success; error (upload/import failure → row-level errors, retry); recovery.

Enquiries inbox

  • Information/state: enquiry list with status (new/contacted/closed), notes, CSV export; email notification on new enquiry.
  • Primary actions: open enquiry; set status; add notes; export CSV.
  • Supporting actions: sign out.
  • Domain entities: Enquiry, EnquiryNote, EnquiryStatus.
  • Component responsibilities: EnquiryList; StatusControl; NotesEditor; CSVExport.
  • States: loading; empty (no enquiries); success; error (retry); recovery.
Page 12 of 28

Content

  • Information/state: management of collections, hero banners/offers, testimonials, FAQs, shop info/timings, scheme details, SEO fields per page.
  • Primary actions: create/edit/delete each content type; edit SEO fields; save.
  • Supporting actions: sign out.
  • Domain entities: Collection, Banner/Offer, Testimonial, FAQ, ShopInfo, Scheme, SEOFields.
  • Component responsibilities: ContentTabs; CollectionEditor; BannerEditor; TestimonialEditor; FAQEditor; ShopInfoEditor; SchemeEditor; SEOEditor.
  • States: loading; empty (per-type create prompt); success; error (retry); recovery.

Operations

  • Information/state: audit log, image library, data backup/export.
  • Primary actions: read audit log; browse image library; export backup.
  • Supporting actions: sign out.
  • Domain entities: AuditEntry, MediaAsset, BackupExport.
  • Component responsibilities: AuditLogTable; ImageLibrary; BackupExport.
  • States: loading; empty (no audit entries); success; error (export failure → retry); recovery.
Page 13 of 28

3. Functional Requirements

Public site

  • As a Shopper, I should land on a cinematic Home page with a full-bleed dark hero, macro gold imagery, a stacked ivory headline and a gold rate dial, so that I immediately feel the shop's trust and craft. (explicit) — Trigger: page load; Result: hero renders with masked headline reveal and live 22K/24K figures; Failure: media failure → static hero with text intact; Continuation: scroll into rate ticker and brand statement.
  • As a Shopper, I should see a live rate ticker for today's Gold 22K, Gold 24K and Silver with tick-up/down flash when the rate changes. (explicit) — Trigger: rate data load/change; Result: figures display and flash on change; Failure: fetch failure → last-known cached values with quiet retry; Continuation: open Gold Rate page.
  • As a Shopper, I should read a brand statement, a pinned craft story (raw gold to finished jewellery), featured collections in a horizontal rail, a bridal spotlight, a hallmark & trust strip (BIS Hallmark, transparent making charges, buyback/exchange), editorial testimonials, a gold savings scheme teaser, a visit-store block with map, and a WhatsApp CTA on Home. (explicit) — Result: each section renders in alternating dark/ivory bands; Failure: section data failure → section degrades gracefully; Continuation: navigate to the relevant page.
  • As a Shopper, I should browse Collections across Gold, Silver, Bridal, Daily Wear, Rings, Necklaces, Earrings, Bangles, Chains and Pooja Items. (explicit) — Result: animated grid; Failure: fetch failure → retry; Continuation: open product detail.
  • As a Shopper, I should filter products by metal, purity, category, weight and occasion, with animated filter/sort transitions. (explicit) — Result: grid updates with animation; Failure: no matches → clear-filters prompt; Continuation: adjust filters.
Page 14 of 28
  • As a Shopper, I should add and remove wishlist items stored in localStorage. (explicit) — Result: wishlist persists across visits on the same device; Failure: storage unavailable → in-session only with notice; Continuation: revisit Collections.
  • As a Shopper, I should open a Product detail page with a zoomable gallery, specs (metal, purity, gross/net weight, making charge), an estimated price breakdown (rate × weight + making + GST), related pieces, "Enquire on WhatsApp" prefilled with product name and link, and "Call now". (explicit) — Result: specs and estimate render; Failure: rate unavailable → estimate marked unavailable with retry; Continuation: WhatsApp/phone enquiry.
  • As a Shopper, I should read today's rates, a last 7/30-day chart from admin-entered history, and use a price estimator calculator on the Gold Rate page. (explicit) — Result: chart and estimate render; Failure: insufficient history → available points with note; Continuation: adjust range or weight.
  • As a Shopper, I should read Our Story, Bridal Studio, Gold Savings Scheme / Offers, Gallery/Lookbook and Contact pages. (explicit) — Result: content renders with placeholders clearly marked where client photos/text are needed; Failure: content fetch failure → retry; Continuation: enquire or browse.
  • As a Shopper, I should see address, hours, map and submit a Turnstile-protected enquiry form on Contact. (explicit) — Trigger: form submit; Result: enquiry stored and confirmation shown, email notification triggered; Failure: Turnstile/validation failure → inline error and retry; Continuation: await shop response.
  • As a Shopper, I should toggle EN/বাংলা across all pages with the choice persisted. (explicit) — Result: language switches and persists; Failure: preference storage unavailable → session-only; Continuation: continue browsing.
Page 15 of 28
  • As a Shopper, I should use a floating WhatsApp button and a sticky mobile bottom bar (Call / WhatsApp / Directions). (explicit) — Result: actions open the respective provider surfaces; Failure: provider unavailable → link still opens app/web fallback; Continuation: contact the shop.
  • As a Shopper, I should see a designed 404 page when a route is not found. (explicit) — Result: branded 404 with path back to Home/Collections.

Admin panel

  • As a Shop Owner or Staff member, I should log in at the Login surface with credentials, Turnstile and rate limiting, receiving an HttpOnly Secure SameSite cookie session. (explicit) — Trigger: submit credentials; Result: session established, redirect to /admin; Failure: invalid credentials/Turnstile/rate limit → clear message and retry; Continuation: work in /admin.
  • As a Shop Owner or Staff member, I should see a Dashboard with counts, recent enquiries and a quick "Update today's rate" card. (explicit) — Result: counts and recent enquiries render; Failure: fetch failure → retry; Continuation: quick-update rate or open enquiry.
  • As a Shop Owner or Staff member, I should set Gold 22K, Gold 24K and Silver per gram on Rates, keep a history log, and push an instant public update with cache purge. (explicit) — Trigger: save new rates; Result: public rates update and cache purges; Failure: save/purge failure → error and retry; Continuation: verify on public site.
  • As a Shop Owner or Staff member, I should create, edit and delete products with multi-image upload (drag-drop, reorder, auto WebP), category, metal, purity, weights, making charge, description EN/BN, tags, featured/new/out-of-stock flags, and CSV bulk import. (explicit) — Result: product saved and visible publicly; Failure: upload/import errors → row-level messages and retry; Continuation: edit or publish.
Page 16 of 28
  • As a Shop Owner or Staff member, I should manage collections, hero banners/offers, testimonials, FAQs, shop info/timings, scheme details and SEO fields per page. (explicit) — Result: content saved and reflected publicly; Failure: save failure → retry; Continuation: verify publicly.
  • As a Shop Owner or Staff member, I should work the Enquiries inbox: set status (new/contacted/closed), add notes, export CSV, with email notification on new enquiry. (explicit) — Result: status and notes persist; Failure: save/export failure → retry; Continuation: next enquiry.
  • As a Shop Owner or Staff member, I should read the audit log, use the image library and export a data backup in Operations. (explicit) — Result: log and library render, backup downloads; Failure: export failure → retry; Continuation: continue operations.
  • As a Shop Owner or Staff member, I should have an Owner or Staff account provisioned before first login. (required_inference) — Result: accounts exist at deployment; Failure: missing account → login fails with clear message; Continuation: contact provisioning owner.
  • As a Shop Owner or Staff member, I should pass Turnstile verification on login. (required_inference) — Result: verification gates session creation; Failure: verification failure → retry.
  • As the system, D1 migrations and seed data (20+ realistic sample products, categories, testimonials) must run before the public site shows products and rates. (required_inference) — Result: seeded data visible; Failure: migration failure → deployment blocked with clear error.
Page 17 of 28

4. User Personas

Shop Owner — Runs Swarna Mahal and needs a phone-friendly admin panel. The Owner's work is authoritative: setting the daily Gold 22K/24K and Silver rates that drive every public price, deciding which products are featured/new/out-of-stock, shaping the shop's story, bridal spotlight, scheme and SEO, and reading the enquiries inbox to respond to customers. The Owner's distinct decisions are commercial and editorial — what the shop charges, what it shows, and what it promises. Success is a rate update that reaches the public site instantly and an enquiry that gets a timely reply. The Owner holds the Owner role and may use the optional Cloudflare Access layer.

Staff — Works in the shop with a staff login and handles enquiries and product updates under the Owner's direction. The Staff member's work is operational: triaging the enquiries inbox (new/contacted/closed, notes), keeping product listings and images current, and helping with content updates. Staff interacts with the Owner on priorities and with Shoppers through enquiry responses. Success is an inbox with no stale "new" enquiries and accurate product listings. Staff holds the Staff role.

Shopper — Browses collections and product details in English or Bengali, checks live rates, saves wishlist items locally, and sends a WhatsApp enquiry or calls the shop. The Shopper's work is discovery and trust-building: comparing purity, weights and making charges, reading the craft story and testimonials, checking the bridal selection and savings scheme, and reaching the shop through WhatsApp, phone or the Contact form. The Shopper interacts with the Shop Owner/Staff only through those outbound channels. Success is a confident enquiry or call with the right product in hand. The Shopper has no account; the wishlist lives only in localStorage.

Page 18 of 28

5. Core User Flows

Shopper — discover and enquire about a piece

  1. Shopper opens Home; the preloader plays a gold logo draw-on and curtain reveal into the cinematic hero with the gold rate dial showing live 22K/24K figures.
  2. Shopper scrolls through the rate ticker, brand statement, pinned craft story, featured collections rail, bridal spotlight, trust strip, testimonials, scheme teaser and visit-store block.
  3. Shopper selects "See collections" and lands on Collections; applies filters by metal, purity, category, weight and occasion; the grid animates.
  4. Shopper opens a product; the zoomable gallery, specs and estimated price breakdown render. If the rate is unavailable, the estimate is marked unavailable with a retry.
  5. Shopper taps "Enquire on WhatsApp" (prefilled with product name and link) or "Call now"; the provider surface opens. Alternatively the Shopper adds the piece to the wishlist, which persists in localStorage.
  6. Shopper continues to related pieces or returns to Collections.

Shopper — check rates and estimate a price

  1. Shopper opens Gold Rate; today's Gold 22K, Gold 24K and Silver per gram render with the ticker flash.
  2. Shopper switches the chart between 7 and 30 days; if history is insufficient, available points show with a note.
  3. Shopper enters weight and purity in the estimator and reads the estimate (rate × weight + making + GST).
  4. Shopper proceeds to Collections or WhatsApp enquiry.
Page 19 of 28

Shopper — send a Contact enquiry

  1. Shopper opens Contact; address, hours and map render.
  2. Shopper fills the enquiry form and completes Turnstile.
  3. On submit, the enquiry is stored, a confirmation shows, and an email notification is triggered to the shop. On Turnstile or validation failure, inline errors show and the Shopper retries.
  4. Shopper awaits the shop's response via the contact details provided.

Shopper — switch language

  1. Shopper taps the EN/বাংলা toggle on any page; content switches and the choice persists across visits.

Shop Owner — update today's rate

  1. Owner opens Login, enters credentials, completes Turnstile; on success a session cookie is set and the Owner lands in /admin.
  2. Owner opens Dashboard and uses the quick "Update today's rate" card (or opens Rates).
  3. Owner sets Gold 22K, Gold 24K and Silver per gram and saves; the history log records the change and the public site updates instantly with a cache purge.
  4. Owner verifies the new rates on the public Home/Gold Rate page.

Shop Owner — manage products and content

  1. Owner opens Products, creates or edits a product with multi-image upload (drag-drop, reorder, auto WebP), category, metal, purity, weights, making charge, description EN/BN, tags and flags; or imports a CSV.
  2. Owner opens Content and edits collections, banners/offers, testimonials, FAQs, shop info/timings, scheme details and SEO fields.
  3. Owner verifies the changes on the public site.
Page 20 of 28

Staff — work the enquiries inbox

  1. Staff logs in at Login and lands in /admin.
  2. Staff opens Enquiries inbox, reads new enquiries, sets status (new/contacted/closed) and adds notes.
  3. Staff exports CSV when needed; new enquiries arrive with email notification.
  4. Staff continues to product updates under the Owner's direction.

Shop Owner/Staff — operations

  1. Owner or Staff opens Operations, reads the audit log, browses the image library and exports a data backup.
Page 21 of 28

6. Visuals Colors and Theme

Muse: MARQ by Garmin — precision luxury instrument, warm gold on charcoal. Headline: Instrument-grade trust for poromparar gohona.

Colour tokens (dark mode): background #1A1614; surface #4A0E1A; text #FAF6EE; primary #B8913A; accent #E8D3A0; muted #9C8F7E. Charcoal #1A1614 holds most dark sections; deep maroon #4A0E1A carries bridal and story blocks; ivory #FAF6EE is the light ground; antique gold #B8913A marks rules, data and CTAs; champagne #E8D3A0 is the foil highlight only. Dark and light sections alternate.

Typography: headings Cormorant Garamond — Light 300 display at large sizes with tight leading; small tracked uppercase DM Sans labels in gold above each heading; body DM Sans. Bengali: Noto Serif Bengali (display) and Hind Siliguri (body). Scale 1.333 modular: 48/36/28/20/16 on mobile to 128/80/48/24/18 on desktop, clamp() for each step.

Shape language: hairline 1px gold rules, sharp corners, ruled data rows and circular rate dials. Hand-drawn alpona and kalka SVG ornaments sit at low opacity behind dark blocks.

Layout: asymmetric editorial grid with full-bleed dark and ivory bands that alternate; a pinned craft story and a horizontal collection rail break the vertical rhythm.

Imagery: macro product photography on dark titanium grounds, gold and silver texture close-ups, warm bridal portraits. No stock people, no clip art.

Custom details: subtle film grain overlay; gold-foil gradient text on key headings only; custom cursor (changes to "View"/"Enquire" over products); custom selection colour; styled scrollbar; designed 404 page.

Page 22 of 28

Avoid: purple or blue gradients and glass blobs; identical rounded-card grids; centered hero with a stock welcome line; emoji icons; bouncy or playful easing; photography that covers headline or CTA text.

7. Signature Design Concept

The public entry is a full-bleed charcoal hero with a macro gold necklace bleeding off the right edge. A Light 300 Cormorant headline in ivory stacks left across 8 columns at 56px mobile to 128px desktop: "Poromparar gohona, made with shuddhota", with subline "Three generations of gold and silver craft in West Bengal, with BIS hallmark on every piece." and CTA "See collections". Bottom-left sits a gold rate dial showing live 22K, 24K and silver per gram with a needle sweep and count-up — the instrument face that anchors the whole site. Alpona line art draws in at low opacity behind the dark block; a category marquee in gold uppercase runs between dark and ivory sections below.

Page 23 of 28

8. Interaction Model & Motion Direction

Interaction Model: Animated Motion Tempo: cinematic Hero Dimensionality: dimensional_css

Landing Hero Motion Brief

  • Focal subject: the macro gold necklace bleeding off the right edge, with the gold rate dial bottom-left.
  • Thesis: on load, the preloader draws the gold logo and curtain-reveals into the hero; the headline splits into lines/words with staggered masked reveal; the necklace image parallaxes slowly; the rate dial needle sweeps and figures count up; lightweight canvas gold sparkle shimmers.
  • Motion vocabulary: Lenis smooth scroll + GSAP ScrollTrigger; masked reveals; clip-path/mask wipes; needle sweeps; count-ups; magnetic buttons; underline-draw and arrow-slide micro-interactions; smooth page transitions; skeleton loaders; animated filter/sort transitions.
  • Composed first frame: charcoal ground, ivory headline stacked left, necklace bleeding right, gold dial bottom-left with live figures, alpona line art faint behind.
  • Reduced-motion state: all motion stops; static stacked hero with headline, subline, CTA and rate figures fully readable; pinned craft story becomes a static sequence; marquees wrap or scroll.
Page 24 of 28

9. Non-Functional Requirements

  • Performance: Lighthouse Performance 90+ despite motion; 60fps motion; lazy-init animations; no layout shift; skeleton loaders. (explicit)
  • Accessibility: contrast, focus states, alt text, keyboard navigation; mobile-first and fully responsive. (explicit)
  • Motion safety: respect prefers-reduced-motion; disable heavy effects on low-end mobile. (explicit)
  • Security: PBKDF2/Argon2-WASM password hashing; HttpOnly Secure SameSite cookie sessions; rate limiting; Turnstile on login and contact form; WAF rate limits; secrets via Wrangler; optional Cloudflare Access layer in front of /admin. (explicit)
  • Runtime: code must run on the Cloudflare Workers runtime with no Node-only or native packages. (explicit)
  • SEO: per-page meta, Open Graph, schema.org (JewelryStore, Product, LocalBusiness), sitemap, robots, Bengali + English local SEO for the town/district. (explicit)
  • Code quality: clean, commented, modular code; no unused dependencies; environment-based config. (explicit)
  • Readable text and controls: headlines, wordmarks, labels, numbers, cards' text and controls stay entirely inside the viewport and their container at 375px, 768px and 1280px, wrapping or scaling to fit; no element covers them. Moving/scrollable content may cross edges by design but every item becomes fully readable as it passes; reduced-motion provides a usable static arrangement. (explicit)
  • Data durability: durable application state in the provisioned database; Redis for the accepted shared caching/coordination need; KV/Cache API for rates and public lists. (required_inference)
Page 25 of 28

10. Tech Stack

  • Frontend: Next.js (OpenNext / next-on-pages) or Astro + React islands; Tailwind CSS; GSAP; Lenis; Framer Motion / Motion One acceptable for UI components. (explicit)
  • Hosting/runtime: Cloudflare Pages + Workers/Pages Functions on the Workers runtime. (explicit)
  • Database: D1 (SQLite) with migrations + seed (20+ realistic sample products, categories, testimonials); Drizzle ORM or plain SQL. (explicit)
  • Storage/CDN: R2 for images with Cloudflare Images/CDN resizing. (explicit)
  • Caching: KV/Cache API for rates and public lists. (explicit)
  • Security: Turnstile; WAF rate limits; secrets via Wrangler. (explicit)
  • CI/CD: GitHub → Cloudflare Pages, preview + production environments, wrangler.toml, README with full setup/deploy steps. (explicit)
  • Provisioned scaffold: shared FastAPI backend for application APIs and domain modules; MariaDB for application-owned persistent data; React application UI; Redis for the accepted shared caching/state/queue/coordination need. Feature APIs extend the shared backend rather than new services. (basic_default)
Page 26 of 28

11. Assumptions and Constraints

  • The Owner and Staff accounts are provisioned at deployment before first login. (required_inference)
  • D1 migrations and seed data run before the public site shows products and rates. (required_inference)
  • The wishlist is client-side only in localStorage; no shopper account exists. (explicit)
  • WhatsApp, telephony, maps and email delivery are provider/external surfaces; the site composes prefilled messages and links. (explicit)
  • The optional Cloudflare Access layer may sit in front of /admin; it does not replace application login. (explicit)
  • Client photos and text are supplied later; every such spot is marked with a clear placeholder. (explicit)
  • The provisioned scaffold (FastAPI, MariaDB, React, Redis) is the runtime inventory; it does not add product requirements or change access decisions. (basic_default)
  • [Default — not specified by user] Exact GST rate, making-charge formula defaults and estimator rounding are configuration values set by the shop.
Page 27 of 28

12. Glossary

  • BIS Hallmark: Bureau of Indian Standards purity certification marked on jewellery.
  • Making charge: the jeweller's labour/design charge added to metal value.
  • Gross / net weight: total weight including stones vs. precious-metal weight.
  • Poromparar gohona: Bengali for "heirloom/ancestral jewellery".
  • Shuddhota: Bengali for "purity".
  • Bishwasher shonge: Bengali for "with trust".
  • Alpona: Bengali floor-art motif used as SVG ornament.
  • Kalka / paisley: Bengali paisley motif used as SVG ornament.
  • Turnstile: Cloudflare's CAPTCHA alternative used on login and contact form.
  • D1 / R2 / KV: Cloudflare's SQLite database, object storage and key-value store.
  • Wrangler: Cloudflare's CLI for configuration, secrets and deployment.
Page 28 of 28

No completed page designs yet.

Completed design pages will appear here when they are ready to preview.

Rendering diagram...

No completed page designs yet.

Completed design pages will appear here when they are ready to preview.

Rendering diagram...