fix(dark-mode): 修复视觉审查发现的2处硬编码浅色背景
- Hero右侧快速导航卡片: bg-white/80 → bg-[var(--color-bg-primary)]/80 - CTA区块: 新增--color-cta-bg变量(浅色#FAFAFA/深色#141414) - 视觉验证通过: 8页全量截图确认无遗留问题
This commit is contained in:
@@ -65,6 +65,7 @@
|
|||||||
--color-accent-cyan-rgb: 8, 145, 178;
|
--color-accent-cyan-rgb: 8, 145, 178;
|
||||||
|
|
||||||
--color-footer-bg: #1C1C1C;
|
--color-footer-bg: #1C1C1C;
|
||||||
|
--color-cta-bg: #FAFAFA;
|
||||||
--color-footer-text: #A0A0A0;
|
--color-footer-text: #A0A0A0;
|
||||||
--color-footer-text-muted: #666666;
|
--color-footer-text-muted: #666666;
|
||||||
--color-footer-text-dim: #999999;
|
--color-footer-text-dim: #999999;
|
||||||
@@ -198,6 +199,7 @@
|
|||||||
--color-accent-cyan-rgb: 6, 182, 212;
|
--color-accent-cyan-rgb: 6, 182, 212;
|
||||||
|
|
||||||
--color-footer-bg: #000000;
|
--color-footer-bg: #000000;
|
||||||
|
--color-cta-bg: #141414;
|
||||||
--color-footer-text: #8C8C8C;
|
--color-footer-text: #8C8C8C;
|
||||||
--color-footer-text-muted: #525252;
|
--color-footer-text-muted: #525252;
|
||||||
--color-footer-text-dim: #737373;
|
--color-footer-text-dim: #737373;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export function CTASection({
|
|||||||
const shouldReduceMotion = useReducedMotion();
|
const shouldReduceMotion = useReducedMotion();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section id="cta" className="relative py-20 md:py-28 bg-[var(--color-primary)] overflow-hidden">
|
<section id="cta" className="relative py-20 md:py-28 bg-[var(--color-cta-bg)] overflow-hidden">
|
||||||
<div
|
<div
|
||||||
className="pointer-events-none absolute inset-0"
|
className="pointer-events-none absolute inset-0"
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ export function HeroSectionV2() {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="relative rounded-2xl bg-white/80 backdrop-blur-sm p-8 lg:p-10">
|
<div className="relative rounded-2xl bg-[var(--color-bg-primary)]/80 backdrop-blur-sm p-8 lg:p-10">
|
||||||
<div className="w-14 h-14 rounded-xl bg-[var(--color-brand-primary-bg)] flex items-center justify-center mb-6">
|
<div className="w-14 h-14 rounded-xl bg-[var(--color-brand-primary-bg)] flex items-center justify-center mb-6">
|
||||||
<Handshake className="w-6 h-6 text-[var(--color-brand-primary)]" strokeWidth={1.8} />
|
<Handshake className="w-6 h-6 text-[var(--color-brand-primary)]" strokeWidth={1.8} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user