diff --git a/src/components/BannerRotator.astro b/src/components/BannerRotator.astro index 025c1c6..d311e30 100644 --- a/src/components/BannerRotator.astro +++ b/src/components/BannerRotator.astro @@ -26,30 +26,35 @@ const slides = images.length > 0 ? images : [{ src: '/images/banner.png', alt: ' {slides.length > 1 && ( )} diff --git a/src/components/ContactForm.astro b/src/components/ContactForm.astro index 3c3b12f..c467206 100644 --- a/src/components/ContactForm.astro +++ b/src/components/ContactForm.astro @@ -41,8 +41,8 @@ const contactRequestEndpoint = `${pprApiBase}/contact-requests/public`; diff --git a/src/components/FuelPricesWidget.astro b/src/components/FuelPricesWidget.astro index c00b0d6..6ff9015 100644 --- a/src/components/FuelPricesWidget.astro +++ b/src/components/FuelPricesWidget.astro @@ -3,10 +3,14 @@ import SectionHeading from './SectionHeading.astro'; import type { FuelPrice } from '../lib/fallback-data'; type Props = { + contactHref?: string; fuelPrices: FuelPrice[]; + moreInfoHref?: string; + sectionId?: string; + serviceNotes?: string[]; }; -const { fuelPrices } = Astro.props as Props; +const { contactHref, fuelPrices, moreInfoHref, sectionId, serviceNotes = [] } = Astro.props as Props; function formatFuelPrice(value: unknown): string { const numeric = Number(value); @@ -18,8 +22,16 @@ function formatVatLabel(value: unknown): string { } --- -
+
+ {serviceNotes.length > 0 && ( +
+ {serviceNotes.map((note) =>

{note}

)} + {contactHref && ( + Contact Us + )} +
+ )}
{fuelPrices.map((fuel) => (
@@ -37,6 +49,14 @@ function formatVatLabel(value: unknown): string {
))}
+ {moreInfoHref && ( + + )}