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.
Files changed (167) hide show
  1. package/package.json +1 -1
  2. package/templates/nextjs/.prettierignore +7 -0
  3. package/templates/nextjs/.prettierrc +11 -0
  4. package/templates/nextjs/README.md +12 -27
  5. package/templates/nextjs/app/globals.css +123 -40
  6. package/templates/nextjs/app/layout.tsx +19 -19
  7. package/templates/nextjs/app/page.tsx +13 -60
  8. package/templates/nextjs/bun.lock +925 -53
  9. package/templates/nextjs/components/.gitkeep +0 -0
  10. package/templates/nextjs/components/theme-provider.tsx +71 -0
  11. package/templates/nextjs/components/ui/accordion.tsx +81 -0
  12. package/templates/nextjs/components/ui/alert-dialog.tsx +199 -0
  13. package/templates/nextjs/components/ui/alert.tsx +76 -0
  14. package/templates/nextjs/components/ui/aspect-ratio.tsx +11 -0
  15. package/templates/nextjs/components/ui/avatar.tsx +112 -0
  16. package/templates/nextjs/components/ui/badge.tsx +49 -0
  17. package/templates/nextjs/components/ui/breadcrumb.tsx +122 -0
  18. package/templates/nextjs/components/ui/button-group.tsx +83 -0
  19. package/templates/nextjs/components/ui/button.tsx +67 -0
  20. package/templates/nextjs/components/ui/calendar.tsx +222 -0
  21. package/templates/nextjs/components/ui/card.tsx +103 -0
  22. package/templates/nextjs/components/ui/carousel.tsx +242 -0
  23. package/templates/nextjs/components/ui/chart.tsx +373 -0
  24. package/templates/nextjs/components/ui/checkbox.tsx +33 -0
  25. package/templates/nextjs/components/ui/collapsible.tsx +33 -0
  26. package/templates/nextjs/components/ui/combobox.tsx +299 -0
  27. package/templates/nextjs/components/ui/command.tsx +195 -0
  28. package/templates/nextjs/components/ui/context-menu.tsx +263 -0
  29. package/templates/nextjs/components/ui/dialog.tsx +168 -0
  30. package/templates/nextjs/components/ui/direction.tsx +22 -0
  31. package/templates/nextjs/components/ui/drawer.tsx +134 -0
  32. package/templates/nextjs/components/ui/dropdown-menu.tsx +269 -0
  33. package/templates/nextjs/components/ui/empty.tsx +104 -0
  34. package/templates/nextjs/components/ui/field.tsx +238 -0
  35. package/templates/nextjs/components/ui/hover-card.tsx +44 -0
  36. package/templates/nextjs/components/ui/input-group.tsx +156 -0
  37. package/templates/nextjs/components/ui/input-otp.tsx +87 -0
  38. package/templates/nextjs/components/ui/input.tsx +19 -0
  39. package/templates/nextjs/components/ui/item.tsx +196 -0
  40. package/templates/nextjs/components/ui/kbd.tsx +26 -0
  41. package/templates/nextjs/components/ui/label.tsx +24 -0
  42. package/templates/nextjs/components/ui/menubar.tsx +280 -0
  43. package/templates/nextjs/components/ui/native-select.tsx +61 -0
  44. package/templates/nextjs/components/ui/navigation-menu.tsx +164 -0
  45. package/templates/nextjs/components/ui/pagination.tsx +129 -0
  46. package/templates/nextjs/components/ui/popover.tsx +89 -0
  47. package/templates/nextjs/components/ui/progress.tsx +31 -0
  48. package/templates/nextjs/components/ui/radio-group.tsx +44 -0
  49. package/templates/nextjs/components/ui/resizable.tsx +50 -0
  50. package/templates/nextjs/components/ui/scroll-area.tsx +55 -0
  51. package/templates/nextjs/components/ui/select.tsx +192 -0
  52. package/templates/nextjs/components/ui/separator.tsx +28 -0
  53. package/templates/nextjs/components/ui/sheet.tsx +147 -0
  54. package/templates/nextjs/components/ui/sidebar.tsx +702 -0
  55. package/templates/nextjs/components/ui/skeleton.tsx +13 -0
  56. package/templates/nextjs/components/ui/slider.tsx +59 -0
  57. package/templates/nextjs/components/ui/sonner.tsx +49 -0
  58. package/templates/nextjs/components/ui/spinner.tsx +10 -0
  59. package/templates/nextjs/components/ui/switch.tsx +33 -0
  60. package/templates/nextjs/components/ui/table.tsx +116 -0
  61. package/templates/nextjs/components/ui/tabs.tsx +90 -0
  62. package/templates/nextjs/components/ui/textarea.tsx +18 -0
  63. package/templates/nextjs/components/ui/toggle-group.tsx +89 -0
  64. package/templates/nextjs/components/ui/toggle.tsx +47 -0
  65. package/templates/nextjs/components/ui/tooltip.tsx +57 -0
  66. package/templates/nextjs/components.json +25 -0
  67. package/templates/nextjs/hooks/.gitkeep +0 -0
  68. package/templates/nextjs/hooks/use-mobile.ts +19 -0
  69. package/templates/nextjs/lib/.gitkeep +0 -0
  70. package/templates/nextjs/lib/sdk.ts +7 -0
  71. package/templates/nextjs/lib/utils.ts +6 -0
  72. package/templates/nextjs/next.config.mjs +4 -0
  73. package/templates/vite/.prettierignore +7 -0
  74. package/templates/vite/.prettierrc +11 -0
  75. package/templates/vite/AGENTS.md +0 -0
  76. package/templates/vite/README.md +12 -64
  77. package/templates/vite/bun.lock +1478 -0
  78. package/templates/vite/components.json +25 -0
  79. package/templates/vite/eslint.config.js +1 -0
  80. package/templates/vite/index.html +2 -2
  81. package/templates/vite/package.json +39 -13
  82. package/templates/vite/public/vite.svg +1 -0
  83. package/templates/vite/src/App.tsx +6 -115
  84. package/templates/vite/src/components/theme-provider.tsx +230 -0
  85. package/templates/vite/src/components/ui/accordion.tsx +79 -0
  86. package/templates/vite/src/components/ui/alert-dialog.tsx +197 -0
  87. package/templates/vite/src/components/ui/alert.tsx +76 -0
  88. package/templates/vite/src/components/ui/aspect-ratio.tsx +11 -0
  89. package/templates/vite/src/components/ui/avatar.tsx +110 -0
  90. package/templates/vite/src/components/ui/badge.tsx +49 -0
  91. package/templates/vite/src/components/ui/breadcrumb.tsx +122 -0
  92. package/templates/vite/src/components/ui/button-group.tsx +83 -0
  93. package/templates/vite/src/components/ui/button.tsx +67 -0
  94. package/templates/vite/src/components/ui/calendar.tsx +222 -0
  95. package/templates/vite/src/components/ui/card.tsx +103 -0
  96. package/templates/vite/src/components/ui/carousel.tsx +240 -0
  97. package/templates/vite/src/components/ui/chart.tsx +373 -0
  98. package/templates/vite/src/components/ui/checkbox.tsx +31 -0
  99. package/templates/vite/src/components/ui/collapsible.tsx +33 -0
  100. package/templates/vite/src/components/ui/combobox.tsx +299 -0
  101. package/templates/vite/src/components/ui/command.tsx +193 -0
  102. package/templates/vite/src/components/ui/context-menu.tsx +261 -0
  103. package/templates/vite/src/components/ui/dialog.tsx +168 -0
  104. package/templates/vite/src/components/ui/direction.tsx +22 -0
  105. package/templates/vite/src/components/ui/drawer.tsx +132 -0
  106. package/templates/vite/src/components/ui/dropdown-menu.tsx +269 -0
  107. package/templates/vite/src/components/ui/empty.tsx +104 -0
  108. package/templates/vite/src/components/ui/field.tsx +238 -0
  109. package/templates/vite/src/components/ui/hover-card.tsx +42 -0
  110. package/templates/vite/src/components/ui/input-group.tsx +154 -0
  111. package/templates/vite/src/components/ui/input-otp.tsx +87 -0
  112. package/templates/vite/src/components/ui/input.tsx +19 -0
  113. package/templates/vite/src/components/ui/item.tsx +196 -0
  114. package/templates/vite/src/components/ui/kbd.tsx +26 -0
  115. package/templates/vite/src/components/ui/label.tsx +22 -0
  116. package/templates/vite/src/components/ui/menubar.tsx +280 -0
  117. package/templates/vite/src/components/ui/native-select.tsx +61 -0
  118. package/templates/vite/src/components/ui/navigation-menu.tsx +164 -0
  119. package/templates/vite/src/components/ui/pagination.tsx +129 -0
  120. package/templates/vite/src/components/ui/popover.tsx +87 -0
  121. package/templates/vite/src/components/ui/progress.tsx +31 -0
  122. package/templates/vite/src/components/ui/radio-group.tsx +42 -0
  123. package/templates/vite/src/components/ui/resizable.tsx +50 -0
  124. package/templates/vite/src/components/ui/scroll-area.tsx +53 -0
  125. package/templates/vite/src/components/ui/select.tsx +192 -0
  126. package/templates/vite/src/components/ui/separator.tsx +26 -0
  127. package/templates/vite/src/components/ui/sheet.tsx +145 -0
  128. package/templates/vite/src/components/ui/sidebar.tsx +700 -0
  129. package/templates/vite/src/components/ui/skeleton.tsx +13 -0
  130. package/templates/vite/src/components/ui/slider.tsx +59 -0
  131. package/templates/vite/src/components/ui/sonner.tsx +47 -0
  132. package/templates/vite/src/components/ui/spinner.tsx +10 -0
  133. package/templates/vite/src/components/ui/switch.tsx +33 -0
  134. package/templates/vite/src/components/ui/table.tsx +114 -0
  135. package/templates/vite/src/components/ui/tabs.tsx +90 -0
  136. package/templates/vite/src/components/ui/textarea.tsx +18 -0
  137. package/templates/vite/src/components/ui/toggle-group.tsx +89 -0
  138. package/templates/vite/src/components/ui/toggle.tsx +45 -0
  139. package/templates/vite/src/components/ui/tooltip.tsx +57 -0
  140. package/templates/vite/src/hooks/use-mobile.ts +19 -0
  141. package/templates/vite/src/index.css +125 -103
  142. package/templates/vite/src/lib/sdk.ts +7 -0
  143. package/templates/vite/src/lib/utils.ts +6 -0
  144. package/templates/vite/src/main.tsx +11 -7
  145. package/templates/vite/tsconfig.app.json +11 -4
  146. package/templates/vite/tsconfig.json +7 -1
  147. package/templates/vite/tsconfig.node.json +5 -3
  148. package/templates/vite/vite.config.ts +10 -3
  149. package/templates/nextjs/AGENTS.md +0 -5
  150. package/templates/nextjs/CLAUDE.md +0 -1
  151. package/templates/nextjs/app/page.module.css +0 -142
  152. package/templates/nextjs/gitignore +0 -41
  153. package/templates/nextjs/next-env.d.ts +0 -6
  154. package/templates/nextjs/next.config.ts +0 -7
  155. package/templates/nextjs/package.json +0 -32
  156. package/templates/nextjs/public/file.svg +0 -1
  157. package/templates/nextjs/public/globe.svg +0 -1
  158. package/templates/nextjs/public/next.svg +0 -1
  159. package/templates/nextjs/public/vercel.svg +0 -1
  160. package/templates/nextjs/public/window.svg +0 -1
  161. package/templates/nextjs/tsconfig.json +0 -34
  162. package/templates/vite/gitignore +0 -24
  163. package/templates/vite/public/favicon.svg +0 -1
  164. package/templates/vite/public/icons.svg +0 -24
  165. package/templates/vite/src/App.css +0 -184
  166. package/templates/vite/src/assets/hero.png +0 -0
  167. package/templates/vite/src/assets/vite.svg +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "howone",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "private": false,
5
5
  "description": "HowOne command line tools for creating app templates.",
6
6
  "type": "module",
@@ -0,0 +1,7 @@
1
+ dist/
2
+ node_modules/
3
+ .next/
4
+ .turbo/
5
+ coverage/
6
+ pnpm-lock.yaml
7
+ .pnpm-store/
@@ -0,0 +1,11 @@
1
+ {
2
+ "endOfLine": "lf",
3
+ "semi": false,
4
+ "singleQuote": false,
5
+ "tabWidth": 2,
6
+ "trailingComma": "es5",
7
+ "printWidth": 80,
8
+ "plugins": ["prettier-plugin-tailwindcss"],
9
+ "tailwindStylesheet": "app/globals.css",
10
+ "tailwindFunctions": ["cn", "cva"]
11
+ }
@@ -1,36 +1,21 @@
1
- This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
1
+ # Next.js template
2
2
 
3
- ## Getting Started
3
+ This is a Next.js template with shadcn/ui.
4
4
 
5
- First, run the development server:
5
+ ## Adding components
6
+
7
+ To add components to your app, run the following command:
6
8
 
7
9
  ```bash
8
- npm run dev
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
- Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
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
- To learn more about Next.js, take a look at the following resources:
15
+ ## Using components
26
16
 
27
- - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
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
- You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
31
-
32
- ## Deploy on Vercel
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
- :root {
2
- --background: #ffffff;
3
- --foreground: #171717;
4
- }
1
+ @import "tailwindcss";
2
+ @import "tw-animate-css";
3
+ @import "shadcn/tailwind.css";
5
4
 
6
- @media (prefers-color-scheme: dark) {
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
- html,
18
- body {
19
- max-width: 100vw;
20
- overflow-x: hidden;
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
- body {
24
- min-height: 100%;
25
- display: flex;
26
- flex-direction: column;
27
- color: var(--foreground);
28
- background: var(--background);
29
- font-family: Arial, Helvetica, sans-serif;
30
- -webkit-font-smoothing: antialiased;
31
- -moz-osx-font-smoothing: grayscale;
32
- }
33
-
34
- * {
35
- box-sizing: border-box;
36
- padding: 0;
37
- margin: 0;
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
- a {
41
- color: inherit;
42
- text-decoration: none;
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
- @media (prefers-color-scheme: dark) {
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
- color-scheme: dark;
48
- }
49
- }
130
+ @apply font-sans;
131
+ }
132
+ }
@@ -1,30 +1,30 @@
1
- import type { Metadata } from "next";
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
- const geistSans = Geist({
6
- variable: "--font-geist-sans",
7
- subsets: ["latin"],
8
- });
3
+ import "./globals.css"
4
+ import { ThemeProvider } from "@/components/theme-provider"
5
+ import { cn } from "@/lib/utils";
9
6
 
10
- const geistMono = Geist_Mono({
11
- variable: "--font-geist-mono",
12
- subsets: ["latin"],
13
- });
7
+ const inter = Inter({subsets:['latin'],variable:'--font-sans'})
14
8
 
15
- export const metadata: Metadata = {
16
- title: "Create Next App",
17
- description: "Generated by create next app",
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 lang="en" className={`${geistSans.variable} ${geistMono.variable}`}>
27
- <body>{children}</body>
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 Image from "next/image";
2
- import styles from "./page.module.css";
1
+ import { Button } from "@/components/ui/button"
3
2
 
4
- export default function Home() {
3
+ export default function Page() {
5
4
  return (
6
- <div className={styles.page}>
7
- <main className={styles.main}>
8
- <Image
9
- className={styles.logo}
10
- src="/next.svg"
11
- alt="Next.js logo"
12
- width={100}
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&apos;ve already added the button component for you.</p>
11
+ <Button className="mt-2">Button</Button>
37
12
  </div>
38
- <div className={styles.ctas}>
39
- <a
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
- </main>
16
+ </div>
64
17
  </div>
65
- );
18
+ )
66
19
  }