Skip to content

Commit 5cb0489

Browse files
committed
๐ŸŽ‰ init : Initial commit
1 parent 720d8a6 commit 5cb0489

File tree

16 files changed

+2815
-0
lines changed

16 files changed

+2815
-0
lines changed

โ€Ž.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
oz/.gitignore
2+
.DS_Store

โ€Žoz/.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

โ€Žoz/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
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).
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+
```
14+
15+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
16+
17+
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
18+
19+
[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`.
20+
21+
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.
22+
23+
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
24+
25+
## Learn More
26+
27+
To learn more about Next.js, take a look at the following resources:
28+
29+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
30+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
31+
32+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
33+
34+
## Deploy on Vercel
35+
36+
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.
37+
38+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

โ€Žoz/next.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
3+
reactStrictMode: true,
4+
}
5+
6+
module.exports = nextConfig

โ€Žoz/package.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "oz",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start",
9+
"lint": "next lint"
10+
},
11+
"dependencies": {
12+
"@types/node": "20.4.5",
13+
"@types/react": "18.2.17",
14+
"@types/react-dom": "18.2.7",
15+
"eslint": "8.46.0",
16+
"eslint-config-next": "13.4.12",
17+
"next": "13.4.12",
18+
"react": "18.2.0",
19+
"react-dom": "18.2.0",
20+
"typescript": "5.1.6"
21+
}
22+
}

โ€Žoz/public/favicon.ico

25.3 KB
Binary file not shown.

โ€Žoz/public/next.svg

Lines changed: 1 addition & 0 deletions
Loading

โ€Žoz/public/vercel.svg

Lines changed: 1 addition & 0 deletions
Loading

โ€Žoz/src/pages/_app.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import '@/styles/globals.css'
2+
import type { AppProps } from 'next/app'
3+
4+
export default function App({ Component, pageProps }: AppProps) {
5+
return <Component {...pageProps} />
6+
}

โ€Žoz/src/pages/_document.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { Html, Head, Main, NextScript } from 'next/document'
2+
3+
export default function Document() {
4+
return (
5+
<Html lang="en">
6+
<Head />
7+
<body>
8+
<Main />
9+
<NextScript />
10+
</body>
11+
</Html>
12+
)
13+
}

โ€Žoz/src/pages/api/hello.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
2+
import type { NextApiRequest, NextApiResponse } from 'next'
3+
4+
type Data = {
5+
name: string
6+
}
7+
8+
export default function handler(
9+
req: NextApiRequest,
10+
res: NextApiResponse<Data>
11+
) {
12+
res.status(200).json({ name: 'John Doe' })
13+
}

โ€Žoz/src/pages/index.tsx

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
import Head from 'next/head'
2+
import Image from 'next/image'
3+
import { Inter } from 'next/font/google'
4+
import styles from '@/styles/Home.module.css'
5+
6+
const inter = Inter({ subsets: ['latin'] })
7+
8+
export default function Home() {
9+
return (
10+
<>
11+
<Head>
12+
<title>Create Next App</title>
13+
<meta name="description" content="Generated by create next app" />
14+
<meta name="viewport" content="width=device-width, initial-scale=1" />
15+
<link rel="icon" href="/favicon.ico" />
16+
</Head>
17+
<main className={`${styles.main} ${inter.className}`}>
18+
<div className={styles.description}>
19+
<p>
20+
Get started by editing&nbsp;
21+
<code className={styles.code}>src/pages/index.tsx</code>
22+
</p>
23+
<div>
24+
<a
25+
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
26+
target="_blank"
27+
rel="noopener noreferrer"
28+
>
29+
By{' '}
30+
<Image
31+
src="/vercel.svg"
32+
alt="Vercel Logo"
33+
className={styles.vercelLogo}
34+
width={100}
35+
height={24}
36+
priority
37+
/>
38+
</a>
39+
</div>
40+
</div>
41+
42+
<div className={styles.center}>
43+
<Image
44+
className={styles.logo}
45+
src="/next.svg"
46+
alt="Next.js Logo"
47+
width={180}
48+
height={37}
49+
priority
50+
/>
51+
</div>
52+
53+
<div className={styles.grid}>
54+
<a
55+
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
56+
className={styles.card}
57+
target="_blank"
58+
rel="noopener noreferrer"
59+
>
60+
<h2>
61+
Docs <span>-&gt;</span>
62+
</h2>
63+
<p>
64+
Find in-depth information about Next.js features and&nbsp;API.
65+
</p>
66+
</a>
67+
68+
<a
69+
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
70+
className={styles.card}
71+
target="_blank"
72+
rel="noopener noreferrer"
73+
>
74+
<h2>
75+
Learn <span>-&gt;</span>
76+
</h2>
77+
<p>
78+
Learn about Next.js in an interactive course with&nbsp;quizzes!
79+
</p>
80+
</a>
81+
82+
<a
83+
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
84+
className={styles.card}
85+
target="_blank"
86+
rel="noopener noreferrer"
87+
>
88+
<h2>
89+
Templates <span>-&gt;</span>
90+
</h2>
91+
<p>
92+
Discover and deploy boilerplate example Next.js&nbsp;projects.
93+
</p>
94+
</a>
95+
96+
<a
97+
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
98+
className={styles.card}
99+
target="_blank"
100+
rel="noopener noreferrer"
101+
>
102+
<h2>
103+
Deploy <span>-&gt;</span>
104+
</h2>
105+
<p>
106+
Instantly deploy your Next.js site to a shareable URL
107+
with&nbsp;Vercel.
108+
</p>
109+
</a>
110+
</div>
111+
</main>
112+
</>
113+
)
114+
}

0 commit comments

Comments
ย (0)