diff --git a/app/[locale]/category/[slug]/page.tsx b/app/[locale]/kategori/[slug]/page.tsx
similarity index 100%
rename from app/[locale]/category/[slug]/page.tsx
rename to app/[locale]/kategori/[slug]/page.tsx
diff --git a/app/[locale]/product/[slug]/page.tsx b/app/[locale]/produkt/[slug]/page.tsx
similarity index 100%
rename from app/[locale]/product/[slug]/page.tsx
rename to app/[locale]/produkt/[slug]/page.tsx
diff --git a/app/[locale]/search/page.tsx b/app/[locale]/sok/page.tsx
similarity index 100%
rename from app/[locale]/search/page.tsx
rename to app/[locale]/sok/page.tsx
diff --git a/components/layout/header/desktop-menu/desktop-menu.tsx b/components/layout/header/desktop-menu/desktop-menu.tsx
new file mode 100644
index 000000000..327a86069
--- /dev/null
+++ b/components/layout/header/desktop-menu/desktop-menu.tsx
@@ -0,0 +1,24 @@
+'use client';
+
+import { useTranslations } from 'next-intl';
+import Link from 'next/link';
+
+export default function DesktopMenu({ items, locale }: { items: []; locale: string }) {
+ const t = useTranslations('routes');
+ return (
+
diff --git a/components/modules/blurb-section/blurb-section.tsx b/components/modules/blurb-section/blurb-section.tsx
index 23d2a50eb..5072b3344 100644
--- a/components/modules/blurb-section/blurb-section.tsx
+++ b/components/modules/blurb-section/blurb-section.tsx
@@ -1,8 +1,6 @@
-import { Carousel, CarouselItem } from '@/components/modules/carousel/carousel';
import Card from '@/components/ui/card/card';
-
+import { cn } from '@/lib/utils';
import Text from 'components/ui/text';
-
interface BlurbSectionProps {
blurbs: any;
title: string;
@@ -24,9 +22,7 @@ const BlurbSection = ({
: desktopLayout === '3-column'
? 'lg:grid-cols-3'
: 'lg:grid-cols-4';
-
- const sliderLayout = desktopLayout === '2-column' ? 2 : desktopLayout === '3-column' ? 3 : 4;
-
+ console.log(imageFormat);
return (
{title ? (
@@ -42,52 +38,35 @@ const BlurbSection = ({
)}
{blurbs.map((blurb: object | any, index: number) => {
return (
-
-
-
- {blurbs && (
-
- {blurbs.map((blurb: any, index: number) => (
-
-
-
- ))}
-
- )}
-
);
};
diff --git a/components/ui/category-card/category-card.tsx b/components/ui/category-card/category-card.tsx
index 923c30e55..b3735de49 100644
--- a/components/ui/category-card/category-card.tsx
+++ b/components/ui/category-card/category-card.tsx
@@ -1,32 +1,30 @@
-'use client'
-
-import SanityImage from 'components/ui/sanity-image'
-import { cn } from 'lib/utils'
-import Link from 'next/link'
-import { FC } from 'react'
-
+'use client';
+import SanityImage from 'components/ui/sanity-image';
+import { cn } from 'lib/utils';
+import { useTranslations } from 'next-intl';
+import Link from 'next/link';
+import { FC } from 'react';
interface Props {
- className?: string
- category: any
+ className?: string;
+ category: any;
}
-const placeholderImg = '/product-img-placeholder.svg'
-
const CategoryCard: FC
= ({ category, className }) => {
const rootClassName = cn(
'w-1/2 min-w-0 grow-0 shrink-0 group relative box-border overflow-hidden transition-transform ease-linear cursor-pointer basis-[50%]',
className
- )
+ );
+ const t = useTranslations('routes');
return (
-
-
+
+
= ({ category, className }) => {
height={400}
sizes="(max-width: 1024px) 50vw, 25vw"
/>
-
- )
-}
+ );
+};
-export default CategoryCard
+export default CategoryCard;
diff --git a/components/ui/product-card/product-card.tsx b/components/ui/product-card/product-card.tsx
index 7053188d2..85f692916 100644
--- a/components/ui/product-card/product-card.tsx
+++ b/components/ui/product-card/product-card.tsx
@@ -5,6 +5,7 @@ import type { Product } from '@/lib/storm/product';
import Price from 'components/price';
import Text from 'components/ui/text';
import { cn } from 'lib/utils';
+import { useLocale, useTranslations } from 'next-intl';
import Link from 'next/link';
import { FC } from 'react';
interface Props {
@@ -15,10 +16,12 @@ interface Props {
const ProductCard: FC
= ({ product, className, variant = 'default' }) => {
const rootClassName = cn('w-full group relative overflow-hidden', className);
+ const t = useTranslations('routes');
+ const locale = useLocale();
return (