@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.
- package/LICENSE.md +21 -48
- package/dependencies-matrix.json +108 -58
- package/dist/bin/commands/agent-setup.js +7196 -123
- package/dist/bin/commands/build.js +3341 -207
- package/dist/bin/commands/bump.js +268 -24
- package/dist/bin/commands/cacheout.js +262 -13
- package/dist/bin/commands/coach.js +365 -61
- package/dist/bin/commands/create-app.js +261 -14
- package/dist/bin/commands/create-project.js +270 -15
- package/dist/bin/commands/db.js +10743 -2346
- package/dist/bin/commands/deploy.js +4202 -776
- package/dist/bin/commands/dev.js +353 -38
- package/dist/bin/commands/doctor.js +412 -108
- package/dist/bin/commands/emu.js +392 -57
- package/dist/bin/commands/format.js +250 -15
- package/dist/bin/commands/get-demo.js +261 -14
- package/dist/bin/commands/make-admin.js +10022 -1552
- package/dist/bin/commands/preview.js +353 -38
- package/dist/bin/commands/seed.js +10743 -2346
- package/dist/bin/commands/setup-cicd.js +456 -133
- package/dist/bin/commands/setup.js +428 -125
- package/dist/bin/commands/staging.js +4202 -776
- package/dist/bin/commands/sync-secrets.js +250 -14
- package/dist/bin/commands/type-check.js +249 -13
- package/dist/bin/commands/wai.js +249 -13
- package/dist/bin/dndev.js +33 -4
- package/dist/bin/donotdev.js +33 -4
- package/dist/index.js +4278 -856
- package/{templates/root-consumer/guides/dndev/advanced/VERSION_CONTROL.md.example → guidelines/VERSION_CONTROL.md} +7 -11
- package/package.json +3 -2
- package/templates/app-demo/src/themes.css.example +21 -0
- package/templates/app-dndev/index.html.example +0 -3
- package/templates/app-dndev/src/themes.css.example +21 -0
- package/templates/app-next/src/app/layout.tsx.example +13 -4
- package/templates/app-next/src/themes.css.example +21 -0
- package/templates/app-vite/csp.example.json +44 -0
- package/templates/app-vite/index.html.example +0 -3
- package/templates/app-vite/src/themes.css.example +21 -0
- 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/functions-supabase/supabase/migrations/20250101000000_idempotency.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000001_rate_limits.sql +3 -0
- package/templates/functions-supabase/supabase/migrations/20250101000003_operation_metrics.sql +3 -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/hooks/framework-compliance.sh.example +56 -0
- package/templates/root-consumer/.claude/hooks/guard-bash.sh.example +61 -0
- package/templates/root-consumer/.claude/hooks/guard-files.sh.example +46 -0
- package/templates/root-consumer/.claude/hooks/guard-mcp.sh.example +91 -0
- package/templates/root-consumer/.claude/hooks/guard-secrets.sh.example +67 -0
- package/templates/root-consumer/.claude/hooks/guard-write.sh.example +89 -0
- package/templates/root-consumer/.claude/hooks/session-start.sh.example +50 -0
- package/templates/root-consumer/.claude/hooks/track-mcp-lookup.sh.example +20 -0
- package/templates/root-consumer/.claude/hooks/typecheck-stop.sh.example +18 -0
- package/templates/root-consumer/.claude/rules/consumer-ux.md.example +32 -0
- package/templates/root-consumer/.claude/rules/definition-of-done.md.example +32 -0
- package/templates/root-consumer/.claude/rules/framework.md.example +39 -0
- package/templates/root-consumer/.claude/rules/git.md.example +14 -0
- package/templates/root-consumer/.claude/rules/security.md.example +13 -0
- package/templates/root-consumer/.claude/settings.json.example +123 -1
- package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +16 -0
- package/templates/root-consumer/.claude/skills/build/SKILL.md.example +103 -25
- package/templates/root-consumer/.claude/skills/design/SKILL.md.example +17 -0
- package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +33 -16
- package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +50 -37
- package/templates/root-consumer/AI.md.example +2 -2
- package/templates/root-consumer/CLAUDE.md.example +33 -1
- package/templates/root-consumer/guides/dndev/INDEX.md.example +23 -27
- package/templates/root-consumer/guides/dndev/SETUP_AUTH.md.example +3 -2
- package/templates/root-consumer/guides/dndev/SETUP_OAUTH.md.example +12 -6
- package/templates/root-consumer/guides/dndev/SETUP_SUPABASE.md.example +50 -3
- package/templates/root-consumer/guides/wai-way/blueprints/3_compose.md.example +13 -15
- package/templates/app-demo/public/manifest.json.example +0 -10
- package/templates/app-dndev/public/manifest.json.example +0 -10
- package/templates/root-consumer/.claude/commands/brainstorm.md.example +0 -147
- package/templates/root-consumer/.claude/commands/build.md.example +0 -131
- package/templates/root-consumer/.claude/commands/design.md.example +0 -153
- package/templates/root-consumer/.claude/commands/grill.md.example +0 -108
- package/templates/root-consumer/.claude/commands/polish.md.example +0 -146
- package/templates/root-consumer/.claude/commands/techdebt.md.example +0 -28
- package/templates/root-consumer/guides/dndev/COMPONENTS_ATOMIC.md.example +0 -180
- package/templates/root-consumer/guides/dndev/COMPONENTS_CRUD.md.example +0 -234
- package/templates/root-consumer/guides/dndev/COMPONENTS_UI.md.example +0 -136
- package/templates/root-consumer/guides/dndev/COMPONENT_API.md.example +0 -195
- package/templates/root-consumer/guides/dndev/ENV_SETUP.md.example +0 -219
- package/templates/root-consumer/guides/dndev/GOTCHAS.md.example +0 -197
- package/templates/root-consumer/guides/dndev/SETUP_APP_CONFIG.md.example +0 -132
- package/templates/root-consumer/guides/dndev/SETUP_BLOG.md.example +0 -280
- package/templates/root-consumer/guides/dndev/SETUP_CICD.md.example +0 -115
- package/templates/root-consumer/guides/dndev/SETUP_CRUD.md.example +0 -334
- package/templates/root-consumer/guides/dndev/SETUP_FUNCTIONS.md.example +0 -9
- package/templates/root-consumer/guides/dndev/SETUP_I18N.md.example +0 -233
- package/templates/root-consumer/guides/dndev/SETUP_LAYOUTS.md.example +0 -158
- package/templates/root-consumer/guides/dndev/SETUP_PAGES.md.example +0 -205
- package/templates/root-consumer/guides/dndev/SETUP_PWA.md.example +0 -213
- package/templates/root-consumer/guides/dndev/SETUP_TESTING.md.example +0 -184
- package/templates/root-consumer/guides/dndev/SETUP_THEMES.md.example +0 -111
- package/templates/root-consumer/guides/dndev/SETUP_VERCEL.md.example +0 -260
- package/templates/root-consumer/guides/dndev/USE_ROUTING.md.example +0 -499
- package/templates/root-consumer/guides/dndev/essences_reference.css.example +0 -288
|
@@ -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
|
+
}
|