Google Review Branding updated

This commit is contained in:
akash 2026-01-22 19:29:49 +05:30
parent 5408898102
commit 0120b4264b
5 changed files with 73 additions and 13 deletions

View File

@ -14,6 +14,7 @@ import { Autoplay, Navigation } from 'swiper/modules';
import 'swiper/css'; import 'swiper/css';
import 'swiper/css/navigation'; import 'swiper/css/navigation';
import { FaStar, FaChevronLeft, FaChevronRight } from 'react-icons/fa'; import { FaStar, FaChevronLeft, FaChevronRight } from 'react-icons/fa';
import GoogleReviewsBranding from "@/components/GoogleReviewsBranding";
interface Review { interface Review {
text?: string; text?: string;
@ -298,6 +299,7 @@ export default function AboutContent() {
<Image src="/images/eat.png" alt="Testimonials Section Cutlery Icon" width={24} height={24} /> <Image src="/images/eat.png" alt="Testimonials Section Cutlery Icon" width={24} height={24} />
</div> </div>
<h2 className={styles.sectionTitleCenter}>What Our Guests Say</h2> <h2 className={styles.sectionTitleCenter}>What Our Guests Say</h2>
<GoogleReviewsBranding centered={true} />
<div className={styles.testimonialSlider}> <div className={styles.testimonialSlider}>
<button className={`${styles.sliderBtn} prev-btn`}> <button className={`${styles.sliderBtn} prev-btn`}>
@ -306,7 +308,7 @@ export default function AboutContent() {
<div style={{ flex: 1, width: '100%' }}> <div style={{ flex: 1, width: '100%' }}>
{loading ? ( {loading ? (
<div className="text-center" style={{ color: '#F5E6D3', padding: '40px' , textAlign: 'center'}}> <div className="text-center" style={{ color: '#F5E6D3', padding: '40px', textAlign: 'center' }}>
<p>Loading reviews...</p> <p>Loading reviews...</p>
</div> </div>
) : ( ) : (

View File

@ -97,7 +97,7 @@
font-family: var(--font-playfair); font-family: var(--font-playfair);
font-size: 2.5rem; font-size: 2.5rem;
color: var(--color-paragraph); color: var(--color-paragraph);
margin-bottom: 3rem; margin-bottom: 10px;
text-align: center; text-align: center;
/* text-transform: uppercase; */ /* text-transform: uppercase; */
letter-spacing: 2px; letter-spacing: 2px;
@ -214,7 +214,7 @@
max-width: 900px; max-width: 900px;
margin: 0 auto; margin: 0 auto;
position: relative; position: relative;
padding: 0 70px; padding: 20px 70px 0px 70px;
} }
.sliderBtn { .sliderBtn {
@ -663,7 +663,7 @@
max-width: 900px; max-width: 900px;
margin: 0 auto; margin: 0 auto;
position: relative; position: relative;
padding: 0 10px !important; padding: 20px 10px 0px 10px !important;
/* Reduced side padding (enough for arrows) */ /* Reduced side padding (enough for arrows) */
} }

View File

@ -0,0 +1,56 @@
import React from 'react';
const GoogleReviewsBranding = ({ centered = false }) => {
return (
<div className="google-reviews-branding" style={{
marginTop: '15px',
display: 'flex',
flexDirection: 'column',
alignItems: centered ? 'center' : 'flex-start',
gap: '0px'
}}>
<div style={{
fontSize: '28px',
fontWeight: '700',
lineHeight: '1.2',
letterSpacing: '3px',
fontFamily: '"Product Sans", "Google Sans", Roboto, Arial, sans-serif',
display: 'flex',
alignItems: 'center'
}}>
<span style={{ color: '#4285F4' }}>G</span>
<span style={{ color: '#EA4335' }}>o</span>
<span style={{ color: '#FBBC04' }}>o</span>
<span style={{ color: '#4285F4' }}>g</span>
<span style={{ color: '#34A853' }}>l</span>
<span style={{ color: '#EA4335' }}>e</span>
</div>
<div style={{
fontSize: '13px',
fontWeight: '700',
lineHeight: '1.2',
fontFamily: '"Product Sans", "Google Sans", Roboto, Arial, sans-serif',
display: 'flex',
alignItems: 'center',
gap: '5px',
marginTop: '-2px'
}}>
<span style={{ color: '#FFFFFF' }}>Reviews</span>
<div style={{
display: 'flex',
gap: '1px',
fontSize: '13px',
lineHeight: '1'
}}>
<span style={{ color: '#FBBC04' }}></span>
<span style={{ color: '#FBBC04' }}></span>
<span style={{ color: '#FBBC04' }}></span>
<span style={{ color: '#FBBC04' }}></span>
<span style={{ color: '#FBBC04' }}></span>
</div>
</div>
</div>
);
};
export default GoogleReviewsBranding;

View File

@ -30,7 +30,7 @@
font-size: 2.5rem; font-size: 2.5rem;
color: var(--color-paragraph); color: var(--color-paragraph);
text-align: center; text-align: center;
margin-bottom: 60px; margin-bottom: 10px;
letter-spacing: 2px; letter-spacing: 2px;
/* text-transform: uppercase; */ /* text-transform: uppercase; */
font-weight: 400; font-weight: 400;
@ -44,7 +44,7 @@
max-width: 1400px; max-width: 1400px;
width: 100%; width: 100%;
position: relative; position: relative;
padding: 0 60px; padding: 20px 60px 0px 60px;
/* Space for arrows */ /* Space for arrows */
} }
@ -221,13 +221,13 @@
/* Responsive adjustments for different viewport sizes */ /* Responsive adjustments for different viewport sizes */
@media (max-width: 1400px) { @media (max-width: 1400px) {
.sliderContainer { .sliderContainer {
padding: 0 50px; padding: 20px 50px 0px 50px;
} }
} }
@media (max-width: 1200px) { @media (max-width: 1200px) {
.sliderContainer { .sliderContainer {
padding: 0 40px; padding: 20px 40px 0px 40px;
} }
} }
@ -249,12 +249,12 @@
@media (max-width: 1024px) { @media (max-width: 1024px) {
.sliderContainer { .sliderContainer {
padding: 0 45px; padding: 20px 45px 0px 45px;
} }
.title { .title {
font-size: 2.5rem; font-size: 2.5rem;
margin-bottom: 40px; margin-bottom: 10px;
} }
.navBtn { .navBtn {
@ -275,7 +275,7 @@
@media (max-width: 768px) { @media (max-width: 768px) {
.sliderContainer { .sliderContainer {
padding: 0 35px; padding: 20px 35px 0px 35px;
} }
.card { .card {
@ -308,7 +308,7 @@
@media (max-width: 480px) { @media (max-width: 480px) {
.sliderContainer { .sliderContainer {
padding: 0 30px; padding: 20px 30px 0px 30px;
} }
.title { .title {

View File

@ -8,6 +8,7 @@ import { Autoplay, Navigation } from 'swiper/modules'
import 'swiper/css' import 'swiper/css'
import 'swiper/css/navigation' import 'swiper/css/navigation'
import { FaStar, FaChevronLeft, FaChevronRight } from 'react-icons/fa' import { FaStar, FaChevronLeft, FaChevronRight } from 'react-icons/fa'
import GoogleReviewsBranding from '../GoogleReviewsBranding'
@ -162,10 +163,11 @@ export default function Testimonials() {
<Image src="/images/eat.png" alt="Antalya Cutlery Icon" width={24} height={24} /> <Image src="/images/eat.png" alt="Antalya Cutlery Icon" width={24} height={24} />
</div> </div>
<h2 className={styles.title}>Testimonials</h2> <h2 className={styles.title}>Testimonials</h2>
<GoogleReviewsBranding centered={true} />
<div className={styles.sliderContainer}> <div className={styles.sliderContainer}>
{loading ? ( {loading ? (
<div className="text-center" style={{ color: 'var(--color-paragraph)', padding: '40px' , textAlign: 'center'}}> <div className="text-center" style={{ color: 'var(--color-paragraph)', padding: '40px', textAlign: 'center' }}>
<p>Loading reviews...</p> <p>Loading reviews...</p>
</div> </div>
) : ( ) : (