refactor: simplify about section on homepage

This commit is contained in:
张翔
2026-02-26 21:25:31 +08:00
parent 1e1c68670b
commit b468415e54
+17 -154
View File
@@ -3,40 +3,11 @@
import { motion } from 'framer-motion';
import { useInView } from 'framer-motion';
import { useRef } from 'react';
import Link from 'next/link';
import { Card, CardContent } from '@/components/ui/card';
import { Lightbulb, Users, Target, Award } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { COMPANY_INFO, STATS } from '@/lib/constants';
const values = [
{
icon: Lightbulb,
title: '智连未来',
description: '坚持对行业趋势的深度研究,不追逐昙花一现的概念,让技术真正服务于您的未来',
},
{
icon: Users,
title: '成长伙伴',
description: '不把项目交付当作终点,以客户业务增长和团队能力提升为最终目标',
},
{
icon: Target,
title: '务实担当',
description: '只提供真正需要的技术方案,不卖用不上的技术,不说不懂业务的术语',
},
{
icon: Award,
title: '长期陪伴',
description: '不是一锤子买卖,而是成为您数字化转型路上值得信赖的长期伙伴',
},
];
const milestones = [
{
date: '2026年1月15日',
title: '公司成立',
description: '四川睿新致远科技有限公司在成都龙泉驿区正式成立,开始提供软件开发服务',
},
];
import { ArrowRight } from 'lucide-react';
export function AboutSection() {
const ref = useRef(null);
@@ -52,87 +23,20 @@ export function AboutSection() {
transition={{ duration: 0.6 }}
className="max-w-4xl mx-auto"
>
<div className="text-center mb-16">
<div className="text-center mb-12">
<h2 className="text-4xl md:text-5xl font-bold text-[#1C1C1C] mb-6">
<span className="tracking-tight font-calligraphy text-[#C41E3A]" style={{ fontWeight: 'normal', WebkitFontSmoothing: 'antialiased', MozOsxFontSmoothing: 'grayscale', textRendering: 'optimizeLegibility' }}>{COMPANY_INFO.shortName}</span>
</h2>
<p className="text-lg text-[#5C5C5C]">
<p className="text-lg text-[#5C5C5C] mb-8">
{COMPANY_INFO.slogan}
</p>
</div>
<div className="mb-16">
<h3 className="text-2xl font-bold text-[#1C1C1C] mb-4"></h3>
<p className="text-[#5C5C5C] mb-4 leading-relaxed">
<div className="bg-white rounded-2xl p-8 mb-12 border border-[#E5E5E5]">
<p className="text-lg text-[#5C5C5C] leading-relaxed text-center mb-6">
"企业需要的,不是一个高高在上的'专家',也不是一个做完就跑的'卖家',而是一个能坐下来、一起想办法的同行者。"
</p>
<p className="text-[#5C5C5C] mb-4 leading-relaxed">
PPT
</p>
<p className="text-[#5C5C5C] mb-4 leading-relaxed">
</p>
<p className="text-[#5C5C5C] mb-6 leading-relaxed">
"专家""卖家"
</p>
</div>
<div className="mb-16">
<h3 className="text-2xl font-bold text-[#1C1C1C] mb-4"></h3>
<p className="text-[#5C5C5C] mb-6 leading-relaxed">
</p>
<div className="mb-6">
<h4 className="text-xl font-semibold text-[#1C1C1C] mb-3"></h4>
<p className="text-[#5C5C5C] mb-3 leading-relaxed">
</p>
<p className="text-[#5C5C5C] mb-3 leading-relaxed">
</p>
<p className="text-[#5C5C5C] leading-relaxed">
</p>
</div>
<div>
<h4 className="text-xl font-semibold text-[#1C1C1C] mb-3"></h4>
<p className="text-[#5C5C5C] mb-3 leading-relaxed">
"项目交付"
</p>
<p className="text-[#5C5C5C] mb-3 leading-relaxed">
</p>
<p className="text-[#5C5C5C] leading-relaxed">
</p>
<p className="text-[#5C5C5C] mt-3 leading-relaxed">
"项目是否按时交付"
</p>
</div>
</div>
<div className="mb-16">
<h3 className="text-2xl font-bold text-[#1C1C1C] mb-4"></h3>
<p className="text-[#5C5C5C] mb-6 leading-relaxed">
</p>
<ul className="space-y-3 mb-6">
<li className="flex items-start gap-3">
<span className="text-green-600 font-bold"></span>
<span className="text-[#5C5C5C]"></span>
</li>
<li className="flex items-start gap-3">
<span className="text-green-600 font-bold"></span>
<span className="text-[#5C5C5C]"></span>
</li>
<li className="flex items-start gap-3">
<span className="text-green-600 font-bold"></span>
<span className="text-[#5C5C5C]">"一锤子买卖"</span>
</li>
</ul>
<p className="text-[#5C5C5C] leading-relaxed font-medium">
<p className="text-[#1C1C1C] font-medium text-center">
</p>
</div>
@@ -141,7 +45,7 @@ export function AboutSection() {
initial={{ opacity: 0, y: 20 }}
animate={isInView ? { opacity: 1, y: 0 } : {}}
transition={{ duration: 0.6, delay: 0.2 }}
className="grid grid-cols-2 md:grid-cols-4 gap-6 mb-16"
className="grid grid-cols-2 md:grid-cols-4 gap-6 mb-12"
>
{STATS.map((stat, idx) => (
<Card key={idx} className="text-center border-[#E5E5E5]">
@@ -157,55 +61,14 @@ export function AboutSection() {
initial={{ opacity: 0, y: 20 }}
animate={isInView ? { opacity: 1, y: 0 } : {}}
transition={{ duration: 0.6, delay: 0.3 }}
className="mb-16"
className="text-center"
>
<h3 className="text-2xl font-bold text-[#1C1C1C] mb-8 text-center"></h3>
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
{values.map((value, idx) => (
<motion.div
key={value.title}
initial={{ opacity: 0, y: 20 }}
animate={isInView ? { opacity: 1, y: 0 } : {}}
transition={{ duration: 0.5, delay: 0.4 + idx * 0.1 }}
className="flex items-start gap-4 p-6 bg-[#FFFBF5] rounded-xl border border-[#E5E5E5] hover:border-[#1C1C1C] transition-all duration-300"
>
<div className="w-12 h-12 rounded-lg bg-[#C41E3A] flex items-center justify-center flex-shrink-0">
<value.icon className="w-6 h-6 text-white" />
</div>
<div>
<h4 className="font-semibold text-[#1C1C1C] mb-2">{value.title}</h4>
<p className="text-[#5C5C5C] text-sm">{value.description}</p>
</div>
</motion.div>
))}
</div>
</motion.div>
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={isInView ? { opacity: 1, y: 0 } : {}}
transition={{ duration: 0.6, delay: 0.5 }}
>
<h3 className="text-2xl font-bold text-[#1C1C1C] mb-8 text-center"></h3>
<div className="space-y-6">
{milestones.map((milestone, idx) => (
<motion.div
key={milestone.title}
initial={{ opacity: 0, x: -20 }}
animate={isInView ? { opacity: 1, x: 0 } : {}}
transition={{ duration: 0.5, delay: 0.6 + idx * 0.1 }}
className="flex flex-col md:flex-row md:items-start gap-4 p-6 bg-[#FFFBF5] rounded-xl border border-[#E5E5E5]"
>
<div className="md:w-32 flex-shrink-0">
<span className="text-sm font-medium text-[#C41E3A]">{milestone.date}</span>
</div>
<div className="flex-1">
<h4 className="font-semibold text-[#1A1A2E] mb-1">{milestone.title}</h4>
<p className="text-[#718096] text-sm">{milestone.description}</p>
</div>
</motion.div>
))}
</div>
<Button size="lg" variant="outline" className="group" asChild>
<Link href="/about">
<ArrowRight className="ml-2 w-4 h-4 transition-transform group-hover:translate-x-1" />
</Link>
</Button>
</motion.div>
</motion.div>
</div>