mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Add transitions gif for 12,11,10
This commit is contained in:
@@ -23,7 +23,7 @@ const TestimonialContent = ({ children }: { children: ReactNode }) => {
|
||||
alignItems={'center'}
|
||||
justifyContent={'center'}
|
||||
display={'flex'}
|
||||
w={'lg'}
|
||||
w={'md'}
|
||||
height={'130px'}
|
||||
>
|
||||
{children}
|
||||
|
@@ -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>
|
||||
) : (
|
||||
|
@@ -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) => (
|
||||
|
@@ -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) => (
|
||||
|
Reference in New Issue
Block a user