AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CategoryGuides.php 7.3KB

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