@donotdev/cli 0.0.37 → 0.1.1

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 (119) hide show
  1. package/LICENSE.md +21 -48
  2. package/dependencies-matrix.json +108 -58
  3. package/dist/bin/commands/agent-setup.js +7196 -123
  4. package/dist/bin/commands/build.js +3341 -207
  5. package/dist/bin/commands/bump.js +268 -24
  6. package/dist/bin/commands/cacheout.js +262 -13
  7. package/dist/bin/commands/coach.js +365 -61
  8. package/dist/bin/commands/create-app.js +261 -14
  9. package/dist/bin/commands/create-project.js +270 -15
  10. package/dist/bin/commands/db.js +10743 -2346
  11. package/dist/bin/commands/deploy.js +4202 -776
  12. package/dist/bin/commands/dev.js +353 -38
  13. package/dist/bin/commands/doctor.js +412 -108
  14. package/dist/bin/commands/emu.js +392 -57
  15. package/dist/bin/commands/format.js +250 -15
  16. package/dist/bin/commands/get-demo.js +261 -14
  17. package/dist/bin/commands/make-admin.js +10022 -1552
  18. package/dist/bin/commands/preview.js +353 -38
  19. package/dist/bin/commands/seed.js +10743 -2346
  20. package/dist/bin/commands/setup-cicd.js +456 -133
  21. package/dist/bin/commands/setup.js +428 -125
  22. package/dist/bin/commands/staging.js +4202 -776
  23. package/dist/bin/commands/sync-secrets.js +250 -14
  24. package/dist/bin/commands/type-check.js +249 -13
  25. package/dist/bin/commands/wai.js +249 -13
  26. package/dist/bin/dndev.js +33 -4
  27. package/dist/bin/donotdev.js +33 -4
  28. package/dist/index.js +4278 -856
  29. package/{templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example → guidelines/VERSION_CONTROL.md} +7 -11
  30. package/package.json +3 -2
  31. package/templates/app-demo/src/themes.css.example +21 -0
  32. package/templates/app-dndev/index.html.example +0 -3
  33. package/templates/app-dndev/src/themes.css.example +21 -0
  34. package/templates/app-next/src/app/layout.tsx.example +13 -4
  35. package/templates/app-next/src/themes.css.example +21 -0
  36. package/templates/app-vite/csp.example.json +44 -0
  37. package/templates/app-vite/index.html.example +0 -3
  38. package/templates/app-vite/src/themes.css.example +21 -0
  39. package/templates/functions-supabase/supabase/functions/.env.example +12 -0
  40. package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +7 -0
  41. package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +7 -0
  42. package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +7 -0
  43. package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +7 -0
  44. package/templates/functions-supabase/supabase/migrations/20250101000000_idempotency.sql +3 -0
  45. package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +3 -0
  46. package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +3 -0
  47. package/templates/preset-admin/src/pages/DashboardPage.tsx.example +189 -0
  48. package/templates/preset-admin/src/pages/EntityPage.tsx.example +84 -0
  49. package/templates/preset-admin/src/pages/ReportsPage.tsx.example +243 -0
  50. package/templates/preset-admin/src/pages/SettingsPage.tsx.example +283 -0
  51. package/templates/preset-admin/src/pages/UsersPage.tsx.example +128 -0
  52. package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +167 -0
  53. package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +187 -0
  54. package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +244 -0
  55. package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +268 -0
  56. package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +228 -0
  57. package/templates/preset-landing/src/pages/AboutPage.tsx.example +237 -0
  58. package/templates/preset-landing/src/pages/ContactPage.tsx.example +192 -0
  59. package/templates/preset-landing/src/pages/HomePage.tsx.example +399 -0
  60. package/templates/preset-saas/src/pages/DashboardPage.tsx.example +195 -0
  61. package/templates/preset-saas/src/pages/HomePage.tsx.example +270 -0
  62. package/templates/preset-saas/src/pages/PricingPage.tsx.example +204 -0
  63. package/templates/preset-saas/src/pages/ProfilePage.tsx.example +191 -0
  64. package/templates/preset-saas/src/pages/SettingsPage.tsx.example +292 -0
  65. package/templates/root-consumer/.claude/hooks/framework-compliance.sh.example +56 -0
  66. package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +61 -0
  67. package/templates/root-consumer/.claude/hooks/guard-files.sh.example +46 -0
  68. package/templates/root-consumer/.claude/hooks/guard-mcp.sh.example +91 -0
  69. package/templates/root-consumer/.claude/hooks/guard-secrets.sh.example +67 -0
  70. package/templates/root-consumer/.claude/hooks/guard-write.sh.example +89 -0
  71. package/templates/root-consumer/.claude/hooks/session-start.sh.example +50 -0
  72. package/templates/root-consumer/.claude/hooks/track-mcp-lookup.sh.example +20 -0
  73. package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +18 -0
  74. package/templates/root-consumer/.claude/rules/consumer-ux.md.example +32 -0
  75. package/templates/root-consumer/.claude/rules/definition-of-done.md.example +32 -0
  76. package/templates/root-consumer/.claude/rules/framework.md.example +39 -0
  77. package/templates/root-consumer/.claude/rules/git.md.example +14 -0
  78. package/templates/root-consumer/.claude/rules/security.md.example +13 -0
  79. package/templates/root-consumer/.claude/settings.json.example +123 -1
  80. package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +16 -0
  81. package/templates/root-consumer/.claude/skills/build/SKILL.md.example +103 -25
  82. package/templates/root-consumer/.claude/skills/design/SKILL.md.example +17 -0
  83. package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +33 -16
  84. package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +50 -37
  85. package/templates/root-consumer/AI.md.example +2 -2
  86. package/templates/root-consumer/CLAUDE.md.example +33 -1
  87. package/templates/root-consumer/guides/dndev/INDEX.md.example +23 -27
  88. package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +3 -2
  89. package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +12 -6
  90. package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +50 -3
  91. package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +13 -15
  92. package/templates/app-demo/public/manifest.json.example +0 -10
  93. package/templates/app-dndev/public/manifest.json.example +0 -10
  94. package/templates/root-consumer/.claude/commands/brainstorm.md.example +0 -147
  95. package/templates/root-consumer/.claude/commands/build.md.example +0 -131
  96. package/templates/root-consumer/.claude/commands/design.md.example +0 -153
  97. package/templates/root-consumer/.claude/commands/grill.md.example +0 -108
  98. package/templates/root-consumer/.claude/commands/polish.md.example +0 -146
  99. package/templates/root-consumer/.claude/commands/techdebt.md.example +0 -28
  100. package/templates/root-consumer/guides/dndev/COMPONENTS_ATOMIC.md.example +0 -180
  101. package/templates/root-consumer/guides/dndev/COMPONENTS_CRUD.md.example +0 -234
  102. package/templates/root-consumer/guides/dndev/COMPONENTS_UI.md.example +0 -136
  103. package/templates/root-consumer/guides/dndev/COMPONENT_API.md.example +0 -195
  104. package/templates/root-consumer/guides/dndev/ENV_SETUP.md.example +0 -219
  105. package/templates/root-consumer/guides/dndev/GOTCHAS.md.example +0 -197
  106. package/templates/root-consumer/guides/dndev/SETUP_APP_CONFIG.md.example +0 -132
  107. package/templates/root-consumer/guides/dndev/SETUP_BLOG.md.example +0 -280
  108. package/templates/root-consumer/guides/dndev/SETUP_CICD.md.example +0 -115
  109. package/templates/root-consumer/guides/dndev/SETUP_CRUD.md.example +0 -334
  110. package/templates/root-consumer/guides/dndev/SETUP_FUNCTIONS.md.example +0 -9
  111. package/templates/root-consumer/guides/dndev/SETUP_I18N.md.example +0 -233
  112. package/templates/root-consumer/guides/dndev/SETUP_LAYOUTS.md.example +0 -158
  113. package/templates/root-consumer/guides/dndev/SETUP_PAGES.md.example +0 -205
  114. package/templates/root-consumer/guides/dndev/SETUP_PWA.md.example +0 -213
  115. package/templates/root-consumer/guides/dndev/SETUP_TESTING.md.example +0 -184
  116. package/templates/root-consumer/guides/dndev/SETUP_THEMES.md.example +0 -111
  117. package/templates/root-consumer/guides/dndev/SETUP_VERCEL.md.example +0 -260
  118. package/templates/root-consumer/guides/dndev/USE_ROUTING.md.example +0 -499
  119. package/templates/root-consumer/guides/dndev/essences_reference.css.example +0 -288
@@ -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
+ }
@@ -0,0 +1,228 @@
1
+ 'use client';
2
+ // {{appName}} - Product Detail Page
3
+
4
+ import { useState } from 'react';
5
+
6
+ import {
7
+ Package,
8
+ ShoppingCart,
9
+ Heart,
10
+ } from 'lucide-react';
11
+
12
+ import {
13
+ Accordion,
14
+ Button,
15
+ BUTTON_VARIANT,
16
+ Card,
17
+ CARD_VARIANT,
18
+ Grid,
19
+ Input,
20
+ Section,
21
+ Select,
22
+ Separator,
23
+ Stack,
24
+ Text,
25
+ } from '@donotdev/components';
26
+ import { useTranslation } from '@donotdev/core';
27
+ import { Link, PageContainer } from '@donotdev/ui';
28
+
29
+ import type { PageMeta } from '@donotdev/core';
30
+
31
+ export const NAMESPACE = 'product';
32
+
33
+ export const meta: PageMeta = {
34
+ namespace: NAMESPACE,
35
+ icon: <Package />,
36
+ route: '/products/:id',
37
+ hideFromMenu: true,
38
+ };
39
+
40
+ const product = {
41
+ id: 1,
42
+ name: 'Wireless Noise-Cancelling Headphones',
43
+ price: '149.99',
44
+ description:
45
+ 'Immerse yourself in crystal-clear audio with our premium wireless headphones. Featuring advanced active noise cancellation, 30-hour battery life, and ultra-comfortable memory foam ear cushions. Perfect for commutes, travel, and deep focus sessions.',
46
+ category: 'Electronics',
47
+ };
48
+
49
+ const sizeOptions = [
50
+ { value: 'standard', label: 'Standard' },
51
+ { value: 'compact', label: 'Compact' },
52
+ ];
53
+
54
+ const colorOptions = [
55
+ { value: 'black', label: 'Midnight Black' },
56
+ { value: 'silver', label: 'Arctic Silver' },
57
+ { value: 'navy', label: 'Deep Navy' },
58
+ ];
59
+
60
+ const relatedProducts = [
61
+ { id: 2, name: 'Merino Wool Overcoat', price: '289.00', category: 'Clothing' },
62
+ { id: 3, name: 'Leather Crossbody Bag', price: '119.00', category: 'Accessories' },
63
+ { id: 6, name: 'Smart Fitness Watch', price: '199.00', category: 'Electronics' },
64
+ { id: 7, name: 'Minimalist Titanium Wallet', price: '59.00', category: 'Accessories' },
65
+ ];
66
+
67
+ export default function ProductPage() {
68
+ const { t } = useTranslation(NAMESPACE);
69
+ const [selectedSize, setSelectedSize] = useState('standard');
70
+ const [selectedColor, setSelectedColor] = useState('black');
71
+
72
+ const accordionItems = [
73
+ {
74
+ value: 'description',
75
+ title: t('product.accordion.description', 'Description'),
76
+ content: (
77
+ <Text level="body">
78
+ {t(
79
+ 'product.details.fullDescription',
80
+ 'Our Wireless Noise-Cancelling Headphones deliver studio-quality sound with deep bass and crisp highs. The adaptive ANC technology adjusts to your environment, while transparency mode lets you stay aware when needed. Bluetooth 5.3 ensures a stable, low-latency connection across all your devices.'
81
+ )}
82
+ </Text>
83
+ ),
84
+ },
85
+ {
86
+ value: 'specs',
87
+ title: t('product.accordion.specifications', 'Specifications'),
88
+ content: (
89
+ <Stack gap="tight">
90
+ <Text level="small">Driver size: 40mm</Text>
91
+ <Text level="small">Frequency response: 20Hz - 40kHz</Text>
92
+ <Text level="small">Battery life: 30 hours (ANC on)</Text>
93
+ <Text level="small">Charging: USB-C, 10 min = 3 hours</Text>
94
+ <Text level="small">Weight: 254g</Text>
95
+ <Text level="small">Bluetooth: 5.3 with multipoint</Text>
96
+ </Stack>
97
+ ),
98
+ },
99
+ {
100
+ value: 'shipping',
101
+ title: t('product.accordion.shipping', 'Shipping Info'),
102
+ content: (
103
+ <Stack gap="tight">
104
+ <Text level="small">{t('product.shipping.standard', 'Standard delivery: 3-5 business days (free over 50 EUR)')}</Text>
105
+ <Text level="small">{t('product.shipping.express', 'Express delivery: 1-2 business days (9.99 EUR)')}</Text>
106
+ <Text level="small">{t('product.shipping.returns', 'Free returns within 30 days of purchase')}</Text>
107
+ </Stack>
108
+ ),
109
+ },
110
+ {
111
+ value: 'reviews',
112
+ title: t('product.accordion.reviews', 'Reviews (128)'),
113
+ content: (
114
+ <Stack gap="medium">
115
+ <Stack gap="tight">
116
+ <Text level="small" weight="semibold">Laura M.</Text>
117
+ <Text level="small" italic>&ldquo;Best headphones I have ever owned. The noise cancellation is incredible.&rdquo;</Text>
118
+ </Stack>
119
+ <Separator />
120
+ <Stack gap="tight">
121
+ <Text level="small" weight="semibold">Thomas B.</Text>
122
+ <Text level="small" italic>&ldquo;Comfortable for all-day wear. Sound quality rivals headphones twice the price.&rdquo;</Text>
123
+ </Stack>
124
+ <Separator />
125
+ <Stack gap="tight">
126
+ <Text level="small" weight="semibold">Sophie K.</Text>
127
+ <Text level="small" italic>&ldquo;The battery life is no joke - I charge them once a week.&rdquo;</Text>
128
+ </Stack>
129
+ </Stack>
130
+ ),
131
+ },
132
+ ];
133
+
134
+ return (
135
+ <PageContainer>
136
+ <Section>
137
+ <Grid cols={[1, 1, 2, 2]} gap="large">
138
+ <Card
139
+ variant={CARD_VARIANT.GLASS}
140
+ title={t('product.imagePlaceholder', 'Product Image')}
141
+ content={t('product.imageDescription', 'Product image would be displayed here with zoom and gallery functionality.')}
142
+ />
143
+
144
+ <Stack gap="medium">
145
+ <Stack gap="tight">
146
+ <Text as="h1" level="h1">
147
+ {product.name}
148
+ </Text>
149
+ <Text level="caption" variant="muted">
150
+ {product.category}
151
+ </Text>
152
+ </Stack>
153
+
154
+ <Text as="h2" level="h2" variant="primary">
155
+ {product.price} EUR
156
+ </Text>
157
+
158
+ <Text level="body">
159
+ {product.description}
160
+ </Text>
161
+
162
+ <Separator />
163
+
164
+ <Stack gap="medium">
165
+ <Select
166
+ label={t('product.options.size', 'Size')}
167
+ options={sizeOptions}
168
+ value={selectedSize}
169
+ onValueChange={setSelectedSize}
170
+ placeholder={t('product.options.sizePlaceholder', 'Select size')}
171
+ />
172
+ <Select
173
+ label={t('product.options.color', 'Color')}
174
+ options={colorOptions}
175
+ value={selectedColor}
176
+ onValueChange={setSelectedColor}
177
+ placeholder={t('product.options.colorPlaceholder', 'Select color')}
178
+ />
179
+ <Input
180
+ label={t('product.options.quantity', 'Quantity')}
181
+ placeholder="1"
182
+ />
183
+ </Stack>
184
+
185
+ <Stack gap="tight">
186
+ <Button variant={BUTTON_VARIANT.PRIMARY} icon={<ShoppingCart />} fullWidth>
187
+ {t('product.addToCart', 'Add to Cart')}
188
+ </Button>
189
+ <Button variant={BUTTON_VARIANT.OUTLINE} icon={<Heart />} fullWidth>
190
+ {t('product.addToWishlist', 'Add to Wishlist')}
191
+ </Button>
192
+ </Stack>
193
+ </Stack>
194
+ </Grid>
195
+ </Section>
196
+
197
+ <Section>
198
+ <Accordion
199
+ items={accordionItems}
200
+ type="single"
201
+ collapsible
202
+ />
203
+ </Section>
204
+
205
+ <Section
206
+ title={t('product.related.title', 'You Might Also Like')}
207
+ tone="ghost"
208
+ gridCols={[1, 2, 4, 4]}
209
+ >
210
+ {relatedProducts.map((rp) => (
211
+ <Card
212
+ key={rp.id}
213
+ title={rp.name}
214
+ subtitle={`${rp.price} EUR`}
215
+ content={rp.category}
216
+ footer={
217
+ <Link path={`/products/${rp.id}`}>
218
+ <Button variant={BUTTON_VARIANT.GHOST} fullWidth>
219
+ {t('product.related.view', 'View Product')}
220
+ </Button>
221
+ </Link>
222
+ }
223
+ />
224
+ ))}
225
+ </Section>
226
+ </PageContainer>
227
+ );
228
+ }