Skip to content

Commit

Permalink
remove App.css styles and add routes to different pages
Browse files Browse the repository at this point in the history
  • Loading branch information
waalbert committed May 14, 2024
1 parent 82028ed commit 6fa5464
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 45 deletions.
42 changes: 0 additions & 42 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -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;
}
15 changes: 12 additions & 3 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
// import { BrowserRouter, Routes, Route } from "react-router-dom";
import { createBrowserRouter, RouterProvider } from "react-router-dom";

import { Home, Schedule, Resources, Workshops, NotFound } from "src/app/views";

// import { Nav } from "src/app/components";

import "./App.css";

const router = createBrowserRouter([
{
path: "/",
element: <Home />,
errorElement: <NotFound />,
},
{
path: "/schedule",
element: <Schedule />,
},
{
path: "/resources",
element: <Resources />,
},
{
path: "/workshops",
element: <Workshops />,
},
]);

function App() {
Expand Down

0 comments on commit 6fa5464

Please sign in to comment.