From fcfde15b0d772ca24e0fa464f6db64bbbd300006 Mon Sep 17 00:00:00 2001 From: v0 Date: Wed, 3 Sep 2025 09:00:52 +0000 Subject: [PATCH] fix: resolve rendering issue with dynamic Tailwind classes Use static classes instead of dynamic template literals. Co-authored-by: Jeff Emmett <46964190+Jeff-Emmett@users.noreply.github.com> --- app/contact/page.tsx | 3 ++- app/page.tsx | 31 +++++++++++++++++++++++++------ 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/app/contact/page.tsx b/app/contact/page.tsx index 04ede26..20d75af 100644 --- a/app/contact/page.tsx +++ b/app/contact/page.tsx @@ -162,7 +162,8 @@ export default function ContactPage() {

Visit Alert Bay

- Alert Bay is located on Cormorant Island in British Columbia, Canada. The community is rich in Indigenous culture and maritime heritage. Come explore the wilderness of Vancouver Island! + Alert Bay is located on Cormorant Island in British Columbia, Canada. The community is rich in + Indigenous culture and maritime heritage. Come explore the wilderness of Vancouver Island!

diff --git a/app/page.tsx b/app/page.tsx index bf0d822..151292b 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -170,6 +170,28 @@ export default function HomePage() { return images[index] || images[0] } + const getSponsorCardClasses = (index: number) => { + const cardClasses = [ + { + card: "text-center hover:shadow-xl transition-all duration-300 border-2 hover:border-orange-300 bg-gradient-to-b from-white to-orange-50", + title: "text-xl font-bold text-orange-600 mb-3", + }, + { + card: "text-center hover:shadow-xl transition-all duration-300 border-2 hover:border-amber-400 bg-gradient-to-b from-white to-amber-50", + title: "text-xl font-bold text-amber-600 mb-3", + }, + { + card: "text-center hover:shadow-xl transition-all duration-300 border-2 hover:border-gray-400 bg-gradient-to-b from-white to-gray-50", + title: "text-xl font-bold text-gray-600 mb-3", + }, + { + card: "text-center hover:shadow-xl transition-all duration-300 border-2 hover:border-yellow-400 bg-gradient-to-b from-white to-yellow-50", + title: "text-xl font-bold text-yellow-600 mb-3", + }, + ] + return cardClasses[index] || cardClasses[0] + } + return (
{/* Header */} @@ -275,12 +297,9 @@ export default function HomePage() {
) : ( subscriptionProducts.slice(0, 4).map((product, index) => { - const tierInfo = getSponsorTierInfo(index) + const cardClasses = getSponsorCardClasses(index) return ( - +
-

{product.name}

+

{product.name}

{formatPrice(product.price, product.currency)}/month