diff --git a/app/about/AboutContent.js b/app/about/AboutContent.js index 9045619..4b3d5da 100644 --- a/app/about/AboutContent.js +++ b/app/about/AboutContent.js @@ -37,10 +37,10 @@ export default function AboutContent() {
- + About Sixty5 Street restaurant in Brampton Ontario
- + Sixty5 Street about page design element Brampton
@@ -76,27 +76,27 @@ export default function AboutContent() {
- + Sixty5 Street fresh ingredients card Brampton ON
-
Bold Flavours
+

Bold Flavours

Every item is created to deliver bright, bold flavour. From our signature blends to our colourful bowls, we make sure each serving tastes fresh, lively, and instantly enjoyable.
- + Sixty5 Street fast service card Brampton Ontario
-
Real Fruits
+

Real Fruits

We use high-quality fruits chosen for their natural sweetness and freshness. This ensures every mix, topping, and serving brings out authentic, clean flavour.
- + Sixty5 Street unique flavours card Brampton ON
-
Healthy Blends
+

Healthy Blends

Our blends are crafted to be both nourishing and delicious. Light, refreshing, and made fresh to order — perfect for energizing your day without compromise.
diff --git a/app/api/reviews/route.js b/app/api/reviews/route.js new file mode 100644 index 0000000..4f2c524 --- /dev/null +++ b/app/api/reviews/route.js @@ -0,0 +1,46 @@ +export async function GET() { + const apiKey = "37eb7f83988cfd76ffb5c5af9adc25652efe5607e39997fc7d0e054d690ef25e"; + const placeId = "ChIJc-0YDrs9K4gRyZNjbj14s70"; + + let allReviews = []; + let nextPageToken = null; + + try { + while (true) { + const url = `https://serpapi.com/search.json?engine=google_maps_reviews&hl=en&api_key=${apiKey}&place_id=${placeId}${ + nextPageToken ? `&next_page_token=${nextPageToken}` : "" + }`; + + const response = await fetch(url); + const data = await response.json(); + + if (data.reviews && data.reviews.length > 0) { + allReviews = [...allReviews, ...data.reviews]; + } + + // Stop if no next page + if (!data.serpapi_pagination || !data.serpapi_pagination.next_page_token) { + break; + } + + nextPageToken = data.serpapi_pagination.next_page_token; + + // SerpAPI requires 2–3 seconds delay before using next_page_token + await new Promise((resolve) => setTimeout(resolve, 2500)); + } + + return new Response( + JSON.stringify({ reviews: allReviews, total: allReviews.length }), + { + status: 200, + headers: { "Content-Type": "application/json" }, + } + ); + } catch (error) { + console.error(error); + return new Response(JSON.stringify({ error: "Failed to fetch reviews" }), { + status: 500, + headers: { "Content-Type": "application/json" }, + }); + } +} diff --git a/app/blog/page.js b/app/blog/page.js index 3de4db7..5064293 100644 --- a/app/blog/page.js +++ b/app/blog/page.js @@ -57,11 +57,11 @@ export default function Blog() { {/* Blog Title */}
-

+

{truncateTitle(stripHtml(blog.title), 30)} -

+ {/* Blog Excerpt */}

diff --git a/app/contact/ContactForm.js b/app/contact/ContactForm.js index 22e6c68..662bf87 100644 --- a/app/contact/ContactForm.js +++ b/app/contact/ContactForm.js @@ -44,8 +44,8 @@ export default function ContactForm() { const emailData = { ...formData, recaptchaToken: captchaToken, - to: "info@metatroncubesolutions.com", - senderName: "Website Contact Form", + to: "sixty5street@gmail.com", + senderName: "Sixty5Street Contact Form", message: ` Name: ${formData.name}
Email: ${formData.email}
diff --git a/app/contact/page.js b/app/contact/page.js index 7799615..1e70d07 100644 --- a/app/contact/page.js +++ b/app/contact/page.js @@ -2,8 +2,8 @@ import Layout from "@/components/layout/Layout"; import ContactForm from "./ContactForm"; export const metadata = { - title: "Contact Sixty5 Street – Get in Touch with Us", - description: "Have questions or crave something special? Reach out to Sixty5 Street. We’re here for you with fresh street-food passion. Let’s talk wings, wraps and more.", + title: "Contact Sixty5 Street – Get in Touch with Us", + description: "Have questions or crave something special? Reach out to Sixty5 Street. We’re here for you with fresh street-food passion. Let’s talk wings, wraps and more.", } export default function Contact() { @@ -32,6 +32,11 @@ export default function Contact() {