fix: build error
This commit is contained in:
@@ -2,9 +2,9 @@
|
|||||||
// See: https://next-intl.dev/docs/workflows/typescript#messages-arguments
|
// See: https://next-intl.dev/docs/workflows/typescript#messages-arguments
|
||||||
|
|
||||||
declare const messages: {
|
declare const messages: {
|
||||||
HomePage: {
|
"HomePage": {
|
||||||
title: 'Salom dunyo!';
|
"title": "Salom dunyo!",
|
||||||
about: 'Go to the about page';
|
"about": "Go to the about page"
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
export default messages;
|
export default messages;
|
||||||
@@ -73,7 +73,7 @@ const GetToKnow = () => {
|
|||||||
duration: 2,
|
duration: 2,
|
||||||
repeat: Infinity,
|
repeat: Infinity,
|
||||||
repeatType: 'reverse',
|
repeatType: 'reverse',
|
||||||
ease: 'linear',
|
ease: [0, 0, 1, 1] as const,
|
||||||
}}
|
}}
|
||||||
className="absolute left-0 top-0 h-[50%] w-[50%]"
|
className="absolute left-0 top-0 h-[50%] w-[50%]"
|
||||||
>
|
>
|
||||||
@@ -121,7 +121,7 @@ const GetToKnow = () => {
|
|||||||
duration: 1,
|
duration: 1,
|
||||||
repeat: Infinity,
|
repeat: Infinity,
|
||||||
repeatType: 'reverse',
|
repeatType: 'reverse',
|
||||||
ease: 'linear',
|
ease: [0, 0, 1, 1] as const,
|
||||||
}}
|
}}
|
||||||
className="absolute right-[-10%] top-[-40px] w-[35%] h-[30%]"
|
className="absolute right-[-10%] top-[-40px] w-[35%] h-[30%]"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ const OurCompanyBottom = () => {
|
|||||||
duration: 2,
|
duration: 2,
|
||||||
repeat: Infinity,
|
repeat: Infinity,
|
||||||
repeatType: 'reverse',
|
repeatType: 'reverse',
|
||||||
ease: 'linear',
|
ease: [0, 0, 1, 1] as const,
|
||||||
}}
|
}}
|
||||||
className="absolute left-0 top-0 h-[50%] w-[50%]"
|
className="absolute left-0 top-0 h-[50%] w-[50%]"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -14,15 +14,6 @@ const containerVariants = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const cardVariants = {
|
|
||||||
hidden: { opacity: 0, y: 30 },
|
|
||||||
visible: {
|
|
||||||
opacity: 1,
|
|
||||||
y: 0,
|
|
||||||
transition: { duration: 0.6, ease: 'easeOut' },
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
const OurCompanyProducts = () => {
|
const OurCompanyProducts = () => {
|
||||||
const { data: resProducts, isLoading: loadProducts } = useQuery({
|
const { data: resProducts, isLoading: loadProducts } = useQuery({
|
||||||
queryKey: ['all-products'],
|
queryKey: ['all-products'],
|
||||||
@@ -67,7 +58,17 @@ const OurCompanyProducts = () => {
|
|||||||
{products &&
|
{products &&
|
||||||
products.length > 0 &&
|
products.length > 0 &&
|
||||||
products.map((item) => (
|
products.map((item) => (
|
||||||
<motion.div key={item.id} variants={cardVariants}>
|
<motion.div
|
||||||
|
key={item.id}
|
||||||
|
variants={{
|
||||||
|
hidden: { opacity: 0, y: 30 },
|
||||||
|
visible: {
|
||||||
|
opacity: 1,
|
||||||
|
y: 0,
|
||||||
|
transition: { duration: 0.6, ease: [0, 0.55, 0.45, 1] as const },
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
>
|
||||||
<OurProductCard item={item} />
|
<OurProductCard item={item} />
|
||||||
</motion.div>
|
</motion.div>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ const OurCompanyTop = () => {
|
|||||||
duration: 2,
|
duration: 2,
|
||||||
repeat: Infinity,
|
repeat: Infinity,
|
||||||
repeatType: 'reverse',
|
repeatType: 'reverse',
|
||||||
ease: 'linear',
|
ease: [0, 0, 1, 1] as const,
|
||||||
}}
|
}}
|
||||||
className="absolute left-0 top-0 h-[50%] w-[50%]"
|
className="absolute left-0 top-0 h-[50%] w-[50%]"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ const Footer = () => {
|
|||||||
duration: 1,
|
duration: 1,
|
||||||
repeat: Infinity,
|
repeat: Infinity,
|
||||||
repeatType: 'reverse',
|
repeatType: 'reverse',
|
||||||
ease: 'linear',
|
ease: [0, 0, 1, 1] as const,
|
||||||
}}
|
}}
|
||||||
className="absolute top-[-40px] left-[-40px] size-[100px]"
|
className="absolute top-[-40px] left-[-40px] size-[100px]"
|
||||||
>
|
>
|
||||||
@@ -56,7 +56,7 @@ const Footer = () => {
|
|||||||
duration: 1,
|
duration: 1,
|
||||||
repeat: Infinity,
|
repeat: Infinity,
|
||||||
repeatType: 'reverse',
|
repeatType: 'reverse',
|
||||||
ease: 'linear',
|
ease: [0, 0, 1, 1] as const,
|
||||||
}}
|
}}
|
||||||
className="absolute top-[-40px] right-[-60px] size-[100px]"
|
className="absolute top-[-40px] right-[-60px] size-[100px]"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ const SidebarMenuItem = ({ item }: ISidebarMenuItemProps) => {
|
|||||||
open: { opacity: 1, height: 'auto' },
|
open: { opacity: 1, height: 'auto' },
|
||||||
collapsed: { opacity: 0, height: 0 },
|
collapsed: { opacity: 0, height: 0 },
|
||||||
}}
|
}}
|
||||||
transition={{ duration: 0.3, ease: 'easeInOut' }}
|
transition={{ duration: 0.3, ease: [0.42, 0, 0.58, 1] as const }}
|
||||||
className="border-l border-dashed border-l-primary ml-[10px] overflow-hidden"
|
className="border-l border-dashed border-l-primary ml-[10px] overflow-hidden"
|
||||||
>
|
>
|
||||||
{item.children.map((child) => (
|
{item.children.map((child) => (
|
||||||
|
|||||||
@@ -11,12 +11,6 @@ const overlayVariants = {
|
|||||||
exit: { opacity: 0 },
|
exit: { opacity: 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
const sidebarVariants = {
|
|
||||||
hidden: { x: '-100%' }, // butunlay chapda
|
|
||||||
visible: { x: 0, transition: { type: 'tween', delay: 0.15 } }, // overlaydan keyin
|
|
||||||
exit: { x: '-100%', transition: { type: 'tween' } },
|
|
||||||
};
|
|
||||||
|
|
||||||
const Sidebar: React.FC = () => {
|
const Sidebar: React.FC = () => {
|
||||||
const { isOpen, closeSidebar } = useSidebarStore();
|
const { isOpen, closeSidebar } = useSidebarStore();
|
||||||
|
|
||||||
@@ -38,7 +32,11 @@ const Sidebar: React.FC = () => {
|
|||||||
initial="hidden"
|
initial="hidden"
|
||||||
animate="visible"
|
animate="visible"
|
||||||
exit="exit"
|
exit="exit"
|
||||||
variants={sidebarVariants}
|
variants={{
|
||||||
|
hidden: { x: '-100%' }, // butunlay chapda
|
||||||
|
visible: { x: 0, transition: { type: 'tween', delay: 0.15 } }, // overlaydan keyin
|
||||||
|
exit: { x: '-100%', transition: { type: 'tween' } },
|
||||||
|
}}
|
||||||
className="fixed top-0 bottom-0 left-0 z-50 w-[270px] bg-accent text-white shadow-lg max-h-[100vh] overflow-y-auto [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar]:h-1 [&::-webkit-scrollbar]:pr-1 [&::-webkit-scrollbar-thumb]:bg-primary"
|
className="fixed top-0 bottom-0 left-0 z-50 w-[270px] bg-accent text-white shadow-lg max-h-[100vh] overflow-y-auto [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar]:h-1 [&::-webkit-scrollbar]:pr-1 [&::-webkit-scrollbar-thumb]:bg-primary"
|
||||||
>
|
>
|
||||||
<div className="p-3">
|
<div className="p-3">
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ const HomeAbout = () => {
|
|||||||
duration: 2,
|
duration: 2,
|
||||||
repeat: Infinity,
|
repeat: Infinity,
|
||||||
repeatType: 'reverse',
|
repeatType: 'reverse',
|
||||||
ease: 'linear',
|
ease: [0, 0, 1, 1] as const,
|
||||||
}}
|
}}
|
||||||
className="absolute left-0 top-0 h-[50%] w-[50%]"
|
className="absolute left-0 top-0 h-[50%] w-[50%]"
|
||||||
>
|
>
|
||||||
@@ -108,7 +108,7 @@ const HomeAbout = () => {
|
|||||||
duration: 1,
|
duration: 1,
|
||||||
repeat: Infinity,
|
repeat: Infinity,
|
||||||
repeatType: 'reverse',
|
repeatType: 'reverse',
|
||||||
ease: 'linear',
|
ease: [0, 0, 1, 1] as const,
|
||||||
}}
|
}}
|
||||||
className="absolute right-[-10%] top-[-40px] w-[40%] h-[40%]"
|
className="absolute right-[-10%] top-[-40px] w-[40%] h-[40%]"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ const cardVariants = {
|
|||||||
visible: {
|
visible: {
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
y: 0,
|
y: 0,
|
||||||
transition: { duration: 0.6, ease: 'easeOut' },
|
transition: { duration: 0.6, ease: [0, 0.55, 0.45, 1] as const },
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ const cardVariants = {
|
|||||||
visible: {
|
visible: {
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
y: 0,
|
y: 0,
|
||||||
transition: { duration: 0.6, ease: 'easeOut' },
|
transition: { duration: 0.6, ease: [0, 0.55, 0.45, 1] as const },
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ const cardVariants = {
|
|||||||
visible: {
|
visible: {
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
y: 0,
|
y: 0,
|
||||||
transition: { duration: 0.6, ease: 'easeOut' },
|
transition: { duration: 0.6, ease: [0, 0.55, 0.45, 1] as const },
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ const cardVariants = {
|
|||||||
visible: {
|
visible: {
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
y: 0,
|
y: 0,
|
||||||
transition: { duration: 0.6, ease: 'easeOut' },
|
transition: { duration: 0.6, ease: [0, 0.55, 0.45, 1] as const },
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const textVariants = {
|
|||||||
y: 0,
|
y: 0,
|
||||||
transition: {
|
transition: {
|
||||||
duration: 1.6,
|
duration: 1.6,
|
||||||
ease: 'easeOut',
|
ease: [0, 0.55, 0.45, 1] as const,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -46,7 +46,7 @@ const btnsVariants = {
|
|||||||
y: 0,
|
y: 0,
|
||||||
transition: {
|
transition: {
|
||||||
duration: 1.6,
|
duration: 1.6,
|
||||||
ease: 'easeOut',
|
ease: [0, 0.55, 0.45, 1] as const,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user