diff --git a/frontend/src/components/global-header.jsx b/frontend/src/components/global-components.jsx similarity index 87% rename from frontend/src/components/global-header.jsx rename to frontend/src/components/global-components.jsx index 0ed4f0a..3a8e910 100644 --- a/frontend/src/components/global-header.jsx +++ b/frontend/src/components/global-components.jsx @@ -1,13 +1,13 @@ import React from "react"; import { Link, Outlet, useLoaderData } from "react-router-dom"; -const GlobalHeader = () => { +const GlobalHeaderAndFooter = () => { // get loader data from the router const logged = useLoaderData(); return ( <>
- +

SW:Lost Centuria Rune Builder

@@ -23,11 +23,12 @@ const GlobalHeader = () => { )}
+ ); }; -export default GlobalHeader; +export default GlobalHeaderAndFooter; // discord button const DiscordButton = () => { @@ -71,3 +72,20 @@ const ProfileButton = () => { ); }; + +const GlobalFooter = () => { + return ( + + ); +}; diff --git a/frontend/src/index.jsx b/frontend/src/index.jsx index 70a59dc..78b5e63 100644 --- a/frontend/src/index.jsx +++ b/frontend/src/index.jsx @@ -12,13 +12,13 @@ import reportWebVitals from "./reportWebVitals"; import ErrorPage from "./pages/error-page"; import Builder from "./pages/build/builder"; import Callback from "./pages/Callback"; -import GlobalHeader from "./components/global-header"; +import GlobalHeaderAndFooter from "./components/global-components"; import { hasTokenCookie } from "./utils/queries"; import Profile from "./pages/profile"; const router = createBrowserRouter([ { - element: , + element: , loader: async () => { return hasTokenCookie(); }, diff --git a/frontend/src/pages/App.jsx b/frontend/src/pages/App.jsx index 47a55c4..e02d490 100644 --- a/frontend/src/pages/App.jsx +++ b/frontend/src/pages/App.jsx @@ -3,7 +3,15 @@ import ButtonPrimary from "../components/button-primary"; function App() { return ( -
+
+