From 16198f00c205f603e601ff3e90d3ee42b669bdad Mon Sep 17 00:00:00 2001 From: Baitinq Date: Fri, 7 Jun 2024 20:26:26 +0200 Subject: Misc: Install tailwind css --- src/App.css | 42 ------------------------------------------ src/App.tsx | 1 - src/index.css | 3 +++ src/pages/Home.tsx | 2 +- src/pages/Login.tsx | 1 - 5 files changed, 4 insertions(+), 45 deletions(-) delete mode 100644 src/App.css (limited to 'src') 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 ( <>
-

Home

+

Home

Logged in!

{files.map((file: any) => (
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'; -- cgit 1.4.1