Spaces:
Runtime error
Runtime error
Download Frontend/src/components/layout/PublicLayout.jsx from jinksQspider/ExamCraftAI: direct link, hf CLI and curl.
- Browser
- Download file 585 Bytes
-
https://huggingface.co/spaces/jinksQspider/ExamCraftAI/resolve/main/Frontend/src/components/layout/PublicLayout.jsx
- Command line
-
hf download hf://spaces/jinksQspider/ExamCraftAI/Frontend/src/components/layout/PublicLayout.jsx
-
curl -L -o PublicLayout.jsx https://huggingface.co/spaces/jinksQspider/ExamCraftAI/resolve/main/Frontend/src/components/layout/PublicLayout.jsx
585 Bytes
| import React, { useEffect } from "react"; | |
| import { Outlet, useLocation } from "react-router-dom"; | |
| import Navbar from "./Navbar"; | |
| import Footer from "./Footer"; | |
| export default function PublicLayout() { | |
| const { pathname } = useLocation(); | |
| useEffect(() => { | |
| window.scrollTo(0, 0); | |
| }, [pathname]); | |
| return ( | |
| <div className="min-h-screen bg-background relative selection:bg-primary/30 flex flex-col"> | |
| <Navbar /> | |
| <main className="flex-1"> | |
| <Outlet /> | |
| </main> | |
| <Footer /> | |
| </div> | |
| ); | |
| } | |