generated from fahricansecer/boilerplate-fe
Some checks failed
UI Deploy (Next-Auth Support) 🎨 / build-and-deploy (push) Has been cancelled
45 lines
1.1 KiB
TypeScript
45 lines
1.1 KiB
TypeScript
import Navbar from './components/Navbar';
|
|
import Hero from './components/Hero';
|
|
import Works from './components/Works';
|
|
import Services from './components/Services';
|
|
import Clients from './components/Clients';
|
|
import Process from './components/Process';
|
|
import About from './components/About';
|
|
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 />
|
|
<main>
|
|
<Hero />
|
|
<Works />
|
|
<Services />
|
|
<Clients />
|
|
<Process />
|
|
<About />
|
|
<Contact />
|
|
</main>
|
|
<Footer />
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|