Update css files

This commit is contained in:
2025-02-25 22:31:40 -05:00
parent f6982951eb
commit bc7ffcd5bf
4 changed files with 60 additions and 58 deletions

View File

@@ -1,10 +0,0 @@
#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}
@theme {
}

View File

@@ -1,4 +1,3 @@
import "@/App.css";
import { BrowserRouter, Route, Routes } from "react-router"; import { BrowserRouter, Route, Routes } from "react-router";
import NavBar from "./components/nav/NavBar"; import NavBar from "./components/nav/NavBar";
import AdminPage from "./pages/protected/AdminPage"; import AdminPage from "./pages/protected/AdminPage";
@@ -77,9 +76,6 @@ const protectedRoutes: { path: string; element: React.ReactElement; }[] = [
export default function App(){ export default function App(){
return ( return (
<div
className="mt-20"
>
<BrowserRouter> <BrowserRouter>
{/* Nav Bar */} {/* Nav Bar */}
<NavBar/> <NavBar/>
@@ -110,6 +106,5 @@ export default function App(){
</Route> </Route>
</Routes> </Routes>
</BrowserRouter> </BrowserRouter>
</div>
); );
} }

View File

@@ -11,12 +11,12 @@ export default function NavBar(){
return ( return (
<nav <nav
className={clsx( className={clsx(
"fixed w-full top-0 left-0 border-b-2 z-40", "border-b-2 z-40",
"bg-gray-700 border-gray-600 dark:bg-zinc-900 dark:border-neutral-850 text-white" "bg-gray-700 border-gray-600 dark:bg-zinc-900 dark:border-neutral-850 text-white"
)} )}
> >
<div <div
className="max-w-(--breakpoint-xl) flex flex-nowrap flex-row items-center justify-between mx-auto p-4" className="navContents"
> >
<Link <Link
to="/" to="/"

View File

@@ -7,28 +7,26 @@
} }
:root.dark {
--text-color: #FFFFFFDE;
--bg-color: var(--color-neutral-825);
}
:root.light {
--text-color: #213547;
--bg-color: #FFFFFF;
}
:root { :root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
color: #213547;
background-color: #ffffff;
font-synthesis: none; font-synthesis: none;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
}
:root.dark { background-color: var(--bg-color);
color: rgba(255, 255, 255, 0.87); color: var(--text-color);
background-color: var(--color-neutral-825);
}
a {
text-decoration: inherit;
} }
a.active { a.active {
@@ -36,19 +34,38 @@ a.active {
} }
body { body {
margin: 0;
display: flex; display: flex;
place-items: center; place-items: center;
min-width: 320px; min-width: 320px;
min-height: 100vh; min-height: 100vh;
} max-width: var(--breakpoint-2xl);
h1 { margin-top: 82px;
font-size: 3.2em; margin-inline: auto;
line-height: 1.1; padding-inline: 1rem;
text-align: center;
} }
button { button {
font-family: inherit;
cursor: pointer; cursor: pointer;
} }
nav {
position: fixed;
top: 0;
left: 0;
width: 100%;
}
.navContents {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
justify-content: space-between;
max-width: var(--breakpoint-2xl);
margin-inline: auto;
padding: 1rem;
}