Skip to content

Commit c844091

Browse files
committed
Initial setup
1 parent 3951063 commit c844091

22 files changed

+900
-247
lines changed

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx pretty-quick --staged

.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true
4+
}

package.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,24 @@
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "next lint",
10+
"prepare": "husky install"
1011
},
1112
"dependencies": {
1213
"next": "11.1.2",
1314
"react": "17.0.2",
1415
"react-dom": "17.0.2"
1516
},
1617
"devDependencies": {
18+
"@tailwindcss/typography": "^0.4.1",
1719
"@types/react": "17.0.26",
20+
"autoprefixer": "^10.3.6",
1821
"eslint": "7.32.0",
1922
"eslint-config-next": "11.1.2",
23+
"husky": "^7.0.0",
24+
"postcss": "^8.3.8",
25+
"pretty-quick": "^3.1.1",
26+
"tailwindcss": "^2.2.16",
2027
"typescript": "4.4.3"
2128
}
2229
}

pages/api/hello.ts

-13
This file was deleted.

pages/index.tsx

-72
This file was deleted.

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+
}
39.3 KB
Binary file not shown.
41.1 KB
Binary file not shown.
40.9 KB
Binary file not shown.
40.1 KB
Binary file not shown.
39 KB
Binary file not shown.
40.6 KB
Binary file not shown.
40.1 KB
Binary file not shown.
40 KB
Binary file not shown.

public/fonts/Inter-italic.var.woff2

235 KB
Binary file not shown.

public/fonts/Inter-roman.var.woff2

221 KB
Binary file not shown.

pages/_app.tsx src/pages/_app.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import '../styles/globals.css'
21
import type { AppProps } from 'next/app'
2+
import 'tailwindcss/tailwind.css'
33

44
function MyApp({ Component, pageProps }: AppProps) {
55
return <Component {...pageProps} />
66
}
7+
78
export default MyApp

src/pages/index.tsx

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import type { NextPage } from 'next'
2+
import Head from 'next/head'
3+
4+
const Home: NextPage = () => {
5+
return (
6+
<div className="flex flex-col items-center justify-center min-h-screen py-2">
7+
<Head>
8+
<title>TOCPC 2021</title>
9+
<link rel="icon" href="/favicon.ico" />
10+
</Head>
11+
12+
<main className="flex flex-col items-center justify-center w-full flex-1 px-20 text-center">
13+
<h1 className="text-6xl font-bold">THACO 2021</h1>
14+
</main>
15+
16+
<footer className="flex items-center justify-center w-full h-24 border-t">
17+
<a
18+
className="flex items-center justify-center"
19+
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
20+
target="_blank"
21+
rel="noopener noreferrer"
22+
>
23+
Powered by{' '}
24+
<img src="/vercel.svg" alt="Vercel Logo" className="h-4 ml-2" />
25+
</a>
26+
</footer>
27+
</div>
28+
)
29+
}
30+
31+
export default Home

styles/Home.module.css

-121
This file was deleted.

styles/globals.css

-16
This file was deleted.

0 commit comments

Comments
 (0)