feat: 重构网站UI设计并优化布局结构

重构整体UI设计,采用红色主题配色方案
优化页面布局结构,将Header和Footer移至page组件
更新按钮样式和交互效果,增强视觉反馈
调整全局字体配置,使用思源黑体作为中文字体
改进各区块卡片样式,增加悬停动画效果
优化响应式设计,提升移动端体验
This commit is contained in:
张翔
2026-02-08 16:46:22 +08:00
parent cc55146ba6
commit 522f1e09a7
13 changed files with 392 additions and 322 deletions
+22 -23
View File
@@ -3,7 +3,6 @@
import { motion } from 'framer-motion';
import { useInView } from 'framer-motion';
import { useRef } from 'react';
import { Badge } from '@/components/ui/badge';
import { Card, CardContent } from '@/components/ui/card';
import { Lightbulb, Users, Target, Award } from 'lucide-react';
import { COMPANY_INFO, STATS } from '@/lib/constants';
@@ -44,7 +43,7 @@ export function AboutSection() {
const isInView = useInView(ref, { once: true, margin: '-100px' });
return (
<section id="about" className="py-24 bg-white" ref={ref}>
<section id="about" className="py-24 bg-[#FAF8F8]" ref={ref}>
<div className="container-custom">
{/* 头部介绍 */}
<motion.div
@@ -54,25 +53,25 @@ export function AboutSection() {
className="max-w-4xl mx-auto"
>
<div className="text-center mb-16">
<Badge variant="outline" className="mb-4">
<span className="inline-block px-4 py-1.5 rounded-full bg-[#FEF2F4] text-[#C41E3A] text-sm font-medium mb-4">
</Badge>
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-bold text-black mb-6">
{COMPANY_INFO.shortName}
</span>
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-bold text-[#1A1A1A] mb-6">
<span className="text-[#C41E3A]">{COMPANY_INFO.shortName}</span>
</h2>
<p className="text-lg text-gray-600">
<p className="text-lg text-[#4A4A4A]">
{COMPANY_INFO.slogan}
</p>
</div>
{/* 公司简介 */}
<div className="prose prose-lg max-w-none mb-16">
<h3 className="text-2xl font-bold text-black mb-4"></h3>
<p className="text-gray-600 mb-6 leading-relaxed">
<h3 className="text-2xl font-bold text-[#1A1A1A] mb-4"></h3>
<p className="text-[#4A4A4A] mb-6 leading-relaxed">
{COMPANY_INFO.name}{COMPANY_INFO.founded}115{COMPANY_INFO.location}驿12
</p>
<p className="text-gray-600 mb-6 leading-relaxed">
<p className="text-[#4A4A4A] mb-6 leading-relaxed">
"专注科技创新,驱动智慧未来"
</p>
@@ -86,10 +85,10 @@ export function AboutSection() {
className="grid grid-cols-2 md:grid-cols-4 gap-6 mb-16"
>
{STATS.map((stat, idx) => (
<Card key={idx} className="text-center">
<Card key={idx} className="text-center border-[#E8E0E0] bg-white hover:shadow-lg hover:shadow-[#C41E3A]/5 transition-all duration-300 hover:-translate-y-1">
<CardContent className="pt-6">
<div className="text-3xl sm:text-4xl font-bold text-black mb-2">{stat.value}</div>
<div className="text-sm text-gray-600">{stat.label}</div>
<div className="text-3xl sm:text-4xl font-bold text-[#C41E3A] mb-2">{stat.value}</div>
<div className="text-sm text-[#6B6B6B]">{stat.label}</div>
</CardContent>
</Card>
))}
@@ -102,7 +101,7 @@ export function AboutSection() {
transition={{ duration: 0.6, delay: 0.3 }}
className="mb-16"
>
<h3 className="text-2xl font-bold text-black mb-8 text-center"></h3>
<h3 className="text-2xl font-bold text-[#1A1A1A] mb-8 text-center"></h3>
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
{values.map((value, idx) => (
<motion.div
@@ -110,14 +109,14 @@ export function AboutSection() {
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-gray-50 rounded-xl"
className="flex items-start gap-4 p-6 bg-white rounded-xl border border-[#E8E0E0] hover:border-[#C41E3A]/30 hover:shadow-lg hover:shadow-[#C41E3A]/5 transition-all duration-300"
>
<div className="w-12 h-12 bg-black rounded-lg flex items-center justify-center flex-shrink-0">
<div className="w-12 h-12 bg-[#C41E3A] rounded-lg flex items-center justify-center flex-shrink-0">
<value.icon className="w-6 h-6 text-white" />
</div>
<div>
<h4 className="font-semibold text-black mb-2">{value.title}</h4>
<p className="text-gray-600 text-sm">{value.description}</p>
<h4 className="font-semibold text-[#1A1A1A] mb-2">{value.title}</h4>
<p className="text-[#6B6B6B] text-sm">{value.description}</p>
</div>
</motion.div>
))}
@@ -130,7 +129,7 @@ export function AboutSection() {
animate={isInView ? { opacity: 1, y: 0 } : {}}
transition={{ duration: 0.6, delay: 0.5 }}
>
<h3 className="text-2xl font-bold text-black mb-8 text-center"></h3>
<h3 className="text-2xl font-bold text-[#1A1A1A] mb-8 text-center"></h3>
<div className="space-y-6">
{milestones.map((milestone, idx) => (
<motion.div
@@ -138,14 +137,14 @@ export function AboutSection() {
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-gray-50 rounded-xl"
className="flex flex-col md:flex-row md:items-start gap-4 p-6 bg-white rounded-xl border border-[#E8E0E0]"
>
<div className="md:w-32 flex-shrink-0">
<span className="text-sm font-medium text-gray-500">{milestone.date}</span>
<span className="text-sm font-medium text-[#C41E3A]">{milestone.date}</span>
</div>
<div className="flex-1">
<h4 className="font-semibold text-black mb-1">{milestone.title}</h4>
<p className="text-gray-600 text-sm">{milestone.description}</p>
<h4 className="font-semibold text-[#1A1A1A] mb-1">{milestone.title}</h4>
<p className="text-[#6B6B6B] text-sm">{milestone.description}</p>
</div>
</motion.div>
))}