diff --git a/site/components/common/Footer/Footer.tsx b/site/components/common/Footer/Footer.tsx index 41419e315..2cfd7976b 100644 --- a/site/components/common/Footer/Footer.tsx +++ b/site/components/common/Footer/Footer.tsx @@ -5,6 +5,7 @@ import { useRouter } from 'next/router' import type { Page } from '@commerce/types/page' import getSlug from '@lib/get-slug' import { Github, Vercel } from '@components/icons' +import { AtSignIcon, PhoneIcon } from '@chakra-ui/icons' import { Logo, Container } from '@components/ui' import { I18nWidget } from '@components/common' import ThemeSwitcher from '@components/ui/ThemeSwitcher' @@ -76,12 +77,27 @@ const Footer: FC = ({ className, pages }) => { > + + + + + +
© 2020 ACME, Inc. All rights reserved. + © 2023 Daniele Pancottini All rights reserved.
diff --git a/site/components/common/Layout/Layout.tsx b/site/components/common/Layout/Layout.tsx index 7d9216cb7..06009d8da 100644 --- a/site/components/common/Layout/Layout.tsx +++ b/site/components/common/Layout/Layout.tsx @@ -19,6 +19,7 @@ import type { Category } from '@commerce/types/site' import type { Link as LinkProps } from '../UserNav/MenuSidebarView' import navBarLinks from '../../../static_data/navBarLinks.json' import Script from 'next/script' +import { useState } from 'react' const Loading = () => (
@@ -110,14 +111,23 @@ const Layout: React.FC = ({ pageProps: { categories = [], ...pageProps }, }) => { const { acceptedCookies, onAcceptCookies } = useAcceptCookies() - const { locale = 'it' } = useRouter() + const { locale = 'it', pathname } = useRouter() const navBarlinks = navBarLinks[locale as keyof typeof navBarLinks] + console.log(pathname) + return (
-
{children}
+ +
{children}