Update css files
This commit is contained in:
10
src/App.css
10
src/App.css
@@ -1,10 +0,0 @@
|
||||
#root {
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@theme {
|
||||
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
import "@/App.css";
|
||||
import { BrowserRouter, Route, Routes } from "react-router";
|
||||
import NavBar from "./components/nav/NavBar";
|
||||
import AdminPage from "./pages/protected/AdminPage";
|
||||
@@ -77,9 +76,6 @@ const protectedRoutes: { path: string; element: React.ReactElement; }[] = [
|
||||
|
||||
export default function App(){
|
||||
return (
|
||||
<div
|
||||
className="mt-20"
|
||||
>
|
||||
<BrowserRouter>
|
||||
{/* Nav Bar */}
|
||||
<NavBar/>
|
||||
@@ -110,6 +106,5 @@ export default function App(){
|
||||
</Route>
|
||||
</Routes>
|
||||
</BrowserRouter>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -11,12 +11,12 @@ export default function NavBar(){
|
||||
return (
|
||||
<nav
|
||||
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"
|
||||
)}
|
||||
>
|
||||
<div
|
||||
className="max-w-(--breakpoint-xl) flex flex-nowrap flex-row items-center justify-between mx-auto p-4"
|
||||
className="navContents"
|
||||
>
|
||||
<Link
|
||||
to="/"
|
||||
|
||||
@@ -7,28 +7,26 @@
|
||||
}
|
||||
|
||||
|
||||
:root.dark {
|
||||
--text-color: #FFFFFFDE;
|
||||
--bg-color: var(--color-neutral-825);
|
||||
}
|
||||
|
||||
:root.light {
|
||||
--text-color: #213547;
|
||||
--bg-color: #FFFFFF;
|
||||
}
|
||||
|
||||
:root {
|
||||
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;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
:root.dark {
|
||||
color: rgba(255, 255, 255, 0.87);
|
||||
background-color: var(--color-neutral-825);
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: inherit;
|
||||
background-color: var(--bg-color);
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
a.active {
|
||||
@@ -36,19 +34,38 @@ a.active {
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
place-items: center;
|
||||
min-width: 320px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
max-width: var(--breakpoint-2xl);
|
||||
|
||||
h1 {
|
||||
font-size: 3.2em;
|
||||
line-height: 1.1;
|
||||
margin-top: 82px;
|
||||
margin-inline: auto;
|
||||
padding-inline: 1rem;
|
||||
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
button {
|
||||
font-family: inherit;
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user