Skip to content

Instantly share code, notes, and snippets.

@vsnai
Last active February 5, 2021 18:01
Show Gist options
  • Save vsnai/c539cc7fa891801e166abec50593ab24 to your computer and use it in GitHub Desktop.
Save vsnai/c539cc7fa891801e166abec50593ab24 to your computer and use it in GitHub Desktop.
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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment