From 477a6acd1105b4a9fb2ec71c701ab447bc8bea86 Mon Sep 17 00:00:00 2001 From: bender Date: Fri, 27 Feb 2026 13:23:17 +0000 Subject: [PATCH] Update src/tag/Tag.tsx --- src/tag/Tag.tsx | 113 +++++++++++++++++++++++++++++++++++------------- 1 file changed, 83 insertions(+), 30 deletions(-) diff --git a/src/tag/Tag.tsx b/src/tag/Tag.tsx index ca5f500..87dfd11 100644 --- a/src/tag/Tag.tsx +++ b/src/tag/Tag.tsx @@ -1,6 +1,6 @@ -"use client"; +'use client'; -import { useState } from "react"; +import { useState } from 'react'; interface TeamMember { id: string; @@ -39,25 +39,26 @@ export default function Tag({ members = defaultMembers }: TagProps) { {members.map((member) => (
toggleFlip(member.id)} >
{/* Front Side */}
-
+
{member.name}

{member.role}

-

Hover to see links

+

+ Hover to see social links +

{/* Back Side */}

- {member.name} + Connect

{member.social.twitter && ( @@ -89,8 +93,14 @@ export default function Tag({ members = defaultMembers }: TagProps) { rel="noopener noreferrer" className="flex items-center justify-center gap-2 bg-white bg-opacity-20 hover:bg-opacity-30 text-white py-2 px-4 rounded-lg transition-all duration-200" > - 𝕏 - Twitter + + + + Twitter )} {member.social.linkedin && ( @@ -100,8 +110,15 @@ export default function Tag({ members = defaultMembers }: TagProps) { rel="noopener noreferrer" className="flex items-center justify-center gap-2 bg-white bg-opacity-20 hover:bg-opacity-30 text-white py-2 px-4 rounded-lg transition-all duration-200" > - in - LinkedIn + + + + + LinkedIn )} {member.social.github && ( @@ -111,8 +128,14 @@ export default function Tag({ members = defaultMembers }: TagProps) { rel="noopener noreferrer" className="flex items-center justify-center gap-2 bg-white bg-opacity-20 hover:bg-opacity-30 text-white py-2 px-4 rounded-lg transition-all duration-200" > - - GitHub + + + + GitHub )} {member.social.email && ( @@ -120,8 +143,20 @@ export default function Tag({ members = defaultMembers }: TagProps) { href={`mailto:${member.social.email}`} className="flex items-center justify-center gap-2 bg-white bg-opacity-20 hover:bg-opacity-30 text-white py-2 px-4 rounded-lg transition-all duration-200" > - - Email + + + + Email )}
@@ -137,21 +172,39 @@ export default function Tag({ members = defaultMembers }: TagProps) { const defaultMembers: TeamMember[] = [ { - id: "1", name: "Sarah Johnson", role: "Lead Designer", image: - "https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=400&h=400&fit=crop", social: { - twitter: "https://twitter.com", linkedin: "https://linkedin.com", email: "sarah@example.com" + id: '1', + name: 'Sarah Johnson', + role: 'Lead Designer', + image: + 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=400&h=400&fit=crop', + social: { + twitter: 'https://twitter.com', + linkedin: 'https://linkedin.com', + email: 'sarah@example.com', }, }, { - id: "2", name: "Michael Chen", role: "Full Stack Developer", image: - "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=400&h=400&fit=crop", social: { - github: "https://github.com", linkedin: "https://linkedin.com", email: "michael@example.com" + id: '2', + name: 'Michael Chen', + role: 'Full Stack Developer', + image: + 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=400&h=400&fit=crop', + social: { + github: 'https://github.com', + linkedin: 'https://linkedin.com', + email: 'michael@example.com', }, }, { - id: "3", name: "Emma Rodriguez", role: "Product Manager", image: - "https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=400&h=400&fit=crop", social: { - twitter: "https://twitter.com", linkedin: "https://linkedin.com", email: "emma@example.com" + id: '3', + name: 'Emma Rodriguez', + role: 'Product Manager', + image: + 'https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=400&h=400&fit=crop', + social: { + twitter: 'https://twitter.com', + linkedin: 'https://linkedin.com', + email: 'emma@example.com', }, }, ]; \ No newline at end of file