diff --git a/src/layouts/layout.tsx b/src/layouts/layout.tsx index 6d24d56..c0d4806 100644 --- a/src/layouts/layout.tsx +++ b/src/layouts/layout.tsx @@ -2,6 +2,8 @@ import Head from "next/head"; import Header from "@components/header" import { useTranslation } from 'next-i18next'; import { serverSideTranslations } from 'next-i18next/serverSideTranslations' +import { usePathname } from 'next/navigation' +import { useState } from 'react'; type LayoutType = { title?: string; @@ -10,6 +12,12 @@ type LayoutType = { export default ({ children, title = "2ALL" }: LayoutType) => { + const pathname = usePathname() + const [onTop, setOnTop] = useState(false); + + if(pathname === "/landingpage") { + } + return (
@@ -33,8 +41,8 @@ export default ({ children, title = "2ALL" }: LayoutType) => { href="https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap" /> - -
+ {/* landing-page-option-3 */} +
{children}
diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 3a2375c..c18596f 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -18,12 +18,11 @@ import '@assets/css/bootstrap.min.css'; import '@assets/css/global.css'; import '@assets/css/fonts.css'; import '@assets/css/login.css'; -import '@assets/css/old_style.css'; +//import '@assets/css/old_style.css'; import '@assets/css/style.css'; type ExtendedAppProps = AppProps & { - Component: NextPage; -// emotionCache?: EmotionCache; + Component: NextPage; }; const MyApp = ({ @@ -34,21 +33,21 @@ const MyApp = ({ const [interval, setInterval] = useState(0); return( - - - - - - - + + + + + + + ) };