@donotdev/cli 0.0.36 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/LICENSE.md +21 -48
  2. package/dependencies-matrix.json +24 -24
  3. package/dist/bin/commands/agent-setup.js +6965 -125
  4. package/dist/bin/commands/build.js +6 -3
  5. package/dist/bin/commands/bump.js +35 -15
  6. package/dist/bin/commands/cacheout.js +19 -3
  7. package/dist/bin/commands/coach.js +6 -3
  8. package/dist/bin/commands/create-app.js +18 -4
  9. package/dist/bin/commands/create-project.js +19 -5
  10. package/dist/bin/commands/db.js +1700 -3786
  11. package/dist/bin/commands/deploy.js +144 -98
  12. package/dist/bin/commands/dev.js +8 -7
  13. package/dist/bin/commands/doctor.js +6 -3
  14. package/dist/bin/commands/emu.js +8 -7
  15. package/dist/bin/commands/format.js +7 -5
  16. package/dist/bin/commands/get-demo.js +18 -4
  17. package/dist/bin/commands/make-admin.js +1809 -179
  18. package/dist/bin/commands/preview.js +8 -7
  19. package/dist/bin/commands/seed.js +1700 -3786
  20. package/dist/bin/commands/setup-cicd.js +6 -3
  21. package/dist/bin/commands/setup.js +23 -20
  22. package/dist/bin/commands/staging.js +144 -98
  23. package/dist/bin/commands/sync-secrets.js +6 -3
  24. package/dist/bin/commands/type-check.js +6 -3
  25. package/dist/bin/commands/wai.js +6 -3
  26. package/dist/bin/dndev.js +21 -1
  27. package/dist/bin/donotdev.js +21 -1
  28. package/dist/index.js +172 -107
  29. package/package.json +2 -2
  30. package/templates/app-next/src/locales/home_en.json.example +6 -6
  31. package/templates/app-vite/src/locales/home_en.json.example +6 -6
  32. package/templates/functions-supabase/supabase/functions/.env.example +12 -0
  33. package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +7 -0
  34. package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +7 -0
  35. package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +7 -0
  36. package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +7 -0
  37. package/templates/preset-admin/src/pages/DashboardPage.tsx.example +189 -0
  38. package/templates/preset-admin/src/pages/EntityPage.tsx.example +84 -0
  39. package/templates/preset-admin/src/pages/ReportsPage.tsx.example +243 -0
  40. package/templates/preset-admin/src/pages/SettingsPage.tsx.example +283 -0
  41. package/templates/preset-admin/src/pages/UsersPage.tsx.example +128 -0
  42. package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +167 -0
  43. package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +187 -0
  44. package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +244 -0
  45. package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +268 -0
  46. package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +228 -0
  47. package/templates/preset-landing/src/pages/AboutPage.tsx.example +237 -0
  48. package/templates/preset-landing/src/pages/ContactPage.tsx.example +192 -0
  49. package/templates/preset-landing/src/pages/HomePage.tsx.example +399 -0
  50. package/templates/preset-saas/src/pages/DashboardPage.tsx.example +195 -0
  51. package/templates/preset-saas/src/pages/HomePage.tsx.example +270 -0
  52. package/templates/preset-saas/src/pages/PricingPage.tsx.example +204 -0
  53. package/templates/preset-saas/src/pages/ProfilePage.tsx.example +191 -0
  54. package/templates/preset-saas/src/pages/SettingsPage.tsx.example +292 -0
  55. package/templates/root-consumer/.claude/commands/brainstorm.md.example +28 -0
  56. package/templates/root-consumer/.claude/commands/design.md.example +31 -0
  57. package/templates/root-consumer/.claude/commands/grill.md.example +33 -6
  58. package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +16 -0
  59. package/templates/root-consumer/.claude/skills/build/SKILL.md.example +50 -0
  60. package/templates/root-consumer/.claude/skills/design/SKILL.md.example +17 -0
  61. package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +11 -5
  62. package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +2 -1
  63. package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +252 -252
  64. package/templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example +174 -174
@@ -0,0 +1,187 @@
1
+ 'use client';
2
+ // {{appName}} - Catalog Page
3
+
4
+ import { useState } from 'react';
5
+
6
+ import {
7
+ LayoutGrid,
8
+ Search,
9
+ ShoppingCart,
10
+ } from 'lucide-react';
11
+
12
+ import {
13
+ Button,
14
+ BUTTON_VARIANT,
15
+ Card,
16
+ CARD_VARIANT,
17
+ Grid,
18
+ Input,
19
+ Section,
20
+ Select,
21
+ Stack,
22
+ Text,
23
+ } from '@donotdev/components';
24
+ import { useTranslation } from '@donotdev/core';
25
+ import { Link, PageContainer } from '@donotdev/ui';
26
+
27
+ import type { PageMeta } from '@donotdev/core';
28
+
29
+ export const NAMESPACE = 'catalog';
30
+
31
+ export const meta: PageMeta = {
32
+ namespace: NAMESPACE,
33
+ icon: <LayoutGrid />,
34
+ };
35
+
36
+ const products = [
37
+ {
38
+ id: 1,
39
+ name: 'Wireless Noise-Cancelling Headphones',
40
+ price: '149.99',
41
+ category: 'electronics',
42
+ description: 'Premium sound with active noise cancellation and 30-hour battery life.',
43
+ available: true,
44
+ },
45
+ {
46
+ id: 2,
47
+ name: 'Merino Wool Overcoat',
48
+ price: '289.00',
49
+ category: 'clothing',
50
+ description: 'Timeless silhouette in soft Italian merino wool. Warm, breathable, elegant.',
51
+ available: true,
52
+ },
53
+ {
54
+ id: 3,
55
+ name: 'Leather Crossbody Bag',
56
+ price: '119.00',
57
+ category: 'accessories',
58
+ description: 'Full-grain leather with adjustable strap. Fits essentials and a tablet.',
59
+ available: true,
60
+ },
61
+ {
62
+ id: 4,
63
+ name: 'Ceramic Table Lamp',
64
+ price: '79.50',
65
+ category: 'home',
66
+ description: 'Handcrafted ceramic base with linen shade. Warm ambient lighting.',
67
+ available: true,
68
+ },
69
+ {
70
+ id: 5,
71
+ name: 'Ultralight Running Shoes',
72
+ price: '134.00',
73
+ category: 'clothing',
74
+ description: 'Engineered mesh upper with responsive cushioning. Only 210g per shoe.',
75
+ available: false,
76
+ },
77
+ {
78
+ id: 6,
79
+ name: 'Smart Fitness Watch',
80
+ price: '199.00',
81
+ category: 'electronics',
82
+ description: 'Heart rate, GPS, sleep tracking, and 7-day battery in a sleek design.',
83
+ available: true,
84
+ },
85
+ {
86
+ id: 7,
87
+ name: 'Minimalist Titanium Wallet',
88
+ price: '59.00',
89
+ category: 'accessories',
90
+ description: 'RFID-blocking titanium card holder. Holds up to 12 cards, weighs 45g.',
91
+ available: true,
92
+ },
93
+ {
94
+ id: 8,
95
+ name: 'Oak Standing Desk',
96
+ price: '549.00',
97
+ category: 'home',
98
+ description: 'Solid oak top with motorized height adjustment. Whisper-quiet motor.',
99
+ available: true,
100
+ },
101
+ ];
102
+
103
+ const categoryOptions = [
104
+ { value: 'all', label: 'All Categories' },
105
+ { value: 'electronics', label: 'Electronics' },
106
+ { value: 'clothing', label: 'Clothing' },
107
+ { value: 'accessories', label: 'Accessories' },
108
+ { value: 'home', label: 'Home & Living' },
109
+ ];
110
+
111
+ const sortOptions = [
112
+ { value: 'popular', label: 'Most Popular' },
113
+ { value: 'newest', label: 'Newest First' },
114
+ { value: 'price-asc', label: 'Price: Low to High' },
115
+ { value: 'price-desc', label: 'Price: High to Low' },
116
+ ];
117
+
118
+ export default function CatalogPage() {
119
+ const { t } = useTranslation(NAMESPACE);
120
+ const [category, setCategory] = useState('all');
121
+ const [sort, setSort] = useState('popular');
122
+ const [search, setSearch] = useState('');
123
+
124
+ return (
125
+ <PageContainer>
126
+ <Section title={t('catalog.title', 'Product Catalog')}>
127
+ <Stack gap="large">
128
+ <Stack direction="row" gap="medium" wrap align="end">
129
+ <Select
130
+ label={t('catalog.filters.category', 'Category')}
131
+ options={categoryOptions}
132
+ value={category}
133
+ onValueChange={setCategory}
134
+ placeholder={t('catalog.filters.categoryPlaceholder', 'Select category')}
135
+ />
136
+ <Select
137
+ label={t('catalog.filters.sort', 'Sort By')}
138
+ options={sortOptions}
139
+ value={sort}
140
+ onValueChange={setSort}
141
+ placeholder={t('catalog.filters.sortPlaceholder', 'Sort by')}
142
+ />
143
+ <Input
144
+ icon={<Search />}
145
+ label={t('catalog.filters.search', 'Search')}
146
+ placeholder={t('catalog.filters.searchPlaceholder', 'Search products...')}
147
+ />
148
+ </Stack>
149
+
150
+ <Grid cols={[1, 2, 3, 4]} gap="medium">
151
+ {products.map((product) => (
152
+ <Card
153
+ key={product.id}
154
+ variant={product.available ? CARD_VARIANT.DEFAULT : CARD_VARIANT.GLASS}
155
+ title={product.name}
156
+ subtitle={`${product.price} EUR`}
157
+ content={product.description}
158
+ footer={
159
+ <Stack gap="tight">
160
+ <Button
161
+ variant={BUTTON_VARIANT.PRIMARY}
162
+ icon={<ShoppingCart />}
163
+ fullWidth
164
+ loading={!product.available}
165
+ display={product.available
166
+ ? t('catalog.addToCart', 'Add to Cart')
167
+ : t('catalog.outOfStock', 'Out of Stock')}
168
+ >
169
+ {product.available
170
+ ? t('catalog.addToCart', 'Add to Cart')
171
+ : t('catalog.outOfStock', 'Out of Stock')}
172
+ </Button>
173
+ <Link path={`/products/${product.id}`}>
174
+ <Button variant={BUTTON_VARIANT.GHOST} fullWidth>
175
+ {t('catalog.viewDetails', 'View Details')}
176
+ </Button>
177
+ </Link>
178
+ </Stack>
179
+ }
180
+ />
181
+ ))}
182
+ </Grid>
183
+ </Stack>
184
+ </Section>
185
+ </PageContainer>
186
+ );
187
+ }
@@ -0,0 +1,244 @@
1
+ 'use client';
2
+ // {{appName}} - Checkout Page
3
+
4
+ import { useState } from 'react';
5
+
6
+ import {
7
+ CreditCard,
8
+ } from 'lucide-react';
9
+
10
+ import {
11
+ Alert,
12
+ Button,
13
+ BUTTON_VARIANT,
14
+ Card,
15
+ CARD_VARIANT,
16
+ Grid,
17
+ Input,
18
+ Section,
19
+ Select,
20
+ Separator,
21
+ Stack,
22
+ Tabs,
23
+ Text,
24
+ } from '@donotdev/components';
25
+ import { useTranslation } from '@donotdev/core';
26
+ import { Link, PageContainer } from '@donotdev/ui';
27
+
28
+ import type { PageMeta } from '@donotdev/core';
29
+
30
+ export const NAMESPACE = 'checkout';
31
+
32
+ export const meta: PageMeta = {
33
+ namespace: NAMESPACE,
34
+ icon: <CreditCard />,
35
+ auth: true,
36
+ hideFromMenu: true,
37
+ };
38
+
39
+ const countryOptions = [
40
+ { value: 'fr', label: 'France' },
41
+ { value: 'de', label: 'Germany' },
42
+ { value: 'es', label: 'Spain' },
43
+ { value: 'it', label: 'Italy' },
44
+ { value: 'nl', label: 'Netherlands' },
45
+ { value: 'be', label: 'Belgium' },
46
+ { value: 'at', label: 'Austria' },
47
+ { value: 'pt', label: 'Portugal' },
48
+ ];
49
+
50
+ const orderItems = [
51
+ { name: 'Wireless Noise-Cancelling Headphones', quantity: 1, price: 149.99 },
52
+ { name: 'Leather Crossbody Bag', quantity: 1, price: 119.0 },
53
+ { name: 'Smart Fitness Watch', quantity: 2, price: 199.0 },
54
+ ];
55
+
56
+ export default function CheckoutPage() {
57
+ const { t } = useTranslation(NAMESPACE);
58
+ const [country, setCountry] = useState('');
59
+
60
+ const subtotal = orderItems.reduce((sum, item) => sum + item.price * item.quantity, 0);
61
+ const shipping = 0;
62
+ const tax = subtotal * 0.2;
63
+ const total = subtotal + shipping + tax;
64
+
65
+ const tabItems = [
66
+ {
67
+ value: 'shipping',
68
+ label: t('checkout.tabs.shipping', 'Shipping'),
69
+ content: (
70
+ <Stack gap="medium">
71
+ <Stack direction="row" gap="medium" wrap>
72
+ <Input
73
+ label={t('checkout.shipping.firstName', 'First Name')}
74
+ placeholder={t('checkout.shipping.firstNamePlaceholder', 'Jean')}
75
+ />
76
+ <Input
77
+ label={t('checkout.shipping.lastName', 'Last Name')}
78
+ placeholder={t('checkout.shipping.lastNamePlaceholder', 'Dupont')}
79
+ />
80
+ </Stack>
81
+ <Input
82
+ label={t('checkout.shipping.address', 'Address')}
83
+ placeholder={t('checkout.shipping.addressPlaceholder', '12 Rue de la Paix')}
84
+ />
85
+ <Stack direction="row" gap="medium" wrap>
86
+ <Input
87
+ label={t('checkout.shipping.city', 'City')}
88
+ placeholder={t('checkout.shipping.cityPlaceholder', 'Paris')}
89
+ />
90
+ <Input
91
+ label={t('checkout.shipping.zip', 'Postal Code')}
92
+ placeholder={t('checkout.shipping.zipPlaceholder', '75002')}
93
+ />
94
+ </Stack>
95
+ <Select
96
+ label={t('checkout.shipping.country', 'Country')}
97
+ options={countryOptions}
98
+ value={country}
99
+ onValueChange={setCountry}
100
+ placeholder={t('checkout.shipping.countryPlaceholder', 'Select country')}
101
+ />
102
+ <Input
103
+ label={t('checkout.shipping.phone', 'Phone')}
104
+ placeholder={t('checkout.shipping.phonePlaceholder', '+33 1 23 45 67 89')}
105
+ />
106
+ </Stack>
107
+ ),
108
+ },
109
+ {
110
+ value: 'payment',
111
+ label: t('checkout.tabs.payment', 'Payment'),
112
+ content: (
113
+ <Stack gap="medium">
114
+ <Alert
115
+ variant="default"
116
+ title={t('checkout.payment.integrationTitle', 'Payment Integration Point')}
117
+ description={t(
118
+ 'checkout.payment.integrationDescription',
119
+ 'This is where your payment provider (Stripe, PayPal, etc.) would be integrated. The payment form would be rendered by the provider SDK for PCI compliance.'
120
+ )}
121
+ />
122
+ <Card variant={CARD_VARIANT.GLASS}>
123
+ <Stack gap="medium" style={{ padding: 'var(--gap-md)' }}>
124
+ <Text level="body" weight="semibold">
125
+ {t('checkout.payment.methods', 'Accepted Payment Methods')}
126
+ </Text>
127
+ <Stack direction="row" gap="medium" wrap>
128
+ <Text level="small">Visa</Text>
129
+ <Text level="small">Mastercard</Text>
130
+ <Text level="small">PayPal</Text>
131
+ <Text level="small">Apple Pay</Text>
132
+ <Text level="small">Google Pay</Text>
133
+ </Stack>
134
+ </Stack>
135
+ </Card>
136
+ </Stack>
137
+ ),
138
+ },
139
+ {
140
+ value: 'review',
141
+ label: t('checkout.tabs.review', 'Review'),
142
+ content: (
143
+ <Stack gap="medium">
144
+ <Text level="body" weight="semibold">
145
+ {t('checkout.review.title', 'Order Review')}
146
+ </Text>
147
+ <Stack gap="tight">
148
+ {orderItems.map((item, index) => (
149
+ <Stack key={index} direction="row" justify="space-between">
150
+ <Text level="small">
151
+ {item.name} x{item.quantity}
152
+ </Text>
153
+ <Text level="small">
154
+ {(item.price * item.quantity).toFixed(2)} EUR
155
+ </Text>
156
+ </Stack>
157
+ ))}
158
+ </Stack>
159
+ <Separator />
160
+ <Stack direction="row" justify="space-between">
161
+ <Text level="body" weight="semibold">
162
+ {t('checkout.review.total', 'Total')}
163
+ </Text>
164
+ <Text level="body" weight="semibold">
165
+ {total.toFixed(2)} EUR
166
+ </Text>
167
+ </Stack>
168
+ <Alert
169
+ variant="default"
170
+ title={t('checkout.review.note', 'Secure Checkout')}
171
+ description={t('checkout.review.noteDescription', 'Your personal data will be used to process your order and support your experience on this site.')}
172
+ />
173
+ <Button variant={BUTTON_VARIANT.PRIMARY} fullWidth>
174
+ {t('checkout.review.confirm', 'Confirm & Pay')}
175
+ </Button>
176
+ </Stack>
177
+ ),
178
+ },
179
+ ];
180
+
181
+ return (
182
+ <PageContainer>
183
+ <Section title={t('checkout.title', 'Checkout')}>
184
+ <Grid cols={[1, 1, 3, 3]} gap="large">
185
+ <Stack style={{ gridColumn: 'span 2' }}>
186
+ <Tabs items={tabItems} defaultValue="shipping" />
187
+ </Stack>
188
+
189
+ <Card
190
+ variant={CARD_VARIANT.ACCENT}
191
+ title={t('checkout.summary.title', 'Order Summary')}
192
+ >
193
+ <Stack gap="medium" style={{ padding: 'var(--gap-md)' }}>
194
+ <Stack gap="tight">
195
+ {orderItems.map((item, index) => (
196
+ <Stack key={index} direction="row" justify="space-between">
197
+ <Text level="caption">
198
+ {item.name} x{item.quantity}
199
+ </Text>
200
+ <Text level="caption">
201
+ {(item.price * item.quantity).toFixed(2)} EUR
202
+ </Text>
203
+ </Stack>
204
+ ))}
205
+ </Stack>
206
+
207
+ <Separator />
208
+
209
+ <Stack gap="tight">
210
+ <Stack direction="row" justify="space-between">
211
+ <Text level="small">{t('checkout.summary.subtotal', 'Subtotal')}</Text>
212
+ <Text level="small">{subtotal.toFixed(2)} EUR</Text>
213
+ </Stack>
214
+ <Stack direction="row" justify="space-between">
215
+ <Text level="small">{t('checkout.summary.shipping', 'Shipping')}</Text>
216
+ <Text level="small" variant="success">
217
+ {t('checkout.summary.freeShipping', 'Free')}
218
+ </Text>
219
+ </Stack>
220
+ <Stack direction="row" justify="space-between">
221
+ <Text level="small">{t('checkout.summary.tax', 'Tax (20%)')}</Text>
222
+ <Text level="small">{tax.toFixed(2)} EUR</Text>
223
+ </Stack>
224
+ </Stack>
225
+
226
+ <Separator />
227
+
228
+ <Stack direction="row" justify="space-between">
229
+ <Text level="body" weight="semibold">{t('checkout.summary.total', 'Total')}</Text>
230
+ <Text level="body" weight="semibold">{total.toFixed(2)} EUR</Text>
231
+ </Stack>
232
+
233
+ <Link path="/cart">
234
+ <Button variant={BUTTON_VARIANT.GHOST} fullWidth>
235
+ {t('checkout.summary.backToCart', 'Back to Cart')}
236
+ </Button>
237
+ </Link>
238
+ </Stack>
239
+ </Card>
240
+ </Grid>
241
+ </Section>
242
+ </PageContainer>
243
+ );
244
+ }
@@ -0,0 +1,268 @@
1
+ 'use client';
2
+ // {{appName}} - Home Page
3
+
4
+ import {
5
+ Home,
6
+ Truck,
7
+ Headphones,
8
+ RotateCcw,
9
+ Lock,
10
+ ShoppingCart,
11
+ Quote,
12
+ Star,
13
+ } from 'lucide-react';
14
+
15
+ import {
16
+ Badge,
17
+ Button,
18
+ BUTTON_VARIANT,
19
+ CallToAction,
20
+ Card,
21
+ CARD_VARIANT,
22
+ Grid,
23
+ HeroSection,
24
+ Input,
25
+ Marquee,
26
+ Section,
27
+ Stack,
28
+ Text,
29
+ } from '@donotdev/components';
30
+ import { useTranslation } from '@donotdev/core';
31
+ import { FeatureCard, Link, PageContainer } from '@donotdev/ui';
32
+
33
+ import type { PageMeta } from '@donotdev/core';
34
+
35
+ export const NAMESPACE = 'home';
36
+
37
+ export const meta: PageMeta = {
38
+ namespace: NAMESPACE,
39
+ icon: <Home />,
40
+ };
41
+
42
+ const categories = [
43
+ { name: 'Electronics', icon: '🖥️', description: 'Laptops, phones & gadgets' },
44
+ { name: 'Clothing', icon: '👕', description: 'Fashion for every style' },
45
+ { name: 'Accessories', icon: '⌚', description: 'Watches, bags & more' },
46
+ { name: 'Home & Living', icon: '🏠', description: 'Furniture & decor' },
47
+ ];
48
+
49
+ const featuredProducts = [
50
+ { id: 1, name: 'Wireless Noise-Cancelling Headphones', price: '149.99', category: 'Electronics' },
51
+ { id: 2, name: 'Merino Wool Overcoat', price: '289.00', category: 'Clothing' },
52
+ { id: 3, name: 'Leather Crossbody Bag', price: '119.00', category: 'Accessories' },
53
+ { id: 4, name: 'Ceramic Table Lamp', price: '79.50', category: 'Home & Living' },
54
+ ];
55
+
56
+ const testimonials = [
57
+ {
58
+ name: 'Laura M.',
59
+ text: 'Amazing quality and fast shipping. My go-to store for everything!',
60
+ rating: 5,
61
+ },
62
+ {
63
+ name: 'Thomas B.',
64
+ text: 'The customer service is exceptional. They resolved my issue within hours.',
65
+ rating: 5,
66
+ },
67
+ {
68
+ name: 'Sophie K.',
69
+ text: 'Great selection and the prices are very competitive. Highly recommend.',
70
+ rating: 4,
71
+ },
72
+ {
73
+ name: 'Daniel R.',
74
+ text: 'I love the easy returns policy. Makes shopping stress-free.',
75
+ rating: 5,
76
+ },
77
+ {
78
+ name: 'Maria C.',
79
+ text: 'Beautiful packaging and the products always exceed expectations.',
80
+ rating: 5,
81
+ },
82
+ {
83
+ name: 'Henrik J.',
84
+ text: 'Been a loyal customer for two years. Never disappointed.',
85
+ rating: 5,
86
+ },
87
+ ];
88
+
89
+ export default function HomePage() {
90
+ const { t } = useTranslation(NAMESPACE);
91
+
92
+ const benefitCards = [
93
+ {
94
+ icon: Truck,
95
+ title: t('home.benefits.shipping.title', 'Free Shipping'),
96
+ subtitle: t('home.benefits.shipping.subtitle', 'On orders over 50 EUR'),
97
+ content: [
98
+ 'Free standard delivery',
99
+ 'Express options available',
100
+ 'Track your package',
101
+ ],
102
+ },
103
+ {
104
+ icon: Headphones,
105
+ title: t('home.benefits.support.title', '24/7 Support'),
106
+ subtitle: t('home.benefits.support.subtitle', 'We are here to help'),
107
+ content: [
108
+ 'Live chat available',
109
+ 'Email & phone support',
110
+ 'Dedicated team',
111
+ ],
112
+ },
113
+ {
114
+ icon: RotateCcw,
115
+ title: t('home.benefits.returns.title', 'Money Back'),
116
+ subtitle: t('home.benefits.returns.subtitle', '30-day guarantee'),
117
+ content: [
118
+ 'No questions asked',
119
+ 'Free return shipping',
120
+ 'Fast refund processing',
121
+ ],
122
+ },
123
+ {
124
+ icon: Lock,
125
+ title: t('home.benefits.security.title', 'Secure Payment'),
126
+ subtitle: t('home.benefits.security.subtitle', 'Your data is safe'),
127
+ content: [
128
+ 'SSL encryption',
129
+ 'PCI compliant',
130
+ 'Multiple payment methods',
131
+ ],
132
+ },
133
+ ];
134
+
135
+ return (
136
+ <PageContainer>
137
+ <HeroSection
138
+ badge={t('home.hero.badge', 'Spring Collection 2026')}
139
+ title={t('home.hero.title', 'Discover What You Love at {{appShortName}}')}
140
+ subtitle={t('home.hero.subtitle', 'Curated collections, unbeatable prices, and a shopping experience designed around you.')}
141
+ />
142
+
143
+ <Section
144
+ title={t('home.categories.title', 'Shop by Category')}
145
+ gridCols={[1, 2, 4, 4]}
146
+ >
147
+ {categories.map((cat) => (
148
+ <Card
149
+ key={cat.name}
150
+ variant={CARD_VARIANT.GLASS}
151
+ title={cat.name}
152
+ subtitle={cat.description}
153
+ clickable
154
+ />
155
+ ))}
156
+ </Section>
157
+
158
+ <Section
159
+ title={t('home.featured.title', 'Featured Products')}
160
+ tone="ghost"
161
+ gridCols={[1, 2, 4, 4]}
162
+ >
163
+ {featuredProducts.map((product) => (
164
+ <Card
165
+ key={product.id}
166
+ title={product.name}
167
+ subtitle={`${product.price} EUR`}
168
+ content={product.category}
169
+ footer={
170
+ <Stack gap="tight">
171
+ <Button variant={BUTTON_VARIANT.PRIMARY} icon={<ShoppingCart />} fullWidth>
172
+ {t('home.featured.addToCart', 'Add to Cart')}
173
+ </Button>
174
+ <Link path={`/products/${product.id}`}>
175
+ <Button variant={BUTTON_VARIANT.GHOST} fullWidth>
176
+ {t('home.featured.viewDetails', 'View Details')}
177
+ </Button>
178
+ </Link>
179
+ </Stack>
180
+ }
181
+ />
182
+ ))}
183
+ </Section>
184
+
185
+ <Section
186
+ title={t('home.benefits.title', 'Why Shop With Us')}
187
+ tone="muted"
188
+ gridCols={[1, 2, 4, 4]}
189
+ >
190
+ {benefitCards.map((b) => (
191
+ <FeatureCard
192
+ key={b.title}
193
+ variant={CARD_VARIANT.GLASS}
194
+ icon={b.icon}
195
+ title={b.title}
196
+ subtitle={b.subtitle}
197
+ content={b.content}
198
+ />
199
+ ))}
200
+ </Section>
201
+
202
+ <Section title={t('home.testimonials.title', 'What Our Customers Say')} tone="ghost">
203
+ <Marquee
204
+ items={testimonials}
205
+ renderItem={(_item) => {
206
+ const item = _item as (typeof testimonials)[number];
207
+ return (
208
+ <Card style={{ minWidth: 280, maxWidth: 340 }}>
209
+ <Stack gap="tight" style={{ padding: 'var(--gap-md)' }}>
210
+ <Quote
211
+ style={{
212
+ width: 'var(--icon-sm)',
213
+ height: 'var(--icon-sm)',
214
+ color: 'var(--muted-foreground)',
215
+ opacity: 0.5,
216
+ }}
217
+ />
218
+ <Text level="small" italic>
219
+ &ldquo;{item.text}&rdquo;
220
+ </Text>
221
+ <Stack direction="row" gap="none">
222
+ {Array.from({ length: item.rating }).map((_, i) => (
223
+ <Star
224
+ key={i}
225
+ style={{
226
+ width: 'var(--icon-xs)',
227
+ height: 'var(--icon-xs)',
228
+ color: 'var(--warning)',
229
+ fill: 'var(--warning)',
230
+ }}
231
+ />
232
+ ))}
233
+ </Stack>
234
+ <Text level="caption" variant="muted">
235
+ {item.name}
236
+ </Text>
237
+ </Stack>
238
+ </Card>
239
+ );
240
+ }}
241
+ speed={300}
242
+ pauseOnHover
243
+ gap="medium"
244
+ behavior="infinite"
245
+ ariaLabel={t('home.testimonials.ariaLabel', 'Customer testimonials')}
246
+ />
247
+ </Section>
248
+
249
+ <CallToAction
250
+ tone="accent"
251
+ title={t('home.cta.title', 'Stay in the Loop')}
252
+ subtitle={t('home.cta.subtitle', 'Subscribe to our newsletter for exclusive deals, new arrivals, and insider-only discounts.')}
253
+ primaryAction={
254
+ <Button variant={BUTTON_VARIANT.PRIMARY}>
255
+ {t('home.cta.primary', 'Subscribe for Deals')}
256
+ </Button>
257
+ }
258
+ secondaryAction={
259
+ <Link path="/catalog">
260
+ <Button variant={BUTTON_VARIANT.OUTLINE}>
261
+ {t('home.cta.secondary', 'Browse Catalog')}
262
+ </Button>
263
+ </Link>
264
+ }
265
+ />
266
+ </PageContainer>
267
+ );
268
+ }