From 5a4c48c3788b427fd6fff69688f202f041be458f Mon Sep 17 00:00:00 2001 From: Daniele Pancottini Date: Fri, 10 Feb 2023 15:30:36 +0100 Subject: [PATCH] Fix vintage color background, add footer copyright and contact icons, add contact page --- site/components/common/Footer/Footer.tsx | 16 +++++++++++++++ site/components/common/Layout/Layout.tsx | 14 +++++++++++-- site/pages/about.tsx | 2 +- site/pages/contact.tsx | 26 +++++++++++++++++++----- site/pages/news.tsx | 2 +- 5 files changed, 51 insertions(+), 9 deletions(-) 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}