Update src/app/page.tsx

This commit is contained in:
2026-02-27 13:25:32 +00:00
parent 477a6acd11
commit 2f06cba072

View File

@@ -5,52 +5,26 @@ 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 TeamCardTen from '@/components/sections/team/TeamCardTen';
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 } from "lucide-react";
import { useState } from 'react';
export default function LandingPage() {
const [flipped, setFlipped] = useState<{ [key: string]: boolean }>({});
const toggleFlip = (memberId: string) => {
setFlipped(prev => ({
...prev,
[memberId]: !prev[memberId]
}));
};
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: "linkedin", url: "https://linkedin.com/in/alexjohnson" },
{ icon: "github", url: "https://github.com/alexjohnson" },
{ icon: "twitter", url: "https://twitter.com/alexjohnson" }
]
id: "1", name: "Alex Johnson", imageSrc: "http://img.b2bpic.net/free-photo/happy-businessman-smiling-camera_1163-4660.jpg?_wi=1", imageAlt: "Alex Johnson, Club President"
},
{
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: "linkedin", url: "https://linkedin.com/in/sarahchen" },
{ icon: "github", url: "https://github.com/sarahchen" },
{ icon: "twitter", url: "https://twitter.com/sarahchen" }
]
id: "2", name: "Sarah Chen", imageSrc: "http://img.b2bpic.net/free-photo/happy-businessman-smiling-camera_1163-4660.jpg?_wi=2", imageAlt: "Sarah Chen, VP of Projects"
},
{
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: "linkedin", url: "https://linkedin.com/in/marcuswilliams" },
{ icon: "github", url: "https://github.com/marcuswilliams" },
{ icon: "twitter", url: "https://twitter.com/marcuswilliams" }
]
id: "3", name: "Marcus Williams", imageSrc: "http://img.b2bpic.net/free-photo/happy-businessman-smiling-camera_1163-4660.jpg?_wi=3", imageAlt: "Marcus Williams, Tech Lead"
},
{
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: "linkedin", url: "https://linkedin.com/in/emilyrodriguez" },
{ icon: "github", url: "https://github.com/emilyrodriguez" },
{ icon: "twitter", url: "https://twitter.com/emilyrodriguez" }
]
id: "4", name: "Emily Rodriguez", imageSrc: "http://img.b2bpic.net/free-photo/happy-businessman-smiling-camera_1163-4660.jpg?_wi=4", imageAlt: "Emily Rodriguez, Community Manager"
}
];
@@ -137,78 +111,14 @@ export default function LandingPage() {
</div>
<div id="team" data-section="team">
<div className="w-full py-20">
<div className="w-full max-w-screen-2xl mx-auto px-4 md:px-8">
<div className="mb-12">
<div className="inline-flex items-center gap-2 mb-4">
<Users className="w-5 h-5" />
<span className="text-sm font-medium">Leadership</span>
</div>
<h2 className="text-4xl md:text-5xl font-bold mb-4">Meet Our Team</h2>
<p className="text-lg text-foreground/80">The passionate individuals driving innovation and mentorship within CodeClub.</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
{teamMembers.map((member) => (
<div
key={member.id}
className="h-96 cursor-pointer perspective"
onClick={() => toggleFlip(member.id)}
>
<div
className="relative w-full h-full transition-transform duration-500 transform-gpu"
style={{
transformStyle: 'preserve-3d',
transform: flipped[member.id] ? 'rotateY(180deg)' : 'rotateY(0deg)'
}}
>
{/* Front side - Image */}
<div
className="absolute w-full h-full bg-white rounded-lg shadow-lg p-4 flex flex-col items-center justify-center"
style={{ backfaceVisibility: 'hidden' }}
>
<div className="w-full h-64 mb-4 rounded-lg overflow-hidden">
<img
src={member.imageSrc}
alt={member.imageAlt}
className="w-full h-full object-cover"
/>
</div>
<h3 className="text-xl font-bold text-center">{member.name}</h3>
<p className="text-sm text-foreground/60 text-center mt-2">{member.role}</p>
<p className="text-xs text-foreground/50 text-center mt-4">Click to view social links</p>
</div>
{/* Back side - Social Links */}
<div
className="absolute w-full h-full bg-gradient-to-br from-primary-cta to-primary-cta/80 rounded-lg shadow-lg p-4 flex flex-col items-center justify-center"
style={{
backfaceVisibility: 'hidden',
transform: 'rotateY(180deg)'
}}
>
<h3 className="text-xl font-bold text-white mb-6 text-center">{member.name}</h3>
<div className="flex flex-col gap-4 w-full">
{member.socials.map((social, idx) => (
<a
key={idx}
href={social.url}
target="_blank"
rel="noopener noreferrer"
className="w-full py-3 px-4 bg-white/20 hover:bg-white/30 text-white rounded-lg text-center font-medium transition-colors capitalize"
>
{social.icon}
</a>
))}
</div>
<p className="text-xs text-white/70 text-center mt-6">Click to flip back</p>
</div>
</div>
</div>
))}
</div>
</div>
</div>
<TeamCardTen
title="Meet Our Team"
tag="Leadership"
members={teamMembers}
memberVariant="default"
useInvertedBackground={false}
membersAnimation="slide-up"
/>
</div>
<div id="testimonials" data-section="testimonials">