@donotdev/cli 0.0.3 → 0.0.4
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/dependencies-matrix.json +12 -24
- package/dist/bin/commands/bump.d.ts +1 -1
- package/dist/bin/commands/format.d.ts +1 -1
- package/dist/bin/commands/lint.d.ts +1 -1
- package/package.json +1 -9
- package/templates/app-demo/src/themes.css.example +108 -156
- package/templates/app-next/src/locales/home_en.json.example +6 -0
- package/templates/app-next/src/pages/HomePage.tsx.example +152 -8
- package/templates/app-next/src/themes.css.example +92 -140
- package/templates/app-vite/src/App.tsx.example +2 -2
- package/templates/app-vite/src/locales/home_en.json.example +6 -0
- package/templates/app-vite/src/pages/HomePage.tsx.example +149 -8
- package/templates/app-vite/src/themes.css.example +90 -138
- package/templates/root-consumer/guides/AGENT_START_HERE.md.example +83 -61
- package/templates/root-consumer/guides/COMPONENTS_ATOMIC.md.example +134 -0
- package/templates/root-consumer/guides/COMPONENTS_CRUD.md.example +70 -0
- package/templates/root-consumer/guides/COMPONENTS_UI.md.example +135 -0
- package/templates/root-consumer/guides/ENV_SETUP.md.example +14 -0
- package/templates/root-consumer/guides/INDEX.md.example +17 -25
- package/templates/root-consumer/guides/SETUP_AUTH.md.example +77 -0
- package/templates/root-consumer/guides/SETUP_BILLING.md.example +78 -0
- package/templates/root-consumer/guides/SETUP_FUNCTIONS.md.example +62 -0
- package/templates/root-consumer/guides/SETUP_I18N.md.example +48 -0
- package/templates/root-consumer/guides/SETUP_LAYOUTS.md.example +108 -0
- package/templates/root-consumer/guides/SETUP_OAUTH.md.example +53 -0
- package/templates/root-consumer/guides/SETUP_PAGES.md.example +112 -0
- package/templates/root-consumer/guides/SETUP_THEMES.md.example +107 -0
- package/templates/root-consumer/guides/advanced/COOKIE_REFERENCE.md.example +252 -0
- package/templates/root-consumer/guides/{EMULATOR_SETUP.md.example → advanced/EMULATORS.md.example} +1 -1
- package/templates/root-consumer/guides/{VERSION_CONTROL.md.example → advanced/VERSION_CONTROL.md.example} +0 -7
- package/templates/root-consumer/guides/AUTH_SETUP.md.example +0 -92
- package/templates/root-consumer/guides/BILLING_SETUP.md.example +0 -120
- package/templates/root-consumer/guides/CLI.md.example +0 -293
- package/templates/root-consumer/guides/COMPONENTS.md.example +0 -875
- package/templates/root-consumer/guides/FEATURES.md.example +0 -286
- package/templates/root-consumer/guides/FRAMEWORK_OVERVIEW.md.example +0 -97
- package/templates/root-consumer/guides/FUNCTIONS.md.example +0 -177
- package/templates/root-consumer/guides/GETTING_STARTED.md.example +0 -451
- package/templates/root-consumer/guides/HOW_TO_USE.md.example +0 -296
- package/templates/root-consumer/guides/I18N_SETUP.md.example +0 -204
- package/templates/root-consumer/guides/IMPORT_PATTERNS.md.example +0 -79
- package/templates/root-consumer/guides/INSTALLATION.md.example +0 -296
- package/templates/root-consumer/guides/LAYOUTS.md.example +0 -310
- package/templates/root-consumer/guides/PAGES_SETUP.md.example +0 -123
- package/templates/root-consumer/guides/STYLING.md.example +0 -273
- package/templates/root-consumer/guides/THEMING_SETUP.md.example +0 -119
- /package/templates/root-consumer/guides/{CONFIG_SETUP.md.example → SETUP_APP_CONFIG.md.example} +0 -0
- /package/templates/root-consumer/guides/{APP_CHECK_SETUP.md.example → advanced/APP_CHECK.md.example} +0 -0
package/dependencies-matrix.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./dependencies-matrix.schema.json",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Centralized dependency versions for DoNotDev framework. Single source of truth for all external dependencies. ⚠️ SYNC REQUIRED: When adding/removing @donotdev/* feature packages (auth, billing, crud, oauth), also update packages/core/config/constants.js BUNDLING.optionalFeatures array.",
|
|
5
5
|
"lastUpdated": "2025-12-16",
|
|
6
6
|
"migrationGuides": {
|
|
@@ -189,79 +189,67 @@
|
|
|
189
189
|
"@donotdev/adv-comps": {
|
|
190
190
|
"description": "Advanced components package",
|
|
191
191
|
"packages": {
|
|
192
|
-
"@donotdev/adv-comps": "^0.0.
|
|
192
|
+
"@donotdev/adv-comps": "^0.0.3"
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
195
|
"@donotdev/auth": {
|
|
196
196
|
"description": "Authentication package",
|
|
197
197
|
"packages": {
|
|
198
|
-
"@donotdev/auth": "^0.0.
|
|
198
|
+
"@donotdev/auth": "^0.0.3"
|
|
199
199
|
}
|
|
200
200
|
},
|
|
201
201
|
"@donotdev/billing": {
|
|
202
202
|
"description": "Billing package",
|
|
203
203
|
"packages": {
|
|
204
|
-
"@donotdev/billing": "^0.0.
|
|
204
|
+
"@donotdev/billing": "^0.0.3"
|
|
205
205
|
}
|
|
206
206
|
},
|
|
207
207
|
"@donotdev/components": {
|
|
208
208
|
"description": "UI components package",
|
|
209
209
|
"packages": {
|
|
210
|
-
"@donotdev/components": "^0.0.
|
|
210
|
+
"@donotdev/components": "^0.0.3"
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
213
|
"@donotdev/core": {
|
|
214
214
|
"description": "Core framework package",
|
|
215
215
|
"packages": {
|
|
216
|
-
"@donotdev/core": "^0.0.
|
|
216
|
+
"@donotdev/core": "^0.0.3"
|
|
217
217
|
}
|
|
218
218
|
},
|
|
219
219
|
"@donotdev/crud": {
|
|
220
220
|
"description": "CRUD operations package",
|
|
221
221
|
"packages": {
|
|
222
|
-
"@donotdev/crud": "^0.0.
|
|
222
|
+
"@donotdev/crud": "^0.0.3"
|
|
223
223
|
}
|
|
224
224
|
},
|
|
225
225
|
"@donotdev/firebase": {
|
|
226
226
|
"description": "Firebase provider package",
|
|
227
227
|
"packages": {
|
|
228
|
-
"@donotdev/firebase": "^0.0.
|
|
228
|
+
"@donotdev/firebase": "^0.0.3"
|
|
229
229
|
}
|
|
230
230
|
},
|
|
231
231
|
"@donotdev/functions": {
|
|
232
232
|
"description": "Firebase Functions package",
|
|
233
233
|
"packages": {
|
|
234
|
-
"@donotdev/functions": "^0.0.
|
|
234
|
+
"@donotdev/functions": "^0.0.3"
|
|
235
235
|
}
|
|
236
236
|
},
|
|
237
237
|
"@donotdev/oauth": {
|
|
238
238
|
"description": "OAuth package",
|
|
239
239
|
"packages": {
|
|
240
|
-
"@donotdev/oauth": "^0.0.
|
|
240
|
+
"@donotdev/oauth": "^0.0.3"
|
|
241
241
|
}
|
|
242
242
|
},
|
|
243
243
|
"@donotdev/templates": {
|
|
244
244
|
"description": "Page templates package",
|
|
245
245
|
"packages": {
|
|
246
|
-
"@donotdev/templates": "^0.0.
|
|
246
|
+
"@donotdev/templates": "^0.0.3"
|
|
247
247
|
}
|
|
248
248
|
},
|
|
249
249
|
"@donotdev/ui": {
|
|
250
250
|
"description": "UI and routing package",
|
|
251
251
|
"packages": {
|
|
252
|
-
"@donotdev/ui": "^0.0.
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
"core-children": {
|
|
256
|
-
"description": "Core bundled packages - use workspace:* in repo, converted to version during publish",
|
|
257
|
-
"packages": {
|
|
258
|
-
"@donotdev/types": "workspace:*",
|
|
259
|
-
"@donotdev/utils": "workspace:*",
|
|
260
|
-
"@donotdev/stores": "workspace:*",
|
|
261
|
-
"@donotdev/schemas": "workspace:*",
|
|
262
|
-
"@donotdev/hooks": "workspace:*",
|
|
263
|
-
"@donotdev/i18n": "workspace:*",
|
|
264
|
-
"@donotdev/config": "workspace:*"
|
|
252
|
+
"@donotdev/ui": "^0.0.3"
|
|
265
253
|
}
|
|
266
254
|
},
|
|
267
255
|
"vite": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@donotdev/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Command-line interface for DoNotDev Framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -37,14 +37,6 @@
|
|
|
37
37
|
"commander": "^14.0.2",
|
|
38
38
|
"fast-glob": "^3.3.3"
|
|
39
39
|
},
|
|
40
|
-
"peerDependencies": {
|
|
41
|
-
"@donotdev/core": "0.0.3"
|
|
42
|
-
},
|
|
43
|
-
"peerDependenciesMeta": {
|
|
44
|
-
"@donotdev/core": {
|
|
45
|
-
"optional": true
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
40
|
"repository": {
|
|
49
41
|
"type": "git",
|
|
50
42
|
"url": "https://github.com/donotdev/cli.git"
|
|
@@ -1,179 +1,131 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* src/themes.css */
|
|
2
2
|
|
|
3
3
|
/* ===========================
|
|
4
4
|
APP-WIDE SETTINGS
|
|
5
|
-
|
|
5
|
+
Spacing, radius, shadows, animations - apply to all themes
|
|
6
6
|
=========================== */
|
|
7
7
|
:root {
|
|
8
|
-
/*
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/*
|
|
15
|
-
/* --
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/*
|
|
19
|
-
/* --
|
|
20
|
-
/* --
|
|
21
|
-
/* --routing-desktop-duration: var(--routing-default-duration); */
|
|
22
|
-
/* --routing-wide-duration: var(--routing-default-duration); */
|
|
23
|
-
|
|
24
|
-
/* Examples: */
|
|
25
|
-
/* --routing-animation: slide; */ /* Use slide animation */
|
|
26
|
-
/* --routing-animation: none; */ /* Disable animations */
|
|
27
|
-
/* --routing-default-duration: 200ms; */ /* Faster animations */
|
|
28
|
-
|
|
29
|
-
/* ===========================
|
|
30
|
-
SPACING OVERRIDES
|
|
31
|
-
Customize spacing scale
|
|
32
|
-
=========================== */
|
|
33
|
-
/* --gap-sm: 0.5rem; */ /* 8px - tight spacing */
|
|
34
|
-
/* --gap-md: 1rem; */ /* 16px - medium spacing (default) */
|
|
35
|
-
/* --gap-lg: 2rem; */ /* 32px - large spacing */
|
|
36
|
-
|
|
37
|
-
/* ===========================
|
|
38
|
-
BORDER RADIUS OVERRIDES
|
|
39
|
-
Customize component corners
|
|
40
|
-
=========================== */
|
|
41
|
-
/* --radius-interactive: var(--radius-none); */ /* Buttons, links (default: square) */
|
|
42
|
-
/* --radius-surface: var(--radius-md); */ /* Cards, dialogs (default: 8px round) */
|
|
43
|
-
/* --radius-floating: var(--radius-none); */ /* Dropdowns, popovers (default: square) */
|
|
44
|
-
|
|
45
|
-
/* ===========================
|
|
46
|
-
SHADOW OVERRIDES
|
|
47
|
-
Customize elevation
|
|
48
|
-
=========================== */
|
|
49
|
-
/* --shadow-sm: ...; */ /* Small shadows */
|
|
50
|
-
/* --shadow-md: ...; */ /* Medium shadows (default) */
|
|
51
|
-
/* --shadow-xl: ...; */ /* Large shadows */
|
|
8
|
+
/* Routing animations (fade | slide | none) */
|
|
9
|
+
/* --routing-animation: fade; */
|
|
10
|
+
/* --routing-default-duration: var(--dur-normal); */
|
|
11
|
+
|
|
12
|
+
/* Spacing scale */
|
|
13
|
+
/* --gap-sm: 0.5rem; */
|
|
14
|
+
/* --gap-md: 1rem; */
|
|
15
|
+
/* --gap-lg: 2rem; */
|
|
16
|
+
|
|
17
|
+
/* Border radius */
|
|
18
|
+
/* --radius-interactive: var(--radius-none); */
|
|
19
|
+
/* --radius-surface: var(--radius-md); */
|
|
20
|
+
/* --radius-floating: var(--radius-none); */
|
|
52
21
|
}
|
|
53
22
|
|
|
54
23
|
/* ===========================
|
|
55
|
-
LIGHT THEME
|
|
56
|
-
|
|
57
|
-
Foreground: Black
|
|
24
|
+
LIGHT THEME
|
|
25
|
+
Zinc-based neutral palette
|
|
58
26
|
=========================== */
|
|
59
27
|
:root.light {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
--
|
|
70
|
-
--
|
|
71
|
-
--
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
--
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
=========================== */
|
|
101
|
-
--primary-foreground: var(--foreground);
|
|
102
|
-
--secondary-foreground: var(--background);
|
|
103
|
-
--accent-foreground: var(--foreground);
|
|
104
|
-
|
|
105
|
-
--success-foreground: var(--background);
|
|
106
|
-
--warning-foreground: var(--foreground);
|
|
107
|
-
--destructive-foreground: var(--background);
|
|
28
|
+
--theme-icon: 'Sun';
|
|
29
|
+
--theme-label: 'Light';
|
|
30
|
+
--theme-is-dark: 0;
|
|
31
|
+
|
|
32
|
+
/* Core colors */
|
|
33
|
+
--background: #ffffff;
|
|
34
|
+
--foreground: #09090b;
|
|
35
|
+
|
|
36
|
+
/* Surfaces */
|
|
37
|
+
--card: #ffffff;
|
|
38
|
+
--card-foreground: #09090b;
|
|
39
|
+
--popover: #ffffff;
|
|
40
|
+
--popover-foreground: #09090b;
|
|
41
|
+
|
|
42
|
+
/* Muted (zinc-100 / zinc-500) */
|
|
43
|
+
--muted: #f4f4f5;
|
|
44
|
+
--muted-foreground: #71717a;
|
|
45
|
+
|
|
46
|
+
/* Border & input (zinc-200) */
|
|
47
|
+
--border: #e4e4e7;
|
|
48
|
+
--input: #e4e4e7;
|
|
49
|
+
--ring: var(--primary);
|
|
50
|
+
|
|
51
|
+
/* Brand colors - customize these */
|
|
52
|
+
--primary: #0284c7;
|
|
53
|
+
--primary-foreground: #ffffff;
|
|
54
|
+
|
|
55
|
+
--secondary: #f4f4f5;
|
|
56
|
+
--secondary-foreground: #18181b;
|
|
57
|
+
|
|
58
|
+
--accent: #ea580c;
|
|
59
|
+
--accent-foreground: #ffffff;
|
|
60
|
+
|
|
61
|
+
/* Status colors */
|
|
62
|
+
--destructive: #dc2626;
|
|
63
|
+
--destructive-foreground: #ffffff;
|
|
64
|
+
--success: #16a34a;
|
|
65
|
+
--success-foreground: #ffffff;
|
|
66
|
+
--warning: #f59e0b;
|
|
67
|
+
--warning-foreground: #09090b;
|
|
108
68
|
}
|
|
109
69
|
|
|
110
70
|
/* ===========================
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
=========================== */
|
|
71
|
+
DARK THEME
|
|
72
|
+
Zinc-based dark palette
|
|
73
|
+
=========================== */
|
|
115
74
|
:root.dark {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
--
|
|
126
|
-
--
|
|
127
|
-
--
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
--
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
--
|
|
155
|
-
|
|
156
|
-
--accent-foreground: var(--background);
|
|
157
|
-
|
|
158
|
-
--success-foreground: var(--foreground);
|
|
159
|
-
--warning-foreground: var(--background);
|
|
160
|
-
--destructive-foreground: var(--foreground);
|
|
75
|
+
--theme-icon: 'Moon';
|
|
76
|
+
--theme-label: 'Dark';
|
|
77
|
+
--theme-is-dark: 1;
|
|
78
|
+
|
|
79
|
+
/* Core colors */
|
|
80
|
+
--background: #09090b;
|
|
81
|
+
--foreground: #fafafa;
|
|
82
|
+
|
|
83
|
+
/* Surfaces */
|
|
84
|
+
--card: #09090b;
|
|
85
|
+
--card-foreground: #fafafa;
|
|
86
|
+
--popover: #18181b;
|
|
87
|
+
--popover-foreground: #fafafa;
|
|
88
|
+
|
|
89
|
+
/* Muted (zinc-800 / zinc-400) */
|
|
90
|
+
--muted: #27272a;
|
|
91
|
+
--muted-foreground: #a1a1aa;
|
|
92
|
+
|
|
93
|
+
/* Border & input (zinc-800) */
|
|
94
|
+
--border: #27272a;
|
|
95
|
+
--input: #27272a;
|
|
96
|
+
--ring: var(--primary);
|
|
97
|
+
|
|
98
|
+
/* Brand colors - customize these */
|
|
99
|
+
--primary: #0ea5e9;
|
|
100
|
+
--primary-foreground: #ffffff;
|
|
101
|
+
|
|
102
|
+
--secondary: #27272a;
|
|
103
|
+
--secondary-foreground: #fafafa;
|
|
104
|
+
|
|
105
|
+
--accent: #f97316;
|
|
106
|
+
--accent-foreground: #ffffff;
|
|
107
|
+
|
|
108
|
+
/* Status colors */
|
|
109
|
+
--destructive: #dc2626;
|
|
110
|
+
--destructive-foreground: #ffffff;
|
|
111
|
+
--success: #16a34a;
|
|
112
|
+
--success-foreground: #ffffff;
|
|
113
|
+
--warning: #f59e0b;
|
|
114
|
+
--warning-foreground: #09090b;
|
|
161
115
|
}
|
|
162
116
|
|
|
163
|
-
|
|
117
|
+
/* ===========================
|
|
164
118
|
CUSTOM THEMES
|
|
165
|
-
|
|
119
|
+
Add your brand themes below
|
|
120
|
+
=========================== */
|
|
166
121
|
|
|
167
|
-
/* Add your custom themes here */
|
|
168
122
|
/* Example:
|
|
169
|
-
.brand {
|
|
123
|
+
:root.brand {
|
|
170
124
|
--theme-icon: 'Zap';
|
|
171
125
|
--theme-label: 'Brand';
|
|
172
|
-
--
|
|
173
|
-
--
|
|
174
|
-
--
|
|
175
|
-
|
|
176
|
-
--accent: #your-brand-accent;
|
|
177
|
-
... other variables ...
|
|
126
|
+
--theme-is-dark: 0;
|
|
127
|
+
--background: #your-color;
|
|
128
|
+
--foreground: #your-color;
|
|
129
|
+
...
|
|
178
130
|
}
|
|
179
131
|
*/
|
|
@@ -1,20 +1,164 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
// apps/{{appName}}/src/pages/HomePage.tsx
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
5
|
* @fileoverview Home page component
|
|
3
|
-
* @description
|
|
4
|
-
* @version 0.0.
|
|
6
|
+
* @description Scaffold landing page demonstrating DoNotDev framework patterns
|
|
7
|
+
* @version 0.0.4
|
|
5
8
|
* @since 0.0.1
|
|
6
|
-
* @author AMBROISE PARK Consulting
|
|
7
9
|
*/
|
|
8
10
|
|
|
9
|
-
import { HomeTemplate } from '@donotdev/templates';
|
|
10
11
|
import { Home } from 'lucide-react';
|
|
11
|
-
|
|
12
|
+
|
|
13
|
+
import {
|
|
14
|
+
Button,
|
|
15
|
+
CallToAction,
|
|
16
|
+
Card,
|
|
17
|
+
Grid,
|
|
18
|
+
GridArea,
|
|
19
|
+
HeroSection,
|
|
20
|
+
RadioGroup,
|
|
21
|
+
Section,
|
|
22
|
+
Stack,
|
|
23
|
+
Text,
|
|
24
|
+
} from '@donotdev/components';
|
|
25
|
+
import {
|
|
26
|
+
useLayout,
|
|
27
|
+
useTranslation,
|
|
28
|
+
type LayoutPreset,
|
|
29
|
+
type PageMeta,
|
|
30
|
+
} from '@donotdev/core';
|
|
31
|
+
import { PageContainer, Link } from '@donotdev/ui';
|
|
32
|
+
|
|
33
|
+
const LAYOUT_PRESETS: LayoutPreset[] = [
|
|
34
|
+
'admin',
|
|
35
|
+
'docs',
|
|
36
|
+
'landing',
|
|
37
|
+
'moolti',
|
|
38
|
+
'blog',
|
|
39
|
+
'game',
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
export const NAMESPACE = 'home';
|
|
12
43
|
|
|
13
44
|
export const meta: PageMeta = {
|
|
14
|
-
|
|
45
|
+
namespace: NAMESPACE,
|
|
15
46
|
icon: <Home />,
|
|
16
47
|
};
|
|
17
48
|
|
|
18
49
|
export default function HomePage() {
|
|
19
|
-
|
|
20
|
-
|
|
50
|
+
const currentPreset = useLayout('layoutPreset');
|
|
51
|
+
const setLayoutPreset = useLayout('setLayoutPreset');
|
|
52
|
+
const { t } = useTranslation([NAMESPACE]);
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<PageContainer>
|
|
56
|
+
<HeroSection
|
|
57
|
+
title={t('hero.title', "Welcome to DnDev")}
|
|
58
|
+
subtitle={t('hero.subtitle', "Your app is ready. Explore the framework patterns below.")}
|
|
59
|
+
variant="primary"
|
|
60
|
+
/>
|
|
61
|
+
|
|
62
|
+
{/* Layout Switcher */}
|
|
63
|
+
<Section title="Try Our Layouts" tone="muted" align="center">
|
|
64
|
+
<Text>
|
|
65
|
+
Pick a layout and see it change live. Set your preferred layout in
|
|
66
|
+
config/app.ts
|
|
67
|
+
</Text>
|
|
68
|
+
<RadioGroup
|
|
69
|
+
value={currentPreset || 'landing'}
|
|
70
|
+
onValueChange={(value) => setLayoutPreset(value as LayoutPreset)}
|
|
71
|
+
gridCols={3}
|
|
72
|
+
items={LAYOUT_PRESETS.map((preset) => ({
|
|
73
|
+
value: preset,
|
|
74
|
+
label: preset.charAt(0).toUpperCase() + preset.slice(1),
|
|
75
|
+
}))}
|
|
76
|
+
/>
|
|
77
|
+
</Section>
|
|
78
|
+
|
|
79
|
+
{/* Components Showcase */}
|
|
80
|
+
<Section title="Components Showcase">
|
|
81
|
+
{/* Stack Example */}
|
|
82
|
+
<Card title="Stack Component">
|
|
83
|
+
<Text variant="muted">
|
|
84
|
+
Stack creates flex containers. Default vertical, use direction="row"
|
|
85
|
+
for horizontal.
|
|
86
|
+
</Text>
|
|
87
|
+
<Stack direction="row" gap="medium">
|
|
88
|
+
<Card variant="primary" title="Item 1">
|
|
89
|
+
<Text>Horizontal</Text>
|
|
90
|
+
</Card>
|
|
91
|
+
<Card variant="accent" title="Item 2">
|
|
92
|
+
<Text>Stack</Text>
|
|
93
|
+
</Card>
|
|
94
|
+
</Stack>
|
|
95
|
+
</Card>
|
|
96
|
+
|
|
97
|
+
{/* Grid + GridArea Example */}
|
|
98
|
+
<Card title="Grid + GridArea Components">
|
|
99
|
+
<Text variant="muted">
|
|
100
|
+
Grid with named areas for complex layouts.
|
|
101
|
+
</Text>
|
|
102
|
+
<Grid
|
|
103
|
+
areas={`"header header"
|
|
104
|
+
"sidebar main"
|
|
105
|
+
"footer footer"`}
|
|
106
|
+
templateColumns="1fr 2fr"
|
|
107
|
+
gap="tight"
|
|
108
|
+
>
|
|
109
|
+
<GridArea name="header">
|
|
110
|
+
<Card variant="glass">
|
|
111
|
+
<Text>Header Header</Text>
|
|
112
|
+
</Card>
|
|
113
|
+
</GridArea>
|
|
114
|
+
<GridArea name="main">
|
|
115
|
+
<Card variant="glass">
|
|
116
|
+
<Text>Main 2fr</Text>
|
|
117
|
+
</Card>
|
|
118
|
+
</GridArea>
|
|
119
|
+
<GridArea name="sidebar">
|
|
120
|
+
<Card variant="glass">
|
|
121
|
+
<Text>Sidebar 1fr</Text>
|
|
122
|
+
</Card>
|
|
123
|
+
</GridArea>
|
|
124
|
+
<GridArea name="footer">
|
|
125
|
+
<Card variant="glass">
|
|
126
|
+
<Text>Footer Footer</Text>
|
|
127
|
+
</Card>
|
|
128
|
+
</GridArea>
|
|
129
|
+
</Grid>
|
|
130
|
+
</Card>
|
|
131
|
+
</Section>
|
|
132
|
+
|
|
133
|
+
{/* CallToAction */}
|
|
134
|
+
<CallToAction
|
|
135
|
+
title="Ready to Build?"
|
|
136
|
+
subtitle="Check out the guides folder for setup instructions."
|
|
137
|
+
primaryAction={
|
|
138
|
+
<Button
|
|
139
|
+
variant="primary"
|
|
140
|
+
render={({ children, ...props }) => (
|
|
141
|
+
<Link path="https://donotdev.com" {...props}>
|
|
142
|
+
{children}
|
|
143
|
+
</Link>
|
|
144
|
+
)}
|
|
145
|
+
>
|
|
146
|
+
Learn More
|
|
147
|
+
</Button>
|
|
148
|
+
}
|
|
149
|
+
secondaryAction={
|
|
150
|
+
<Button
|
|
151
|
+
variant="outline"
|
|
152
|
+
render={({ children, ...props }) => (
|
|
153
|
+
<Link path="https://discord.gg/fbeYWDak" {...props}>
|
|
154
|
+
{children}
|
|
155
|
+
</Link>
|
|
156
|
+
)}
|
|
157
|
+
>
|
|
158
|
+
Join Discord
|
|
159
|
+
</Button>
|
|
160
|
+
}
|
|
161
|
+
/>
|
|
162
|
+
</PageContainer>
|
|
163
|
+
);
|
|
164
|
+
}
|