mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-25 11:39:51 +01:00
feat: embeds
This commit is contained in:
1 parent
1990322d6d
commit
34f782e747
3 files changed
+299
-281
No files matched your search
+10
-2
@@ -1,5 +1,8 @@
|
||||
'use client';
|
||||
|
||||
import { config } from 'dotenv';
|
||||
import { Roboto_Flex } from 'next/font/google';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import { ReactNode } from 'react';
|
||||
import Navbar from '../components/Navbar';
|
||||
|
||||
@@ -15,15 +18,20 @@ const robotoFlex = Roboto_Flex({
|
||||
});
|
||||
|
||||
export default function RootLayout({ children }: RootLayoutProps) {
|
||||
const pathname = usePathname();
|
||||
const isEmbed = pathname.split('/')[1] === 'embeds';
|
||||
|
||||
return (
|
||||
<html lang="en" className={robotoFlex.className}>
|
||||
<body
|
||||
style={{
|
||||
margin: 0,
|
||||
background: 'url(https://i.imgur.com/PhS06NJ.png)',
|
||||
background: isEmbed
|
||||
? 'transparent'
|
||||
: 'url(https://i.imgur.com/PhS06NJ.png)',
|
||||
}}
|
||||
>
|
||||
<Navbar />
|
||||
{!isEmbed && <Navbar />}
|
||||
|
||||
<div
|
||||
style={{
|
||||
|
||||
Reference in new issue
Block a user