From 951263c7e29135d91c6c9b581cf650b1dd145ac2 Mon Sep 17 00:00:00 2001 From: Chloe Date: Wed, 10 Jul 2024 13:57:44 +0700 Subject: [PATCH] more design fix Signed-off-by: Chloe --- components/banner.tsx | 5 ++- components/hero.tsx | 61 +++++++++++------------------- components/layout/footer.tsx | 5 ++- components/logo-square.tsx | 4 +- components/product/core-charge.tsx | 6 +-- components/product/delivery.tsx | 6 +-- lib/constants.ts | 27 +++++++++++++ public/car-part-planet/logo.svg | 2 +- 8 files changed, 64 insertions(+), 52 deletions(-) diff --git a/components/banner.tsx b/components/banner.tsx index 33541178c..a91ed5598 100644 --- a/components/banner.tsx +++ b/components/banner.tsx @@ -1,4 +1,5 @@ import { ChevronDownIcon } from '@heroicons/react/16/solid'; +import { phoneNumber } from 'lib/constants'; import Tooltip from './tooltip'; function Banner() { @@ -6,8 +7,8 @@ function Banner() {
Speak to a Specialist Now:{' '} - - (888) 242-2605 + + {phoneNumber?.title}
diff --git a/components/hero.tsx b/components/hero.tsx index 0367017e4..65584bd31 100644 --- a/components/hero.tsx +++ b/components/hero.tsx @@ -1,4 +1,4 @@ -import { getMetaobject, getMetaobjects } from 'lib/shopify'; +import { getMetaobject } from 'lib/shopify'; import kebabCase from 'lodash.kebabcase'; import Image from 'next/image'; import { Suspense } from 'react'; @@ -8,9 +8,26 @@ import ImageDisplay from './page/image-display'; const { SITE_NAME } = process.env; -const Offers = async () => { - const offers = await getMetaobjects('usp_item'); +const offers = [ + { + title: 'Free Shipping (Commercial Address)', + icon: 'truck' + }, + { + title: 'Up to 5 Years Unlimited Miles Warranty', + icon: 'arrow-path-rounded-square' + }, + { + title: 'No Core Charge for 30 Days', + icon: 'currency-dollar' + }, + { + title: 'Excellent Customer Support', + icon: 'star' + } +]; +const Offers = () => { return (