npx create-next-app jaunais-projekts
cd jaunais-projekts
npm install tailwindcss@latest postcss@latest autoprefixer@latest
npx tailwindcss init -p
// tailwind.config.js
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
// pages/_app.js
import "tailwindcss/tailwind.css";
cd /d/Code/jaunais-projekts
git init
git add .
git commit -m "Mans komentaars"
git remote add origin https://github.com/21JE/jaunais-projekts.git
git push -u origin master
npm run dev
pages/_app.js
import 'tailwindcss/tailwind.css';
function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />
}
export default MyApp;
pages/index.js
import { useState, useEffect } from 'react'
import Head from 'next/head'
const Home = () => {
const [yo, setYo] = useState('yo');
return (
<>
<Head>
<title>Invest App</title>
<link rel="icon" href="/favicon.ico" />
</Head>
<div className="h-screen flex flex-col justify-center items-center">
</div>
</>
)
};
export default Home;