Prepare for production

This commit is contained in:
Daniele Pancottini 2023-06-22 09:55:50 +02:00
parent 596190068e
commit e2dc9b0f0a
4 changed files with 34 additions and 17 deletions

View File

@ -3,7 +3,7 @@
"cart": false, "cart": false,
"search": true, "search": true,
"wishlist": false, "wishlist": false,
"customerAuth": false, "customerAuth": true,
"customCheckout": false "customCheckout": false
} }
} }

View File

@ -119,13 +119,21 @@ const Layout: React.FC<Props> = ({
<div className={cn(s.root)}> <div className={cn(s.root)}>
<Navbar links={navBarlinks} /> <Navbar links={navBarlinks} />
<style jsx> <style jsx>
{ {`
`.vintageBackground { .vintageBackground {
background-color: rgba(240, 226, 123, 0.8) background-color: rgba(240, 226, 123, 0.8);
}`
} }
`}
</style> </style>
<main className={(pathname.includes("about") || pathname.includes("news")) ? "vintageBackground" : ""}>{children}</main> <main
className={
pathname.includes('about') || pathname.includes('news')
? 'vintageBackground'
: ''
}
>
{children}
</main>
<Footer pages={pageProps.pages} /> <Footer pages={pageProps.pages} />
<ModalUI /> <ModalUI />
<CheckoutProvider> <CheckoutProvider>
@ -141,7 +149,11 @@ const Layout: React.FC<Props> = ({
} }
/> />
{/** Tidio Chat Script to implement Widget */} {/** Tidio Chat Script to implement Widget */}
<Script src="//code.tidio.co/mqhzygds3ad04ma8od6ud9ov11fpy4md.js" id="show-banner" strategy="lazyOnload"></Script> <Script
src="//code.tidio.co/q0sllyxxrrek7mix7eqt41hsgluycqcn.js"
id="show-banner"
strategy="lazyOnload"
></Script>
</div> </div>
</CommerceProvider> </CommerceProvider>
) )

View File

@ -5,28 +5,33 @@ import { Text as TextUI } from '@components/ui'
import { useRouter } from 'next/router' import { useRouter } from 'next/router'
export default function Contact() { export default function Contact() {
const { locale } = useRouter() const { locale } = useRouter()
return ( return (
<div className="max-w-2xl mx-8 sm:mx-auto py-20 flex flex-col items-center justify-center fit"> <div className="max-w-2xl mx-8 sm:mx-auto py-20 flex flex-col items-center justify-center fit">
<Box textAlign="center" mb={"10"}> <Box textAlign="center" mb={'10'}>
<TextUI className='mb-5' variant="heading">{locale == "it" ? "Contatti" : "Contact Us"}</TextUI> <TextUI className="mb-5" variant="heading">
{locale == 'it' ? 'Contatti' : 'Contact Us'}
</TextUI>
<TextUI className=""> <TextUI className="">
{locale == "it" ? "Puoi contattarci usando i recapiti che trovi qui sotto!" : "You can contact us using the contact details below!"} {locale == 'it'
? 'Puoi contattarci usando i recapiti che trovi qui sotto!'
: 'You can contact us using the contact details below!'}
</TextUI> </TextUI>
</Box> </Box>
<SimpleGrid columns={2} spacing='24px'> <SimpleGrid columns={2} spacing="24px">
<Box textAlign="center" py={2}> <Box textAlign="center" py={2}>
<AtSignIcon boxSize={'40px'} color={'orange.300'} /> <AtSignIcon boxSize={'40px'} color={'orange.300'} />
<Text fontWeight={"bold"} fontSize="18px" mt={3} mb={2}> <Text fontWeight={'bold'} fontSize="18px" mt={3} mb={2}>
<a href= "mailto:safaraecommerce@protonmail.com">safaraecommerce@protonmail.com</a> <a href="mailto:safaraecommerce@protonmail.com">
safaraecommerce@protonmail.com
</a>
</Text> </Text>
</Box> </Box>
<Box textAlign="center" py={2}> <Box textAlign="center" py={2}>
<PhoneIcon boxSize={'40px'} color={'orange.300'} /> <PhoneIcon boxSize={'40px'} color={'orange.300'} />
<Text fontWeight={"bold"} fontSize="18px" mt={3} mb={2}> <Text fontWeight={'bold'} fontSize="18px" mt={3} mb={2}>
<a href="tel:+390123456789">+39 3923790948</a> <a href="tel:+393391630349">+39 339 163 0349</a>
</Text> </Text>
</Box> </Box>
</SimpleGrid> </SimpleGrid>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 KiB

After

Width:  |  Height:  |  Size: 242 KiB