Commit Graph

47 Commits

Author SHA1 Message Date
张翔 9cbc80742a feat: 重构联系页面并增强安全性
refactor: 优化导航和路由逻辑

fix: 修复移动端样式问题

perf: 优化字体加载和性能

test: 添加安全性和可访问性测试

style: 调整按钮和表单样式

chore: 更新依赖版本

ci: 添加安全头配置

build: 优化构建配置

docs: 更新常量信息
2026-03-01 10:56:54 +08:00
张翔 0cfefaa937 refactor(ui): 优化导航组件和页面布局
- 移除多个页面的面包屑导航组件
- 添加统一的返回按钮组件替代各页面独立实现
- 优化导航栏滚动检测逻辑和动画效果
- 更新常量类型定义和统计数据
- 调整动态导入的SSR配置为false
- 添加FlipClock组件展示公司运营时长
- 优化新闻列表页的类型安全和响应式设计
2026-02-28 13:09:07 +08:00
张翔 9451814ca4 feat: 添加面包屑导航组件并优化页面布局
refactor: 重构页面结构和导航逻辑

fix: 修复移动端菜单导航和滚动行为

perf: 优化图片加载性能和资源请求

test: 添加端到端测试和性能测试用例

docs: 更新.gitignore文件

chore: 更新依赖和配置

style: 优化代码格式和类型安全

ci: 调整Playwright测试超时时间

build: 更新Next.js配置和构建选项
2026-02-28 09:09:04 +08:00
张翔 aa47a45a95 feat: add touch swipe support for mobile 2026-02-27 20:29:00 +08:00
张翔 1bdb95b5b6 feat: optimize mobile form input experience 2026-02-27 20:27:17 +08:00
张翔 5d5b7feb0a feat(e2e): 添加完整的E2E测试框架和测试用例
添加Playwright测试框架配置和基础页面对象
实现冒烟测试用例覆盖首页和联系页面核心功能
更新导航组件以支持滚动高亮功能
添加BackButton组件统一返回按钮行为
配置Woodpecker CI集成和测试报告生成
2026-02-27 10:30:33 +08:00
张翔 f0e147eba8 feat: add cases section to homepage 2026-02-26 21:25:59 +08:00
张翔 b468415e54 refactor: simplify about section on homepage 2026-02-26 21:25:31 +08:00
张翔 686a02b233 refactor: remove modal, add link navigation for services 2026-02-26 21:24:38 +08:00
张翔 ac4f228b04 feat: update navigation to link to solutions page 2026-02-26 18:46:17 +08:00
张翔 87719f318f fix: await params promise in Next.js 16 2026-02-26 18:38:00 +08:00
张翔 1c5ec4d663 fix: improve button hover contrast for better readability 2026-02-26 18:37:31 +08:00
张翔 dd0878a7a4 fix: rename news dynamic route parameter from id to slug 2026-02-26 18:20:00 +08:00
张翔 c845fbbd85 feat: add link to news list page 2026-02-26 18:05:27 +08:00
张翔 9cdd554454 feat: add links to product detail pages 2026-02-26 18:02:54 +08:00
张翔 424c437bdf feat: integrate service detail modal with service cards 2026-02-26 18:00:01 +08:00
张翔 c174370e60 feat: integrate contact form with API 2026-02-26 17:56:25 +08:00
张翔 7f450dff87 refactor(products): 更新产品列表和描述信息
移除物联网和AI产品,新增内容管理系统
更新产品页面描述和联系按钮滚动功能
2026-02-26 15:52:04 +08:00
张翔 fecbfd1990 feat: 添加预览效果页面并优化交互效果
refactor: 优化代码健壮性和类型安全

style: 更新字体样式和全局CSS

fix: 修复IntersectionObserver潜在空引用问题

chore: 更新依赖和ESLint配置

build: 更新构建ID和路由配置
2026-02-24 10:24:05 +08:00
张翔 64165c4499 feat(security,quality): implement security and code quality optimizations
Phase 6: Security Optimizations
- Install DOMPurify for XSS protection
- Create sanitize utilities (HTML, input, URL, escape)
- Implement input sanitization in contact form
- Add CSRF token generation and validation
- Integrate CSRF protection in form submissions

Phase 7: Code Quality Optimizations
- Enhance TypeScript strict mode configuration
- Add noUncheckedIndexedAccess for safer array access
- Enable noImplicitReturns and noFallthroughCasesInSwitch
- Add noUnusedLocals and noUnusedParameters
- Enable exactOptionalPropertyTypes for precise types
- Configure comprehensive ESLint rules
- Add React security rules (no-unescaped-entities, jsx-no-target-blank)
- Add TypeScript best practices rules
- Add code quality rules (prefer-const, eqeqeq, curly)

Files modified:
- package.json: Add DOMPurify dependency
- src/lib/sanitize.ts: New sanitization utilities
- src/lib/csrf.ts: New CSRF protection utilities
- src/components/sections/contact-section.tsx: Security integration
- tsconfig.json: Enhanced TypeScript configuration
- eslint.config.mjs: Comprehensive ESLint rules

Impact:
- XSS attack prevention
- CSRF attack prevention
- Better type safety
- Improved code quality
- Financial-grade security standards
2026-02-24 07:08:39 +08:00
张翔 37a86bfaf7 feat(perf,ux): implement performance and UX optimizations
Phase 2: Performance Optimizations
- Implement dynamic imports for non-critical sections
- Add loading skeletons for lazy-loaded components
- Optimize bundle size with code splitting
- Enable SSR for dynamic components

Phase 3: UX Optimizations
- Create ErrorBoundary component for graceful error handling
- Add Toast notification component for user feedback
- Implement success/error notifications in contact form
- Add error handling with user-friendly messages

Files modified:
- src/app/(marketing)/page.tsx: Dynamic imports for sections
- src/app/(marketing)/layout.tsx: Error boundary integration
- src/components/sections/contact-section.tsx: Toast notifications
- src/components/ui/error-boundary.tsx: New error boundary component
- src/components/ui/toast.tsx: New toast notification component

Impact:
- Reduced initial bundle size
- Faster page load times
- Better error handling
- Improved user feedback
- Enhanced user experience
2026-02-24 00:44:40 +08:00
张翔 016b7cfb91 feat(a11y,ux): implement comprehensive accessibility and UX optimizations
Phase 1: Accessibility Optimizations
- Add proper label associations and ARIA attributes to form inputs
- Implement aria-required, aria-invalid, aria-describedby for better form accessibility
- Add role='alert' for error messages
- Enhance keyboard navigation with aria-expanded, aria-controls
- Add aria-label for mobile menu button
- Implement aria-current for active navigation items
- Add semantic HTML with aria-labelledby for sections

Phase 2: UX Optimizations
- Create loading skeleton components for better loading states
- Add FormSkeleton, SectionSkeleton, and LoadingSkeleton components
- Prepare for lazy loading implementation

Files modified:
- src/components/ui/input.tsx: Enhanced with ARIA attributes
- src/components/ui/textarea.tsx: Enhanced with ARIA attributes
- src/components/layout/header.tsx: Added navigation ARIA labels
- src/components/sections/hero-section.tsx: Added section labels
- src/components/sections/services-section.tsx: Added section labels
- src/components/ui/loading-skeleton.tsx: New loading state components

Impact:
- WCAG 2.1 AA compliance improvements
- Better screen reader support
- Enhanced keyboard navigation
- Improved user feedback during loading
2026-02-24 00:40:19 +08:00
张翔 44ba75e4d1 feat(components): 添加鼠标交互粒子效果和高级浮动效果组件
refactor(sections): 移除各区块的多余标签元素
style(contact-section): 优化联系表单布局和动画效果
2026-02-23 22:48:32 +08:00
张翔 a75673fa27 refactor(hero-section): 移除未使用的动画导入并优化样式类名
删除未使用的动画组件导入(FadeUp, StaggerContainer等)
将min-w-[180px]替换为更简洁的min-w-45
调整背景渐变类名从bg-gradient-to-b到bg-linear-to-b
2026-02-23 21:19:54 +08:00
张翔 e862a68ef0 chore: 更新构建ID和相关文件引用 2026-02-23 21:19:44 +08:00
张翔 25586a5a6c chore: 更新构建ID和相关文件引用 2026-02-23 10:38:29 +08:00
张翔 5ec2ad0043 style(ui组件): 更新UI组件颜色方案为深色主题
refactor(card): 调整卡片背景色和边框颜色
refactor(badge): 修改徽章颜色变体
refactor(button): 更新按钮颜色样式
refactor(input): 调整输入框颜色方案
refactor(textarea): 修改文本区域颜色样式
refactor(header): 更新导航栏颜色
refactor(hero-section): 调整英雄区域颜色和渐变
2026-02-23 09:18:41 +08:00
张翔 9e7fb20d2a style: 修复 hero-section Tailwind CSS 类名警告
- bg-gradient-to-b → bg-linear-to-b
- w-[800px] → w-200
- h-[600px] → h-150
- w-[600px] → w-150
- h-[400px] → h-100
- min-w-[180px] → min-w-45 (2处)~
2026-02-23 08:35:16 +08:00
张翔 8d0f86c365 fix: 修复 lint 错误
- 修复 Input/Textarea 组件中 React Hook 条件调用问题
- 修复 AboutSection 中的引号转义问题
- 更新 Input/Textarea 样式为医疗健康风格
2026-02-23 08:16:36 +08:00
张翔 ef4b6d1022 refactor: 重构所有 Section 组件为医疗健康风格
- ProductsSection: 浅灰背景、蓝红配色
- AboutSection: 白色背景、专业蓝图标
- NewsSection: 浅灰背景、蓝红强调
- ContactSection: 白色背景、蓝图标、红强调
2026-02-23 08:11:11 +08:00
张翔 064f6b9e83 refactor: 重构 ServicesSection 为医疗健康风格 2026-02-23 08:08:27 +08:00
张翔 83ea4572fe refactor: 重构 HeroSection 为医疗健康风格
- 浅蓝渐变背景
- 专业蓝主色调
- 印章红数据强调
- 移除深色背景和科技感粒子效果
2026-02-23 08:07:24 +08:00
张翔 6dcbde28bc feat: 更新 Hero 区域样式
- 统一使用 CSS 变量
- 增强背景发光效果
- 优化文字颜色层级
- 移除未使用的图标导入
- 统一深色模式样式
2026-02-22 15:18:19 +08:00
张翔 15e17a8f20 fix: add light/dark mode support with Tailwind dark: prefix 2026-02-21 23:32:47 +08:00
张翔 1ae05f107b feat: update products section with dark tech theme 2026-02-21 23:01:53 +08:00
张翔 d2f92b8a55 feat: update services section with dark tech theme 2026-02-21 22:59:32 +08:00
张翔 554011f0e7 feat: redesign hero section with dark tech theme and framer-motion 2026-02-21 22:58:09 +08:00
张翔 34c96c119d feat: add case detail pages with SSG and dynamic routing 2026-02-13 14:53:52 +08:00
张翔 e829451fa3 fix: resolve TypeScript errors for Zod v4 API changes 2026-02-13 14:31:21 +08:00
张翔 6737cbd579 feat: add form validation to contact section with Zod 2026-02-13 14:19:30 +08:00
张翔 8ac0065a06 feat: add testimonials section with testimonial cards 2026-02-13 14:11:19 +08:00
张翔 04b2aca4c1 feat: add insights section to homepage 2026-02-13 14:07:31 +08:00
张翔 249da50335 feat: integrate enhanced seal animation in hero section 2026-02-13 14:03:07 +08:00
张翔 522f1e09a7 feat: 重构网站UI设计并优化布局结构
重构整体UI设计,采用红色主题配色方案
优化页面布局结构,将Header和Footer移至page组件
更新按钮样式和交互效果,增强视觉反馈
调整全局字体配置,使用思源黑体作为中文字体
改进各区块卡片样式,增加悬停动画效果
优化响应式设计,提升移动端体验
2026-02-08 16:46:22 +08:00
张翔 cc55146ba6 feat(contact-section): 更新联系方式卡片为服务承诺卡片
将联系方式卡片重新设计为服务承诺卡片,展示专业响应、免费咨询和定制方案等优势
更新卡片样式和图标,使用更友好的视觉设计
保持工作时间卡片和消息发送卡片的基本布局
2026-02-03 08:02:09 +08:00
张翔 f14002559e feat(e2e-tests): 添加端到端测试框架及测试用例
refactor(components): 调整头部和页脚布局样式
style(hero-section): 更新徽章动画效果

docs: 添加测试框架README文档
test: 实现首页、导航和联系表单的测试用例
ci: 添加CI测试脚本和配置
2026-02-02 19:36:33 +08:00
张翔 150024b6ac build: 更新Next.js配置以支持静态导出并添加新依赖
更新next.config.ts文件以支持静态导出功能,并添加了多个新的依赖项到package.json中,包括UI组件库和动画库。同时生成了构建相关的文件和配置。
2026-02-02 17:59:29 +08:00