| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <?php
-
- namespace App\StorePlan\Ai;
-
- use App\Enums\StoreCategory;
-
- /**
- * A short design guide for each store category, sent to the AI with the brand description.
- *
- * A guide is a starting direction, not a template. Each one offers two or three directions and the AI picks
- * (or mixes) whichever fits the merchant's own words, so two stores in one category still look different.
- * Guides only name styles, fonts and layouts the store can really show (see PlanSchema).
- * "Other" has no guide: the brand description alone decides.
- */
- final class CategoryGuides
- {
- /**
- * @var array<string, string>
- */
- private const array GUIDES = [
- 'fashion' => <<<'TEXT'
- Fashion stores sell a look and a feeling first; photos do most of the work.
- Possible directions (pick what the description suggests, or mix):
- - Editorial: "image-full" hero, spaced-capital or serif headings (cormorant-garamond, playfair-display, dm-serif-display), plain cards, airy spacing, outline buttons, product_grid "large".
- - Street and youth: heavy headings (archivo-black, bebas-neue, unbounded), hard cards, shadow buttons, alternating bands, product_grid "carousel".
- - Modest and graceful: soft neutral colours, serif headings with a clean body (jost, dm-sans), soft-shadow cards, airy spacing.
- Sections that usually help: a big photo hero, products early, featured_product "stacked" for a new collection, about "statement" for the brand story.
- Copy: short and confident. Talk about fit, fabric feel and occasions only as the description gives them.
- TEXT,
-
- 'beauty' => <<<'TEXT'
- Beauty and skincare stores must feel clean, calm and trustworthy.
- Possible directions:
- - Clinical calm: light neutral colours with one soft accent, plain or thin-line cards, airy spacing, normal headings (manrope, dm-sans, outfit), solid buttons.
- - Luxe: warm ivory or deep colours, serif headings (cormorant-garamond, fraunces), spaced-capital headings, outline buttons.
- - Playful colour cosmetics: brighter palette, rounded corners, soft-shadow cards, heavy headings (bricolage-grotesque).
- Sections that usually help: a trust row early, a routine or "how to use" story, faq "cards" for skin questions, reviews.
- Copy: gentle and specific. Never promise results, cures or medical effects, and never claim halal, dermatologist tested or organic unless the description says so.
- TEXT,
-
- 'food' => <<<'TEXT'
- Food and drink stores should look warm, appetising and homely.
- Possible directions:
- - Home kitchen: warm colours (chilli red, turmeric, pandan green, cream), rounded corners, soft-shadow cards, friendly headings (fraunces, bricolage-grotesque, nunito body), alternating bands.
- - Bold snacks and drinks: bright colours, heavy headings (archivo-black, bebas-neue, unbounded), shadow buttons, hard cards, product_grid "carousel".
- - Premium gifts and bakes: deep or cream palette, serif headings, airy spacing, outline buttons, featured_product "stacked".
- Sections that usually help: products early, a "how it's made" about story, reviews high up (testimonials "wall" if there are 3 or more), a trust row with delivery, faq about shelf life and delivery.
- Copy: describe taste, texture and how people eat it. Never claim halal, no-preservatives, homemade or award-winning unless the description says so.
- TEXT,
-
- 'home' => <<<'TEXT'
- Home and living stores sell a calm, lived-in feeling.
- Possible directions:
- - Warm minimal: earthy neutrals, plain cards, airy spacing, clean headings (manrope, jost) or a soft serif (lora, fraunces), solid buttons.
- - Crafted and natural: natural greens and browns, serif headings, thin-line cards, about "statement" for the maker's story.
- - Bright and modern: one bold accent colour, soft-shadow cards, rounded corners, product_grid "large".
- Sections that usually help: a big photo hero, products in "large" or "grid", an about story, a trust row with delivery, faq about sizes and care.
- Copy: describe the room, the mood and daily use. Never invent materials, sizes or origins.
- TEXT,
-
- 'electronics' => <<<'TEXT'
- Electronics and gadget stores must look sharp, modern and reliable.
- Possible directions:
- - Tech clean: white or very dark background with one bright accent, small or no corners, thin-line cards, clean headings (space-grotesk, manrope, inter body), compact or normal spacing.
- - Futuristic: dark palette, headings in unbounded or syne, hard or soft-shadow cards, gentle motion.
- Sections that usually help: a "split" hero with the product, a trust row (delivery, secure payment, WhatsApp support), featured_product for the hero product, faq "cards" for compatibility and warranty questions.
- Copy: clear and practical, short sentences. Never invent specifications, warranty terms or certifications.
- TEXT,
-
- 'health' => <<<'TEXT'
- Health and wellness stores must feel calm, honest and trustworthy.
- Possible directions:
- - Calm natural: soft greens, blues or sand, plain or thin-line cards, airy spacing, gentle headings (outfit, nunito, lora), solid buttons.
- - Active and energetic: brighter accent, heavy headings (bricolage-grotesque, space-grotesk), soft-shadow cards, alternating bands.
- Sections that usually help: a trust row early, a clear about story, faq "cards", reviews.
- Copy: careful and plain. Never make health, medical, weight-loss or cure claims, and never mention certifications unless the description says so.
- TEXT,
-
- 'kids' => <<<'TEXT'
- Baby and kids stores should feel friendly, safe and cheerful, and parents are the buyers.
- Possible directions:
- - Soft pastel: pastel palette, large or full corners, soft-shadow cards, rounded headings (nunito, outfit, bricolage-grotesque), airy spacing.
- - Bright and playful: bold primary colours, heavy headings, shadow buttons, alternating bands, product_grid "carousel".
- Sections that usually help: products early, a trust row, faq about ages and safety, reviews from parents.
- Copy: warm and simple, written for parents. Never claim safety certifications or age ratings unless the description gives them.
- TEXT,
-
- 'digital' => <<<'TEXT'
- Digital product stores, such as templates, courses, e-books or presets, sell what the buyer gets straight away.
- Possible directions:
- - Creator studio: bold accent, heavy or display headings (syne, unbounded, bricolage-grotesque), soft-shadow or hard cards, gentle motion.
- - Clean professional: neutral palette, clean headings (manrope, inter), thin-line cards, compact spacing.
- Sections that usually help: a "split" hero, a featured_product for the main offer, about "statement" for who made it, faq "cards" about how delivery works, reviews.
- Copy: say exactly what the buyer receives and how they use it. Do not use the shipping item in a trust row; use custom items only with facts from the description.
- TEXT,
- ];
-
- /**
- * The guide for a category, or null for "Other".
- */
- public static function for(StoreCategory $category): ?string
- {
- return self::GUIDES[$category->value] ?? null;
- }
- }
|