Tried to optimize product page

This commit is contained in:
Henrik Larsson
2023-08-11 10:19:55 +02:00
parent a7efbf8fc3
commit 767245672c
18 changed files with 190 additions and 263 deletions

View File

@@ -8,7 +8,6 @@ interface HeroProps {
label?: string;
title: string;
image: object | any;
desktopImage: object | any;
link: {
title: string;
reference: {
@@ -30,9 +29,11 @@ const heroSize = {
const Hero = ({ variant, title, text, label, image, link }: HeroProps) => {
const heroClass = heroSize[variant as HeroSize] || heroSize.fullScreen;
console.log(image);
return (
<div
className={`relative w-screen ${heroClass} relative flex flex-col justify-end text-high-contrast`}
className={`relative w-screen ${heroClass} relative flex flex-col justify-end bg-neutral-300 text-high-contrast`}
>
{image && (
<SanityImage