diff --git a/app/components/SafetyToolkit.tsx b/app/components/SafetyToolkit.tsx new file mode 100644 index 0000000..e5a9f5c --- /dev/null +++ b/app/components/SafetyToolkit.tsx @@ -0,0 +1,111 @@ +'use client' + +import { motion } from 'framer-motion' +import { Bell, Download, Users, ScanSearch } from 'lucide-react' +import { useRouter } from 'next/navigation' +import { useTranslation } from '../lib/i18n/LanguageContext' + +const cards = [ + { + icon: ScanSearch, + action: '/scan', + color: 'from-blue-500/20 via-cyan-500/10 to-blue-600/20', + title: { + vi: 'Kiểm tra tức thì', + en: 'Instant check' + }, + description: { + vi: 'Quét URL, hình ảnh hoặc tin nhắn đáng ngờ chỉ với một cú nhấp.', + en: 'Scan suspicious links, images, or messages in one tap.' + } + }, + { + icon: Bell, + action: '/alerts', + color: 'from-amber-500/15 via-orange-500/10 to-amber-600/15', + title: { + vi: 'Cảnh báo nóng', + en: 'Live alerts' + }, + description: { + vi: 'Cập nhật xu hướng lừa đảo mới nhất để tránh các chiêu trò mới.', + en: 'Stay ahead of emerging scam trends with fresh alerts.' + } + }, + { + icon: Download, + action: '/extension', + color: 'from-emerald-500/15 via-green-500/10 to-emerald-600/15', + title: { + vi: 'Cài extension', + en: 'Install extension' + }, + description: { + vi: 'Bảo vệ trình duyệt 24/7 với cảnh báo và kiểm tra tự động.', + en: 'Get always-on browser protection with automatic checks.' + } + }, + { + icon: Users, + action: '/community', + color: 'from-indigo-500/15 via-purple-500/10 to-indigo-600/15', + title: { + vi: 'Cộng đồng hỗ trợ', + en: 'Community support' + }, + description: { + vi: 'Học kinh nghiệm thực chiến từ cộng đồng và chuyên gia.', + en: 'Learn real-world tips from peers and experts.' + } + } +] + +export default function SafetyToolkit() { + const router = useRouter() + const { language } = useTranslation() + + return ( +
+ {language === 'vi' ? 'Bước tiếp theo' : 'Next step'} +
++ {language === 'vi' ? card.description.vi : card.description.en} +
++ {language === 'vi' + ? 'Chọn bước tiếp theo để tận dụng tối đa bộ công cụ chống lừa đảo.' + : 'Pick your next move to get the most from the anti-scam toolkit.'} +
+