howone 0.0.3 → 0.0.5
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/package.json +1 -1
- package/templates/nextjs/.prettierignore +7 -0
- package/templates/nextjs/.prettierrc +11 -0
- package/templates/nextjs/README.md +12 -27
- package/templates/nextjs/app/globals.css +123 -40
- package/templates/nextjs/app/layout.tsx +19 -19
- package/templates/nextjs/app/page.tsx +13 -60
- package/templates/nextjs/bun.lock +925 -53
- package/templates/nextjs/components/.gitkeep +0 -0
- package/templates/nextjs/components/theme-provider.tsx +71 -0
- package/templates/nextjs/components/ui/accordion.tsx +81 -0
- package/templates/nextjs/components/ui/alert-dialog.tsx +199 -0
- package/templates/nextjs/components/ui/alert.tsx +76 -0
- package/templates/nextjs/components/ui/aspect-ratio.tsx +11 -0
- package/templates/nextjs/components/ui/avatar.tsx +112 -0
- package/templates/nextjs/components/ui/badge.tsx +49 -0
- package/templates/nextjs/components/ui/breadcrumb.tsx +122 -0
- package/templates/nextjs/components/ui/button-group.tsx +83 -0
- package/templates/nextjs/components/ui/button.tsx +67 -0
- package/templates/nextjs/components/ui/calendar.tsx +222 -0
- package/templates/nextjs/components/ui/card.tsx +103 -0
- package/templates/nextjs/components/ui/carousel.tsx +242 -0
- package/templates/nextjs/components/ui/chart.tsx +373 -0
- package/templates/nextjs/components/ui/checkbox.tsx +33 -0
- package/templates/nextjs/components/ui/collapsible.tsx +33 -0
- package/templates/nextjs/components/ui/combobox.tsx +299 -0
- package/templates/nextjs/components/ui/command.tsx +195 -0
- package/templates/nextjs/components/ui/context-menu.tsx +263 -0
- package/templates/nextjs/components/ui/dialog.tsx +168 -0
- package/templates/nextjs/components/ui/direction.tsx +22 -0
- package/templates/nextjs/components/ui/drawer.tsx +134 -0
- package/templates/nextjs/components/ui/dropdown-menu.tsx +269 -0
- package/templates/nextjs/components/ui/empty.tsx +104 -0
- package/templates/nextjs/components/ui/field.tsx +238 -0
- package/templates/nextjs/components/ui/hover-card.tsx +44 -0
- package/templates/nextjs/components/ui/input-group.tsx +156 -0
- package/templates/nextjs/components/ui/input-otp.tsx +87 -0
- package/templates/nextjs/components/ui/input.tsx +19 -0
- package/templates/nextjs/components/ui/item.tsx +196 -0
- package/templates/nextjs/components/ui/kbd.tsx +26 -0
- package/templates/nextjs/components/ui/label.tsx +24 -0
- package/templates/nextjs/components/ui/menubar.tsx +280 -0
- package/templates/nextjs/components/ui/native-select.tsx +61 -0
- package/templates/nextjs/components/ui/navigation-menu.tsx +164 -0
- package/templates/nextjs/components/ui/pagination.tsx +129 -0
- package/templates/nextjs/components/ui/popover.tsx +89 -0
- package/templates/nextjs/components/ui/progress.tsx +31 -0
- package/templates/nextjs/components/ui/radio-group.tsx +44 -0
- package/templates/nextjs/components/ui/resizable.tsx +50 -0
- package/templates/nextjs/components/ui/scroll-area.tsx +55 -0
- package/templates/nextjs/components/ui/select.tsx +192 -0
- package/templates/nextjs/components/ui/separator.tsx +28 -0
- package/templates/nextjs/components/ui/sheet.tsx +147 -0
- package/templates/nextjs/components/ui/sidebar.tsx +702 -0
- package/templates/nextjs/components/ui/skeleton.tsx +13 -0
- package/templates/nextjs/components/ui/slider.tsx +59 -0
- package/templates/nextjs/components/ui/sonner.tsx +49 -0
- package/templates/nextjs/components/ui/spinner.tsx +10 -0
- package/templates/nextjs/components/ui/switch.tsx +33 -0
- package/templates/nextjs/components/ui/table.tsx +116 -0
- package/templates/nextjs/components/ui/tabs.tsx +90 -0
- package/templates/nextjs/components/ui/textarea.tsx +18 -0
- package/templates/nextjs/components/ui/toggle-group.tsx +89 -0
- package/templates/nextjs/components/ui/toggle.tsx +47 -0
- package/templates/nextjs/components/ui/tooltip.tsx +57 -0
- package/templates/nextjs/components.json +25 -0
- package/templates/nextjs/hooks/.gitkeep +0 -0
- package/templates/nextjs/hooks/use-mobile.ts +19 -0
- package/templates/nextjs/lib/.gitkeep +0 -0
- package/templates/nextjs/lib/sdk.ts +7 -0
- package/templates/nextjs/lib/utils.ts +6 -0
- package/templates/nextjs/next.config.mjs +4 -0
- package/templates/vite/.prettierignore +7 -0
- package/templates/vite/.prettierrc +11 -0
- package/templates/vite/AGENTS.md +0 -0
- package/templates/vite/README.md +12 -64
- package/templates/vite/bun.lock +1478 -0
- package/templates/vite/components.json +25 -0
- package/templates/vite/eslint.config.js +1 -0
- package/templates/vite/index.html +2 -2
- package/templates/vite/package.json +39 -13
- package/templates/vite/public/vite.svg +1 -0
- package/templates/vite/src/App.tsx +6 -115
- package/templates/vite/src/components/theme-provider.tsx +230 -0
- package/templates/vite/src/components/ui/accordion.tsx +79 -0
- package/templates/vite/src/components/ui/alert-dialog.tsx +197 -0
- package/templates/vite/src/components/ui/alert.tsx +76 -0
- package/templates/vite/src/components/ui/aspect-ratio.tsx +11 -0
- package/templates/vite/src/components/ui/avatar.tsx +110 -0
- package/templates/vite/src/components/ui/badge.tsx +49 -0
- package/templates/vite/src/components/ui/breadcrumb.tsx +122 -0
- package/templates/vite/src/components/ui/button-group.tsx +83 -0
- package/templates/vite/src/components/ui/button.tsx +67 -0
- package/templates/vite/src/components/ui/calendar.tsx +222 -0
- package/templates/vite/src/components/ui/card.tsx +103 -0
- package/templates/vite/src/components/ui/carousel.tsx +240 -0
- package/templates/vite/src/components/ui/chart.tsx +373 -0
- package/templates/vite/src/components/ui/checkbox.tsx +31 -0
- package/templates/vite/src/components/ui/collapsible.tsx +33 -0
- package/templates/vite/src/components/ui/combobox.tsx +299 -0
- package/templates/vite/src/components/ui/command.tsx +193 -0
- package/templates/vite/src/components/ui/context-menu.tsx +261 -0
- package/templates/vite/src/components/ui/dialog.tsx +168 -0
- package/templates/vite/src/components/ui/direction.tsx +22 -0
- package/templates/vite/src/components/ui/drawer.tsx +132 -0
- package/templates/vite/src/components/ui/dropdown-menu.tsx +269 -0
- package/templates/vite/src/components/ui/empty.tsx +104 -0
- package/templates/vite/src/components/ui/field.tsx +238 -0
- package/templates/vite/src/components/ui/hover-card.tsx +42 -0
- package/templates/vite/src/components/ui/input-group.tsx +154 -0
- package/templates/vite/src/components/ui/input-otp.tsx +87 -0
- package/templates/vite/src/components/ui/input.tsx +19 -0
- package/templates/vite/src/components/ui/item.tsx +196 -0
- package/templates/vite/src/components/ui/kbd.tsx +26 -0
- package/templates/vite/src/components/ui/label.tsx +22 -0
- package/templates/vite/src/components/ui/menubar.tsx +280 -0
- package/templates/vite/src/components/ui/native-select.tsx +61 -0
- package/templates/vite/src/components/ui/navigation-menu.tsx +164 -0
- package/templates/vite/src/components/ui/pagination.tsx +129 -0
- package/templates/vite/src/components/ui/popover.tsx +87 -0
- package/templates/vite/src/components/ui/progress.tsx +31 -0
- package/templates/vite/src/components/ui/radio-group.tsx +42 -0
- package/templates/vite/src/components/ui/resizable.tsx +50 -0
- package/templates/vite/src/components/ui/scroll-area.tsx +53 -0
- package/templates/vite/src/components/ui/select.tsx +192 -0
- package/templates/vite/src/components/ui/separator.tsx +26 -0
- package/templates/vite/src/components/ui/sheet.tsx +145 -0
- package/templates/vite/src/components/ui/sidebar.tsx +700 -0
- package/templates/vite/src/components/ui/skeleton.tsx +13 -0
- package/templates/vite/src/components/ui/slider.tsx +59 -0
- package/templates/vite/src/components/ui/sonner.tsx +47 -0
- package/templates/vite/src/components/ui/spinner.tsx +10 -0
- package/templates/vite/src/components/ui/switch.tsx +33 -0
- package/templates/vite/src/components/ui/table.tsx +114 -0
- package/templates/vite/src/components/ui/tabs.tsx +90 -0
- package/templates/vite/src/components/ui/textarea.tsx +18 -0
- package/templates/vite/src/components/ui/toggle-group.tsx +89 -0
- package/templates/vite/src/components/ui/toggle.tsx +45 -0
- package/templates/vite/src/components/ui/tooltip.tsx +57 -0
- package/templates/vite/src/hooks/use-mobile.ts +19 -0
- package/templates/vite/src/index.css +125 -103
- package/templates/vite/src/lib/sdk.ts +7 -0
- package/templates/vite/src/lib/utils.ts +6 -0
- package/templates/vite/src/main.tsx +11 -7
- package/templates/vite/tsconfig.app.json +11 -4
- package/templates/vite/tsconfig.json +7 -1
- package/templates/vite/tsconfig.node.json +5 -3
- package/templates/vite/vite.config.ts +10 -3
- package/templates/nextjs/AGENTS.md +0 -5
- package/templates/nextjs/CLAUDE.md +0 -1
- package/templates/nextjs/app/page.module.css +0 -142
- package/templates/nextjs/gitignore +0 -41
- package/templates/nextjs/next-env.d.ts +0 -6
- package/templates/nextjs/next.config.ts +0 -7
- package/templates/nextjs/package.json +0 -32
- package/templates/nextjs/public/file.svg +0 -1
- package/templates/nextjs/public/globe.svg +0 -1
- package/templates/nextjs/public/next.svg +0 -1
- package/templates/nextjs/public/vercel.svg +0 -1
- package/templates/nextjs/public/window.svg +0 -1
- package/templates/nextjs/tsconfig.json +0 -34
- package/templates/vite/gitignore +0 -24
- package/templates/vite/public/favicon.svg +0 -1
- package/templates/vite/public/icons.svg +0 -24
- package/templates/vite/src/App.css +0 -184
- package/templates/vite/src/assets/hero.png +0 -0
- package/templates/vite/src/assets/vite.svg +0 -1
package/package.json
CHANGED
|
@@ -1,36 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
# Next.js template
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This is a Next.js template with shadcn/ui.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Adding components
|
|
6
|
+
|
|
7
|
+
To add components to your app, run the following command:
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
|
-
|
|
9
|
-
# or
|
|
10
|
-
yarn dev
|
|
11
|
-
# or
|
|
12
|
-
pnpm dev
|
|
13
|
-
# or
|
|
14
|
-
bun dev
|
|
10
|
+
npx shadcn@latest add button
|
|
15
11
|
```
|
|
16
12
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
|
|
20
|
-
|
|
21
|
-
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
|
|
22
|
-
|
|
23
|
-
## Learn More
|
|
13
|
+
This will place the ui components in the `components` directory.
|
|
24
14
|
|
|
25
|
-
|
|
15
|
+
## Using components
|
|
26
16
|
|
|
27
|
-
|
|
28
|
-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|
|
17
|
+
To use the components in your app, import them as follows:
|
|
29
18
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
|
35
|
-
|
|
36
|
-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
|
|
19
|
+
```tsx
|
|
20
|
+
import { Button } from "@/components/ui/button";
|
|
21
|
+
```
|
|
@@ -1,49 +1,132 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "tw-animate-css";
|
|
3
|
+
@import "shadcn/tailwind.css";
|
|
5
4
|
|
|
6
|
-
@
|
|
7
|
-
:root {
|
|
8
|
-
--background: #0a0a0a;
|
|
9
|
-
--foreground: #ededed;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
html {
|
|
14
|
-
height: 100%;
|
|
15
|
-
}
|
|
5
|
+
@custom-variant dark (&:is(.dark *));
|
|
16
6
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
@theme inline {
|
|
8
|
+
--font-heading: var(--font-sans);
|
|
9
|
+
--font-sans: var(--font-sans);
|
|
10
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
11
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
12
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
13
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
14
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
15
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
16
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
17
|
+
--color-sidebar: var(--sidebar);
|
|
18
|
+
--color-chart-5: var(--chart-5);
|
|
19
|
+
--color-chart-4: var(--chart-4);
|
|
20
|
+
--color-chart-3: var(--chart-3);
|
|
21
|
+
--color-chart-2: var(--chart-2);
|
|
22
|
+
--color-chart-1: var(--chart-1);
|
|
23
|
+
--color-ring: var(--ring);
|
|
24
|
+
--color-input: var(--input);
|
|
25
|
+
--color-border: var(--border);
|
|
26
|
+
--color-destructive: var(--destructive);
|
|
27
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
28
|
+
--color-accent: var(--accent);
|
|
29
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
30
|
+
--color-muted: var(--muted);
|
|
31
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
32
|
+
--color-secondary: var(--secondary);
|
|
33
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
34
|
+
--color-primary: var(--primary);
|
|
35
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
36
|
+
--color-popover: var(--popover);
|
|
37
|
+
--color-card-foreground: var(--card-foreground);
|
|
38
|
+
--color-card: var(--card);
|
|
39
|
+
--color-foreground: var(--foreground);
|
|
40
|
+
--color-background: var(--background);
|
|
41
|
+
--radius-sm: calc(var(--radius) * 0.6);
|
|
42
|
+
--radius-md: calc(var(--radius) * 0.8);
|
|
43
|
+
--radius-lg: var(--radius);
|
|
44
|
+
--radius-xl: calc(var(--radius) * 1.4);
|
|
45
|
+
--radius-2xl: calc(var(--radius) * 1.8);
|
|
46
|
+
--radius-3xl: calc(var(--radius) * 2.2);
|
|
47
|
+
--radius-4xl: calc(var(--radius) * 2.6);
|
|
21
48
|
}
|
|
22
49
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
50
|
+
:root {
|
|
51
|
+
--background: oklch(1 0 0);
|
|
52
|
+
--foreground: oklch(0.148 0.004 228.8);
|
|
53
|
+
--card: oklch(1 0 0);
|
|
54
|
+
--card-foreground: oklch(0.148 0.004 228.8);
|
|
55
|
+
--popover: oklch(1 0 0);
|
|
56
|
+
--popover-foreground: oklch(0.148 0.004 228.8);
|
|
57
|
+
--primary: oklch(0.218 0.008 223.9);
|
|
58
|
+
--primary-foreground: oklch(0.987 0.002 197.1);
|
|
59
|
+
--secondary: oklch(0.963 0.002 197.1);
|
|
60
|
+
--secondary-foreground: oklch(0.218 0.008 223.9);
|
|
61
|
+
--muted: oklch(0.963 0.002 197.1);
|
|
62
|
+
--muted-foreground: oklch(0.56 0.021 213.5);
|
|
63
|
+
--accent: oklch(0.963 0.002 197.1);
|
|
64
|
+
--accent-foreground: oklch(0.218 0.008 223.9);
|
|
65
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
66
|
+
--border: oklch(0.925 0.005 214.3);
|
|
67
|
+
--input: oklch(0.925 0.005 214.3);
|
|
68
|
+
--ring: oklch(0.723 0.014 214.4);
|
|
69
|
+
--chart-1: oklch(0.872 0.007 219.6);
|
|
70
|
+
--chart-2: oklch(0.56 0.021 213.5);
|
|
71
|
+
--chart-3: oklch(0.45 0.017 213.2);
|
|
72
|
+
--chart-4: oklch(0.378 0.015 216);
|
|
73
|
+
--chart-5: oklch(0.275 0.011 216.9);
|
|
74
|
+
--radius: 0.625rem;
|
|
75
|
+
--sidebar: oklch(0.987 0.002 197.1);
|
|
76
|
+
--sidebar-foreground: oklch(0.148 0.004 228.8);
|
|
77
|
+
--sidebar-primary: oklch(0.218 0.008 223.9);
|
|
78
|
+
--sidebar-primary-foreground: oklch(0.987 0.002 197.1);
|
|
79
|
+
--sidebar-accent: oklch(0.963 0.002 197.1);
|
|
80
|
+
--sidebar-accent-foreground: oklch(0.218 0.008 223.9);
|
|
81
|
+
--sidebar-border: oklch(0.925 0.005 214.3);
|
|
82
|
+
--sidebar-ring: oklch(0.723 0.014 214.4);
|
|
38
83
|
}
|
|
39
84
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
85
|
+
.dark {
|
|
86
|
+
--background: oklch(0.148 0.004 228.8);
|
|
87
|
+
--foreground: oklch(0.987 0.002 197.1);
|
|
88
|
+
--card: oklch(0.218 0.008 223.9);
|
|
89
|
+
--card-foreground: oklch(0.987 0.002 197.1);
|
|
90
|
+
--popover: oklch(0.218 0.008 223.9);
|
|
91
|
+
--popover-foreground: oklch(0.987 0.002 197.1);
|
|
92
|
+
--primary: oklch(0.925 0.005 214.3);
|
|
93
|
+
--primary-foreground: oklch(0.218 0.008 223.9);
|
|
94
|
+
--secondary: oklch(0.275 0.011 216.9);
|
|
95
|
+
--secondary-foreground: oklch(0.987 0.002 197.1);
|
|
96
|
+
--muted: oklch(0.275 0.011 216.9);
|
|
97
|
+
--muted-foreground: oklch(0.723 0.014 214.4);
|
|
98
|
+
--accent: oklch(0.275 0.011 216.9);
|
|
99
|
+
--accent-foreground: oklch(0.987 0.002 197.1);
|
|
100
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
101
|
+
--border: oklch(1 0 0 / 10%);
|
|
102
|
+
--input: oklch(1 0 0 / 15%);
|
|
103
|
+
--ring: oklch(0.56 0.021 213.5);
|
|
104
|
+
--chart-1: oklch(0.872 0.007 219.6);
|
|
105
|
+
--chart-2: oklch(0.56 0.021 213.5);
|
|
106
|
+
--chart-3: oklch(0.45 0.017 213.2);
|
|
107
|
+
--chart-4: oklch(0.378 0.015 216);
|
|
108
|
+
--chart-5: oklch(0.275 0.011 216.9);
|
|
109
|
+
--sidebar: oklch(0.218 0.008 223.9);
|
|
110
|
+
--sidebar-foreground: oklch(0.987 0.002 197.1);
|
|
111
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
112
|
+
--sidebar-primary-foreground: oklch(0.987 0.002 197.1);
|
|
113
|
+
--sidebar-accent: oklch(0.275 0.011 216.9);
|
|
114
|
+
--sidebar-accent-foreground: oklch(0.987 0.002 197.1);
|
|
115
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
116
|
+
--sidebar-ring: oklch(0.56 0.021 213.5);
|
|
43
117
|
}
|
|
44
118
|
|
|
45
|
-
@
|
|
119
|
+
@layer base {
|
|
120
|
+
* {
|
|
121
|
+
@apply border-border outline-ring/50;
|
|
122
|
+
}
|
|
123
|
+
body {
|
|
124
|
+
@apply bg-background text-foreground;
|
|
125
|
+
}
|
|
126
|
+
button:not(:disabled), [role="button"]:not(:disabled) {
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
}
|
|
46
129
|
html {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
130
|
+
@apply font-sans;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Geist, Geist_Mono } from "next/font/google";
|
|
3
|
-
import "./globals.css";
|
|
1
|
+
import { Geist, Geist_Mono, Inter } from "next/font/google"
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
});
|
|
3
|
+
import "./globals.css"
|
|
4
|
+
import { ThemeProvider } from "@/components/theme-provider"
|
|
5
|
+
import { cn } from "@/lib/utils";
|
|
9
6
|
|
|
10
|
-
const
|
|
11
|
-
variable: "--font-geist-mono",
|
|
12
|
-
subsets: ["latin"],
|
|
13
|
-
});
|
|
7
|
+
const inter = Inter({subsets:['latin'],variable:'--font-sans'})
|
|
14
8
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
9
|
+
const fontMono = Geist_Mono({
|
|
10
|
+
subsets: ["latin"],
|
|
11
|
+
variable: "--font-mono",
|
|
12
|
+
})
|
|
19
13
|
|
|
20
14
|
export default function RootLayout({
|
|
21
15
|
children,
|
|
22
16
|
}: Readonly<{
|
|
23
|
-
children: React.ReactNode
|
|
17
|
+
children: React.ReactNode
|
|
24
18
|
}>) {
|
|
25
19
|
return (
|
|
26
|
-
<html
|
|
27
|
-
|
|
20
|
+
<html
|
|
21
|
+
lang="en"
|
|
22
|
+
suppressHydrationWarning
|
|
23
|
+
className={cn("antialiased", fontMono.variable, "font-sans", inter.variable)}
|
|
24
|
+
>
|
|
25
|
+
<body>
|
|
26
|
+
<ThemeProvider>{children}</ThemeProvider>
|
|
27
|
+
</body>
|
|
28
28
|
</html>
|
|
29
|
-
)
|
|
29
|
+
)
|
|
30
30
|
}
|
|
@@ -1,66 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import styles from "./page.module.css";
|
|
1
|
+
import { Button } from "@/components/ui/button"
|
|
3
2
|
|
|
4
|
-
export default function
|
|
3
|
+
export default function Page() {
|
|
5
4
|
return (
|
|
6
|
-
<div className=
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
className=
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
height={20}
|
|
14
|
-
priority
|
|
15
|
-
/>
|
|
16
|
-
<div className={styles.intro}>
|
|
17
|
-
<h1>To get started, edit the page.tsx file.</h1>
|
|
18
|
-
<p>
|
|
19
|
-
Looking for a starting point or more instructions? Head over to{" "}
|
|
20
|
-
<a
|
|
21
|
-
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
|
22
|
-
target="_blank"
|
|
23
|
-
rel="noopener noreferrer"
|
|
24
|
-
>
|
|
25
|
-
Templates
|
|
26
|
-
</a>{" "}
|
|
27
|
-
or the{" "}
|
|
28
|
-
<a
|
|
29
|
-
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
|
30
|
-
target="_blank"
|
|
31
|
-
rel="noopener noreferrer"
|
|
32
|
-
>
|
|
33
|
-
Learning
|
|
34
|
-
</a>{" "}
|
|
35
|
-
center.
|
|
36
|
-
</p>
|
|
5
|
+
<div className="flex min-h-svh p-6">
|
|
6
|
+
<div className="flex max-w-md min-w-0 flex-col gap-4 text-sm leading-loose">
|
|
7
|
+
<div>
|
|
8
|
+
<h1 className="font-medium">Project ready!</h1>
|
|
9
|
+
<p>You may now add components and start building.</p>
|
|
10
|
+
<p>We've already added the button component for you.</p>
|
|
11
|
+
<Button className="mt-2">Button</Button>
|
|
37
12
|
</div>
|
|
38
|
-
<div className=
|
|
39
|
-
<
|
|
40
|
-
className={styles.primary}
|
|
41
|
-
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
|
|
42
|
-
target="_blank"
|
|
43
|
-
rel="noopener noreferrer"
|
|
44
|
-
>
|
|
45
|
-
<Image
|
|
46
|
-
className={styles.logo}
|
|
47
|
-
src="/vercel.svg"
|
|
48
|
-
alt="Vercel logomark"
|
|
49
|
-
width={16}
|
|
50
|
-
height={16}
|
|
51
|
-
/>
|
|
52
|
-
Deploy Now
|
|
53
|
-
</a>
|
|
54
|
-
<a
|
|
55
|
-
className={styles.secondary}
|
|
56
|
-
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
|
|
57
|
-
target="_blank"
|
|
58
|
-
rel="noopener noreferrer"
|
|
59
|
-
>
|
|
60
|
-
Documentation
|
|
61
|
-
</a>
|
|
13
|
+
<div className="font-mono text-xs text-muted-foreground">
|
|
14
|
+
(Press <kbd>d</kbd> to toggle dark mode)
|
|
62
15
|
</div>
|
|
63
|
-
</
|
|
16
|
+
</div>
|
|
64
17
|
</div>
|
|
65
|
-
)
|
|
18
|
+
)
|
|
66
19
|
}
|