mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-14 23:11:56 -05:00
Add frontend skeleton
This commit is contained in:
parent
e5f40c29d8
commit
081df8284e
34
packages/frontend/.gitignore
vendored
Normal file
34
packages/frontend/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# 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
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
|
||||
# vercel
|
||||
.vercel
|
||||
8231
packages/frontend/package-lock.json
generated
Normal file
8231
packages/frontend/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
19
packages/frontend/package.json
Normal file
19
packages/frontend/package.json
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next start"
|
||||
},
|
||||
"dependencies": {
|
||||
"next": "^11.1.2",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/react": "^17.0.32",
|
||||
"autoprefixer": "^10.3.7",
|
||||
"postcss": "^8.3.11",
|
||||
"tailwindcss": "^2.2.17"
|
||||
}
|
||||
}
|
||||
9
packages/frontend/pages/_app.css
Normal file
9
packages/frontend/pages/_app.css
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
:root {
|
||||
--colors-bg: #2d306f;
|
||||
--colors-text: rgba(255, 255, 255, 0.85);
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--colors-bg);
|
||||
color: var(--colors-text);
|
||||
}
|
||||
8
packages/frontend/pages/_app.tsx
Normal file
8
packages/frontend/pages/_app.tsx
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import "tailwindcss/tailwind.css";
|
||||
import "./_app.css";
|
||||
|
||||
function MyApp({ Component, pageProps }) {
|
||||
return <Component {...pageProps} />;
|
||||
}
|
||||
|
||||
export default MyApp;
|
||||
21
packages/frontend/pages/index.tsx
Normal file
21
packages/frontend/pages/index.tsx
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import Head from "next/head";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-center min-h-screen py-2">
|
||||
<Head>
|
||||
<title>Create Next App</title>
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
</Head>
|
||||
|
||||
<main className="flex flex-col items-center justify-center w-full flex-1 px-20 text-center">
|
||||
<h1 className="text-6xl font-bold">
|
||||
Welcome to{" "}
|
||||
<a className="text-blue-600" href="https://nextjs.org">
|
||||
Next.js!
|
||||
</a>
|
||||
</h1>
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
6
packages/frontend/postcss.config.js
Normal file
6
packages/frontend/postcss.config.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
module.exports = {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
autoprefixer: {},
|
||||
},
|
||||
};
|
||||
BIN
packages/frontend/public/favicon.ico
Normal file
BIN
packages/frontend/public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
12
packages/frontend/tailwind.config.js
Normal file
12
packages/frontend/tailwind.config.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
module.exports = {
|
||||
mode: "jit",
|
||||
purge: ["./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}"],
|
||||
darkMode: false,
|
||||
theme: {
|
||||
extend: {},
|
||||
},
|
||||
variants: {
|
||||
extend: {},
|
||||
},
|
||||
plugins: [],
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user