samirhosninet commited on
Commit
61a27d7
·
1 Parent(s): a210ac1

fix(ui): unify card and section color harmony across light/dark themes

Browse files
components/TestimonialsCarousel.tsx CHANGED
@@ -83,7 +83,7 @@ export function TestimonialsCarousel() {
83
  animate={{ opacity: 1, x: 0 }}
84
  exit={{ opacity: 0, x: language === "ar" ? 30 : -30 }}
85
  transition={{ duration: 0.4, ease: "easeOut" }}
86
- className="w-full relative p-8 md:p-12 border border-border bg-secondary/10 dark:bg-background/40 backdrop-blur-md rounded-xl shadow-[0_0_30px_rgba(0,0,0,0.3)] overflow-hidden [clip-path:polygon(20px_0,100%_0,100%_calc(100%_-_20px),calc(100%_-_20px)_100%,0_100%,0_20px)] flex flex-col justify-between"
87
  >
88
  {/* Tech Corner Bracket Lines */}
89
  <div className="absolute top-0 left-0 w-6 h-6 border-t border-l border-primary/40" />
 
83
  animate={{ opacity: 1, x: 0 }}
84
  exit={{ opacity: 0, x: language === "ar" ? 30 : -30 }}
85
  transition={{ duration: 0.4, ease: "easeOut" }}
86
+ className="w-full relative p-8 md:p-12 premium-glass-card rounded-xl shadow-[0_0_30px_rgba(0,0,0,0.3)] overflow-hidden [clip-path:polygon(20px_0,100%_0,100%_calc(100%_-_20px),calc(100%_-_20px)_100%,0_100%,0_20px)] flex flex-col justify-between"
87
  >
88
  {/* Tech Corner Bracket Lines */}
89
  <div className="absolute top-0 left-0 w-6 h-6 border-t border-l border-primary/40" />
components/TrustSection.tsx CHANGED
@@ -106,14 +106,14 @@ export function TrustSection() {
106
  <motion.div
107
  key={index}
108
  variants={itemVariants}
109
- className="group relative p-6 border border-border bg-secondary/5 dark:bg-background/20 backdrop-blur-md rounded-xl [clip-path:polygon(15px_0,100%_0,100%_calc(100%_-_15px),calc(100%_-_15px)_100%,0_100%,0_15px)] hover:border-primary/25 transition-all duration-300 shadow-sm"
110
  >
111
  {/* Tech Bracket */}
112
- <div className="absolute top-0 left-0 w-4 h-4 border-t border-l border-muted-foreground/20 dark:border-white/10 group-hover:border-primary/45 transition-colors" />
113
- <div className="absolute bottom-0 right-0 w-4 h-4 border-b border-r border-muted-foreground/20 dark:border-white/10 group-hover:border-primary/45 transition-colors" />
114
 
115
  <div className="flex items-start gap-4">
116
- <div className="p-3 rounded border border-muted-foreground/20 dark:border-white/10 bg-muted/40 dark:bg-white/5 text-primary group-hover:border-primary/30 group-hover:bg-primary/5 transition-all duration-300">
117
  <Icon className="w-6 h-6" />
118
  </div>
119
  <div className="space-y-1.5">
@@ -157,11 +157,11 @@ export function TrustSection() {
157
  className="flex-1 flex flex-col items-center text-center space-y-4 group"
158
  >
159
  {/* Profile Avatar Frame */}
160
- <div className="relative w-24 h-24 flex items-center justify-center border border-muted-foreground/20 dark:border-white/10 rounded bg-secondary/10 shadow-lg group-hover:border-primary/40 transition-colors duration-300">
161
  {/* corner tech decorations */}
162
- <div className="absolute top-1 left-1 w-2 h-2 bg-muted-foreground/30 dark:bg-white/20 rounded-full group-hover:bg-primary/45 transition-colors" />
163
- <div className="absolute bottom-1 right-1 w-2 h-2 bg-muted-foreground/30 dark:bg-white/20 rounded-full group-hover:bg-primary/45 transition-colors" />
164
- <span className="font-fast-hand text-4xl text-primary mt-1 shadow-[0_0_15px_rgba(var(--primary-rgb),0.3)]">
165
  {founder.avatar}
166
  </span>
167
  </div>
 
106
  <motion.div
107
  key={index}
108
  variants={itemVariants}
109
+ className="group relative p-6 premium-glass-card rounded-xl [clip-path:polygon(15px_0,100%_0,100%_calc(100%_-_15px),calc(100%_-_15px)_100%,0_100%,0_15px)] hover:border-primary/25 transition-all duration-300 shadow-sm"
110
  >
111
  {/* Tech Bracket */}
112
+ <div className="absolute top-0 left-0 w-4 h-4 border-t border-l border-border/30 group-hover:border-primary/45 transition-colors" />
113
+ <div className="absolute bottom-0 right-0 w-4 h-4 border-b border-r border-border/30 group-hover:border-primary/45 transition-colors" />
114
 
115
  <div className="flex items-start gap-4">
116
+ <div className="p-3 rounded border border-border bg-muted/50 text-primary group-hover:border-primary/30 group-hover:bg-primary/10 transition-all duration-300">
117
  <Icon className="w-6 h-6" />
118
  </div>
119
  <div className="space-y-1.5">
 
157
  className="flex-1 flex flex-col items-center text-center space-y-4 group"
158
  >
159
  {/* Profile Avatar Frame */}
160
+ <div className="relative w-24 h-24 flex items-center justify-center premium-glass-card rounded shadow-lg group-hover:border-primary/40 transition-colors duration-300">
161
  {/* corner tech decorations */}
162
+ <div className="absolute top-1 left-1 w-2 h-2 bg-muted-foreground/40 rounded-full group-hover:bg-primary/45 transition-colors" />
163
+ <div className="absolute bottom-1 right-1 w-2 h-2 bg-muted-foreground/40 rounded-full group-hover:bg-primary/45 transition-colors" />
164
+ <span className="font-fast-hand text-4xl text-primary mt-1 shadow-[0_0_15px_var(--primary-glow)]">
165
  {founder.avatar}
166
  </span>
167
  </div>
components/footer.tsx CHANGED
@@ -99,7 +99,7 @@ export function Footer() {
99
  </div>
100
 
101
  {/* Pre-launch marketing notice */}
102
- <div className="mb-8 p-4 rounded-lg border border-primary/10 bg-card/30 dark:bg-card/20 backdrop-blur-sm text-[10px] leading-relaxed text-muted-foreground font-mono">
103
  <span className="text-primary/90 font-bold block mb-1">{`// ${t("footerNoticeTitle")}`}</span>
104
  {t("footerNoticeText")}
105
  </div>
 
99
  </div>
100
 
101
  {/* Pre-launch marketing notice */}
102
+ <div className="mb-8 p-4 premium-glass-card rounded-lg text-[10px] leading-relaxed text-muted-foreground font-mono">
103
  <span className="text-primary/90 font-bold block mb-1">{`// ${t("footerNoticeTitle")}`}</span>
104
  {t("footerNoticeText")}
105
  </div>