Add catchphrases into about page

This commit is contained in:
Daniele Pancottini 2023-01-02 19:10:29 +01:00
parent 8e51ad7cd7
commit 23491e2ec2
10 changed files with 210 additions and 104 deletions

View File

@ -1,6 +1,6 @@
{ {
"features": { "features": {
"cart": true, "cart": false,
"search": true, "search": true,
"wishlist": false, "wishlist": false,
"customerAuth": false, "customerAuth": false,

View File

@ -0,0 +1,85 @@
import { ReactNode } from 'react'
import {
Box,
Heading,
Text,
Stack,
Container,
useColorModeValue,
} from '@chakra-ui/react'
import { useRouter } from 'next/router'
const Testimonial = ({ children }: { children: ReactNode }) => {
return <Box>{children}</Box>
}
const TestimonialContent = ({ children }: { children: ReactNode }) => {
return (
<Box
bg={useColorModeValue('white', 'gray.800')}
boxShadow={'lg'}
p={8}
rounded={'xl'}
alignItems={'center'}
justifyContent={'center'}
display={'flex'}
w={'lg'}
height={'130px'}
>
{children}
</Box>
)
}
const TestimonialHeading = ({ children }: { children: ReactNode }) => {
return (
<Heading as={'h3'} fontSize={'xl'}>
{children}
</Heading>
)
}
export default function MessageMap() {
const { locale = 'it' } = useRouter()
return (
<Box bg={useColorModeValue('gray.100', 'gray.700')}>
<Container maxW={'7xl'} py={16} as={Stack} spacing={12}>
<Stack spacing={0} align={'center'}>
<Heading>
{locale == 'it' ? 'I Nostri Motti' : 'Our Catchphrases'}
</Heading>
<Text>
{locale == 'it'
? 'Quello per cui lavoriamo ogni giorno...'
: 'What we work for every day...'}
</Text>
</Stack>
<Stack
direction={{ base: 'column', md: 'row' }}
spacing={{ base: 10, md: 4, lg: 10 }}
justifyContent={'center'}
>
<Testimonial>
<TestimonialContent>
<TestimonialHeading>
{locale == 'it'
? 'Safara. Il sentiero che ci ha portato qui!'
: 'Safara. the path that led us here!'}
</TestimonialHeading>
</TestimonialContent>
</Testimonial>
<Testimonial>
<TestimonialContent>
<TestimonialHeading>
{locale == 'it'
? 'Safara espone e vende i tuoi pezzi di storia... e nel frattempo fa cultura, intrattenimento'
: 'Safara exposes and sells your pieces of history... and meanwhile does culture, entertainment'}
</TestimonialHeading>
</TestimonialContent>
</Testimonial>
</Stack>
</Container>
</Box>
)
}

View File

@ -72,7 +72,7 @@ const Footer: FC<Props> = ({ className, pages }) => {
<a <a
className={s.link} className={s.link}
aria-label="Github Repository" aria-label="Github Repository"
href="https://github.com/vercel/commerce" href="https://github.com/DanielePancottini"
> >
<Github /> <Github />
</a> </a>
@ -83,21 +83,6 @@ const Footer: FC<Props> = ({ className, pages }) => {
<div> <div>
<span>&copy; 2020 ACME, Inc. All rights reserved.</span> <span>&copy; 2020 ACME, Inc. All rights reserved.</span>
</div> </div>
<div className="flex items-center text-primary text-sm">
<span className="text-primary">Created by</span>
<a
rel="noopener noreferrer"
href="https://vercel.com"
aria-label="Vercel.com Link"
target="_blank"
className="text-primary"
>
<Vercel
className="inline-block h-6 ml-3 text-primary"
alt="Vercel.com Logo"
/>
</a>
</div>
</div> </div>
</Container> </Container>
</footer> </footer>

View File

@ -70,8 +70,8 @@ export default function MarkerCardModal(props: {
{!isTransitionCompleted ? ( {!isTransitionCompleted ? (
<Image <Image
src={'/regions/abruzzo/11/plan/transition.gif'} src={'/regions/abruzzo/11/plan/transition.gif'}
height={200} height={577}
width={200} width={700}
onLoad={() => onLoad={() =>
setInterval(() => { setInterval(() => {
setIsTransitionComplited(true) setIsTransitionComplited(true)

View File

@ -1,16 +1,24 @@
import { Divider, Tab, TabList, TabPanel, TabPanels, Tabs } from '@chakra-ui/react' import {
chakra,
Heading,
Text,
Divider,
Grid,
GridItem,
} from '@chakra-ui/react'
import { Layout } from '@components/common' import { Layout } from '@components/common'
import AboutSlider from '@components/common/About/AboutSlider' import AboutSlider from '@components/common/About/AboutSlider'
import MessageMap from '@components/common/About/TestimonialCard'
import { Text } from '@components/ui' import WithSpeechBubbles from '@components/common/About/TestimonialCard'
import TestimonialCard from '@components/common/About/TestimonialCard'
export default function About() { export default function About() {
return ( return (
<> <>
<div className="mx-8 sm:mx-auto py-20 flex flex-col items-center justify-center fit"> <div className="mx-8 sm:mx-auto py-20 flex flex-col items-center justify-center fit">
<AboutSlider></AboutSlider> <AboutSlider></AboutSlider>
</div> </div>
<MessageMap />
</> </>
) )
} }

15
site/pages/contact.tsx Normal file
View File

@ -0,0 +1,15 @@
import { Layout } from '@components/common'
import { Text } from '@components/ui'
export default function Contact() {
return (
<div className="max-w-2xl mx-8 sm:mx-auto py-20 flex flex-col items-center justify-center fit">
<Text variant="heading">Contact</Text>
<Text className="">
The requested page doesn't exist or you don't have access to it.
</Text>
</div>
)
}
Contact.Layout = Layout

View File

@ -1,13 +1,11 @@
import { Layout } from '@components/common' import { Layout } from '@components/common'
import ImageMapper from 'react-img-mapper' import ImageMapper from 'react-img-mapper'
import { useEffect, useState } from 'react' import { useEffect, useState } from 'react'
import { useRouter } from 'next/router'
import { useDisclosure } from '@chakra-ui/react' import { useDisclosure } from '@chakra-ui/react'
import PolygonModal from '@components/common/HomePage/PolygonModal/PolygonModal' import PolygonModal from '@components/common/HomePage/PolygonModal/PolygonModal'
export default function Home() { export default function Home() {
const imagePath = 'homepageBackgroundImage.png' const imagePath = 'homepageBackgroundImage.png'
const { locale } = useRouter()
const [mapContainerWidth, setMapContainerWidth] = useState< const [mapContainerWidth, setMapContainerWidth] = useState<
number | undefined number | undefined
@ -24,7 +22,7 @@ export default function Home() {
id: '12', id: '12',
title: '2000', title: '2000',
name: '2000', name: '2000',
fillColor: '#eab54d4d', fillColor: '#FF279E',
strokeColor: 'black', strokeColor: 'black',
coords: [ coords: [
4634, 1239, 4945, 1320, 5162, 1541, 5252, 1857, 5176, 2149, 4941, 4634, 1239, 4945, 1320, 5162, 1541, 5252, 1857, 5176, 2149, 4941,
@ -38,7 +36,7 @@ export default function Home() {
id: '11', id: '11',
title: '1990', title: '1990',
name: '1990', name: '1990',
fillColor: '#eab54d4d', fillColor: '#A12AFF',
strokeColor: 'black', strokeColor: 'black',
coords: [ coords: [
3909, 467, 4175, 549, 4363, 765, 4408, 1046, 4295, 1315, 4045, 1466, 3909, 467, 4175, 549, 4363, 765, 4408, 1046, 4295, 1315, 4045, 1466,
@ -51,7 +49,7 @@ export default function Home() {
id: '10', id: '10',
title: '1980', title: '1980',
name: '1980', name: '1980',
fillColor: '#eab54d4d', fillColor: '#2C28FF',
strokeColor: 'black', strokeColor: 'black',
coords: [ coords: [
3046, 207, 3280, 289, 3430, 486, 3430, 740, 3287, 952, 3044, 1032, 3046, 207, 3280, 289, 3430, 486, 3430, 740, 3287, 952, 3044, 1032,

15
site/pages/news.tsx Normal file
View File

@ -0,0 +1,15 @@
import { Layout } from '@components/common'
import { Text } from '@components/ui'
export default function News() {
return (
<div className="max-w-2xl mx-8 sm:mx-auto py-20 flex flex-col items-center justify-center fit">
<Text variant="heading">Not Found</Text>
<Text className="">
The requested page doesn't exist or you don't have access to it.
</Text>
</div>
)
}
News.Layout = Layout

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 62 KiB

View File

@ -49,19 +49,19 @@
}, },
"9": { "9": {
"name": "1970", "name": "1970",
"color": "#2ecc71", "color": "#0068FF",
"polygon": "enneagon.svg", "polygon": "enneagon.svg",
"enabled": false "enabled": false
}, },
"10": { "10": {
"name": "1980", "name": "1980",
"color": "#FFBF00", "color": "#120EFF",
"polygon": "10.svg", "polygon": "10.svg",
"enabled": true "enabled": true
}, },
"11": { "11": {
"name": "1990", "name": "1990",
"color": "#FFBF00", "color": "#8710FF",
"polygon": "11.svg", "polygon": "11.svg",
"enabled": true "enabled": true
}, },