From d5810715f0a9ad72cef7731704dd64115fe0102e Mon Sep 17 00:00:00 2001 From: bender Date: Fri, 27 Feb 2026 13:13:37 +0000 Subject: [PATCH 1/2] Update src/providers/themeProvider/ThemeProvider.tsx --- src/providers/themeProvider/ThemeProvider.tsx | 79 +++++++++++++++---- 1 file changed, 64 insertions(+), 15 deletions(-) diff --git a/src/providers/themeProvider/ThemeProvider.tsx b/src/providers/themeProvider/ThemeProvider.tsx index 54d9eda..c99ee83 100644 --- a/src/providers/themeProvider/ThemeProvider.tsx +++ b/src/providers/themeProvider/ThemeProvider.tsx @@ -1,6 +1,6 @@ 'use client'; -import React, { useState } from 'react'; +import React, { createContext, useContext, useState } from 'react'; interface SocialLink { platform: string; @@ -20,6 +20,40 @@ interface TeamCardProps { member: TeamMember; } +interface ThemeContextType { + defaultButtonVariant?: string; + defaultTextAnimation?: string; + borderRadius?: string; + contentWidth?: string; + sizing?: string; + background?: string; + cardStyle?: string; + primaryButtonStyle?: string; + secondaryButtonStyle?: string; + headingFontWeight?: string; +} + +const ThemeContext = createContext(undefined); + +export function useTheme(): ThemeContextType { + const context = useContext(ThemeContext); + if (context === undefined) { + return { + defaultButtonVariant: 'text-stagger', + defaultTextAnimation: 'entrance-slide', + borderRadius: 'rounded', + contentWidth: 'medium', + sizing: 'medium', + background: 'circleGradient', + cardStyle: 'glass-elevated', + primaryButtonStyle: 'gradient', + secondaryButtonStyle: 'glass', + headingFontWeight: 'normal' + }; + } + return context; +} + function TeamCard({ member }: TeamCardProps) { const [isFlipped, setIsFlipped] = useState(false); @@ -136,22 +170,37 @@ export function ThemeProvider({ const radiusClass = borderRadiusClasses[borderRadius as keyof typeof borderRadiusClasses] || borderRadiusClasses.soft; const widthClass = contentWidthClasses[contentWidth as keyof typeof contentWidthClasses] || contentWidthClasses.medium; + const themeValue: ThemeContextType = { + defaultButtonVariant, + defaultTextAnimation, + borderRadius, + contentWidth, + sizing, + background, + cardStyle, + primaryButtonStyle, + secondaryButtonStyle, + headingFontWeight, + }; + return ( -
-
- {children} + +
+
+ {children} +
-
+ ); } From 02341b19c8253a82ae063a67e6df90b69f0fa8cf Mon Sep 17 00:00:00 2001 From: bender Date: Fri, 27 Feb 2026 13:13:37 +0000 Subject: [PATCH 2/2] Update src/tag/Tag.tsx --- src/tag/Tag.tsx | 52 +++++++++++++------------------------------------ 1 file changed, 13 insertions(+), 39 deletions(-) diff --git a/src/tag/Tag.tsx b/src/tag/Tag.tsx index 9fbd44f..cd24300 100644 --- a/src/tag/Tag.tsx +++ b/src/tag/Tag.tsx @@ -45,18 +45,15 @@ export default function Tag({ members = defaultMembers }: TagProps) {
{/* Front Side */}

{member.name} @@ -139,39 +134,18 @@ 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