diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 5120010..81b6f06 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1407,4 +1407,4 @@ export default function RootLayout({ ); -} \ No newline at end of file +} diff --git a/src/app/page.tsx b/src/app/page.tsx index 761a455..6a93eb3 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,4 +1,4 @@ -"use client" +"use client"; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple'; @@ -10,8 +10,18 @@ import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCar import ContactCenter from '@/components/sections/contact/ContactCenter'; import FooterBase from '@/components/sections/footer/FooterBase'; import { Award, BookOpen, Briefcase, Code, GitBranch, Mail, MessageSquare, Sparkles, TrendingUp, Trophy, Users, Zap } from 'lucide-react'; +import { useState } from 'react'; export default function LandingPage() { + const [flippedCards, setFlippedCards] = useState<{ [key: string]: boolean }>({}); + + const toggleFlip = (id: string) => { + setFlippedCards(prev => ({ + ...prev, + [id]: !prev[id] + })); + }; + return (
- +
+
+
+

What Our Members Say

+

Real stories from computer club members about their learning journey and growth.

+
+ +
+ {[ + { + id: "1", name: "Alex Chen", handle: "@AlexDev", shortText: "Landed dream job at top tech company", fullText: "CompClub transformed my coding skills. The workshops and mentorship helped me land my dream job at a top tech company. Grateful for this amazing community!", imageSrc: "http://img.b2bpic.net/free-photo/close-up-smiley-woman-library_23-2149204737.jpg?_wi=1" + }, + { + id: "2", name: "Sarah Mitchell", handle: "@SarahCodes", shortText: "Built impressive portfolio through projects", fullText: "The collaborative projects here are incredible. I've built friendships and a portfolio that actually impresses recruiters. Best decision ever!", imageSrc: "http://img.b2bpic.net/free-photo/close-up-smiley-woman-library_23-2149204737.jpg?_wi=2" + }, + { + id: "3", name: "Jordan Lee", handle: "@JordanDev", shortText: "Full-stack development in just months", fullText: "From zero experience to building full-stack applications in just a few months. The mentorship here is unmatched. Highly recommend CompClub!", imageSrc: "http://img.b2bpic.net/free-photo/close-up-smiley-woman-library_23-2149204737.jpg?_wi=3" + }, + { + id: "4", name: "Maya Patel", handle: "@MayaCode", shortText: "Won first place in hackathon", fullText: "The hackathons taught me so much about teamwork and problem-solving. Plus, winning first place was the cherry on top!", imageSrc: "http://img.b2bpic.net/free-photo/close-up-smiley-woman-library_23-2149204737.jpg?_wi=4" + }, + { + id: "5", name: "David Brown", handle: "@DavidDeveloper", shortText: "Built a supportive tech network", fullText: "CompClub isn't just about coding. It's about building a network of passionate people who genuinely want to help each other succeed.", imageSrc: "http://img.b2bpic.net/free-photo/close-up-smiley-woman-library_23-2149204737.jpg?_wi=5" + }, + { + id: "6", name: "Lisa Wong", handle: "@LisaTech", shortText: "Discovered career possibilities", fullText: "The industry expert talks opened my eyes to so many career possibilities. This community has given me the confidence to pursue my tech dreams.", imageSrc: "http://img.b2bpic.net/free-photo/close-up-smiley-woman-library_23-2149204737.jpg?_wi=6" + } + ].map((testimonial) => ( +
toggleFlip(testimonial.id)} + style={{ + perspective: '1000px' + }} + > +
+ {/* Front side */} +
+
+
+ {testimonial.imageSrc && ( + {testimonial.name} + )} +
+

{testimonial.name}

+

{testimonial.handle}

+
+
+

{testimonial.shortText}

+
+

Click to read full testimonial

+
+ + {/* Back side */} +
+
+

{testimonial.fullText}

+
+
+ {testimonial.imageSrc && ( + {testimonial.name} + )} +
+

{testimonial.name}

+

{testimonial.handle}

+
+
+

Click to go back

+
+
+
+ ))} +
+
+
@@ -213,4 +290,4 @@ export default function LandingPage() {
); -} \ No newline at end of file +} diff --git a/src/components/ServiceWrapper.tsx b/src/components/ServiceWrapper.tsx index 5be7e4e..a2382d5 100644 --- a/src/components/ServiceWrapper.tsx +++ b/src/components/ServiceWrapper.tsx @@ -1,22 +1,15 @@ 'use client'; -import Script from 'next/script'; +import React, { ReactNode } from 'react'; -export function ServiceWrapper({ children }: { children: React.ReactNode }) { - const websiteId = process.env.NEXT_PUBLIC_WEBSITE_ANALYTICS_ID; - - return ( - <> - {websiteId && ( -