diff --git a/src/components/custom/FiveStarRating.tsx b/src/components/custom/FiveStarRating.tsx new file mode 100644 index 0000000..c823e40 --- /dev/null +++ b/src/components/custom/FiveStarRating.tsx @@ -0,0 +1,22 @@ +import { Star } from "lucide-react"; + +interface FiveStarRatingProps { + rating: number; + reviewCount: number; +} + +export default function FiveStarRating({ rating, reviewCount }: FiveStarRatingProps) { + return ( +
+ {[...Array(5)].map((_, i) => ( + + ))} + ({reviewCount} reviews) +
+ ); +} diff --git a/src/components/sections/hero/HeroBillboardBrand.tsx b/src/components/sections/hero/HeroBillboardBrand.tsx index 5ab48c2..bbb1d9e 100644 --- a/src/components/sections/hero/HeroBillboardBrand.tsx +++ b/src/components/sections/hero/HeroBillboardBrand.tsx @@ -3,10 +3,13 @@ import HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot"; import TextAnimation from "@/components/ui/TextAnimation"; import ImageOrVideo from "@/components/ui/ImageOrVideo"; import AutoFillText from "@/components/ui/AutoFillText"; +import FiveStarRating from "@/components/custom/FiveStarRating"; import ScrollReveal from "@/components/ui/ScrollReveal"; type HeroBillboardBrandProps = { brand: string; + rating?: number; + reviewCount?: number; description: string; primaryButton: { text: string; href: string }; secondaryButton: { text: string; href: string }; @@ -26,6 +29,11 @@ const HeroBillboardBrand = ({
{brand} + {rating && reviewCount && ( +
+ +
+ )}