@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.
- package/LICENSE.md +21 -48
- package/dependencies-matrix.json +24 -24
- package/dist/bin/commands/agent-setup.js +6965 -125
- package/dist/bin/commands/build.js +6 -3
- package/dist/bin/commands/bump.js +35 -15
- package/dist/bin/commands/cacheout.js +19 -3
- package/dist/bin/commands/coach.js +6 -3
- package/dist/bin/commands/create-app.js +18 -4
- package/dist/bin/commands/create-project.js +19 -5
- package/dist/bin/commands/db.js +1700 -3786
- package/dist/bin/commands/deploy.js +144 -98
- package/dist/bin/commands/dev.js +8 -7
- package/dist/bin/commands/doctor.js +6 -3
- package/dist/bin/commands/emu.js +8 -7
- package/dist/bin/commands/format.js +7 -5
- package/dist/bin/commands/get-demo.js +18 -4
- package/dist/bin/commands/make-admin.js +1809 -179
- package/dist/bin/commands/preview.js +8 -7
- package/dist/bin/commands/seed.js +1700 -3786
- package/dist/bin/commands/setup-cicd.js +6 -3
- package/dist/bin/commands/setup.js +23 -20
- package/dist/bin/commands/staging.js +144 -98
- package/dist/bin/commands/sync-secrets.js +6 -3
- package/dist/bin/commands/type-check.js +6 -3
- package/dist/bin/commands/wai.js +6 -3
- package/dist/bin/dndev.js +21 -1
- package/dist/bin/donotdev.js +21 -1
- package/dist/index.js +172 -107
- package/package.json +2 -2
- package/templates/app-next/src/locales/home_en.json.example +6 -6
- package/templates/app-vite/src/locales/home_en.json.example +6 -6
- package/templates/functions-supabase/supabase/functions/.env.example +12 -0
- package/templates/functions-supabase/supabase/functions/disconnect-oauth/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/functions/exchange-token/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/functions/get-connections/index.ts.example +7 -0
- package/templates/functions-supabase/supabase/functions/refresh-token/index.ts.example +7 -0
- package/templates/preset-admin/src/pages/DashboardPage.tsx.example +189 -0
- package/templates/preset-admin/src/pages/EntityPage.tsx.example +84 -0
- package/templates/preset-admin/src/pages/ReportsPage.tsx.example +243 -0
- package/templates/preset-admin/src/pages/SettingsPage.tsx.example +283 -0
- package/templates/preset-admin/src/pages/UsersPage.tsx.example +128 -0
- package/templates/preset-ecommerce/src/pages/CartPage.tsx.example +167 -0
- package/templates/preset-ecommerce/src/pages/CatalogPage.tsx.example +187 -0
- package/templates/preset-ecommerce/src/pages/CheckoutPage.tsx.example +244 -0
- package/templates/preset-ecommerce/src/pages/HomePage.tsx.example +268 -0
- package/templates/preset-ecommerce/src/pages/ProductPage.tsx.example +228 -0
- package/templates/preset-landing/src/pages/AboutPage.tsx.example +237 -0
- package/templates/preset-landing/src/pages/ContactPage.tsx.example +192 -0
- package/templates/preset-landing/src/pages/HomePage.tsx.example +399 -0
- package/templates/preset-saas/src/pages/DashboardPage.tsx.example +195 -0
- package/templates/preset-saas/src/pages/HomePage.tsx.example +270 -0
- package/templates/preset-saas/src/pages/PricingPage.tsx.example +204 -0
- package/templates/preset-saas/src/pages/ProfilePage.tsx.example +191 -0
- package/templates/preset-saas/src/pages/SettingsPage.tsx.example +292 -0
- package/templates/root-consumer/.claude/commands/brainstorm.md.example +28 -0
- package/templates/root-consumer/.claude/commands/design.md.example +31 -0
- package/templates/root-consumer/.claude/commands/grill.md.example +33 -6
- package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +16 -0
- package/templates/root-consumer/.claude/skills/build/SKILL.md.example +50 -0
- package/templates/root-consumer/.claude/skills/design/SKILL.md.example +17 -0
- package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +11 -5
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +2 -1
- package/templates/root-consumer/guides/dndev/advanced/COOKIE_REFERENCE.md.example +252 -252
- package/templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example +174 -174
|
@@ -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>“Best headphones I have ever owned. The noise cancellation is incredible.”</Text>
|
|
118
|
+
</Stack>
|
|
119
|
+
<Separator />
|
|
120
|
+
<Stack gap="tight">
|
|
121
|
+
<Text level="small" weight="semibold">Thomas B.</Text>
|
|
122
|
+
<Text level="small" italic>“Comfortable for all-day wear. Sound quality rivals headphones twice the price.”</Text>
|
|
123
|
+
</Stack>
|
|
124
|
+
<Separator />
|
|
125
|
+
<Stack gap="tight">
|
|
126
|
+
<Text level="small" weight="semibold">Sophie K.</Text>
|
|
127
|
+
<Text level="small" italic>“The battery life is no joke - I charge them once a week.”</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
|
+
}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview About Page
|
|
3
|
+
*
|
|
4
|
+
* Company story, values, team, and mission for {{appName}}.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
Info,
|
|
9
|
+
Heart,
|
|
10
|
+
Target,
|
|
11
|
+
Eye,
|
|
12
|
+
Lightbulb,
|
|
13
|
+
Users,
|
|
14
|
+
Sparkles,
|
|
15
|
+
Mail,
|
|
16
|
+
} from 'lucide-react';
|
|
17
|
+
|
|
18
|
+
import {
|
|
19
|
+
HeroSection,
|
|
20
|
+
Section,
|
|
21
|
+
Card,
|
|
22
|
+
Grid,
|
|
23
|
+
Stack,
|
|
24
|
+
Text,
|
|
25
|
+
CallToAction,
|
|
26
|
+
SplitReveal,
|
|
27
|
+
} from '@donotdev/components';
|
|
28
|
+
import type { PageMeta } from '@donotdev/core';
|
|
29
|
+
import { useTranslation } from '@donotdev/core';
|
|
30
|
+
import { PageContainer } from '@donotdev/ui';
|
|
31
|
+
|
|
32
|
+
export const NAMESPACE = 'about';
|
|
33
|
+
|
|
34
|
+
export const meta: PageMeta = {
|
|
35
|
+
namespace: NAMESPACE,
|
|
36
|
+
icon: <Info />,
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export default function AboutPage() {
|
|
40
|
+
const { t } = useTranslation(NAMESPACE);
|
|
41
|
+
|
|
42
|
+
return (
|
|
43
|
+
<PageContainer variant="standard">
|
|
44
|
+
{/* ================================================================ */}
|
|
45
|
+
{/* HERO */}
|
|
46
|
+
{/* ================================================================ */}
|
|
47
|
+
|
|
48
|
+
<HeroSection
|
|
49
|
+
title={t('hero.title', 'We believe software should empower, not frustrate')}
|
|
50
|
+
subtitle={t(
|
|
51
|
+
'hero.subtitle',
|
|
52
|
+
'{{appName}} was born from a simple observation: teams waste too much time on problems that have already been solved. We set out to change that.'
|
|
53
|
+
)}
|
|
54
|
+
variant="accent"
|
|
55
|
+
/>
|
|
56
|
+
|
|
57
|
+
{/* ================================================================ */}
|
|
58
|
+
{/* OUR STORY */}
|
|
59
|
+
{/* ================================================================ */}
|
|
60
|
+
|
|
61
|
+
<Section
|
|
62
|
+
title={t('story.title', 'Our Story')}
|
|
63
|
+
tone="ghost"
|
|
64
|
+
>
|
|
65
|
+
<SplitReveal
|
|
66
|
+
left={
|
|
67
|
+
<Stack gap="large">
|
|
68
|
+
<Text as="h3" level="h3">
|
|
69
|
+
{t('story.heading', 'From frustration to framework')}
|
|
70
|
+
</Text>
|
|
71
|
+
<Text level="body" variant="muted">
|
|
72
|
+
{t(
|
|
73
|
+
'story.p1',
|
|
74
|
+
'In 2024, our founding team was building their fifth product from scratch. Same auth flows, same CRUD patterns, same deployment headaches. Every project started with weeks of setup before writing a single line of business logic.'
|
|
75
|
+
)}
|
|
76
|
+
</Text>
|
|
77
|
+
<Text level="body" variant="muted">
|
|
78
|
+
{t(
|
|
79
|
+
'story.p2',
|
|
80
|
+
'We decided to extract everything we kept rebuilding into a cohesive, opinionated framework. Not another UI library - a complete product development platform that handles the entire stack.'
|
|
81
|
+
)}
|
|
82
|
+
</Text>
|
|
83
|
+
<Text level="body">
|
|
84
|
+
{t(
|
|
85
|
+
'story.p3',
|
|
86
|
+
'Today, {{appName}} powers products across industries - from fintech startups to enterprise platforms. Our mission remains the same: let developers focus on what makes their product unique.'
|
|
87
|
+
)}
|
|
88
|
+
</Text>
|
|
89
|
+
</Stack>
|
|
90
|
+
}
|
|
91
|
+
right={
|
|
92
|
+
<Stack gap="medium">
|
|
93
|
+
<Card
|
|
94
|
+
title={t('story.stat1.title', '2024')}
|
|
95
|
+
content={t('story.stat1.desc', 'Founded with a clear mission')}
|
|
96
|
+
elevated
|
|
97
|
+
/>
|
|
98
|
+
<Card
|
|
99
|
+
title={t('story.stat2.title', '5,000+')}
|
|
100
|
+
content={t('story.stat2.desc', 'Projects built on the platform')}
|
|
101
|
+
elevated
|
|
102
|
+
/>
|
|
103
|
+
<Card
|
|
104
|
+
title={t('story.stat3.title', '40+')}
|
|
105
|
+
content={t('story.stat3.desc', 'Countries with active users')}
|
|
106
|
+
elevated
|
|
107
|
+
/>
|
|
108
|
+
</Stack>
|
|
109
|
+
}
|
|
110
|
+
useStatCards
|
|
111
|
+
stagger
|
|
112
|
+
/>
|
|
113
|
+
</Section>
|
|
114
|
+
|
|
115
|
+
{/* ================================================================ */}
|
|
116
|
+
{/* VALUES */}
|
|
117
|
+
{/* ================================================================ */}
|
|
118
|
+
|
|
119
|
+
<Section
|
|
120
|
+
title={t('values.title', 'What drives us')}
|
|
121
|
+
tone="muted"
|
|
122
|
+
textAlign="center"
|
|
123
|
+
>
|
|
124
|
+
<Grid cols={[1, 2, 2, 4]} gap="large">
|
|
125
|
+
<Card
|
|
126
|
+
title={t('values.opinionated.title', 'Opinionated')}
|
|
127
|
+
icon={<Target />}
|
|
128
|
+
content={t(
|
|
129
|
+
'values.opinionated.desc',
|
|
130
|
+
'One right way to do things. No decision fatigue. We made the hard choices so you do not have to.'
|
|
131
|
+
)}
|
|
132
|
+
elevated
|
|
133
|
+
/>
|
|
134
|
+
<Card
|
|
135
|
+
title={t('values.transparent.title', 'Transparent')}
|
|
136
|
+
icon={<Eye />}
|
|
137
|
+
content={t(
|
|
138
|
+
'values.transparent.desc',
|
|
139
|
+
'Open source, open roadmap, open decisions. Every choice is documented with its rationale.'
|
|
140
|
+
)}
|
|
141
|
+
elevated
|
|
142
|
+
/>
|
|
143
|
+
<Card
|
|
144
|
+
title={t('values.craft.title', 'Craft')}
|
|
145
|
+
icon={<Lightbulb />}
|
|
146
|
+
content={t(
|
|
147
|
+
'values.craft.desc',
|
|
148
|
+
'No shortcuts, no tech debt by design. We build things right the first time, even when it takes longer.'
|
|
149
|
+
)}
|
|
150
|
+
elevated
|
|
151
|
+
/>
|
|
152
|
+
<Card
|
|
153
|
+
title={t('values.empathy.title', 'Empathy')}
|
|
154
|
+
icon={<Heart />}
|
|
155
|
+
content={t(
|
|
156
|
+
'values.empathy.desc',
|
|
157
|
+
'Every API, every error message, every default is designed for the human on the other side of the screen.'
|
|
158
|
+
)}
|
|
159
|
+
elevated
|
|
160
|
+
/>
|
|
161
|
+
</Grid>
|
|
162
|
+
</Section>
|
|
163
|
+
|
|
164
|
+
{/* ================================================================ */}
|
|
165
|
+
{/* TEAM */}
|
|
166
|
+
{/* ================================================================ */}
|
|
167
|
+
|
|
168
|
+
<Section
|
|
169
|
+
title={t('team.title', 'The team behind {{appShortName}}')}
|
|
170
|
+
tone="ghost"
|
|
171
|
+
textAlign="center"
|
|
172
|
+
>
|
|
173
|
+
<Grid cols={[1, 2, 3, 4]} gap="large">
|
|
174
|
+
<Card
|
|
175
|
+
icon={<Users />}
|
|
176
|
+
title={t('team.member1.name', 'Alex Martin')}
|
|
177
|
+
subtitle={t('team.member1.role', 'Co-founder & CEO')}
|
|
178
|
+
content={t(
|
|
179
|
+
'team.member1.bio',
|
|
180
|
+
'Former platform lead at a Fortune 500. Obsessed with developer experience and eliminating friction.'
|
|
181
|
+
)}
|
|
182
|
+
/>
|
|
183
|
+
<Card
|
|
184
|
+
icon={<Users />}
|
|
185
|
+
title={t('team.member2.name', 'Priya Sharma')}
|
|
186
|
+
subtitle={t('team.member2.role', 'Co-founder & CTO')}
|
|
187
|
+
content={t(
|
|
188
|
+
'team.member2.bio',
|
|
189
|
+
'Systems architect with a decade of distributed systems experience. Believes the best infrastructure is invisible.'
|
|
190
|
+
)}
|
|
191
|
+
/>
|
|
192
|
+
<Card
|
|
193
|
+
icon={<Users />}
|
|
194
|
+
title={t('team.member3.name', 'Jonas Eriksson')}
|
|
195
|
+
subtitle={t('team.member3.role', 'Head of Design')}
|
|
196
|
+
content={t(
|
|
197
|
+
'team.member3.bio',
|
|
198
|
+
'Design systems veteran. Shipped component libraries used by millions. Accessibility advocate.'
|
|
199
|
+
)}
|
|
200
|
+
/>
|
|
201
|
+
<Card
|
|
202
|
+
icon={<Users />}
|
|
203
|
+
title={t('team.member4.name', 'Mei Lin Wu')}
|
|
204
|
+
subtitle={t('team.member4.role', 'Head of Engineering')}
|
|
205
|
+
content={t(
|
|
206
|
+
'team.member4.bio',
|
|
207
|
+
'Full-stack polyglot who has built products from zero to IPO. Performance is her love language.'
|
|
208
|
+
)}
|
|
209
|
+
/>
|
|
210
|
+
</Grid>
|
|
211
|
+
</Section>
|
|
212
|
+
|
|
213
|
+
{/* ================================================================ */}
|
|
214
|
+
{/* CTA */}
|
|
215
|
+
{/* ================================================================ */}
|
|
216
|
+
|
|
217
|
+
<Section tone="primary">
|
|
218
|
+
<CallToAction
|
|
219
|
+
title={t('cta.title', 'Want to join our mission?')}
|
|
220
|
+
subtitle={t(
|
|
221
|
+
'cta.subtitle',
|
|
222
|
+
'We are always looking for talented people who care deeply about developer experience. Check our open positions or reach out directly.'
|
|
223
|
+
)}
|
|
224
|
+
tone="primary"
|
|
225
|
+
primaryAction={{
|
|
226
|
+
label: t('cta.primary', 'View Open Positions'),
|
|
227
|
+
icon: <Sparkles />,
|
|
228
|
+
}}
|
|
229
|
+
secondaryAction={{
|
|
230
|
+
label: t('cta.secondary', 'Get in Touch'),
|
|
231
|
+
icon: <Mail />,
|
|
232
|
+
}}
|
|
233
|
+
/>
|
|
234
|
+
</Section>
|
|
235
|
+
</PageContainer>
|
|
236
|
+
);
|
|
237
|
+
}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Contact Page
|
|
3
|
+
*
|
|
4
|
+
* Contact form and information for {{appName}}.
|
|
5
|
+
* Form submission is a placeholder - wire up to your backend.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { type FormEvent, useCallback, useState } from 'react';
|
|
9
|
+
|
|
10
|
+
import {
|
|
11
|
+
Mail,
|
|
12
|
+
MapPin,
|
|
13
|
+
Phone,
|
|
14
|
+
Send,
|
|
15
|
+
MessageSquare,
|
|
16
|
+
} from 'lucide-react';
|
|
17
|
+
|
|
18
|
+
import {
|
|
19
|
+
HeroSection,
|
|
20
|
+
Section,
|
|
21
|
+
Card,
|
|
22
|
+
Grid,
|
|
23
|
+
Stack,
|
|
24
|
+
Text,
|
|
25
|
+
Button,
|
|
26
|
+
Input,
|
|
27
|
+
Textarea,
|
|
28
|
+
Alert,
|
|
29
|
+
} from '@donotdev/components';
|
|
30
|
+
import type { PageMeta } from '@donotdev/core';
|
|
31
|
+
import { useTranslation } from '@donotdev/core';
|
|
32
|
+
import { PageContainer } from '@donotdev/ui';
|
|
33
|
+
|
|
34
|
+
export const NAMESPACE = 'contact';
|
|
35
|
+
|
|
36
|
+
export const meta: PageMeta = {
|
|
37
|
+
namespace: NAMESPACE,
|
|
38
|
+
icon: <MessageSquare />,
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export default function ContactPage() {
|
|
42
|
+
const { t } = useTranslation(NAMESPACE);
|
|
43
|
+
const [submitted, setSubmitted] = useState(false);
|
|
44
|
+
|
|
45
|
+
const handleSubmit = useCallback((e: FormEvent) => {
|
|
46
|
+
e.preventDefault();
|
|
47
|
+
// TODO: Wire to your backend endpoint
|
|
48
|
+
setSubmitted(true);
|
|
49
|
+
}, []);
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<PageContainer variant="standard">
|
|
53
|
+
{/* ================================================================ */}
|
|
54
|
+
{/* HERO */}
|
|
55
|
+
{/* ================================================================ */}
|
|
56
|
+
|
|
57
|
+
<HeroSection
|
|
58
|
+
title={t('hero.title', 'Let\'s talk')}
|
|
59
|
+
subtitle={t(
|
|
60
|
+
'hero.subtitle',
|
|
61
|
+
'Have a question, feedback, or want to explore how {{appName}} can help your team? We would love to hear from you.'
|
|
62
|
+
)}
|
|
63
|
+
variant="accent"
|
|
64
|
+
/>
|
|
65
|
+
|
|
66
|
+
{/* ================================================================ */}
|
|
67
|
+
{/* CONTACT FORM + INFO */}
|
|
68
|
+
{/* ================================================================ */}
|
|
69
|
+
|
|
70
|
+
<Section tone="ghost">
|
|
71
|
+
<Grid cols={[1, 1, 2, 2]} gap="large">
|
|
72
|
+
{/* --- Form --- */}
|
|
73
|
+
<Card
|
|
74
|
+
title={t('form.title', 'Send us a message')}
|
|
75
|
+
content={
|
|
76
|
+
submitted ? (
|
|
77
|
+
<Alert
|
|
78
|
+
variant="success"
|
|
79
|
+
title={t('form.success.title', 'Message sent')}
|
|
80
|
+
description={t(
|
|
81
|
+
'form.success.desc',
|
|
82
|
+
'Thank you for reaching out. We will get back to you within 24 hours.'
|
|
83
|
+
)}
|
|
84
|
+
/>
|
|
85
|
+
) : (
|
|
86
|
+
<Stack gap="medium">
|
|
87
|
+
<Input
|
|
88
|
+
label={t('form.name.label', 'Your name')}
|
|
89
|
+
placeholder={t('form.name.placeholder', 'Jane Doe')}
|
|
90
|
+
/>
|
|
91
|
+
<Input
|
|
92
|
+
icon={<Mail />}
|
|
93
|
+
label={t('form.email.label', 'Email address')}
|
|
94
|
+
placeholder={t('form.email.placeholder', 'jane@company.com')}
|
|
95
|
+
/>
|
|
96
|
+
<Input
|
|
97
|
+
label={t('form.subject.label', 'Subject')}
|
|
98
|
+
placeholder={t('form.subject.placeholder', 'How can we help?')}
|
|
99
|
+
/>
|
|
100
|
+
<Textarea
|
|
101
|
+
label={t('form.message.label', 'Message')}
|
|
102
|
+
placeholder={t(
|
|
103
|
+
'form.message.placeholder',
|
|
104
|
+
'Tell us about your project or question...'
|
|
105
|
+
)}
|
|
106
|
+
/>
|
|
107
|
+
<Button
|
|
108
|
+
variant="primary"
|
|
109
|
+
icon={<Send />}
|
|
110
|
+
onClick={handleSubmit}
|
|
111
|
+
>
|
|
112
|
+
{t('form.submit', 'Send Message')}
|
|
113
|
+
</Button>
|
|
114
|
+
</Stack>
|
|
115
|
+
)
|
|
116
|
+
}
|
|
117
|
+
elevated
|
|
118
|
+
/>
|
|
119
|
+
|
|
120
|
+
{/* --- Contact Info --- */}
|
|
121
|
+
<Stack gap="large">
|
|
122
|
+
<Text as="h3" level="h3">
|
|
123
|
+
{t('info.title', 'Other ways to reach us')}
|
|
124
|
+
</Text>
|
|
125
|
+
<Text level="body" variant="muted">
|
|
126
|
+
{t(
|
|
127
|
+
'info.subtitle',
|
|
128
|
+
'Prefer a different channel? We are available through any of the options below.'
|
|
129
|
+
)}
|
|
130
|
+
</Text>
|
|
131
|
+
|
|
132
|
+
<Stack gap="medium">
|
|
133
|
+
<Card
|
|
134
|
+
icon={<Mail />}
|
|
135
|
+
title={t('info.email.title', 'Email')}
|
|
136
|
+
content={t('info.email.value', 'hello@{{appShortName}}.dev')}
|
|
137
|
+
/>
|
|
138
|
+
<Card
|
|
139
|
+
icon={<Phone />}
|
|
140
|
+
title={t('info.phone.title', 'Phone')}
|
|
141
|
+
content={t('info.phone.value', '+1 (555) 123-4567')}
|
|
142
|
+
/>
|
|
143
|
+
<Card
|
|
144
|
+
icon={<MapPin />}
|
|
145
|
+
title={t('info.address.title', 'Office')}
|
|
146
|
+
content={t(
|
|
147
|
+
'info.address.value',
|
|
148
|
+
'123 Innovation Drive, San Francisco, CA 94107'
|
|
149
|
+
)}
|
|
150
|
+
/>
|
|
151
|
+
</Stack>
|
|
152
|
+
</Stack>
|
|
153
|
+
</Grid>
|
|
154
|
+
</Section>
|
|
155
|
+
|
|
156
|
+
{/* ================================================================ */}
|
|
157
|
+
{/* RESPONSE TIME */}
|
|
158
|
+
{/* ================================================================ */}
|
|
159
|
+
|
|
160
|
+
<Section tone="muted" textAlign="center">
|
|
161
|
+
<Stack align="center" gap="medium">
|
|
162
|
+
<Text as="h3" level="h3">
|
|
163
|
+
{t('response.title', 'What to expect')}
|
|
164
|
+
</Text>
|
|
165
|
+
<Grid cols={[1, 3, 3, 3]} gap="medium">
|
|
166
|
+
<Card
|
|
167
|
+
title={t('response.time.title', 'Under 24h')}
|
|
168
|
+
content={t('response.time.desc', 'Average response time for all inquiries')}
|
|
169
|
+
elevated
|
|
170
|
+
/>
|
|
171
|
+
<Card
|
|
172
|
+
title={t('response.support.title', 'Priority Support')}
|
|
173
|
+
content={t(
|
|
174
|
+
'response.support.desc',
|
|
175
|
+
'Pro and Enterprise plans get dedicated Slack channels'
|
|
176
|
+
)}
|
|
177
|
+
elevated
|
|
178
|
+
/>
|
|
179
|
+
<Card
|
|
180
|
+
title={t('response.docs.title', 'Self-serve')}
|
|
181
|
+
content={t(
|
|
182
|
+
'response.docs.desc',
|
|
183
|
+
'Most answers are in our docs - check there first for instant help'
|
|
184
|
+
)}
|
|
185
|
+
elevated
|
|
186
|
+
/>
|
|
187
|
+
</Grid>
|
|
188
|
+
</Stack>
|
|
189
|
+
</Section>
|
|
190
|
+
</PageContainer>
|
|
191
|
+
);
|
|
192
|
+
}
|