From 2fd1b7577b23c92c2e5a741c9d1cf95b75e5df05 Mon Sep 17 00:00:00 2001 From: bender Date: Fri, 27 Feb 2026 13:23:15 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 150 ++++++++++++++++++++++------------------------- 1 file changed, 70 insertions(+), 80 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 59754f3..0a86059 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -5,51 +5,51 @@ import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloating import HeroLogo from '@/components/sections/hero/HeroLogo'; import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout'; import ProductCardThree from '@/components/sections/product/ProductCardThree'; +import TeamCardSix from '@/components/sections/team/TeamCardSix'; import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve'; import MetricCardEleven from '@/components/sections/metrics/MetricCardEleven'; import SocialProofOne from '@/components/sections/socialProof/SocialProofOne'; import FooterBase from '@/components/sections/footer/FooterBase'; -import { Zap, Users, Award, Handshake, Github, Linkedin, Twitter } from "lucide-react"; +import { Zap, Users, Award, Handshake } from "lucide-react"; import { useState } from 'react'; export default function LandingPage() { - const [flippedCards, setFlippedCards] = useState<{[key: string]: boolean}>({}); + const [flipped, setFlipped] = useState<{ [key: string]: boolean }>({}); const toggleFlip = (memberId: string) => { - setFlippedCards(prev => ({ + setFlipped(prev => ({ ...prev, [memberId]: !prev[memberId] })); }; - // Team members with social links const teamMembers = [ { id: "1", name: "Alex Johnson", role: "Club President", imageSrc: "http://img.b2bpic.net/free-photo/happy-businessman-smiling-camera_1163-4660.jpg?_wi=1", imageAlt: "Alex Johnson, Club President", socials: [ - { icon: Github, href: "https://github.com/alexjohnson", label: "GitHub" }, - { icon: Linkedin, href: "https://linkedin.com/in/alexjohnson", label: "LinkedIn" }, - { icon: Twitter, href: "https://twitter.com/alexjohnson", label: "Twitter" } + { icon: "linkedin", url: "https://linkedin.com/in/alexjohnson" }, + { icon: "github", url: "https://github.com/alexjohnson" }, + { icon: "twitter", url: "https://twitter.com/alexjohnson" } ] }, { id: "2", name: "Sarah Chen", role: "VP of Projects", imageSrc: "http://img.b2bpic.net/free-photo/happy-businessman-smiling-camera_1163-4660.jpg?_wi=2", imageAlt: "Sarah Chen, VP of Projects", socials: [ - { icon: Github, href: "https://github.com/sarahchen", label: "GitHub" }, - { icon: Linkedin, href: "https://linkedin.com/in/sarahchen", label: "LinkedIn" }, - { icon: Twitter, href: "https://twitter.com/sarahchen", label: "Twitter" } + { icon: "linkedin", url: "https://linkedin.com/in/sarahchen" }, + { icon: "github", url: "https://github.com/sarahchen" }, + { icon: "twitter", url: "https://twitter.com/sarahchen" } ] }, { id: "3", name: "Marcus Williams", role: "Tech Lead", imageSrc: "http://img.b2bpic.net/free-photo/happy-businessman-smiling-camera_1163-4660.jpg?_wi=3", imageAlt: "Marcus Williams, Tech Lead", socials: [ - { icon: Github, href: "https://github.com/marcuswilliams", label: "GitHub" }, - { icon: Linkedin, href: "https://linkedin.com/in/marcuswilliams", label: "LinkedIn" }, - { icon: Twitter, href: "https://twitter.com/marcuswilliams", label: "Twitter" } + { icon: "linkedin", url: "https://linkedin.com/in/marcuswilliams" }, + { icon: "github", url: "https://github.com/marcuswilliams" }, + { icon: "twitter", url: "https://twitter.com/marcuswilliams" } ] }, { id: "4", name: "Emily Rodriguez", role: "Community Manager", imageSrc: "http://img.b2bpic.net/free-photo/happy-businessman-smiling-camera_1163-4660.jpg?_wi=4", imageAlt: "Emily Rodriguez, Community Manager", socials: [ - { icon: Github, href: "https://github.com/emilyrodriguez", label: "GitHub" }, - { icon: Linkedin, href: "https://linkedin.com/in/emilyrodriguez", label: "LinkedIn" }, - { icon: Twitter, href: "https://twitter.com/emilyrodriguez", label: "Twitter" } + { icon: "linkedin", url: "https://linkedin.com/in/emilyrodriguez" }, + { icon: "github", url: "https://github.com/emilyrodriguez" }, + { icon: "twitter", url: "https://twitter.com/emilyrodriguez" } ] } ]; @@ -137,85 +137,75 @@ export default function LandingPage() {
-
-
-
-
-
- - Leadership -
-

Meet Our Team

-

The passionate individuals driving innovation and mentorship within CodeClub.

+
+
+
+
+ + Leadership
+

Meet Our Team

+

The passionate individuals driving innovation and mentorship within CodeClub.

- {teamMembers.map((member) => { - const isFlipped = flippedCards[member.id]; - return ( -
+ {teamMembers.map((member) => ( +
toggleFlip(member.id)} + > +
+ {/* Front side - Image */}
toggleFlip(member.id)} + className="absolute w-full h-full bg-white rounded-lg shadow-lg p-4 flex flex-col items-center justify-center" + style={{ backfaceVisibility: 'hidden' }} > - {/* Front side - Profile */} -
+
{member.imageAlt} -
-
-

{member.name}

-

{member.role}

-
+

{member.name}

+

{member.role}

+

Click to view social links

+
- {/* Back side - Social Links */} -
-
-

Connect

-
-
- {member.socials.map((social) => { - const Icon = social.icon; - return ( - - - {social.label} - - ); - })} -
+ {/* Back side - Social Links */} +
+

{member.name}

+
+ {member.socials.map((social, idx) => ( + + {social.icon} + + ))}
+

Click to flip back

- ); - })} +
+ ))}