Add tailwind & prettier

dev
Klotske 2022-07-14 13:11:58 +00:00
parent f78590d875
commit e7ee4edee1
7 changed files with 898 additions and 33 deletions

12
.gitignore vendored
View File

@ -30,6 +30,18 @@ yarn-error.log*
.env.test.local
.env.production.local
# generated
/public/precache.*.*.js
/public/sw.js
/public/workbox-*.js
/public/worker-*.js
/public/fallback-*.js
/public/precache.*.*.js.map
/public/sw.js.map
/public/workbox-*.js.map
/public/worker-*.js.map
/public/fallback-*.js
# vercel
.vercel

867
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +1,9 @@
{
"private": true,
"scripts": {
"dev": "next dev",
"dev": "next dev -p 4000",
"build": "next build",
"start": "next start"
"start": "next start -p 4000"
},
"dependencies": {
"next": "latest",
@ -14,6 +14,10 @@
"devDependencies": {
"@types/node": "17.0.4",
"@types/react": "17.0.38",
"autoprefixer": "^10.4.7",
"postcss": "^8.4.14",
"prettier": "^2.7.1",
"tailwindcss": "^3.1.6",
"typescript": "4.5.4"
}
}

View File

@ -1,10 +1,8 @@
import styles from "../styles/Home.module.css";
export default function Home() {
return (
<div className={styles.container}>
<main className={styles.main}>
<div className={styles.grid}>Привет мир!</div>
<div className="">
<main className="">
<div className="">Привет мир!</div>
</main>
</div>
);

View File

@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

View File

@ -1,16 +1,3 @@
html,
body {
padding: 0;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}
a {
color: inherit;
text-decoration: none;
}
* {
box-sizing: border-box;
}
@tailwind base
@tailwind components
@tailwind utilities;

11
tailwind.config.js 100644
View File

@ -0,0 +1,11 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
};