From 6a18abf17f687aa49f231b506c4dd6dbdfdb52b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Mon, 5 Aug 2024 14:25:12 -0500 Subject: [PATCH] feat: float --- src/app/layout.tsx | 50 +-- src/app/tools/embed/customize/tanks/page.tsx | 77 +++- src/app/tools/embed/types.ts | 52 ++- src/app/tools/embed/utilities.ts | 19 +- src/components/EmbedConfigInputs.tsx | 444 +++++++++++++++---- src/components/TanksEmbed.tsx | 43 +- 6 files changed, 550 insertions(+), 135 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index aa8f3e6b0..6d716bb70 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -28,7 +28,9 @@ const robotoFlex = Roboto_Flex({ export default function RootLayout({ children }: RootLayoutProps) { const pathname = usePathname(); - const isEmbed = pathname.startsWith('/tools/embed/host'); + const hideNav = + pathname.startsWith('/tools/embed/host') || + pathname.startsWith('/tools/embed/customize'); const isRoot = pathname === '/'; return ( @@ -53,37 +55,33 @@ export default function RootLayout({ children }: RootLayoutProps) {
- {!isEmbed && ( -