diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-06-07 20:26:26 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-06-07 20:33:01 +0200 |
commit | 16198f00c205f603e601ff3e90d3ee42b669bdad (patch) | |
tree | f083f2d87c8ac2b50962164923143001882510d1 /src | |
parent | Login: Add dependency to useEffect (diff) | |
download | fs-tracer-frontend-16198f00c205f603e601ff3e90d3ee42b669bdad.tar.gz fs-tracer-frontend-16198f00c205f603e601ff3e90d3ee42b669bdad.tar.bz2 fs-tracer-frontend-16198f00c205f603e601ff3e90d3ee42b669bdad.zip |
Misc: Install tailwind css
Diffstat (limited to 'src')
-rw-r--r-- | src/App.css | 42 | ||||
-rw-r--r-- | src/App.tsx | 1 | ||||
-rw-r--r-- | src/index.css | 3 | ||||
-rw-r--r-- | src/pages/Home.tsx | 2 | ||||
-rw-r--r-- | src/pages/Login.tsx | 1 |
5 files changed, 4 insertions, 45 deletions
diff --git a/src/App.css b/src/App.css deleted file mode 100644 index b9d355d..0000000 --- a/src/App.css +++ /dev/null @@ -1,42 +0,0 @@ -#root { - max-width: 1280px; - margin: 0 auto; - padding: 2rem; - text-align: center; -} - -.logo { - height: 6em; - padding: 1.5em; - will-change: filter; - transition: filter 300ms; -} -.logo:hover { - filter: drop-shadow(0 0 2em #646cffaa); -} -.logo.react:hover { - filter: drop-shadow(0 0 2em #61dafbaa); -} - -@keyframes logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} - -@media (prefers-reduced-motion: no-preference) { - a:nth-of-type(2) .logo { - animation: logo-spin infinite 20s linear; - } -} - -.card { - padding: 2em; -} - -.read-the-docs { - color: #888; -} diff --git a/src/App.tsx b/src/App.tsx index a7e9634..db216c6 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,7 +3,6 @@ import { useState } from 'react' import { BrowserRouter, Routes, Route } from "react-router-dom"; import { createClient } from '@supabase/supabase-js' -import './App.css' import Home from './pages/Home' import Login from './pages/Login' diff --git a/src/index.css b/src/index.css index e69de29..b5c61c9 100644 --- a/src/index.css +++ b/src/index.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index 1a5853b..521080f 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -41,7 +41,7 @@ export default function Home(props: any) { return ( <> <div> - <h1>Home</h1> + <h1 className="font-bold">Home</h1> <p>Logged in!</p> {files.map((file: any) => ( <div key={file.id}> diff --git a/src/pages/Login.tsx b/src/pages/Login.tsx index 72dab4c..a00e4b1 100644 --- a/src/pages/Login.tsx +++ b/src/pages/Login.tsx @@ -1,5 +1,4 @@ import { useEffect } from 'react' - import { useNavigate } from "react-router-dom"; import { GoogleLogin, GoogleOAuthProvider } from '@react-oauth/google'; |