From 3a3ff3798f02cf284a6ab86af9414e4220b90956 Mon Sep 17 00:00:00 2001 From: Chloe Date: Thu, 25 Apr 2024 15:29:44 +0700 Subject: [PATCH] fix: update dark text color and fix responsive issues Signed-off-by: Chloe --- app/product/[handle]/page.tsx | 4 +++- components/product/gallery.tsx | 2 +- components/product/special-offer.tsx | 14 ++++++++------ components/product/warranty-selector.tsx | 2 +- components/product/warranty.tsx | 4 ++-- 5 files changed, 15 insertions(+), 11 deletions(-) diff --git a/app/product/[handle]/page.tsx b/app/product/[handle]/page.tsx index 4adbfa0e3..b75d2b6fb 100644 --- a/app/product/[handle]/page.tsx +++ b/app/product/[handle]/page.tsx @@ -83,7 +83,9 @@ export default async function ProductPage({ params }: { params: { handle: string }} />
- +
+ +
-

+

Representative Image

diff --git a/components/product/special-offer.tsx b/components/product/special-offer.tsx index 2ce75a3ef..1cdb9a2e7 100644 --- a/components/product/special-offer.tsx +++ b/components/product/special-offer.tsx @@ -5,19 +5,21 @@ const SpecialOffer = () => { return ( <>
Special Offers
-
+

- Flat Rate Shipping (Commercial Address) + Flat Rate Shipping + (Commercial Address)

- Up to 5 Years Unlimited Miles - Warranty + Up to 5 Years + Unlimited Miles Warranty

- Excellent Customer Support + Excellent Customer Support

- No Core Charge for 30 days + No Core Charge for + 30 days

diff --git a/components/product/warranty-selector.tsx b/components/product/warranty-selector.tsx index 87302a200..3beaa5559 100644 --- a/components/product/warranty-selector.tsx +++ b/components/product/warranty-selector.tsx @@ -42,7 +42,7 @@ const WarrantySelector = () => { key={plan.key} onClick={() => setSelectedOptions(plan.key)} className={cn( - 'flex w-32 cursor-pointer flex-col items-center justify-center space-y-2 rounded-md border p-2 text-xs font-medium', + 'flex w-32 cursor-pointer flex-col items-center justify-center space-y-2 rounded-md border p-2 text-center text-xs font-medium', { 'ring-2 ring-secondary': plan.key === selectedOptions } )} > diff --git a/components/product/warranty.tsx b/components/product/warranty.tsx index 284c46378..83b8f7ec8 100644 --- a/components/product/warranty.tsx +++ b/components/product/warranty.tsx @@ -8,12 +8,12 @@ type WarrantyProps = { const Warranty = ({ productType }: WarrantyProps) => { return ( -
+
Protect your {productType ?? 'product'}
-
+
Extended Warranty What's Included