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
++ 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. +
+