Add transitions gif for 12,11,10

This commit is contained in:
Daniele Pancottini 2023-01-03 19:11:51 +01:00
parent 23491e2ec2
commit 2bf575d76b
8 changed files with 13 additions and 12 deletions

View File

@ -23,7 +23,7 @@ const TestimonialContent = ({ children }: { children: ReactNode }) => {
alignItems={'center'} alignItems={'center'}
justifyContent={'center'} justifyContent={'center'}
display={'flex'} display={'flex'}
w={'lg'} w={'md'}
height={'130px'} height={'130px'}
> >
{children} {children}

View File

@ -69,13 +69,15 @@ export default function MarkerCardModal(props: {
<Box w={'full'} ref={containerRef}> <Box w={'full'} ref={containerRef}>
{!isTransitionCompleted ? ( {!isTransitionCompleted ? (
<Image <Image
src={'/regions/abruzzo/11/plan/transition.gif'} src={
height={577} '/regions/abruzzo/' + props.decade + '/plan/transition.gif'
width={700} }
height={480}
width={576}
onLoad={() => onLoad={() =>
setInterval(() => { setInterval(() => {
setIsTransitionComplited(true) setIsTransitionComplited(true)
}, 5000) }, 2500)
} }
></Image> ></Image>
) : ( ) : (

View File

@ -44,7 +44,7 @@ const Navbar: FC<NavbarProps> = ({ links }) => {
<nav className={s.navMenu}> <nav className={s.navMenu}>
<Link href="/search"> <Link href="/search">
<a className={s.link}> <a className={s.link}>
{locale === 'it' ? 'Prodotti' : 'All'} {locale === 'it' ? 'Prodotti' : 'Products'}
</a> </a>
</Link> </Link>
{links?.map((l) => ( {links?.map((l) => (

View File

@ -3,6 +3,7 @@ import s from './MenuSidebarView.module.css'
import { useUI } from '@components/ui/context' import { useUI } from '@components/ui/context'
import SidebarLayout from '@components/common/SidebarLayout' import SidebarLayout from '@components/common/SidebarLayout'
import type { Link as LinkProps } from './index' import type { Link as LinkProps } from './index'
import { useRouter } from 'next/router'
export default function MenuSidebarView({ export default function MenuSidebarView({
links = [], links = [],
@ -10,7 +11,7 @@ export default function MenuSidebarView({
links?: LinkProps[] links?: LinkProps[]
}) { }) {
const { closeSidebar } = useUI() const { closeSidebar } = useUI()
const { locale = 'it' } = useRouter()
return ( return (
<SidebarLayout handleClose={() => closeSidebar()}> <SidebarLayout handleClose={() => closeSidebar()}>
<div className={s.root}> <div className={s.root}>
@ -18,7 +19,7 @@ export default function MenuSidebarView({
<ul> <ul>
<li className={s.item} onClick={() => closeSidebar()}> <li className={s.item} onClick={() => closeSidebar()}>
<Link href="/search"> <Link href="/search">
<a>All</a> <a>{locale == 'it' ? 'Prodotti' : 'Products'}</a>
</Link> </Link>
</li> </li>
{links.map((l: any) => ( {links.map((l: any) => (

View File

@ -4,10 +4,8 @@ import { Text } from '@components/ui'
export default function News() { export default function News() {
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">
<Text variant="heading">Not Found</Text> <Text variant="heading">Work In Progress</Text>
<Text className=""> <Text className="">We are working for you...</Text>
The requested page doesn't exist or you don't have access to it.
</Text>
</div> </div>
) )
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 631 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB