fix(breadcrumb): add aria-label to news detail breadcrumb for alignment
Also accumulates other pre-existing changes: - refactor(icons): replace deprecated BarChart3 with TrendingUp - refactor(services): replace emoji icons with LucideIcon components - refactor(footer): use logo-white for dark background - cleanup(archive): remove unused archive components - cleanup(constants): remove unused types and exports
This commit is contained in:
@@ -7,7 +7,6 @@ import {
|
||||
ArrowRight,
|
||||
Zap,
|
||||
Shield,
|
||||
BarChart3,
|
||||
Cpu,
|
||||
TrendingUp,
|
||||
Clock,
|
||||
@@ -21,7 +20,7 @@ interface ProductValueSectionProps {
|
||||
product: Product;
|
||||
}
|
||||
|
||||
const featureIcons: LucideIcon[] = [Zap, Shield, BarChart3, Cpu];
|
||||
const featureIcons: LucideIcon[] = [Zap, Shield, TrendingUp, Cpu];
|
||||
|
||||
function FeatureTags({ text }: { text: string }) {
|
||||
const [title, ...descParts] = text.split(':');
|
||||
|
||||
@@ -153,7 +153,7 @@ jest.mock('lucide-react', () => {
|
||||
'ArrowRight', 'Sparkles', 'ChevronDown', 'Zap', 'Shield',
|
||||
'CheckCircle2', 'MessageCircle', 'Download', 'Package',
|
||||
'Lightbulb', 'Wrench', 'TrendingUp', 'Clock', 'Award',
|
||||
'Users', 'BarChart3', 'Cpu', 'ExternalLink',
|
||||
'Users', 'Cpu', 'ExternalLink',
|
||||
];
|
||||
for (const name of names) {
|
||||
const Icon = (props: any) => (
|
||||
|
||||
@@ -22,7 +22,7 @@ export function Footer() {
|
||||
<div className="mb-6">
|
||||
<StaticLink href="/" className="inline-block group" aria-label="返回首页">
|
||||
<Image
|
||||
src="/logo.svg"
|
||||
src="/logo-white.svg"
|
||||
alt={config.name}
|
||||
width={180}
|
||||
height={45}
|
||||
|
||||
@@ -15,7 +15,7 @@ jest.mock('lucide-react', () => {
|
||||
ArrowUpRight: mockIcon('arrow-up-right'),
|
||||
Database: mockIcon('database'),
|
||||
Users: mockIcon('users'),
|
||||
BarChart3: mockIcon('bar-chart-3'),
|
||||
TrendingUp: mockIcon('trending-up'),
|
||||
FileText: mockIcon('file-text'),
|
||||
Truck: mockIcon('truck'),
|
||||
Building2: mockIcon('building2'),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
'use client';
|
||||
|
||||
import { ArrowUpRight, Database, Users, BarChart3, FileText, Truck, Building2 } from 'lucide-react';
|
||||
import { ArrowUpRight, Database, Users, TrendingUp, FileText, Truck, Building2 } from 'lucide-react';
|
||||
import { Card } from '@/components/ui/card';
|
||||
import type { LucideIcon } from 'lucide-react';
|
||||
|
||||
@@ -12,7 +12,7 @@ interface ProductCardProps {
|
||||
status?: '研发中' | '内测中' | '已发布';
|
||||
}
|
||||
|
||||
const productIcons: LucideIcon[] = [Database, Users, FileText, BarChart3, Truck, Building2];
|
||||
const productIcons: LucideIcon[] = [Database, Users, FileText, TrendingUp, Truck, Building2];
|
||||
|
||||
const PRODUCT_COLORS = [
|
||||
{ bg: 'rgba(var(--color-brand-rgb), 0.08)', text: 'var(--color-brand)', border: 'rgba(var(--color-brand-rgb), 0.12)' },
|
||||
|
||||
Reference in New Issue
Block a user