generated from fahricansecer/boilerplate-fe
main
Some checks failed
UI Deploy (Next-Auth Support) 🎨 / build-and-deploy (push) Has been cancelled
Some checks failed
UI Deploy (Next-Auth Support) 🎨 / build-and-deploy (push) Has been cancelled
This commit is contained in:
13
src/App.tsx
13
src/App.tsx
@@ -9,10 +9,22 @@ import Contact from './components/Contact';
|
||||
import Footer from './components/Footer';
|
||||
import DynamicBackground from './components/DynamicBackground';
|
||||
import Admin from './components/Admin';
|
||||
import SEO from './components/SEO';
|
||||
|
||||
export default function App() {
|
||||
const isSysop = window.location.pathname === '/sysop';
|
||||
|
||||
if (isSysop) {
|
||||
return (
|
||||
<div className="min-h-screen bg-[#050505]">
|
||||
<Admin forceOpen={true} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="min-h-screen relative bg-[#050505]">
|
||||
<SEO />
|
||||
<DynamicBackground />
|
||||
<div className="relative z-10">
|
||||
<Navbar />
|
||||
@@ -27,7 +39,6 @@ export default function App() {
|
||||
</main>
|
||||
<Footer />
|
||||
</div>
|
||||
<Admin />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user