Spaces:
Sleeping
Sleeping
initialize nextjs app with shadcn maia style and phosphor icons
Browse files- demo/.gitignore +41 -0
- demo/.gitkeep +0 -0
- demo/README.md +36 -0
- demo/components.json +23 -0
- demo/eslint.config.mjs +18 -0
- demo/next.config.ts +7 -0
- demo/package-lock.json +0 -0
- demo/package.json +34 -0
- demo/postcss.config.mjs +7 -0
- demo/public/file.svg +1 -0
- demo/public/globe.svg +1 -0
- demo/public/next.svg +1 -0
- demo/public/vercel.svg +1 -0
- demo/public/window.svg +1 -0
- demo/src/app/favicon.ico +0 -0
- demo/src/app/globals.css +126 -0
- demo/src/app/layout.tsx +34 -0
- demo/src/app/page.tsx +65 -0
- demo/src/lib/utils.ts +6 -0
- demo/tsconfig.json +34 -0
demo/.gitignore
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
| 2 |
+
|
| 3 |
+
# dependencies
|
| 4 |
+
/node_modules
|
| 5 |
+
/.pnp
|
| 6 |
+
.pnp.*
|
| 7 |
+
.yarn/*
|
| 8 |
+
!.yarn/patches
|
| 9 |
+
!.yarn/plugins
|
| 10 |
+
!.yarn/releases
|
| 11 |
+
!.yarn/versions
|
| 12 |
+
|
| 13 |
+
# testing
|
| 14 |
+
/coverage
|
| 15 |
+
|
| 16 |
+
# next.js
|
| 17 |
+
/.next/
|
| 18 |
+
/out/
|
| 19 |
+
|
| 20 |
+
# production
|
| 21 |
+
/build
|
| 22 |
+
|
| 23 |
+
# misc
|
| 24 |
+
.DS_Store
|
| 25 |
+
*.pem
|
| 26 |
+
|
| 27 |
+
# debug
|
| 28 |
+
npm-debug.log*
|
| 29 |
+
yarn-debug.log*
|
| 30 |
+
yarn-error.log*
|
| 31 |
+
.pnpm-debug.log*
|
| 32 |
+
|
| 33 |
+
# env files (can opt-in for committing if needed)
|
| 34 |
+
.env*
|
| 35 |
+
|
| 36 |
+
# vercel
|
| 37 |
+
.vercel
|
| 38 |
+
|
| 39 |
+
# typescript
|
| 40 |
+
*.tsbuildinfo
|
| 41 |
+
next-env.d.ts
|
demo/.gitkeep
DELETED
|
File without changes
|
demo/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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).
|
| 2 |
+
|
| 3 |
+
## Getting Started
|
| 4 |
+
|
| 5 |
+
First, run the development server:
|
| 6 |
+
|
| 7 |
+
```bash
|
| 8 |
+
npm run dev
|
| 9 |
+
# or
|
| 10 |
+
yarn dev
|
| 11 |
+
# or
|
| 12 |
+
pnpm dev
|
| 13 |
+
# or
|
| 14 |
+
bun dev
|
| 15 |
+
```
|
| 16 |
+
|
| 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
|
| 24 |
+
|
| 25 |
+
To learn more about Next.js, take a look at the following resources:
|
| 26 |
+
|
| 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.
|
| 29 |
+
|
| 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.
|
demo/components.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"$schema": "https://ui.shadcn.com/schema.json",
|
| 3 |
+
"style": "radix-maia",
|
| 4 |
+
"rsc": true,
|
| 5 |
+
"tsx": true,
|
| 6 |
+
"tailwind": {
|
| 7 |
+
"config": "",
|
| 8 |
+
"css": "src/app/globals.css",
|
| 9 |
+
"baseColor": "neutral",
|
| 10 |
+
"cssVariables": true,
|
| 11 |
+
"prefix": ""
|
| 12 |
+
},
|
| 13 |
+
"iconLibrary": "lucide",
|
| 14 |
+
"rtl": false,
|
| 15 |
+
"aliases": {
|
| 16 |
+
"components": "@/components",
|
| 17 |
+
"utils": "@/lib/utils",
|
| 18 |
+
"ui": "@/components/ui",
|
| 19 |
+
"lib": "@/lib",
|
| 20 |
+
"hooks": "@/hooks"
|
| 21 |
+
},
|
| 22 |
+
"registries": {}
|
| 23 |
+
}
|
demo/eslint.config.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { defineConfig, globalIgnores } from "eslint/config";
|
| 2 |
+
import nextVitals from "eslint-config-next/core-web-vitals";
|
| 3 |
+
import nextTs from "eslint-config-next/typescript";
|
| 4 |
+
|
| 5 |
+
const eslintConfig = defineConfig([
|
| 6 |
+
...nextVitals,
|
| 7 |
+
...nextTs,
|
| 8 |
+
// Override default ignores of eslint-config-next.
|
| 9 |
+
globalIgnores([
|
| 10 |
+
// Default ignores of eslint-config-next:
|
| 11 |
+
".next/**",
|
| 12 |
+
"out/**",
|
| 13 |
+
"build/**",
|
| 14 |
+
"next-env.d.ts",
|
| 15 |
+
]),
|
| 16 |
+
]);
|
| 17 |
+
|
| 18 |
+
export default eslintConfig;
|
demo/next.config.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { NextConfig } from "next";
|
| 2 |
+
|
| 3 |
+
const nextConfig: NextConfig = {
|
| 4 |
+
/* config options here */
|
| 5 |
+
};
|
| 6 |
+
|
| 7 |
+
export default nextConfig;
|
demo/package-lock.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
demo/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "demo",
|
| 3 |
+
"version": "0.1.0",
|
| 4 |
+
"private": true,
|
| 5 |
+
"scripts": {
|
| 6 |
+
"dev": "next dev",
|
| 7 |
+
"build": "next build",
|
| 8 |
+
"start": "next start",
|
| 9 |
+
"lint": "eslint"
|
| 10 |
+
},
|
| 11 |
+
"dependencies": {
|
| 12 |
+
"@phosphor-icons/react": "^2.1.10",
|
| 13 |
+
"class-variance-authority": "^0.7.1",
|
| 14 |
+
"clsx": "^2.1.1",
|
| 15 |
+
"lucide-react": "^0.575.0",
|
| 16 |
+
"next": "16.1.6",
|
| 17 |
+
"radix-ui": "^1.4.3",
|
| 18 |
+
"react": "19.2.3",
|
| 19 |
+
"react-dom": "19.2.3",
|
| 20 |
+
"tailwind-merge": "^3.5.0"
|
| 21 |
+
},
|
| 22 |
+
"devDependencies": {
|
| 23 |
+
"@tailwindcss/postcss": "^4",
|
| 24 |
+
"@types/node": "^20",
|
| 25 |
+
"@types/react": "^19",
|
| 26 |
+
"@types/react-dom": "^19",
|
| 27 |
+
"eslint": "^9",
|
| 28 |
+
"eslint-config-next": "16.1.6",
|
| 29 |
+
"shadcn": "^3.8.5",
|
| 30 |
+
"tailwindcss": "^4",
|
| 31 |
+
"tw-animate-css": "^1.4.0",
|
| 32 |
+
"typescript": "^5"
|
| 33 |
+
}
|
| 34 |
+
}
|
demo/postcss.config.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const config = {
|
| 2 |
+
plugins: {
|
| 3 |
+
"@tailwindcss/postcss": {},
|
| 4 |
+
},
|
| 5 |
+
};
|
| 6 |
+
|
| 7 |
+
export default config;
|
demo/public/file.svg
ADDED
|
|
demo/public/globe.svg
ADDED
|
|
demo/public/next.svg
ADDED
|
|
demo/public/vercel.svg
ADDED
|
|
demo/public/window.svg
ADDED
|
|
demo/src/app/favicon.ico
ADDED
|
|
demo/src/app/globals.css
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@import "tailwindcss";
|
| 2 |
+
@import "tw-animate-css";
|
| 3 |
+
@import "shadcn/tailwind.css";
|
| 4 |
+
|
| 5 |
+
@custom-variant dark (&:is(.dark *));
|
| 6 |
+
|
| 7 |
+
@theme inline {
|
| 8 |
+
--color-background: var(--background);
|
| 9 |
+
--color-foreground: var(--foreground);
|
| 10 |
+
--font-sans: var(--font-geist-sans);
|
| 11 |
+
--font-mono: var(--font-geist-mono);
|
| 12 |
+
--color-sidebar-ring: var(--sidebar-ring);
|
| 13 |
+
--color-sidebar-border: var(--sidebar-border);
|
| 14 |
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
| 15 |
+
--color-sidebar-accent: var(--sidebar-accent);
|
| 16 |
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
| 17 |
+
--color-sidebar-primary: var(--sidebar-primary);
|
| 18 |
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
| 19 |
+
--color-sidebar: var(--sidebar);
|
| 20 |
+
--color-chart-5: var(--chart-5);
|
| 21 |
+
--color-chart-4: var(--chart-4);
|
| 22 |
+
--color-chart-3: var(--chart-3);
|
| 23 |
+
--color-chart-2: var(--chart-2);
|
| 24 |
+
--color-chart-1: var(--chart-1);
|
| 25 |
+
--color-ring: var(--ring);
|
| 26 |
+
--color-input: var(--input);
|
| 27 |
+
--color-border: var(--border);
|
| 28 |
+
--color-destructive: var(--destructive);
|
| 29 |
+
--color-accent-foreground: var(--accent-foreground);
|
| 30 |
+
--color-accent: var(--accent);
|
| 31 |
+
--color-muted-foreground: var(--muted-foreground);
|
| 32 |
+
--color-muted: var(--muted);
|
| 33 |
+
--color-secondary-foreground: var(--secondary-foreground);
|
| 34 |
+
--color-secondary: var(--secondary);
|
| 35 |
+
--color-primary-foreground: var(--primary-foreground);
|
| 36 |
+
--color-primary: var(--primary);
|
| 37 |
+
--color-popover-foreground: var(--popover-foreground);
|
| 38 |
+
--color-popover: var(--popover);
|
| 39 |
+
--color-card-foreground: var(--card-foreground);
|
| 40 |
+
--color-card: var(--card);
|
| 41 |
+
--radius-sm: calc(var(--radius) - 4px);
|
| 42 |
+
--radius-md: calc(var(--radius) - 2px);
|
| 43 |
+
--radius-lg: var(--radius);
|
| 44 |
+
--radius-xl: calc(var(--radius) + 4px);
|
| 45 |
+
--radius-2xl: calc(var(--radius) + 8px);
|
| 46 |
+
--radius-3xl: calc(var(--radius) + 12px);
|
| 47 |
+
--radius-4xl: calc(var(--radius) + 16px);
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
:root {
|
| 51 |
+
--radius: 0.625rem;
|
| 52 |
+
--background: oklch(1 0 0);
|
| 53 |
+
--foreground: oklch(0.145 0 0);
|
| 54 |
+
--card: oklch(1 0 0);
|
| 55 |
+
--card-foreground: oklch(0.145 0 0);
|
| 56 |
+
--popover: oklch(1 0 0);
|
| 57 |
+
--popover-foreground: oklch(0.145 0 0);
|
| 58 |
+
--primary: oklch(0.205 0 0);
|
| 59 |
+
--primary-foreground: oklch(0.985 0 0);
|
| 60 |
+
--secondary: oklch(0.97 0 0);
|
| 61 |
+
--secondary-foreground: oklch(0.205 0 0);
|
| 62 |
+
--muted: oklch(0.97 0 0);
|
| 63 |
+
--muted-foreground: oklch(0.556 0 0);
|
| 64 |
+
--accent: oklch(0.97 0 0);
|
| 65 |
+
--accent-foreground: oklch(0.205 0 0);
|
| 66 |
+
--destructive: oklch(0.577 0.245 27.325);
|
| 67 |
+
--border: oklch(0.922 0 0);
|
| 68 |
+
--input: oklch(0.922 0 0);
|
| 69 |
+
--ring: oklch(0.708 0 0);
|
| 70 |
+
--chart-1: oklch(0.646 0.222 41.116);
|
| 71 |
+
--chart-2: oklch(0.6 0.118 184.704);
|
| 72 |
+
--chart-3: oklch(0.398 0.07 227.392);
|
| 73 |
+
--chart-4: oklch(0.828 0.189 84.429);
|
| 74 |
+
--chart-5: oklch(0.769 0.188 70.08);
|
| 75 |
+
--sidebar: oklch(0.985 0 0);
|
| 76 |
+
--sidebar-foreground: oklch(0.145 0 0);
|
| 77 |
+
--sidebar-primary: oklch(0.205 0 0);
|
| 78 |
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
| 79 |
+
--sidebar-accent: oklch(0.97 0 0);
|
| 80 |
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
| 81 |
+
--sidebar-border: oklch(0.922 0 0);
|
| 82 |
+
--sidebar-ring: oklch(0.708 0 0);
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
.dark {
|
| 86 |
+
--background: oklch(0.145 0 0);
|
| 87 |
+
--foreground: oklch(0.985 0 0);
|
| 88 |
+
--card: oklch(0.205 0 0);
|
| 89 |
+
--card-foreground: oklch(0.985 0 0);
|
| 90 |
+
--popover: oklch(0.205 0 0);
|
| 91 |
+
--popover-foreground: oklch(0.985 0 0);
|
| 92 |
+
--primary: oklch(0.922 0 0);
|
| 93 |
+
--primary-foreground: oklch(0.205 0 0);
|
| 94 |
+
--secondary: oklch(0.269 0 0);
|
| 95 |
+
--secondary-foreground: oklch(0.985 0 0);
|
| 96 |
+
--muted: oklch(0.269 0 0);
|
| 97 |
+
--muted-foreground: oklch(0.708 0 0);
|
| 98 |
+
--accent: oklch(0.269 0 0);
|
| 99 |
+
--accent-foreground: oklch(0.985 0 0);
|
| 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.556 0 0);
|
| 104 |
+
--chart-1: oklch(0.488 0.243 264.376);
|
| 105 |
+
--chart-2: oklch(0.696 0.17 162.48);
|
| 106 |
+
--chart-3: oklch(0.769 0.188 70.08);
|
| 107 |
+
--chart-4: oklch(0.627 0.265 303.9);
|
| 108 |
+
--chart-5: oklch(0.645 0.246 16.439);
|
| 109 |
+
--sidebar: oklch(0.205 0 0);
|
| 110 |
+
--sidebar-foreground: oklch(0.985 0 0);
|
| 111 |
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
| 112 |
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
| 113 |
+
--sidebar-accent: oklch(0.269 0 0);
|
| 114 |
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
| 115 |
+
--sidebar-border: oklch(1 0 0 / 10%);
|
| 116 |
+
--sidebar-ring: oklch(0.556 0 0);
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
@layer base {
|
| 120 |
+
* {
|
| 121 |
+
@apply border-border outline-ring/50;
|
| 122 |
+
}
|
| 123 |
+
body {
|
| 124 |
+
@apply bg-background text-foreground;
|
| 125 |
+
}
|
| 126 |
+
}
|
demo/src/app/layout.tsx
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { Metadata } from "next";
|
| 2 |
+
import { Geist, Geist_Mono } from "next/font/google";
|
| 3 |
+
import "./globals.css";
|
| 4 |
+
|
| 5 |
+
const geistSans = Geist({
|
| 6 |
+
variable: "--font-geist-sans",
|
| 7 |
+
subsets: ["latin"],
|
| 8 |
+
});
|
| 9 |
+
|
| 10 |
+
const geistMono = Geist_Mono({
|
| 11 |
+
variable: "--font-geist-mono",
|
| 12 |
+
subsets: ["latin"],
|
| 13 |
+
});
|
| 14 |
+
|
| 15 |
+
export const metadata: Metadata = {
|
| 16 |
+
title: "Create Next App",
|
| 17 |
+
description: "Generated by create next app",
|
| 18 |
+
};
|
| 19 |
+
|
| 20 |
+
export default function RootLayout({
|
| 21 |
+
children,
|
| 22 |
+
}: Readonly<{
|
| 23 |
+
children: React.ReactNode;
|
| 24 |
+
}>) {
|
| 25 |
+
return (
|
| 26 |
+
<html lang="en">
|
| 27 |
+
<body
|
| 28 |
+
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
| 29 |
+
>
|
| 30 |
+
{children}
|
| 31 |
+
</body>
|
| 32 |
+
</html>
|
| 33 |
+
);
|
| 34 |
+
}
|
demo/src/app/page.tsx
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Image from "next/image";
|
| 2 |
+
|
| 3 |
+
export default function Home() {
|
| 4 |
+
return (
|
| 5 |
+
<div className="flex min-h-screen items-center justify-center bg-zinc-50 font-sans dark:bg-black">
|
| 6 |
+
<main className="flex min-h-screen w-full max-w-3xl flex-col items-center justify-between py-32 px-16 bg-white dark:bg-black sm:items-start">
|
| 7 |
+
<Image
|
| 8 |
+
className="dark:invert"
|
| 9 |
+
src="/next.svg"
|
| 10 |
+
alt="Next.js logo"
|
| 11 |
+
width={100}
|
| 12 |
+
height={20}
|
| 13 |
+
priority
|
| 14 |
+
/>
|
| 15 |
+
<div className="flex flex-col items-center gap-6 text-center sm:items-start sm:text-left">
|
| 16 |
+
<h1 className="max-w-xs text-3xl font-semibold leading-10 tracking-tight text-black dark:text-zinc-50">
|
| 17 |
+
To get started, edit the page.tsx file.
|
| 18 |
+
</h1>
|
| 19 |
+
<p className="max-w-md text-lg leading-8 text-zinc-600 dark:text-zinc-400">
|
| 20 |
+
Looking for a starting point or more instructions? Head over to{" "}
|
| 21 |
+
<a
|
| 22 |
+
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
| 23 |
+
className="font-medium text-zinc-950 dark:text-zinc-50"
|
| 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 |
+
className="font-medium text-zinc-950 dark:text-zinc-50"
|
| 31 |
+
>
|
| 32 |
+
Learning
|
| 33 |
+
</a>{" "}
|
| 34 |
+
center.
|
| 35 |
+
</p>
|
| 36 |
+
</div>
|
| 37 |
+
<div className="flex flex-col gap-4 text-base font-medium sm:flex-row">
|
| 38 |
+
<a
|
| 39 |
+
className="flex h-12 w-full items-center justify-center gap-2 rounded-full bg-foreground px-5 text-background transition-colors hover:bg-[#383838] dark:hover:bg-[#ccc] md:w-[158px]"
|
| 40 |
+
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
| 41 |
+
target="_blank"
|
| 42 |
+
rel="noopener noreferrer"
|
| 43 |
+
>
|
| 44 |
+
<Image
|
| 45 |
+
className="dark:invert"
|
| 46 |
+
src="/vercel.svg"
|
| 47 |
+
alt="Vercel logomark"
|
| 48 |
+
width={16}
|
| 49 |
+
height={16}
|
| 50 |
+
/>
|
| 51 |
+
Deploy Now
|
| 52 |
+
</a>
|
| 53 |
+
<a
|
| 54 |
+
className="flex h-12 w-full items-center justify-center rounded-full border border-solid border-black/[.08] px-5 transition-colors hover:border-transparent hover:bg-black/[.04] dark:border-white/[.145] dark:hover:bg-[#1a1a1a] md:w-[158px]"
|
| 55 |
+
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
| 56 |
+
target="_blank"
|
| 57 |
+
rel="noopener noreferrer"
|
| 58 |
+
>
|
| 59 |
+
Documentation
|
| 60 |
+
</a>
|
| 61 |
+
</div>
|
| 62 |
+
</main>
|
| 63 |
+
</div>
|
| 64 |
+
);
|
| 65 |
+
}
|
demo/src/lib/utils.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { clsx, type ClassValue } from "clsx"
|
| 2 |
+
import { twMerge } from "tailwind-merge"
|
| 3 |
+
|
| 4 |
+
export function cn(...inputs: ClassValue[]) {
|
| 5 |
+
return twMerge(clsx(inputs))
|
| 6 |
+
}
|
demo/tsconfig.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"compilerOptions": {
|
| 3 |
+
"target": "ES2017",
|
| 4 |
+
"lib": ["dom", "dom.iterable", "esnext"],
|
| 5 |
+
"allowJs": true,
|
| 6 |
+
"skipLibCheck": true,
|
| 7 |
+
"strict": true,
|
| 8 |
+
"noEmit": true,
|
| 9 |
+
"esModuleInterop": true,
|
| 10 |
+
"module": "esnext",
|
| 11 |
+
"moduleResolution": "bundler",
|
| 12 |
+
"resolveJsonModule": true,
|
| 13 |
+
"isolatedModules": true,
|
| 14 |
+
"jsx": "react-jsx",
|
| 15 |
+
"incremental": true,
|
| 16 |
+
"plugins": [
|
| 17 |
+
{
|
| 18 |
+
"name": "next"
|
| 19 |
+
}
|
| 20 |
+
],
|
| 21 |
+
"paths": {
|
| 22 |
+
"@/*": ["./src/*"]
|
| 23 |
+
}
|
| 24 |
+
},
|
| 25 |
+
"include": [
|
| 26 |
+
"next-env.d.ts",
|
| 27 |
+
"**/*.ts",
|
| 28 |
+
"**/*.tsx",
|
| 29 |
+
".next/types/**/*.ts",
|
| 30 |
+
".next/dev/types/**/*.ts",
|
| 31 |
+
"**/*.mts"
|
| 32 |
+
],
|
| 33 |
+
"exclude": ["node_modules"]
|
| 34 |
+
}
|