Skip to content

Commit f25a7a6

Browse files
committed
fix: logo, ratings, write a review bttn allignment & size
1 parent 3ff16a1 commit f25a7a6

1 file changed

Lines changed: 30 additions & 31 deletions

File tree

app/(home)/components/Testimonials.tsx

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use client';
22

3-
import { Star } from 'lucide-react';
43
import { Button } from '@/components/ui/button';
54
import Image from 'next/image';
65
import { Container } from '@/components/ui/container';
@@ -90,46 +89,46 @@ export function Testimonials() {
9089

9190
return (
9291
<section className="relative z-10 text-white py-12 sm:py-16">
93-
<Container>
92+
<Container className='space-y-8'>
9493
{/* Combined container: Ratings + Button */}
95-
<div className="flex flex-col gap-8 sm:gap-12 lg:flex-row lg:items-center lg:justify-between">
94+
<div className="flex flex-col space-y-5 lg:flex-row lg:items-center lg:justify-between">
9695
{/* Logo & Ratings */}
97-
<div className="flex flex-col items-center text-center lg:items-start lg:text-left max-w-xl">
98-
<div className="flex items-center gap-2">
99-
<Image
100-
src="/assets/logo.svg"
101-
height={64}
102-
width={64}
103-
className="h-20 md:h-24 w-auto"
104-
alt="Durianpy Logo"
105-
priority
106-
/>
107-
<h2 className="text-2xl sm:text-3xl md:text-4xl font-normal">
108-
Ratings
109-
</h2>
110-
</div>
96+
<div className="flex flex-col items-center lg:items-start lg:text-left w-full">
97+
<div>
98+
<div className="flex items-center gap-x-4">
99+
<Image
100+
src="/assets/logo.svg"
101+
height={64}
102+
width={64}
103+
className="h-20 md:h-24 w-auto"
104+
alt="Durianpy Logo"
105+
priority
106+
/>
107+
<h2 className="text-2xl sm:text-3xl md:text-4xl font-normal">
108+
Ratings
109+
</h2>
110+
</div>
111111

112-
<div className="flex flex-col sm:flex-row items-center gap-2 mt-4">
113-
<span className="text-xl sm:text-2xl font-bold">4.8</span>
114-
<div className="flex">
115-
{[...Array(4)].map((_, i) => (
116-
<Star
117-
key={i}
118-
className="text-yellow-500 fill-yellow-500 w-5 h-5 sm:w-6 sm:h-6 md:w-8 md:h-8"
119-
/>
120-
))}
121-
<Star className="text-white fill-current w-5 h-5 sm:w-6 sm:h-6 md:w-8 md:h-8" />
112+
{/* Star Ratings */}
113+
<div className="flex sm:flex-row self items-center sm:space-x-4 -mt-5 ms-2">
114+
<span className="">4.8</span>
115+
<div className="flex -space-x-2 sm:-space-x-1">
116+
{[...Array(4)].map((_, i) => (
117+
<Image src={yellowStarIcon} alt="yellow star" key={i} className="p-2 sm:p-[6px]" />
118+
))}
119+
<Image src={whiteStarIcon} alt="yellow star" className="p-2 sm:p-[6px]" />
120+
</div>
121+
<span className="font-light">5 reviews</span>
122122
</div>
123-
<span className="text-lg sm:text-xl font-light">5 reviews</span>
124123
</div>
125124
</div>
126125

127126
{/* Button */}
128-
<div className="w-full sm:w-auto flex justify-center lg:justify-end">
127+
<div className="mx-auto">
129128
<Link href="https://www.meetup.com/durianpy/" target="_blank">
130129
<Button
131130
variant="footer"
132-
className="w-full sm:w-[180px] md:w-[220px] h-12 sm:h-14 text-black sm:text-lg md:text-2xl"
131+
className="py-1 px-4 sm:py-2 sm:px-6 text-black sm:text-lg sm:font-normal"
133132
>
134133
Write a Review
135134
</Button>
@@ -150,7 +149,7 @@ export function Testimonials() {
150149
autoplayInterval={5000}
151150
className="mx-auto"
152151
>
153-
<CarouselContent className="mx-auto py-20">
152+
<CarouselContent className="mx-auto">
154153
{dummyData.map((data, index) => (
155154
<CarouselItem
156155
className="relative px-[3%] flex justify-center lg:basis-1/3"

0 commit comments

Comments
 (0)