fix: add semantic section IDs for anchor navigation and accessibility

This commit is contained in:
张翔
2026-04-30 21:38:20 +08:00
parent 145bc190e3
commit b6d2313e8f
4 changed files with 4 additions and 2 deletions
@@ -53,7 +53,7 @@ export function ChallengeSection() {
return ( return (
<section <section
id="solutions" id="challenges"
ref={sectionRef} ref={sectionRef}
className="bg-white py-16 md:py-24" className="bg-white py-16 md:py-24"
> >
+1 -1
View File
@@ -23,7 +23,7 @@ export function CTASection({
secondaryHref = '/cases', secondaryHref = '/cases',
}: CTASectionProps) { }: CTASectionProps) {
return ( return (
<section className="bg-[#1C1C1C] py-16 md:py-24"> <section id="cta" className="bg-[#1C1C1C] py-16 md:py-24">
<div className="container-wide"> <div className="container-wide">
<motion.div <motion.div
initial={{ opacity: 0, y: 20 }} initial={{ opacity: 0, y: 20 }}
@@ -29,6 +29,7 @@ export function SocialProofSection() {
return ( return (
<section <section
id="social-proof"
ref={sectionRef} ref={sectionRef}
className="bg-white py-16 md:py-24" className="bg-white py-16 md:py-24"
> >
@@ -50,6 +50,7 @@ export function TestimonialSection() {
return ( return (
<section <section
id="testimonials"
ref={sectionRef} ref={sectionRef}
className="bg-[#FFFBF5] py-16 md:py-24" className="bg-[#FFFBF5] py-16 md:py-24"
> >