From 8184149c3f6840103231856a72f5774d0ecf380b Mon Sep 17 00:00:00 2001 From: DMleadgen Date: Fri, 27 Mar 2026 14:19:56 -0600 Subject: [PATCH] feat: add full Google review feed to reviews page --- components/reviews-page.tsx | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/components/reviews-page.tsx b/components/reviews-page.tsx index db9f3b09..2e9b1961 100644 --- a/components/reviews-page.tsx +++ b/components/reviews-page.tsx @@ -1,7 +1,9 @@ 'use client' +import { useEffect } from "react" import { Star } from "lucide-react" import Link from "next/link" +import { Badge } from "@/components/ui/badge" import { PublicInset, PublicPageHeader, PublicSurface } from "@/components/public-surface" const reviews = [ @@ -38,6 +40,25 @@ const reviews = [ ] export function ReviewsPage() { + useEffect(() => { + const existingScript = document.querySelector('script[data-rocky-reviews-widget="true"]') + if (existingScript) { + return + } + + const script = document.createElement("script") + script.src = "https://reputationhub.site/reputation/assets/review-widget.js" + script.type = "text/javascript" + script.dataset.rockyReviewsWidget = "true" + document.body.appendChild(script) + + return () => { + if (document.body.contains(script)) { + document.body.removeChild(script) + } + } + }, []) + return (
+
+ +
+
+

All Google Reviews

+

+ Browse the full review feed from Rocky Mountain Vending customers. +

+

+ This is the same live review feed that powers the Google review widget, so the dedicated reviews page + shows the full set instead of just a few highlight quotes. +

+
+ + 4.9 / 5.0 on Google + +
+ +
+