fix: add light/dark mode support with Tailwind dark: prefix

This commit is contained in:
张翔
2026-02-21 23:32:47 +08:00
parent 1d7872c8cc
commit 15e17a8f20
13 changed files with 2581 additions and 91 deletions
+3 -3
View File
@@ -20,7 +20,7 @@ export function ServicesSection() {
const isInView = useInView(ref, { once: true, margin: '-100px' });
return (
<section id="services" className="py-24 bg-[var(--color-bg-secondary)]" ref={ref}>
<section id="services" className="py-24 bg-gray-50 dark:bg-[var(--color-bg-secondary)]" ref={ref}>
<div className="container-custom">
<motion.div
initial={{ opacity: 0, y: 20 }}
@@ -31,10 +31,10 @@ export function ServicesSection() {
<span className="inline-flex items-center gap-2 px-4 py-2 rounded-full border border-[var(--color-tech-blue)]/30 bg-[var(--color-tech-blue)]/5 text-[var(--color-tech-blue)] text-sm font-medium mb-4">
</span>
<h2 className="text-3xl sm:text-4xl font-bold text-white mb-4">
<h2 className="text-3xl sm:text-4xl font-bold text-gray-900 dark:text-white mb-4">
<span className="tech-gradient-text"></span>
</h2>
<p className="text-lg text-gray-400">
<p className="text-lg text-gray-600 dark:text-gray-400">
</p>
</motion.div>