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'}
justifyContent={'center'}
display={'flex'}
w={'lg'}
w={'md'}
height={'130px'}
>
{children}

View File

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

View File

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

View File

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