add: boilerplate w/ navbar, tailwindcss

This commit is contained in:
Jordan Edgington
2024-05-17 21:58:07 -04:00
parent 2fd5a4583c
commit efce89bd16
13 changed files with 1224 additions and 141 deletions

View File

@@ -1,33 +1,15 @@
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import { Outlet } from 'react-router-dom'
import './App.css'
import NavBar from './components/navbar'
function App() {
const [count, setCount] = useState(0)
return (
<>
<div>
<a href="https://vitejs.dev" target="_blank">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
<div className='flex flex-col items-center bg-gray-600 min-h-screen'>
<NavBar />
<Outlet />
</div>
<h1>Vite + React</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
<p>
Edit <code>src/App.jsx</code> and save to test HMR
</p>
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
</>
)
}