From cfc150ca5162c6ac43d49ff2385a1b680e34caf1 Mon Sep 17 00:00:00 2001 From: Igor Date: Mon, 18 Nov 2024 21:12:43 +0100 Subject: [PATCH] Refactor layout by replacing GlobalHeader with GlobalHeaderAndFooter and enhance App component with a background video for improved user experience --- frontend/src/index.jsx | 4 ++-- frontend/src/pages/App.jsx | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) 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 ( -
+
+