commit
98ce9413a9
@ -0,0 +1,3 @@ |
|||||||
|
{ |
||||||
|
"extends": "next/core-web-vitals" |
||||||
|
} |
@ -0,0 +1,35 @@ |
|||||||
|
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. |
||||||
|
|
||||||
|
# dependencies |
||||||
|
/node_modules |
||||||
|
/.pnp |
||||||
|
.pnp.js |
||||||
|
|
||||||
|
# testing |
||||||
|
/coverage |
||||||
|
|
||||||
|
# next.js |
||||||
|
/.next/ |
||||||
|
/out/ |
||||||
|
|
||||||
|
# production |
||||||
|
/build |
||||||
|
|
||||||
|
# misc |
||||||
|
.DS_Store |
||||||
|
*.pem |
||||||
|
|
||||||
|
# debug |
||||||
|
npm-debug.log* |
||||||
|
yarn-debug.log* |
||||||
|
yarn-error.log* |
||||||
|
|
||||||
|
# local env files |
||||||
|
.env*.local |
||||||
|
|
||||||
|
# vercel |
||||||
|
.vercel |
||||||
|
|
||||||
|
# typescript |
||||||
|
*.tsbuildinfo |
||||||
|
next-env.d.ts |
@ -0,0 +1,38 @@ |
|||||||
|
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). |
||||||
|
|
||||||
|
## Getting Started |
||||||
|
|
||||||
|
First, run the development server: |
||||||
|
|
||||||
|
```bash |
||||||
|
npm run dev |
||||||
|
# or |
||||||
|
yarn dev |
||||||
|
# or |
||||||
|
pnpm dev |
||||||
|
``` |
||||||
|
|
||||||
|
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. |
||||||
|
|
||||||
|
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file. |
||||||
|
|
||||||
|
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`. |
||||||
|
|
||||||
|
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. |
||||||
|
|
||||||
|
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. |
||||||
|
|
||||||
|
## Learn More |
||||||
|
|
||||||
|
To learn more about Next.js, take a look at the following resources: |
||||||
|
|
||||||
|
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. |
||||||
|
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. |
||||||
|
|
||||||
|
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! |
||||||
|
|
||||||
|
## Deploy on Vercel |
||||||
|
|
||||||
|
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. |
||||||
|
|
||||||
|
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. |
@ -0,0 +1,6 @@ |
|||||||
|
/** @type {import('next').NextConfig} */ |
||||||
|
const nextConfig = { |
||||||
|
reactStrictMode: true, |
||||||
|
} |
||||||
|
|
||||||
|
module.exports = nextConfig |
@ -0,0 +1,25 @@ |
|||||||
|
{ |
||||||
|
"name": "mui", |
||||||
|
"version": "0.1.0", |
||||||
|
"private": true, |
||||||
|
"scripts": { |
||||||
|
"dev": "next dev", |
||||||
|
"build": "next build", |
||||||
|
"start": "next start", |
||||||
|
"lint": "next lint" |
||||||
|
}, |
||||||
|
"dependencies": { |
||||||
|
"@types/node": "18.15.11", |
||||||
|
"@types/react": "18.0.33", |
||||||
|
"@types/react-dom": "18.0.11", |
||||||
|
"autoprefixer": "10.4.14", |
||||||
|
"eslint": "8.38.0", |
||||||
|
"eslint-config-next": "13.3.0", |
||||||
|
"next": "13.3.0", |
||||||
|
"postcss": "8.4.21", |
||||||
|
"react": "18.2.0", |
||||||
|
"react-dom": "18.2.0", |
||||||
|
"tailwindcss": "3.3.1", |
||||||
|
"typescript": "5.0.4" |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,6 @@ |
|||||||
|
import '@/styles/globals.css' |
||||||
|
import type { AppProps } from 'next/app' |
||||||
|
|
||||||
|
export default function App({ Component, pageProps }: AppProps) { |
||||||
|
return <Component {...pageProps} /> |
||||||
|
} |
@ -0,0 +1,13 @@ |
|||||||
|
import { Html, Head, Main, NextScript } from 'next/document' |
||||||
|
|
||||||
|
export default function Document() { |
||||||
|
return ( |
||||||
|
<Html lang="en"> |
||||||
|
<Head /> |
||||||
|
<body> |
||||||
|
<Main /> |
||||||
|
<NextScript /> |
||||||
|
</body> |
||||||
|
</Html> |
||||||
|
) |
||||||
|
} |
@ -0,0 +1,13 @@ |
|||||||
|
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
|
||||||
|
import type { NextApiRequest, NextApiResponse } from 'next' |
||||||
|
|
||||||
|
type Data = { |
||||||
|
name: string |
||||||
|
} |
||||||
|
|
||||||
|
export default function handler( |
||||||
|
req: NextApiRequest, |
||||||
|
res: NextApiResponse<Data> |
||||||
|
) { |
||||||
|
res.status(200).json({ name: 'John Doe' }) |
||||||
|
} |
@ -0,0 +1,124 @@ |
|||||||
|
import Image from 'next/image' |
||||||
|
import { Inter } from 'next/font/google' |
||||||
|
|
||||||
|
const inter = Inter({ subsets: ['latin'] }) |
||||||
|
|
||||||
|
export default function Home() { |
||||||
|
return ( |
||||||
|
<main className="flex min-h-screen flex-col items-center justify-between p-24"> |
||||||
|
<div className="z-10 w-full max-w-5xl items-center justify-between font-mono text-sm lg:flex"> |
||||||
|
<p className="fixed left-0 top-0 flex w-full justify-center border-b border-gray-300 bg-gradient-to-b from-zinc-200 pb-6 pt-8 backdrop-blur-2xl dark:border-neutral-800 dark:bg-zinc-800/30 dark:from-inherit lg:static lg:w-auto lg:rounded-xl lg:border lg:bg-gray-200 lg:p-4 lg:dark:bg-zinc-800/30"> |
||||||
|
Get started by editing |
||||||
|
<code className="font-mono font-bold">pages/index.tsx</code> |
||||||
|
</p> |
||||||
|
<div className="fixed bottom-0 left-0 flex h-48 w-full items-end justify-center bg-gradient-to-t from-white via-white dark:from-black dark:via-black lg:static lg:h-auto lg:w-auto lg:bg-none"> |
||||||
|
<a |
||||||
|
className="pointer-events-none flex place-items-center gap-2 p-8 lg:pointer-events-auto lg:p-0" |
||||||
|
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app" |
||||||
|
target="_blank" |
||||||
|
rel="noopener noreferrer" |
||||||
|
> |
||||||
|
By{' '} |
||||||
|
<Image |
||||||
|
src="/vercel.svg" |
||||||
|
alt="Vercel Logo" |
||||||
|
className="dark:invert" |
||||||
|
width={100} |
||||||
|
height={24} |
||||||
|
priority |
||||||
|
/> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div className="relative flex place-items-center before:absolute before:h-[300px] before:w-[480px] before:-translate-x-1/2 before:rounded-full before:bg-gradient-radial before:from-white before:to-transparent before:blur-2xl before:content-[''] after:absolute after:-z-20 after:h-[180px] after:w-[240px] after:translate-x-1/3 after:bg-gradient-conic after:from-sky-200 after:via-blue-200 after:blur-2xl after:content-[''] before:dark:bg-gradient-to-br before:dark:from-transparent before:dark:to-blue-700/10 after:dark:from-sky-900 after:dark:via-[#0141ff]/40 before:lg:h-[360px]"> |
||||||
|
<Image |
||||||
|
className="relative dark:drop-shadow-[0_0_0.3rem_#ffffff70] dark:invert" |
||||||
|
src="/next.svg" |
||||||
|
alt="Next.js Logo" |
||||||
|
width={180} |
||||||
|
height={37} |
||||||
|
priority |
||||||
|
/> |
||||||
|
</div> |
||||||
|
|
||||||
|
<div className="mb-32 grid text-center lg:mb-0 lg:grid-cols-4 lg:text-left"> |
||||||
|
<a |
||||||
|
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app" |
||||||
|
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30" |
||||||
|
target="_blank" |
||||||
|
rel="noopener noreferrer" |
||||||
|
> |
||||||
|
<h2 className={`${inter.className} mb-3 text-2xl font-semibold`}> |
||||||
|
Docs{' '} |
||||||
|
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none"> |
||||||
|
-> |
||||||
|
</span> |
||||||
|
</h2> |
||||||
|
<p |
||||||
|
className={`${inter.className} m-0 max-w-[30ch] text-sm opacity-50`} |
||||||
|
> |
||||||
|
Find in-depth information about Next.js features and API. |
||||||
|
</p> |
||||||
|
</a> |
||||||
|
|
||||||
|
<a |
||||||
|
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app" |
||||||
|
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30" |
||||||
|
target="_blank" |
||||||
|
rel="noopener noreferrer" |
||||||
|
> |
||||||
|
<h2 className={`${inter.className} mb-3 text-2xl font-semibold`}> |
||||||
|
Learn{' '} |
||||||
|
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none"> |
||||||
|
-> |
||||||
|
</span> |
||||||
|
</h2> |
||||||
|
<p |
||||||
|
className={`${inter.className} m-0 max-w-[30ch] text-sm opacity-50`} |
||||||
|
> |
||||||
|
Learn about Next.js in an interactive course with quizzes! |
||||||
|
</p> |
||||||
|
</a> |
||||||
|
|
||||||
|
<a |
||||||
|
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app" |
||||||
|
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30" |
||||||
|
target="_blank" |
||||||
|
rel="noopener noreferrer" |
||||||
|
> |
||||||
|
<h2 className={`${inter.className} mb-3 text-2xl font-semibold`}> |
||||||
|
Templates{' '} |
||||||
|
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none"> |
||||||
|
-> |
||||||
|
</span> |
||||||
|
</h2> |
||||||
|
<p |
||||||
|
className={`${inter.className} m-0 max-w-[30ch] text-sm opacity-50`} |
||||||
|
> |
||||||
|
Discover and deploy boilerplate example Next.js projects. |
||||||
|
</p> |
||||||
|
</a> |
||||||
|
|
||||||
|
<a |
||||||
|
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app" |
||||||
|
className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30" |
||||||
|
target="_blank" |
||||||
|
rel="noopener noreferrer" |
||||||
|
> |
||||||
|
<h2 className={`${inter.className} mb-3 text-2xl font-semibold`}> |
||||||
|
Deploy{' '} |
||||||
|
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none"> |
||||||
|
-> |
||||||
|
</span> |
||||||
|
</h2> |
||||||
|
<p |
||||||
|
className={`${inter.className} m-0 max-w-[30ch] text-sm opacity-50`} |
||||||
|
> |
||||||
|
Instantly deploy your Next.js site to a shareable URL with Vercel. |
||||||
|
</p> |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
</main> |
||||||
|
) |
||||||
|
} |
@ -0,0 +1,6 @@ |
|||||||
|
module.exports = { |
||||||
|
plugins: { |
||||||
|
tailwindcss: {}, |
||||||
|
autoprefixer: {}, |
||||||
|
}, |
||||||
|
} |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 629 B |
@ -0,0 +1,27 @@ |
|||||||
|
@tailwind base; |
||||||
|
@tailwind components; |
||||||
|
@tailwind utilities; |
||||||
|
|
||||||
|
:root { |
||||||
|
--foreground-rgb: 0, 0, 0; |
||||||
|
--background-start-rgb: 214, 219, 220; |
||||||
|
--background-end-rgb: 255, 255, 255; |
||||||
|
} |
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) { |
||||||
|
:root { |
||||||
|
--foreground-rgb: 255, 255, 255; |
||||||
|
--background-start-rgb: 0, 0, 0; |
||||||
|
--background-end-rgb: 0, 0, 0; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
body { |
||||||
|
color: rgb(var(--foreground-rgb)); |
||||||
|
background: linear-gradient( |
||||||
|
to bottom, |
||||||
|
transparent, |
||||||
|
rgb(var(--background-end-rgb)) |
||||||
|
) |
||||||
|
rgb(var(--background-start-rgb)); |
||||||
|
} |
@ -0,0 +1,18 @@ |
|||||||
|
/** @type {import('tailwindcss').Config} */ |
||||||
|
module.exports = { |
||||||
|
content: [ |
||||||
|
'./pages/**/*.{js,ts,jsx,tsx}', |
||||||
|
'./components/**/*.{js,ts,jsx,tsx}', |
||||||
|
'./app/**/*.{js,ts,jsx,tsx}', |
||||||
|
], |
||||||
|
theme: { |
||||||
|
extend: { |
||||||
|
backgroundImage: { |
||||||
|
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))', |
||||||
|
'gradient-conic': |
||||||
|
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))', |
||||||
|
}, |
||||||
|
}, |
||||||
|
}, |
||||||
|
plugins: [], |
||||||
|
} |
@ -0,0 +1,23 @@ |
|||||||
|
{ |
||||||
|
"compilerOptions": { |
||||||
|
"target": "es5", |
||||||
|
"lib": ["dom", "dom.iterable", "esnext"], |
||||||
|
"allowJs": true, |
||||||
|
"skipLibCheck": true, |
||||||
|
"strict": true, |
||||||
|
"forceConsistentCasingInFileNames": true, |
||||||
|
"noEmit": true, |
||||||
|
"esModuleInterop": true, |
||||||
|
"module": "esnext", |
||||||
|
"moduleResolution": "node", |
||||||
|
"resolveJsonModule": true, |
||||||
|
"isolatedModules": true, |
||||||
|
"jsx": "preserve", |
||||||
|
"incremental": true, |
||||||
|
"paths": { |
||||||
|
"@/*": ["./*"] |
||||||
|
} |
||||||
|
}, |
||||||
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], |
||||||
|
"exclude": ["node_modules"] |
||||||
|
} |
Loading…
Reference in new issue