feat: add back to home button on all list pages

This commit is contained in:
张翔
2026-02-27 20:39:50 +08:00
parent fd058a53d1
commit 94c419f601
4 changed files with 19 additions and 3 deletions
+4
View File
@@ -23,6 +23,10 @@ export default function CasesPage() {
<div className="container-wide relative z-10 py-16" ref={contentRef}>
<div className="max-w-6xl mx-auto">
<Link href="/" className="inline-flex items-center text-[#5C5C5C] hover:text-[#C41E3A] transition-colors mb-8">
<ArrowLeft className="w-4 h-4 mr-2" />
</Link>
<div className="grid md:grid-cols-2 gap-8">
{CASES.map((caseItem, index) => (
<motion.div
+5 -1
View File
@@ -8,7 +8,7 @@ import { Button } from '@/components/ui/button';
import { Badge } from '@/components/ui/badge';
import { Card, CardContent, CardHeader, CardTitle, CardDescription } from '@/components/ui/card';
import { PageHeader } from '@/components/ui/page-header';
import { ArrowRight, Check, TrendingUp } from 'lucide-react';
import { ArrowRight, ArrowLeft, Check, TrendingUp } from 'lucide-react';
import { PRODUCTS } from '@/lib/constants';
export default function ProductsPage() {
@@ -24,6 +24,10 @@ export default function ProductsPage() {
<div className="container-wide relative z-10 py-16" ref={contentRef}>
<div className="max-w-6xl mx-auto">
<Link href="/" className="inline-flex items-center text-[#5C5C5C] hover:text-[#C41E3A] transition-colors mb-8">
<ArrowLeft className="w-4 h-4 mr-2" />
</Link>
<div className="grid grid-cols-1 md:grid-cols-2 gap-8">
{PRODUCTS.map((product, index) => (
<motion.div
+5 -1
View File
@@ -8,7 +8,7 @@ import { Button } from '@/components/ui/button';
import { Badge } from '@/components/ui/badge';
import { PageHeader } from '@/components/ui/page-header';
import { ServiceCardSkeleton } from '@/components/ui/loading-skeleton';
import { ArrowRight, Code, Cloud, BarChart3, Shield } from 'lucide-react';
import { ArrowRight, ArrowLeft, Code, Cloud, BarChart3, Shield } from 'lucide-react';
import { SERVICES } from '@/lib/constants';
const iconMap: Record<string, React.ComponentType<{ className?: string }>> = {
@@ -37,6 +37,10 @@ export default function ServicesPage() {
<div className="container-wide relative z-10 py-16" ref={contentRef}>
<div className="max-w-6xl mx-auto">
<Link href="/" className="inline-flex items-center text-[#5C5C5C] hover:text-[#C41E3A] transition-colors mb-8">
<ArrowLeft className="w-4 h-4 mr-2" />
</Link>
{isLoading ? (
<div className="grid md:grid-cols-2 gap-8">
{Array.from({ length: 4 }).map((_, index) => (
+5 -1
View File
@@ -8,7 +8,7 @@ import { Badge } from '@/components/ui/badge';
import { Input } from '@/components/ui/input';
import { Button } from '@/components/ui/button';
import { PageHeader } from '@/components/ui/page-header';
import { Search, Calendar, ArrowRight, Filter } from 'lucide-react';
import { Search, Calendar, ArrowRight, ArrowLeft, Filter } from 'lucide-react';
import Link from 'next/link';
import { motion } from 'framer-motion';
@@ -38,6 +38,10 @@ export default function NewsListPage() {
/>
<div className="container-wide relative z-10 py-12" ref={contentRef}>
<Link href="/" className="inline-flex items-center text-[#5C5C5C] hover:text-[#C41E3A] transition-colors mb-8">
<ArrowLeft className="w-4 h-4 mr-2" />
</Link>
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={isContentInView ? { opacity: 1, y: 0 } : {}}