From 9cdd55445450eeb7837e3fee95c249017f63f813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Thu, 26 Feb 2026 18:02:54 +0800 Subject: [PATCH] feat: add links to product detail pages --- src/components/sections/products-section.tsx | 93 ++++++++++---------- 1 file changed, 48 insertions(+), 45 deletions(-) diff --git a/src/components/sections/products-section.tsx b/src/components/sections/products-section.tsx index 38c2542..5308d23 100644 --- a/src/components/sections/products-section.tsx +++ b/src/components/sections/products-section.tsx @@ -3,6 +3,7 @@ import { motion } from 'framer-motion'; import { useInView } from 'framer-motion'; import { useRef } from 'react'; +import Link from 'next/link'; import { Card, CardContent, CardHeader, CardTitle, CardDescription } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; import { Badge } from '@/components/ui/badge'; @@ -40,54 +41,56 @@ export function ProductsSection() { animate={isInView ? { opacity: 1, y: 0 } : {}} transition={{ duration: 0.5, delay: 0.1 + idx * 0.1 }} > - - - - {product.category} - - {product.title} - - - - {product.description} - - -
-

核心功能

-
- {product.features.slice(0, 4).map((feature, idx) => ( - - - {feature} - - ))} + + + + + {product.category} + + {product.title} + + + + {product.description} + + +
+

核心功能

+
+ {product.features.slice(0, 4).map((feature, idx) => ( + + + {feature} + + ))} +
-
-
-

- - 核心价值 -

-
    - {product.benefits.map((benefit, idx) => ( -
  • - - {benefit} -
  • - ))} -
-
+
+

+ + 核心价值 +

+
    + {product.benefits.map((benefit, idx) => ( +
  • + + {benefit} +
  • + ))} +
+
- - - + + + + ))}