Skip to content

Commit a7599cc

Browse files
committed
initial commit
0 parents  commit a7599cc

19 files changed

+2685
-0
lines changed

.eslintrc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": ["next/core-web-vitals", "prettier"],
3+
"rules": {
4+
"react/no-unescaped-entities": 0
5+
}
6+
}

.gitignore

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/nextjs
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=nextjs
3+
4+
### NextJS ###
5+
# Dependencies
6+
/node_modules
7+
/.pnp
8+
.pnp.js
9+
10+
# Testing
11+
/coverage
12+
13+
# Next.js
14+
/.next/
15+
/out/
16+
17+
# Production
18+
/build
19+
20+
# Misc
21+
.DS_Store
22+
*.pem
23+
24+
# Debug
25+
npm-debug.log*
26+
yarn-debug.log*
27+
yarn-error.log*
28+
.pnpm-debug.log*
29+
30+
# Local env files
31+
.env.local
32+
.env.development.local
33+
.env.test.local
34+
.env.production.local
35+
36+
# Vercel
37+
.vercel
38+
39+
# End of https://www.toptal.com/developers/gitignore/api/nextjs

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ignore artifacts:
2+
build
3+
coverage

.prettierrc.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

README.md

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

components/Layout.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default function Layout({ children }: { children: React.ReactNode }) {
2+
return <main>{children}</main>;
3+
}

next-env.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/basic-features/typescript for more information.

next.config.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
3+
reactStrictMode: true,
4+
swcMinify: true,
5+
images: {
6+
domains: ['images.unsplash.com'],
7+
},
8+
};
9+
10+
module.exports = nextConfig;

package.json

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "next-react-tailwind",
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+
"@headlessui/react": "^1.7.4",
13+
"@heroicons/react": "^1.0.6",
14+
"@next/font": "^13.0.6",
15+
"@types/node": "18.11.10",
16+
"@types/react": "18.0.25",
17+
"@types/react-dom": "18.0.9",
18+
"clsx": "^1.2.1",
19+
"eslint": "8.28.0",
20+
"eslint-config-next": "13.0.6",
21+
"next": "13.0.6",
22+
"react": "18.2.0",
23+
"react-dom": "18.2.0",
24+
"sharp": "^0.31.2",
25+
"typescript": "4.9.3"
26+
},
27+
"devDependencies": {
28+
"@tailwindcss/forms": "^0.5.1",
29+
"autoprefixer": "^10.4.13",
30+
"eslint": "8.15.0",
31+
"eslint-config-next": "12.1.6",
32+
"eslint-config-prettier": "^8.5.0",
33+
"postcss": "^8.4.19",
34+
"prettier": "^2.8.1",
35+
"prettier-plugin-tailwindcss": "^0.2.1",
36+
"tailwindcss": "^3.2.4"
37+
}
38+
}

pages/_app.tsx

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

pages/index.tsx

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import Layout from "components/Layout";
2+
import Head from "next/head";
3+
4+
export default function Home() {
5+
return (
6+
<Layout>
7+
<Head>
8+
<title>Page Title</title>
9+
<meta name="description" content="Page Description" />
10+
<link rel="icon" href="/favicon.ico" />
11+
</Head>
12+
13+
<h1>Heading</h1>
14+
</Layout>
15+
);
16+
}

postcss.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

prettier.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
plugins: [require('prettier-plugin-tailwindcss')],
3+
};

public/favicon.ico

25.3 KB
Binary file not shown.

public/vercel.svg

+4
Loading

styles/globals.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

tailwind.config.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/** @type {import('tailwindcss').Config} */
2+
module.exports = {
3+
content: [
4+
'./pages/**/*.{js,ts,jsx,tsx}',
5+
'./components/**/*.{js,ts,jsx,tsx}',
6+
],
7+
theme: {
8+
extend: {},
9+
},
10+
plugins: [require('@tailwindcss/forms')],
11+
};

tsconfig.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"target": "es5",
5+
"lib": ["dom", "dom.iterable", "esnext"],
6+
"allowJs": true,
7+
"skipLibCheck": true,
8+
"strict": true,
9+
"forceConsistentCasingInFileNames": true,
10+
"noEmit": true,
11+
"esModuleInterop": true,
12+
"module": "esnext",
13+
"moduleResolution": "node",
14+
"resolveJsonModule": true,
15+
"isolatedModules": true,
16+
"jsx": "preserve",
17+
"incremental": true
18+
},
19+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
20+
"exclude": ["node_modules"]
21+
}

0 commit comments

Comments
 (0)