|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+<?php
|
|
|
2
|
+
|
|
|
3
|
+namespace App\StorePlan\Ai;
|
|
|
4
|
+
|
|
|
5
|
+use App\Enums\StoreCategory;
|
|
|
6
|
+
|
|
|
7
|
+/**
|
|
|
8
|
+ * A short design guide for each store category, sent to the AI with the brand description.
|
|
|
9
|
+ *
|
|
|
10
|
+ * A guide is a starting direction, not a template. Each one offers two or three directions and the AI picks
|
|
|
11
|
+ * (or mixes) whichever fits the merchant's own words, so two stores in one category still look different.
|
|
|
12
|
+ * Guides only name styles, fonts and layouts the store can really show (see PlanSchema).
|
|
|
13
|
+ * "Other" has no guide: the brand description alone decides.
|
|
|
14
|
+ */
|
|
|
15
|
+final class CategoryGuides
|
|
|
16
|
+{
|
|
|
17
|
+ /**
|
|
|
18
|
+ * @var array<string, string>
|
|
|
19
|
+ */
|
|
|
20
|
+ private const array GUIDES = [
|
|
|
21
|
+ 'fashion' => <<<'TEXT'
|
|
|
22
|
+ Fashion stores sell a look and a feeling first; photos do most of the work.
|
|
|
23
|
+ Possible directions (pick what the description suggests, or mix):
|
|
|
24
|
+ - 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".
|
|
|
25
|
+ - Street and youth: heavy headings (archivo-black, bebas-neue, unbounded), hard cards, shadow buttons, alternating bands, product_grid "carousel".
|
|
|
26
|
+ - Modest and graceful: soft neutral colours, serif headings with a clean body (jost, dm-sans), soft-shadow cards, airy spacing.
|
|
|
27
|
+ Sections that usually help: a big photo hero, products early, featured_product "stacked" for a new collection, about "statement" for the brand story.
|
|
|
28
|
+ Copy: short and confident. Talk about fit, fabric feel and occasions only as the description gives them.
|
|
|
29
|
+ TEXT,
|
|
|
30
|
+
|
|
|
31
|
+ 'beauty' => <<<'TEXT'
|
|
|
32
|
+ Beauty and skincare stores must feel clean, calm and trustworthy.
|
|
|
33
|
+ Possible directions:
|
|
|
34
|
+ - Clinical calm: light neutral colours with one soft accent, plain or thin-line cards, airy spacing, normal headings (manrope, dm-sans, outfit), solid buttons.
|
|
|
35
|
+ - Luxe: warm ivory or deep colours, serif headings (cormorant-garamond, fraunces), spaced-capital headings, outline buttons.
|
|
|
36
|
+ - Playful colour cosmetics: brighter palette, rounded corners, soft-shadow cards, heavy headings (bricolage-grotesque).
|
|
|
37
|
+ Sections that usually help: a trust row early, a routine or "how to use" story, faq "cards" for skin questions, reviews.
|
|
|
38
|
+ Copy: gentle and specific. Never promise results, cures or medical effects, and never claim halal, dermatologist tested or organic unless the description says so.
|
|
|
39
|
+ TEXT,
|
|
|
40
|
+
|
|
|
41
|
+ 'food' => <<<'TEXT'
|
|
|
42
|
+ Food and drink stores should look warm, appetising and homely.
|
|
|
43
|
+ Possible directions:
|
|
|
44
|
+ - Home kitchen: warm colours (chilli red, turmeric, pandan green, cream), rounded corners, soft-shadow cards, friendly headings (fraunces, bricolage-grotesque, nunito body), alternating bands.
|
|
|
45
|
+ - Bold snacks and drinks: bright colours, heavy headings (archivo-black, bebas-neue, unbounded), shadow buttons, hard cards, product_grid "carousel".
|
|
|
46
|
+ - Premium gifts and bakes: deep or cream palette, serif headings, airy spacing, outline buttons, featured_product "stacked".
|
|
|
47
|
+ 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.
|
|
|
48
|
+ Copy: describe taste, texture and how people eat it. Never claim halal, no-preservatives, homemade or award-winning unless the description says so.
|
|
|
49
|
+ TEXT,
|
|
|
50
|
+
|
|
|
51
|
+ 'home' => <<<'TEXT'
|
|
|
52
|
+ Home and living stores sell a calm, lived-in feeling.
|
|
|
53
|
+ Possible directions:
|
|
|
54
|
+ - Warm minimal: earthy neutrals, plain cards, airy spacing, clean headings (manrope, jost) or a soft serif (lora, fraunces), solid buttons.
|
|
|
55
|
+ - Crafted and natural: natural greens and browns, serif headings, thin-line cards, about "statement" for the maker's story.
|
|
|
56
|
+ - Bright and modern: one bold accent colour, soft-shadow cards, rounded corners, product_grid "large".
|
|
|
57
|
+ 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.
|
|
|
58
|
+ Copy: describe the room, the mood and daily use. Never invent materials, sizes or origins.
|
|
|
59
|
+ TEXT,
|
|
|
60
|
+
|
|
|
61
|
+ 'electronics' => <<<'TEXT'
|
|
|
62
|
+ Electronics and gadget stores must look sharp, modern and reliable.
|
|
|
63
|
+ Possible directions:
|
|
|
64
|
+ - 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.
|
|
|
65
|
+ - Futuristic: dark palette, headings in unbounded or syne, hard or soft-shadow cards, gentle motion.
|
|
|
66
|
+ 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.
|
|
|
67
|
+ Copy: clear and practical, short sentences. Never invent specifications, warranty terms or certifications.
|
|
|
68
|
+ TEXT,
|
|
|
69
|
+
|
|
|
70
|
+ 'health' => <<<'TEXT'
|
|
|
71
|
+ Health and wellness stores must feel calm, honest and trustworthy.
|
|
|
72
|
+ Possible directions:
|
|
|
73
|
+ - Calm natural: soft greens, blues or sand, plain or thin-line cards, airy spacing, gentle headings (outfit, nunito, lora), solid buttons.
|
|
|
74
|
+ - Active and energetic: brighter accent, heavy headings (bricolage-grotesque, space-grotesk), soft-shadow cards, alternating bands.
|
|
|
75
|
+ Sections that usually help: a trust row early, a clear about story, faq "cards", reviews.
|
|
|
76
|
+ Copy: careful and plain. Never make health, medical, weight-loss or cure claims, and never mention certifications unless the description says so.
|
|
|
77
|
+ TEXT,
|
|
|
78
|
+
|
|
|
79
|
+ 'kids' => <<<'TEXT'
|
|
|
80
|
+ Baby and kids stores should feel friendly, safe and cheerful, and parents are the buyers.
|
|
|
81
|
+ Possible directions:
|
|
|
82
|
+ - Soft pastel: pastel palette, large or full corners, soft-shadow cards, rounded headings (nunito, outfit, bricolage-grotesque), airy spacing.
|
|
|
83
|
+ - Bright and playful: bold primary colours, heavy headings, shadow buttons, alternating bands, product_grid "carousel".
|
|
|
84
|
+ Sections that usually help: products early, a trust row, faq about ages and safety, reviews from parents.
|
|
|
85
|
+ Copy: warm and simple, written for parents. Never claim safety certifications or age ratings unless the description gives them.
|
|
|
86
|
+ TEXT,
|
|
|
87
|
+
|
|
|
88
|
+ 'digital' => <<<'TEXT'
|
|
|
89
|
+ Digital product stores, such as templates, courses, e-books or presets, sell what the buyer gets straight away.
|
|
|
90
|
+ Possible directions:
|
|
|
91
|
+ - Creator studio: bold accent, heavy or display headings (syne, unbounded, bricolage-grotesque), soft-shadow or hard cards, gentle motion.
|
|
|
92
|
+ - Clean professional: neutral palette, clean headings (manrope, inter), thin-line cards, compact spacing.
|
|
|
93
|
+ 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.
|
|
|
94
|
+ 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.
|
|
|
95
|
+ TEXT,
|
|
|
96
|
+ ];
|
|
|
97
|
+
|
|
|
98
|
+ /**
|
|
|
99
|
+ * The guide for a category, or null for "Other".
|
|
|
100
|
+ */
|
|
|
101
|
+ public static function for(StoreCategory $category): ?string
|
|
|
102
|
+ {
|
|
|
103
|
+ return self::GUIDES[$category->value] ?? null;
|
|
|
104
|
+ }
|
|
|
105
|
+}
|