react-groundwork 0.0.0-stage → 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/.env.example +6 -0
- package/.gitattributes +2 -0
- package/.prettierignore +7 -0
- package/.prettierrc.json +12 -0
- package/README.md +24 -2
- package/cli/index.js +119 -0
- package/components.json +25 -0
- package/eslint.config.js +17 -0
- package/index.html +13 -0
- package/jsconfig.json +8 -0
- package/package.json +111 -4
- package/public/.htaccess +11 -0
- package/public/logo.png +0 -0
- package/src/App.jsx +14 -0
- package/src/api/api.routes.js +12 -0
- package/src/api/api.services.js +8 -0
- package/src/api/apiCall.js +128 -0
- package/src/api/apiHelpers.js +20 -0
- package/src/assets/css/index.css +173 -0
- package/src/assets/images/placeholders/placeholder-170x166.png +0 -0
- package/src/assets/images/placeholders/placeholder-360x260.png +0 -0
- package/src/assets/images/placeholders/placeholder-372x225.png +0 -0
- package/src/assets/images/placeholders/placeholder-40x40.png +0 -0
- package/src/assets/images/placeholders/placeholder-451x392.png +0 -0
- package/src/components/common/AppChart.jsx +56 -0
- package/src/components/common/Breadcrumbs.jsx +90 -0
- package/src/components/common/DataTable.jsx +203 -0
- package/src/components/common/DatePicker.jsx +275 -0
- package/src/components/common/DialogComponent.jsx +308 -0
- package/src/components/common/ErrorStateComponent.jsx +46 -0
- package/src/components/common/FullscreenToggle.jsx +54 -0
- package/src/components/common/HeadingComponent.jsx +29 -0
- package/src/components/common/LoadingComponent.jsx +33 -0
- package/src/components/common/NetworkStatus.jsx +103 -0
- package/src/components/common/NoDataComponent.jsx +45 -0
- package/src/components/common/Pagination.jsx +128 -0
- package/src/components/common/ParagraphComponent.jsx +14 -0
- package/src/components/common/PhoneInputComponent.jsx +242 -0
- package/src/components/common/ReactSelect.jsx +145 -0
- package/src/components/common/SearchSelect.jsx +176 -0
- package/src/components/common/SeeMore.jsx +26 -0
- package/src/components/common/SortableHeader.jsx +23 -0
- package/src/components/common/theme-toggle.jsx +39 -0
- package/src/components/layout/AuthLayout.jsx +90 -0
- package/src/components/layout/PageLayout.jsx +32 -0
- package/src/components/layout/SidebarLayout.jsx +233 -0
- package/src/components/ui/avatar.jsx +84 -0
- package/src/components/ui/badge.jsx +43 -0
- package/src/components/ui/button.jsx +44 -0
- package/src/components/ui/card.jsx +69 -0
- package/src/components/ui/checkbox.jsx +25 -0
- package/src/components/ui/dialog.jsx +149 -0
- package/src/components/ui/empty.jsx +82 -0
- package/src/components/ui/input.jsx +19 -0
- package/src/components/ui/label.jsx +19 -0
- package/src/components/ui/select.jsx +156 -0
- package/src/components/ui/skeleton.jsx +7 -0
- package/src/components/ui/sonner.jsx +37 -0
- package/src/components/ui/switch.jsx +23 -0
- package/src/components/ui/table.jsx +74 -0
- package/src/components/ui/textarea.jsx +16 -0
- package/src/constants/constant.js +16 -0
- package/src/context/theme-provider.jsx +48 -0
- package/src/features/components/ComponentFormDialog.jsx +162 -0
- package/src/features/components/ComponentsTable.jsx +219 -0
- package/src/features/components/componentStyles.js +16 -0
- package/src/features/components/mockData.js +407 -0
- package/src/features/playground/BasicsSection.jsx +122 -0
- package/src/features/playground/DataSection.jsx +210 -0
- package/src/features/playground/DemoCard.jsx +21 -0
- package/src/features/playground/FeedbackSection.jsx +309 -0
- package/src/features/playground/FormsSection.jsx +188 -0
- package/src/features/playground/UtilitiesSection.jsx +200 -0
- package/src/hooks/useApiHandler.jsx +82 -0
- package/src/hooks/useDebounce.js +12 -0
- package/src/lib/utils.js +1 -0
- package/src/main.jsx +16 -0
- package/src/pages/auth/ForgotPasswordPage.jsx +101 -0
- package/src/pages/auth/LoginPage.jsx +120 -0
- package/src/pages/auth/SignupPage.jsx +135 -0
- package/src/pages/views/ComponentsPage.jsx +316 -0
- package/src/pages/views/DashboardPage.jsx +260 -0
- package/src/pages/views/LandingPage.jsx +772 -0
- package/src/pages/views/NotFoundPage.jsx +30 -0
- package/src/pages/views/PlaygroundPage.jsx +50 -0
- package/src/routes/AppRoutes.jsx +29 -0
- package/src/routes/ProtectedRoute.jsx +18 -0
- package/src/utils/exportCsv.js +17 -0
- package/src/utils/formatCurrency.js +19 -0
- package/src/utils/formatDateTime.js +34 -0
- package/src/utils/handleSessionExpire.js +22 -0
- package/src/utils/logger.js +34 -0
- package/vite.config.js +23 -0
|
@@ -0,0 +1,772 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import { Link } from "react-router-dom";
|
|
3
|
+
import { motion } from "framer-motion";
|
|
4
|
+
import {
|
|
5
|
+
ArrowRight,
|
|
6
|
+
BarChart3,
|
|
7
|
+
Boxes,
|
|
8
|
+
Check,
|
|
9
|
+
Copy,
|
|
10
|
+
FileCode2,
|
|
11
|
+
FolderTree,
|
|
12
|
+
Lock,
|
|
13
|
+
Menu,
|
|
14
|
+
Palette,
|
|
15
|
+
PanelLeft,
|
|
16
|
+
Plug,
|
|
17
|
+
Route,
|
|
18
|
+
Terminal,
|
|
19
|
+
ListTodo,
|
|
20
|
+
Wrench,
|
|
21
|
+
X,
|
|
22
|
+
} from "lucide-react";
|
|
23
|
+
import { toast } from "sonner";
|
|
24
|
+
import { Button } from "@/components/ui/button";
|
|
25
|
+
import { ThemeToggle } from "@/components/common/theme-toggle";
|
|
26
|
+
import { APP_NAME, getToken } from "@/constants/constant";
|
|
27
|
+
|
|
28
|
+
const PACKAGE_NAME = "react-groundwork";
|
|
29
|
+
const CREATE_COMMAND = `npx ${PACKAGE_NAME} my-app`;
|
|
30
|
+
const DEV_PORT = 5000;
|
|
31
|
+
|
|
32
|
+
const TECH_STACK = [
|
|
33
|
+
{ name: "React", version: "19" },
|
|
34
|
+
{ name: "Vite", version: "8" },
|
|
35
|
+
{ name: "React Router", version: "7" },
|
|
36
|
+
{ name: "Tailwind CSS", version: "4" },
|
|
37
|
+
{ name: "shadcn/ui + Base UI" },
|
|
38
|
+
{ name: "Axios" },
|
|
39
|
+
{ name: "Chart.js" },
|
|
40
|
+
{ name: "Framer Motion" },
|
|
41
|
+
{ name: "Sonner" },
|
|
42
|
+
{ name: "React Compiler" },
|
|
43
|
+
];
|
|
44
|
+
|
|
45
|
+
const PROBLEMS = [
|
|
46
|
+
{
|
|
47
|
+
title: "No repeated setup",
|
|
48
|
+
description:
|
|
49
|
+
"Routing, aliases, styling, theming, API helpers and layouts are already configured and working together.",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
title: "One structure across projects",
|
|
53
|
+
description:
|
|
54
|
+
"Every project starts with the same folders and conventions, so switching between codebases takes less effort.",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
title: "Examples you can delete",
|
|
58
|
+
description:
|
|
59
|
+
"Example pages show how the pieces fit together. Keep what helps, remove the rest, and build your own features.",
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
|
|
63
|
+
const READY_FEATURES = [
|
|
64
|
+
{
|
|
65
|
+
key: "routing",
|
|
66
|
+
title: "Routing and protected routes",
|
|
67
|
+
description:
|
|
68
|
+
"React Router with public and protected route groups. Visitors without a token are sent to the login page.",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
key: "api",
|
|
72
|
+
title: "API layer",
|
|
73
|
+
description:
|
|
74
|
+
"apiCall() adds the bearer token, shows toasts and handles timeouts, cancellation and expired sessions. useApiHandler tracks loading and errors per request.",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
key: "ui",
|
|
78
|
+
title: "UI component kit",
|
|
79
|
+
description:
|
|
80
|
+
"shadcn/ui components built on Base UI, plus a data table, dialogs, selects, phone input, pagination and loading, empty and error states.",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
key: "theme",
|
|
84
|
+
title: "Theming",
|
|
85
|
+
description:
|
|
86
|
+
"Light and dark mode with a saved preference. Colors are CSS tokens in one file, so a brand change is a few lines.",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
key: "layouts",
|
|
90
|
+
title: "Layouts",
|
|
91
|
+
description:
|
|
92
|
+
"Collapsible sidebar with a mobile drawer and fullscreen toggle, a split auth layout and reusable page layout variants.",
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
key: "utils",
|
|
96
|
+
title: "Utilities and hooks",
|
|
97
|
+
description:
|
|
98
|
+
"Date and currency formatting, CSV export, useDebounce, useApiHandler, a logger and an offline banner.",
|
|
99
|
+
},
|
|
100
|
+
];
|
|
101
|
+
|
|
102
|
+
const EXAMPLE_FEATURES = [
|
|
103
|
+
{
|
|
104
|
+
key: "auth",
|
|
105
|
+
title: "Auth screens",
|
|
106
|
+
description:
|
|
107
|
+
"Login, sign-up and password reset forms with validation. Login is simulated and stores a demo token until you connect your API.",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
key: "dashboard",
|
|
111
|
+
title: "Dashboard",
|
|
112
|
+
description:
|
|
113
|
+
"Stat cards, a bar chart, a doughnut chart and a recently updated list, built from the components catalog.",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
key: "catalog",
|
|
117
|
+
title: "Components catalog",
|
|
118
|
+
description:
|
|
119
|
+
"A CRUD page listing the template's own components with search, filters, sorting, pagination, multi-select tags, bulk delete and CSV export.",
|
|
120
|
+
},
|
|
121
|
+
];
|
|
122
|
+
|
|
123
|
+
const PROJECT_STRUCTURE = [
|
|
124
|
+
{ path: "src/api/", note: "apiCall(), routes and services" },
|
|
125
|
+
{ path: "src/assets/css/index.css", note: "Color tokens for light and dark themes" },
|
|
126
|
+
{ path: "src/components/ui/", note: "Base components: button, input, dialog…" },
|
|
127
|
+
{ path: "src/components/common/", note: "DataTable, Pagination, selects, charts" },
|
|
128
|
+
{ path: "src/components/layout/", note: "Sidebar, auth and page layouts" },
|
|
129
|
+
{ path: "src/features/", note: "Feature modules with their components and sample data" },
|
|
130
|
+
{ path: "src/constants/", note: "App config" },
|
|
131
|
+
{ path: "src/hooks/", note: "useApiHandler, useDebounce" },
|
|
132
|
+
{ path: "src/pages/", note: "Auth, dashboard, components and landing pages" },
|
|
133
|
+
{ path: "src/routes/", note: "Route table and protected route guard" },
|
|
134
|
+
{ path: "src/utils/", note: "Formatting, CSV export, session handling" },
|
|
135
|
+
];
|
|
136
|
+
|
|
137
|
+
const CUSTOMIZE_STEPS = [
|
|
138
|
+
{ title: "Set the app name and API URL", file: ".env", detail: "VITE_APP_NAME and VITE_BASE_URL" },
|
|
139
|
+
{
|
|
140
|
+
title: "Apply your brand colors",
|
|
141
|
+
file: "src/assets/css/index.css",
|
|
142
|
+
detail: "Edit --primary and --primary-hover in both the light and dark themes",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
title: "Add your API endpoints",
|
|
146
|
+
file: "src/api/api.services.js",
|
|
147
|
+
detail: "One function per endpoint, built on apiCall()",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
title: "Connect real authentication",
|
|
151
|
+
file: "src/pages/auth/LoginPage.jsx",
|
|
152
|
+
detail: "Use loginApi() here and registerApi() in SignupPage.jsx instead of the mocks",
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
title: "Add pages and navigation",
|
|
156
|
+
file: "src/routes/AppRoutes.jsx",
|
|
157
|
+
detail: "Then add the link to navItems in SidebarLayout.jsx",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
title: "Remove the examples",
|
|
161
|
+
file: "src/features/",
|
|
162
|
+
detail: "Delete it along with the pages, routes and nav items that use it",
|
|
163
|
+
},
|
|
164
|
+
];
|
|
165
|
+
|
|
166
|
+
const GET_STARTED_STEPS = [
|
|
167
|
+
{
|
|
168
|
+
title: "Copy the template",
|
|
169
|
+
description: "Create a new folder from the template without its git history.",
|
|
170
|
+
command: CREATE_COMMAND,
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
title: "Configure the environment",
|
|
174
|
+
description: "Copy the example env file and set your app name and API URL.",
|
|
175
|
+
command: "cp .env.example .env",
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
title: "Install and run",
|
|
179
|
+
description: `Install dependencies and start the dev server on port ${DEV_PORT}.`,
|
|
180
|
+
command: "npm install && npm run dev",
|
|
181
|
+
},
|
|
182
|
+
];
|
|
183
|
+
|
|
184
|
+
const NAV_LINKS = [
|
|
185
|
+
{ label: "Features", href: "#features" },
|
|
186
|
+
{ label: "Structure", href: "#structure" },
|
|
187
|
+
{ label: "Customize", href: "#customize" },
|
|
188
|
+
{ label: "Get started", href: "#get-started" },
|
|
189
|
+
];
|
|
190
|
+
|
|
191
|
+
const FEATURE_ICONS = {
|
|
192
|
+
routing: Route,
|
|
193
|
+
api: Plug,
|
|
194
|
+
ui: Boxes,
|
|
195
|
+
theme: Palette,
|
|
196
|
+
layouts: PanelLeft,
|
|
197
|
+
utils: Wrench,
|
|
198
|
+
auth: Lock,
|
|
199
|
+
dashboard: BarChart3,
|
|
200
|
+
catalog: ListTodo,
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
const fadeUp = {
|
|
204
|
+
initial: { opacity: 0, y: 20 },
|
|
205
|
+
whileInView: { opacity: 1, y: 0 },
|
|
206
|
+
viewport: { once: true, margin: "-60px" },
|
|
207
|
+
transition: { duration: 0.5, ease: "easeOut" },
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
const BrandMark = ({ size = "md" }) => (
|
|
211
|
+
<div
|
|
212
|
+
className={
|
|
213
|
+
size === "sm"
|
|
214
|
+
? "flex h-6 w-6 items-center justify-center rounded-md bg-primary text-xs font-bold text-primary-foreground"
|
|
215
|
+
: "flex h-8 w-8 items-center justify-center rounded-lg bg-primary text-sm font-bold text-primary-foreground"
|
|
216
|
+
}
|
|
217
|
+
>
|
|
218
|
+
{APP_NAME.charAt(0)}
|
|
219
|
+
</div>
|
|
220
|
+
);
|
|
221
|
+
|
|
222
|
+
const SectionHeading = ({ eyebrow, title, description }) => (
|
|
223
|
+
<motion.div {...fadeUp} className="mx-auto max-w-2xl text-center">
|
|
224
|
+
<p className="text-sm font-semibold text-primary">{eyebrow}</p>
|
|
225
|
+
<h2 className="mt-2 font-heading text-3xl font-bold tracking-tight text-balance md:text-4xl">{title}</h2>
|
|
226
|
+
<p className="mt-4 text-base leading-relaxed text-muted-foreground">{description}</p>
|
|
227
|
+
</motion.div>
|
|
228
|
+
);
|
|
229
|
+
|
|
230
|
+
const COPIED_RESET_MS = 2000;
|
|
231
|
+
|
|
232
|
+
const useCopyCommand = (command) => {
|
|
233
|
+
const [copied, setCopied] = useState(false);
|
|
234
|
+
|
|
235
|
+
const handleCopy = async () => {
|
|
236
|
+
try {
|
|
237
|
+
await navigator.clipboard.writeText(command);
|
|
238
|
+
setCopied(true);
|
|
239
|
+
setTimeout(() => setCopied(false), COPIED_RESET_MS);
|
|
240
|
+
} catch {
|
|
241
|
+
toast.error("Couldn't copy the command. Select it and copy it manually.");
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
return { copied, handleCopy };
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
const CommandLine = ({ command, onBrand = false, className = "" }) => {
|
|
249
|
+
const { copied, handleCopy } = useCopyCommand(command);
|
|
250
|
+
|
|
251
|
+
return (
|
|
252
|
+
<div
|
|
253
|
+
className={
|
|
254
|
+
"flex w-full items-center gap-3 rounded-xl border py-2 pr-2 pl-4 font-mono text-sm shadow-sm " +
|
|
255
|
+
(onBrand ? "border-white/25 bg-black/20 text-white backdrop-blur " : "border-border bg-card text-foreground ") +
|
|
256
|
+
className
|
|
257
|
+
}
|
|
258
|
+
>
|
|
259
|
+
<span className={onBrand ? "text-white/60 select-none" : "text-primary select-none"}>$</span>
|
|
260
|
+
<code className="min-w-0 flex-1 truncate text-left">{command}</code>
|
|
261
|
+
<Button
|
|
262
|
+
variant="ghost"
|
|
263
|
+
size="icon-sm"
|
|
264
|
+
onClick={handleCopy}
|
|
265
|
+
title="Copy command"
|
|
266
|
+
className={
|
|
267
|
+
onBrand ? "text-white/70 hover:bg-white/15 hover:text-white" : "text-muted-foreground hover:text-primary"
|
|
268
|
+
}
|
|
269
|
+
>
|
|
270
|
+
{copied ? <Check className="text-emerald-500" /> : <Copy />}
|
|
271
|
+
<span className="sr-only">Copy command</span>
|
|
272
|
+
</Button>
|
|
273
|
+
</div>
|
|
274
|
+
);
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
const SETUP_LINES = [
|
|
278
|
+
{ type: "command", text: CREATE_COMMAND },
|
|
279
|
+
{ type: "output", text: "Created my-app from the template" },
|
|
280
|
+
{ type: "command", text: "cd my-app && npm install" },
|
|
281
|
+
{ type: "command", text: "npm run dev" },
|
|
282
|
+
{ type: "output", text: `Local: http://localhost:${DEV_PORT}/`, highlight: true },
|
|
283
|
+
];
|
|
284
|
+
|
|
285
|
+
const SetupTerminal = () => {
|
|
286
|
+
const { copied, handleCopy } = useCopyCommand(CREATE_COMMAND);
|
|
287
|
+
|
|
288
|
+
return (
|
|
289
|
+
<div className="overflow-hidden rounded-xl bg-neutral-950 text-neutral-200 ring-1 ring-black/5 dark:bg-black/40 dark:ring-white/10">
|
|
290
|
+
<div className="flex items-center justify-between border-b border-white/8 py-2 pr-2 pl-4">
|
|
291
|
+
<span className="font-mono text-xs text-neutral-500">~/projects</span>
|
|
292
|
+
<Button
|
|
293
|
+
variant="ghost"
|
|
294
|
+
size="icon-sm"
|
|
295
|
+
onClick={handleCopy}
|
|
296
|
+
title="Copy command"
|
|
297
|
+
className="text-neutral-400 hover:bg-white/10 hover:text-white"
|
|
298
|
+
>
|
|
299
|
+
{copied ? <Check /> : <Copy />}
|
|
300
|
+
<span className="sr-only">Copy command</span>
|
|
301
|
+
</Button>
|
|
302
|
+
</div>
|
|
303
|
+
<div className="space-y-2 overflow-x-auto p-5 font-mono text-[13px] leading-5">
|
|
304
|
+
{SETUP_LINES.map((line) =>
|
|
305
|
+
line.type === "command" ? (
|
|
306
|
+
<p key={line.text} className="whitespace-nowrap">
|
|
307
|
+
<span className="mr-3 text-neutral-500 select-none">$</span>
|
|
308
|
+
{line.text}
|
|
309
|
+
</p>
|
|
310
|
+
) : (
|
|
311
|
+
<p
|
|
312
|
+
key={line.text}
|
|
313
|
+
className={"pl-6 whitespace-nowrap " + (line.highlight ? "text-[#6EA2FF]" : "text-neutral-500")}
|
|
314
|
+
>
|
|
315
|
+
{line.text}
|
|
316
|
+
</p>
|
|
317
|
+
),
|
|
318
|
+
)}
|
|
319
|
+
</div>
|
|
320
|
+
</div>
|
|
321
|
+
);
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
const PreviewWindow = () => (
|
|
325
|
+
<div className="overflow-hidden rounded-2xl border border-border bg-card shadow-xl shadow-black/5 dark:shadow-black/30">
|
|
326
|
+
<div className="flex items-center gap-1.5 border-b border-border bg-muted/50 px-4 py-3">
|
|
327
|
+
<span className="h-2.5 w-2.5 rounded-full bg-foreground/15" />
|
|
328
|
+
<span className="h-2.5 w-2.5 rounded-full bg-foreground/15" />
|
|
329
|
+
<span className="h-2.5 w-2.5 rounded-full bg-foreground/15" />
|
|
330
|
+
<span className="ml-3 truncate rounded-md bg-background px-3 py-0.5 text-[11px] text-muted-foreground">
|
|
331
|
+
localhost:{DEV_PORT}/dashboard
|
|
332
|
+
</span>
|
|
333
|
+
</div>
|
|
334
|
+
<div className="flex">
|
|
335
|
+
<div className="hidden w-40 shrink-0 space-y-1.5 border-r border-border p-3 sm:block">
|
|
336
|
+
<div className="mb-3 flex items-center gap-2">
|
|
337
|
+
<BrandMark size="sm" />
|
|
338
|
+
<span className="h-2 w-16 rounded-full bg-foreground/15" />
|
|
339
|
+
</div>
|
|
340
|
+
<div className="flex items-center gap-2 rounded-md bg-foreground/6 px-2 py-1.5">
|
|
341
|
+
<span className="h-3 w-3 rounded bg-foreground/40" />
|
|
342
|
+
<span className="h-2 w-14 rounded-full bg-foreground/30" />
|
|
343
|
+
</div>
|
|
344
|
+
{[0, 1, 2].map((i) => (
|
|
345
|
+
<div key={i} className="flex items-center gap-2 px-2 py-1.5">
|
|
346
|
+
<span className="h-3 w-3 rounded bg-foreground/15" />
|
|
347
|
+
<span className="h-2 w-12 rounded-full bg-foreground/10" />
|
|
348
|
+
</div>
|
|
349
|
+
))}
|
|
350
|
+
</div>
|
|
351
|
+
<div className="flex-1 space-y-3 p-4">
|
|
352
|
+
<div className="grid grid-cols-2 gap-3 md:grid-cols-4">
|
|
353
|
+
{[0, 1, 2, 3].map((i) => (
|
|
354
|
+
<div key={i} className="rounded-lg border border-border p-3">
|
|
355
|
+
<span className="block h-5 w-5 rounded-md bg-foreground/8" />
|
|
356
|
+
<span className="mt-3 block h-2 w-10 rounded-full bg-foreground/10" />
|
|
357
|
+
<span className="mt-2 block h-3.5 w-8 rounded bg-foreground/20" />
|
|
358
|
+
</div>
|
|
359
|
+
))}
|
|
360
|
+
</div>
|
|
361
|
+
<div className="grid grid-cols-3 gap-3">
|
|
362
|
+
<div className="col-span-2 rounded-lg border border-border p-3">
|
|
363
|
+
<span className="block h-2 w-20 rounded-full bg-foreground/15" />
|
|
364
|
+
<svg viewBox="0 0 300 90" className="mt-3 h-24 w-full" preserveAspectRatio="none">
|
|
365
|
+
<defs>
|
|
366
|
+
<linearGradient id="preview-fill" x1="0" x2="0" y1="0" y2="1">
|
|
367
|
+
<stop offset="0%" stopColor="var(--primary)" stopOpacity="0.12" />
|
|
368
|
+
<stop offset="100%" stopColor="var(--primary)" stopOpacity="0" />
|
|
369
|
+
</linearGradient>
|
|
370
|
+
</defs>
|
|
371
|
+
<path
|
|
372
|
+
d="M0 80 C40 70 60 72 90 58 S150 40 180 42 S240 20 300 12 L300 90 L0 90 Z"
|
|
373
|
+
fill="url(#preview-fill)"
|
|
374
|
+
/>
|
|
375
|
+
<path
|
|
376
|
+
d="M0 80 C40 70 60 72 90 58 S150 40 180 42 S240 20 300 12"
|
|
377
|
+
fill="none"
|
|
378
|
+
stroke="var(--primary)"
|
|
379
|
+
strokeWidth="2.5"
|
|
380
|
+
/>
|
|
381
|
+
</svg>
|
|
382
|
+
</div>
|
|
383
|
+
<div className="flex items-center justify-center rounded-lg border border-border p-3">
|
|
384
|
+
<div className="h-20 w-20 rounded-full border-10 border-primary border-r-foreground/25 border-b-foreground/10" />
|
|
385
|
+
</div>
|
|
386
|
+
</div>
|
|
387
|
+
</div>
|
|
388
|
+
</div>
|
|
389
|
+
</div>
|
|
390
|
+
);
|
|
391
|
+
|
|
392
|
+
const FeatureCard = ({ feature, idx, tag }) => {
|
|
393
|
+
const Icon = FEATURE_ICONS[feature.key];
|
|
394
|
+
return (
|
|
395
|
+
<motion.div
|
|
396
|
+
{...fadeUp}
|
|
397
|
+
transition={{ ...fadeUp.transition, delay: (idx % 3) * 0.08 }}
|
|
398
|
+
className="group rounded-2xl border border-border bg-card p-6 transition-all duration-300 hover:-translate-y-1 hover:border-foreground/20"
|
|
399
|
+
>
|
|
400
|
+
<div className="flex items-start justify-between gap-3">
|
|
401
|
+
<div className="flex h-11 w-11 items-center justify-center rounded-xl bg-primary/10 text-primary transition-colors duration-300 group-hover:bg-primary group-hover:text-primary-foreground">
|
|
402
|
+
<Icon className="h-5 w-5" />
|
|
403
|
+
</div>
|
|
404
|
+
<span
|
|
405
|
+
className={
|
|
406
|
+
"rounded-full px-2.5 py-0.5 text-[11px] font-medium " +
|
|
407
|
+
(tag === "Ready"
|
|
408
|
+
? "bg-emerald-500/10 text-emerald-600 dark:text-emerald-400"
|
|
409
|
+
: "bg-amber-500/10 text-amber-600 dark:text-amber-400")
|
|
410
|
+
}
|
|
411
|
+
>
|
|
412
|
+
{tag}
|
|
413
|
+
</span>
|
|
414
|
+
</div>
|
|
415
|
+
<h3 className="mt-5 text-base font-semibold tracking-tight">{feature.title}</h3>
|
|
416
|
+
<p className="mt-2 text-sm leading-relaxed text-muted-foreground">{feature.description}</p>
|
|
417
|
+
</motion.div>
|
|
418
|
+
);
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
const FeatureGroup = ({ title, description, features, tag }) => (
|
|
422
|
+
<div className="mx-auto mt-14 max-w-6xl">
|
|
423
|
+
<motion.div {...fadeUp} className="mb-5">
|
|
424
|
+
<h3 className="font-heading text-lg font-semibold tracking-tight">{title}</h3>
|
|
425
|
+
<p className="mt-1 text-sm text-muted-foreground">{description}</p>
|
|
426
|
+
</motion.div>
|
|
427
|
+
<div className="grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3">
|
|
428
|
+
{features.map((feature, idx) => (
|
|
429
|
+
<FeatureCard key={feature.key} feature={feature} idx={idx} tag={tag} />
|
|
430
|
+
))}
|
|
431
|
+
</div>
|
|
432
|
+
</div>
|
|
433
|
+
);
|
|
434
|
+
|
|
435
|
+
const LandingPage = () => {
|
|
436
|
+
const [mobileOpen, setMobileOpen] = useState(false);
|
|
437
|
+
const isLoggedIn = Boolean(getToken());
|
|
438
|
+
const demoPath = isLoggedIn ? "/dashboard" : "/login";
|
|
439
|
+
const catalogPath = isLoggedIn ? "/components" : "/login";
|
|
440
|
+
|
|
441
|
+
return (
|
|
442
|
+
<div className="min-h-screen w-full overflow-x-hidden bg-background">
|
|
443
|
+
<header className="sticky top-0 z-40 border-b border-border bg-background/80 backdrop-blur">
|
|
444
|
+
<div className="mx-auto flex h-16 w-full items-center justify-between px-4 md:px-8 lg:px-12">
|
|
445
|
+
<Link to="/" className="flex items-center gap-2.5">
|
|
446
|
+
<BrandMark />
|
|
447
|
+
<span className="text-base font-semibold tracking-tight">{APP_NAME}</span>
|
|
448
|
+
</Link>
|
|
449
|
+
|
|
450
|
+
<nav className="hidden items-center gap-8 md:flex">
|
|
451
|
+
{NAV_LINKS.map((link) => (
|
|
452
|
+
<a
|
|
453
|
+
key={link.href}
|
|
454
|
+
href={link.href}
|
|
455
|
+
className="text-sm font-medium text-muted-foreground transition-colors hover:text-primary"
|
|
456
|
+
>
|
|
457
|
+
{link.label}
|
|
458
|
+
</a>
|
|
459
|
+
))}
|
|
460
|
+
</nav>
|
|
461
|
+
|
|
462
|
+
<div className="hidden items-center gap-2 md:flex">
|
|
463
|
+
<ThemeToggle variant="ghost" size="icon-sm" />
|
|
464
|
+
<Button variant="ghost" className="h-9" render={<Link to="/login" />}>
|
|
465
|
+
Log in
|
|
466
|
+
</Button>
|
|
467
|
+
<Button className="h-9" render={<Link to={demoPath} />}>
|
|
468
|
+
Open demo
|
|
469
|
+
</Button>
|
|
470
|
+
</div>
|
|
471
|
+
|
|
472
|
+
<button
|
|
473
|
+
className="rounded-md p-1.5 text-foreground/70 hover:bg-accent md:hidden"
|
|
474
|
+
onClick={() => setMobileOpen((v) => !v)}
|
|
475
|
+
aria-label={mobileOpen ? "Close menu" : "Open menu"}
|
|
476
|
+
>
|
|
477
|
+
{mobileOpen ? <X className="h-5 w-5" /> : <Menu className="h-5 w-5" />}
|
|
478
|
+
</button>
|
|
479
|
+
</div>
|
|
480
|
+
|
|
481
|
+
{mobileOpen && (
|
|
482
|
+
<div className="border-t border-border px-4 py-3 md:hidden">
|
|
483
|
+
<nav className="flex flex-col gap-3">
|
|
484
|
+
{NAV_LINKS.map((link) => (
|
|
485
|
+
<a
|
|
486
|
+
key={link.href}
|
|
487
|
+
href={link.href}
|
|
488
|
+
className="text-sm font-medium text-muted-foreground hover:text-primary"
|
|
489
|
+
onClick={() => setMobileOpen(false)}
|
|
490
|
+
>
|
|
491
|
+
{link.label}
|
|
492
|
+
</a>
|
|
493
|
+
))}
|
|
494
|
+
<div className="mt-1 flex items-center gap-2">
|
|
495
|
+
<ThemeToggle />
|
|
496
|
+
<Button variant="outline" size="sm" className="flex-1" render={<Link to="/login" />}>
|
|
497
|
+
Log in
|
|
498
|
+
</Button>
|
|
499
|
+
<Button size="sm" className="flex-1" render={<Link to={demoPath} />}>
|
|
500
|
+
Open demo
|
|
501
|
+
</Button>
|
|
502
|
+
</div>
|
|
503
|
+
</nav>
|
|
504
|
+
</div>
|
|
505
|
+
)}
|
|
506
|
+
</header>
|
|
507
|
+
|
|
508
|
+
<section className="relative">
|
|
509
|
+
<div className="relative mx-auto flex w-full flex-col items-center px-4 pt-20 pb-16 text-center md:px-8 md:pt-28 lg:px-12">
|
|
510
|
+
<motion.div
|
|
511
|
+
initial={{ opacity: 0, y: 12 }}
|
|
512
|
+
animate={{ opacity: 1, y: 0 }}
|
|
513
|
+
transition={{ duration: 0.4 }}
|
|
514
|
+
className="inline-flex items-center gap-1.5 rounded-full border border-border bg-muted px-3 py-1 text-xs font-medium text-muted-foreground"
|
|
515
|
+
>
|
|
516
|
+
<Terminal className="h-3.5 w-3.5" />
|
|
517
|
+
React starter template
|
|
518
|
+
</motion.div>
|
|
519
|
+
|
|
520
|
+
<motion.h1
|
|
521
|
+
initial={{ opacity: 0, y: 20 }}
|
|
522
|
+
animate={{ opacity: 1, y: 0 }}
|
|
523
|
+
transition={{ duration: 0.5, delay: 0.1 }}
|
|
524
|
+
className="mt-6 max-w-4xl font-heading text-4xl leading-[1.08] font-bold tracking-tighter text-balance md:text-6xl lg:text-7xl"
|
|
525
|
+
>
|
|
526
|
+
Set up your React frontend once.
|
|
527
|
+
</motion.h1>
|
|
528
|
+
|
|
529
|
+
<motion.p
|
|
530
|
+
initial={{ opacity: 0, y: 20 }}
|
|
531
|
+
animate={{ opacity: 1, y: 0 }}
|
|
532
|
+
transition={{ duration: 0.5, delay: 0.2 }}
|
|
533
|
+
className="mt-6 max-w-2xl text-base leading-relaxed text-muted-foreground md:text-lg"
|
|
534
|
+
>
|
|
535
|
+
A reusable foundation with routing, protected routes, an API layer, a themeable component kit and layouts
|
|
536
|
+
already configured. Copy it into a new folder and start with the features your project actually needs.
|
|
537
|
+
</motion.p>
|
|
538
|
+
|
|
539
|
+
<motion.div
|
|
540
|
+
initial={{ opacity: 0, y: 20 }}
|
|
541
|
+
animate={{ opacity: 1, y: 0 }}
|
|
542
|
+
transition={{ duration: 0.5, delay: 0.3 }}
|
|
543
|
+
className="mt-10 flex w-full flex-col items-center gap-4"
|
|
544
|
+
>
|
|
545
|
+
<CommandLine command={CREATE_COMMAND} className="max-w-md" />
|
|
546
|
+
<div className="flex flex-col items-center gap-3 sm:flex-row">
|
|
547
|
+
<Button size="lg" className="h-11 px-6" render={<Link to={demoPath} />}>
|
|
548
|
+
Explore the demo
|
|
549
|
+
<ArrowRight />
|
|
550
|
+
</Button>
|
|
551
|
+
<Button variant="outline" size="lg" className="h-11 px-6" render={<a href="#features" />}>
|
|
552
|
+
See what's included
|
|
553
|
+
</Button>
|
|
554
|
+
</div>
|
|
555
|
+
{!isLoggedIn && (
|
|
556
|
+
<p className="text-xs text-muted-foreground">The demo login accepts any email and password.</p>
|
|
557
|
+
)}
|
|
558
|
+
</motion.div>
|
|
559
|
+
|
|
560
|
+
<motion.ul
|
|
561
|
+
initial={{ opacity: 0 }}
|
|
562
|
+
animate={{ opacity: 1 }}
|
|
563
|
+
transition={{ duration: 0.6, delay: 0.45 }}
|
|
564
|
+
aria-label="Tech stack"
|
|
565
|
+
className="mt-12 flex max-w-3xl flex-wrap items-center justify-center gap-2"
|
|
566
|
+
>
|
|
567
|
+
{TECH_STACK.map((tech) => (
|
|
568
|
+
<li
|
|
569
|
+
key={tech.name}
|
|
570
|
+
className="rounded-full border border-border bg-card px-3 py-1 text-xs font-medium text-foreground/80"
|
|
571
|
+
>
|
|
572
|
+
{tech.name}
|
|
573
|
+
{tech.version && <span className="ml-1 text-muted-foreground">{tech.version}</span>}
|
|
574
|
+
</li>
|
|
575
|
+
))}
|
|
576
|
+
</motion.ul>
|
|
577
|
+
</div>
|
|
578
|
+
|
|
579
|
+
<motion.div
|
|
580
|
+
initial={{ opacity: 0, y: 40 }}
|
|
581
|
+
animate={{ opacity: 1, y: 0 }}
|
|
582
|
+
transition={{ duration: 0.7, delay: 0.5, ease: "easeOut" }}
|
|
583
|
+
className="mx-auto w-full max-w-5xl px-4 pb-24 md:px-8"
|
|
584
|
+
>
|
|
585
|
+
<PreviewWindow />
|
|
586
|
+
</motion.div>
|
|
587
|
+
</section>
|
|
588
|
+
|
|
589
|
+
<section className="border-t border-border">
|
|
590
|
+
<div className="mx-auto grid w-full max-w-6xl grid-cols-1 gap-8 px-4 py-16 md:grid-cols-3 md:px-8">
|
|
591
|
+
{PROBLEMS.map((item, idx) => (
|
|
592
|
+
<motion.div key={item.title} {...fadeUp} transition={{ ...fadeUp.transition, delay: idx * 0.08 }}>
|
|
593
|
+
<h3 className="flex items-center gap-2 text-base font-semibold tracking-tight">
|
|
594
|
+
<span className="flex h-5 w-5 items-center justify-center rounded-full bg-primary/10 text-primary">
|
|
595
|
+
<Check className="h-3 w-3" />
|
|
596
|
+
</span>
|
|
597
|
+
{item.title}
|
|
598
|
+
</h3>
|
|
599
|
+
<p className="mt-2 text-sm leading-relaxed text-muted-foreground">{item.description}</p>
|
|
600
|
+
</motion.div>
|
|
601
|
+
))}
|
|
602
|
+
</div>
|
|
603
|
+
</section>
|
|
604
|
+
|
|
605
|
+
<section id="features" className="scroll-mt-16 border-t border-border bg-muted/30">
|
|
606
|
+
<div className="mx-auto w-full px-4 py-24 md:px-8 lg:px-12">
|
|
607
|
+
<SectionHeading
|
|
608
|
+
eyebrow="What's included"
|
|
609
|
+
title="Infrastructure you keep, examples you replace"
|
|
610
|
+
description="The core setup is ready to use in real projects. The example pages show how to build on it and use sample data until you connect your backend."
|
|
611
|
+
/>
|
|
612
|
+
|
|
613
|
+
<FeatureGroup
|
|
614
|
+
title="Ready to use"
|
|
615
|
+
description="Configured infrastructure you can rely on in every project."
|
|
616
|
+
features={READY_FEATURES}
|
|
617
|
+
tag="Ready"
|
|
618
|
+
/>
|
|
619
|
+
<FeatureGroup
|
|
620
|
+
title="Examples"
|
|
621
|
+
description="Working reference pages. Adapt them to your domain or delete them."
|
|
622
|
+
features={EXAMPLE_FEATURES}
|
|
623
|
+
tag="Example"
|
|
624
|
+
/>
|
|
625
|
+
</div>
|
|
626
|
+
</section>
|
|
627
|
+
|
|
628
|
+
<section id="structure" className="scroll-mt-16 border-t border-border">
|
|
629
|
+
<div className="mx-auto grid w-full max-w-6xl grid-cols-1 items-center gap-12 px-4 py-24 md:px-8 lg:grid-cols-2">
|
|
630
|
+
<motion.div {...fadeUp}>
|
|
631
|
+
<p className="text-sm font-semibold text-primary">Project structure</p>
|
|
632
|
+
<h2 className="mt-2 font-heading text-3xl font-bold tracking-tight text-balance md:text-4xl">
|
|
633
|
+
A predictable place for everything
|
|
634
|
+
</h2>
|
|
635
|
+
<p className="mt-4 text-base leading-relaxed text-muted-foreground">
|
|
636
|
+
Shared building blocks live in components, each feature keeps its code and sample data in features, and
|
|
637
|
+
configuration stays in constants and env files. Imports use the{" "}
|
|
638
|
+
<code className="rounded bg-muted px-1 py-0.5 font-mono text-sm">@/</code> alias for{" "}
|
|
639
|
+
<code className="rounded bg-muted px-1 py-0.5 font-mono text-sm">src/</code>.
|
|
640
|
+
</p>
|
|
641
|
+
<Button variant="outline" className="mt-8 h-10" render={<Link to={catalogPath} />}>
|
|
642
|
+
See the components catalog
|
|
643
|
+
<ArrowRight />
|
|
644
|
+
</Button>
|
|
645
|
+
</motion.div>
|
|
646
|
+
|
|
647
|
+
<motion.div
|
|
648
|
+
{...fadeUp}
|
|
649
|
+
transition={{ ...fadeUp.transition, delay: 0.1 }}
|
|
650
|
+
className="overflow-hidden rounded-2xl border border-border bg-card shadow-sm"
|
|
651
|
+
>
|
|
652
|
+
<div className="flex items-center gap-2 border-b border-border bg-muted/50 px-4 py-3 text-xs font-medium text-muted-foreground">
|
|
653
|
+
<FolderTree className="h-4 w-4 text-primary" />
|
|
654
|
+
my-app
|
|
655
|
+
</div>
|
|
656
|
+
<ul className="divide-y divide-border">
|
|
657
|
+
{PROJECT_STRUCTURE.map((item) => (
|
|
658
|
+
<li
|
|
659
|
+
key={item.path}
|
|
660
|
+
className="flex flex-col gap-0.5 px-4 py-2.5 sm:flex-row sm:items-center sm:justify-between sm:gap-4"
|
|
661
|
+
>
|
|
662
|
+
<code className="font-mono text-sm text-foreground">{item.path}</code>
|
|
663
|
+
<span className="text-xs text-muted-foreground sm:text-right">{item.note}</span>
|
|
664
|
+
</li>
|
|
665
|
+
))}
|
|
666
|
+
</ul>
|
|
667
|
+
</motion.div>
|
|
668
|
+
</div>
|
|
669
|
+
</section>
|
|
670
|
+
|
|
671
|
+
<section id="customize" className="scroll-mt-16 border-t border-border bg-muted/30">
|
|
672
|
+
<div className="mx-auto w-full px-4 py-24 md:px-8 lg:px-12">
|
|
673
|
+
<SectionHeading
|
|
674
|
+
eyebrow="Customize"
|
|
675
|
+
title="Make it yours in a few files"
|
|
676
|
+
description="Most changes start in one known file. Follow these steps to turn the template into your project."
|
|
677
|
+
/>
|
|
678
|
+
|
|
679
|
+
<ol className="mx-auto mt-14 grid max-w-5xl grid-cols-1 gap-4 md:grid-cols-2">
|
|
680
|
+
{CUSTOMIZE_STEPS.map((step, idx) => (
|
|
681
|
+
<motion.li
|
|
682
|
+
key={step.title}
|
|
683
|
+
{...fadeUp}
|
|
684
|
+
transition={{ ...fadeUp.transition, delay: (idx % 2) * 0.08 }}
|
|
685
|
+
className="flex gap-4 rounded-2xl border border-border bg-card p-5"
|
|
686
|
+
>
|
|
687
|
+
<span className="flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-primary/10 text-xs font-semibold text-primary">
|
|
688
|
+
{idx + 1}
|
|
689
|
+
</span>
|
|
690
|
+
<div className="min-w-0">
|
|
691
|
+
<p className="text-sm font-semibold">{step.title}</p>
|
|
692
|
+
<p className="mt-1.5 inline-flex max-w-full items-center gap-1 rounded-md bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground">
|
|
693
|
+
<FileCode2 className="h-3 w-3 shrink-0" />
|
|
694
|
+
<span className="truncate">{step.file}</span>
|
|
695
|
+
</p>
|
|
696
|
+
<p className="mt-1.5 text-sm text-muted-foreground">{step.detail}</p>
|
|
697
|
+
</div>
|
|
698
|
+
</motion.li>
|
|
699
|
+
))}
|
|
700
|
+
</ol>
|
|
701
|
+
</div>
|
|
702
|
+
</section>
|
|
703
|
+
|
|
704
|
+
<section id="get-started" className="scroll-mt-16 border-t border-border">
|
|
705
|
+
<div className="mx-auto w-full px-4 py-24 md:px-8 lg:px-12">
|
|
706
|
+
<SectionHeading
|
|
707
|
+
eyebrow="Get started"
|
|
708
|
+
title="Run a new project in three steps"
|
|
709
|
+
description="You need Node.js 20.19 or later and npm."
|
|
710
|
+
/>
|
|
711
|
+
|
|
712
|
+
<div className="mx-auto mt-14 grid max-w-6xl grid-cols-1 gap-5 lg:grid-cols-3">
|
|
713
|
+
{GET_STARTED_STEPS.map((step, idx) => (
|
|
714
|
+
<motion.div
|
|
715
|
+
key={step.title}
|
|
716
|
+
{...fadeUp}
|
|
717
|
+
transition={{ ...fadeUp.transition, delay: idx * 0.1 }}
|
|
718
|
+
className="flex flex-col rounded-2xl border border-border bg-card p-6"
|
|
719
|
+
>
|
|
720
|
+
<span className="flex h-9 w-9 items-center justify-center rounded-full bg-primary text-sm font-bold text-primary-foreground">
|
|
721
|
+
{idx + 1}
|
|
722
|
+
</span>
|
|
723
|
+
<h3 className="mt-5 text-base font-semibold tracking-tight">{step.title}</h3>
|
|
724
|
+
<p className="mt-2 mb-5 text-sm leading-relaxed text-muted-foreground">{step.description}</p>
|
|
725
|
+
<CommandLine command={step.command} className="mt-auto text-xs" />
|
|
726
|
+
</motion.div>
|
|
727
|
+
))}
|
|
728
|
+
</div>
|
|
729
|
+
</div>
|
|
730
|
+
</section>
|
|
731
|
+
|
|
732
|
+
<section className="px-4 pb-24 md:px-8 lg:px-12">
|
|
733
|
+
<motion.div
|
|
734
|
+
{...fadeUp}
|
|
735
|
+
className="mx-auto grid max-w-6xl items-center gap-10 rounded-2xl border border-border bg-card p-6 md:p-10 lg:grid-cols-[1fr_1.1fr] lg:gap-12 lg:p-12"
|
|
736
|
+
>
|
|
737
|
+
<div>
|
|
738
|
+
<h2 className="font-heading text-3xl leading-tight font-semibold tracking-tight text-balance md:text-4xl">
|
|
739
|
+
Start your next project from a working base
|
|
740
|
+
</h2>
|
|
741
|
+
<p className="mt-4 max-w-md text-base leading-relaxed text-muted-foreground">
|
|
742
|
+
Copy the template, connect your API and spend your first day on features instead of setup.
|
|
743
|
+
</p>
|
|
744
|
+
<div className="mt-8 flex flex-col gap-3 sm:flex-row">
|
|
745
|
+
<Button size="lg" className="h-11 px-6" render={<Link to={demoPath} />}>
|
|
746
|
+
Explore the demo
|
|
747
|
+
<ArrowRight />
|
|
748
|
+
</Button>
|
|
749
|
+
<Button variant="outline" size="lg" className="h-11 px-6" render={<a href="#features" />}>
|
|
750
|
+
See what's included
|
|
751
|
+
</Button>
|
|
752
|
+
</div>
|
|
753
|
+
</div>
|
|
754
|
+
|
|
755
|
+
<SetupTerminal />
|
|
756
|
+
</motion.div>
|
|
757
|
+
</section>
|
|
758
|
+
|
|
759
|
+
<footer className="border-t border-border">
|
|
760
|
+
<div className="mx-auto flex w-full flex-col items-center justify-between gap-3 px-4 py-8 text-sm text-muted-foreground md:flex-row md:px-8 lg:px-12">
|
|
761
|
+
<div className="flex items-center gap-2">
|
|
762
|
+
<BrandMark size="sm" />
|
|
763
|
+
<span className="font-medium text-foreground">{APP_NAME}</span>
|
|
764
|
+
</div>
|
|
765
|
+
<p>React starter template · Built with React, Vite and Tailwind CSS</p>
|
|
766
|
+
</div>
|
|
767
|
+
</footer>
|
|
768
|
+
</div>
|
|
769
|
+
);
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
export default LandingPage;
|