Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/home/CommunitySpotlight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Megaphone } from "lucide-react"
export function CommunitySpotlight() {
const testimonials = [
{
quote: "Codeunia is not just another platform — its a movement. A new-age community that's bringing hackathons and innovation culture right down to the grassroots. Its inspiring to see this kind of impact in real time!",
quote: "Codeunia is not just another platform — it's a movement. A new-age community that's bringing hackathons and innovation culture right down to the grassroots. It's inspiring to see this kind of impact in real time!",
name: "Ankul Kumar",
designation: "President at Rotaract Club of Chandigarh University",
src: "/images/testimonials/anshul.jpeg"
Expand All @@ -21,7 +21,7 @@ export function CommunitySpotlight() {
<section className="py-16 relative overflow-hidden">
<div className="absolute inset-0 bg-gradient-to-r from-primary/10 via-transparent to-primary/10"></div>
<div className="container px-4 relative z-10 mx-auto">
<div className="text-center space-y-4 mb-12">
<div className="text-center space-y-4 mb-4 md:mb-12">
<div className="flex flex-col items-center justify-center gap-2">
<button className="bg-slate-800 no-underline group relative shadow-2xl shadow-zinc-900 rounded-full p-px text-sm font-semibold leading-6 text-white inline-block">
<span className="absolute inset-0 overflow-hidden rounded-full">
Expand Down
20 changes: 10 additions & 10 deletions components/ui/animated-testimonials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ export const AnimatedTestimonials = ({
};

return (
<div className="mx-auto max-w-sm px-4 py-20 font-sans antialiased md:max-w-4xl md:px-8 lg:px-12">
<div className="relative grid grid-cols-1 gap-20 md:grid-cols-2">
<div>
<div className="relative h-80 w-full">
<div className="mx-auto max-w-sm px-2 py-8 font-sans antialiased md:max-w-4xl md:px-8 lg:px-12">
<div className="relative flex flex-col gap-8 md:grid md:grid-cols-2 md:gap-20">
<div className="mb-4 md:mb-0">
<div className="relative aspect-[1/1] md:aspect-[4/3] w-full md:h-80">
<AnimatePresence>
{testimonials.map((testimonial, index) => (
<motion.div
Expand Down Expand Up @@ -88,15 +88,15 @@ export const AnimatedTestimonials = ({
width={500}
height={500}
draggable={false}
className="h-full w-full object-cover object-center transition-transform duration-500 hover:scale-110"
className="h-full w-full object-contain md:object-cover object-center transition-transform duration-500 hover:scale-110"
/>
</div>
</motion.div>
))}
</AnimatePresence>
</div>
</div>
<div className="flex flex-col justify-between py-4">
<div className="flex flex-col justify-between py-2 md:py-4">
<motion.div
key={active}
initial={{
Expand All @@ -118,13 +118,13 @@ export const AnimatedTestimonials = ({
className="relative"
>
<div className="absolute -left-4 top-0 h-12 w-1 bg-gradient-to-b from-primary to-purple-500 rounded-full" />
<h3 className="text-2xl font-bold bg-gradient-to-r from-primary to-purple-500 bg-clip-text text-transparent">
<h3 className="text-xl md:text-2xl font-bold bg-gradient-to-r from-primary to-purple-500 bg-clip-text text-transparent">
{testimonials[active].name}
</h3>
<p className="text-sm text-muted-foreground">
<p className="text-xs md:text-sm text-muted-foreground">
{testimonials[active].designation}
</p>
<motion.p className="mt-8 text-lg text-muted-foreground">
<motion.p className="mt-4 md:mt-8 text-base md:text-lg text-muted-foreground">
{testimonials[active].quote.split(" ").map((word, index) => (
<motion.span
key={index}
Expand All @@ -150,7 +150,7 @@ export const AnimatedTestimonials = ({
))}
</motion.p>
</motion.div>
<div className="flex gap-4 pt-12 md:pt-0">
<div className="flex gap-4 pt-4 md:pt-0">
<motion.button
onClick={handlePrev}
whileHover={{ scale: 1.1 }}
Expand Down