Files
asset-homepage/components/Footer.tsx

203 lines
6.1 KiB
TypeScript
Raw Normal View History

2026-01-27 17:26:30 +08:00
'use client';
import Image from 'next/image';
2026-01-28 17:55:01 +08:00
import { useLanguage } from '@/contexts/LanguageContext';
2026-01-27 17:26:30 +08:00
export default function Footer() {
2026-01-28 17:55:01 +08:00
const { t } = useLanguage();
2026-01-27 17:26:30 +08:00
const socialIcons = [
{ src: '/component-12.svg', alt: 'Twitter', width: 24, height: 24 },
{ src: '/component-13.svg', alt: 'Discord', width: 24, height: 24 },
{ src: '/component-14.svg', alt: 'Telegram', width: 24, height: 24 },
{ src: '/component-15.svg', alt: 'Medium', width: 24, height: 24 }
];
return (
<footer className="bg-white border-t border-[#e5e7eb] w-full flex flex-col items-center">
{/* Main Footer Content */}
2026-01-28 17:55:01 +08:00
<div className="w-full max-w-[1440px] px-6 py-20 flex flex-row gap-8">
2026-01-27 17:26:30 +08:00
{/* Left Section - Logo, Address, Social Icons */}
<div className="flex flex-col gap-6 w-[389.33px]">
{/* Logo */}
<div className="flex items-center">
<Image
src="/logo2.svg"
alt="AssetX Logo"
width={160}
height={40}
/>
</div>
{/* Address */}
<div
className="text-[#9ca1af] text-left font-inter"
style={{
fontSize: '14px',
lineHeight: '150%',
fontWeight: 400
}}
>
G/F, Hong Kong Museum Of Art, 10 Salisbury
<br />
Rd, Tsim Sha Tsui, HongKong
</div>
{/* Social Icons */}
<div className="flex flex-row gap-4 items-center">
{socialIcons.map((icon, index) => (
<div
key={index}
className="cursor-pointer hover:opacity-70 transition-opacity"
>
<Image
src={icon.src}
alt={icon.alt}
width={icon.width}
height={icon.height}
/>
</div>
))}
</div>
</div>
{/* Right Section - Links */}
<div className="flex flex-row justify-between flex-1">
{/* Products Column */}
<div className="flex flex-col gap-4 w-[178.67px]">
<h3
className="text-[#111827] font-inter"
style={{
fontSize: '16px',
lineHeight: '150%',
fontWeight: 700
}}
>
2026-01-28 17:55:01 +08:00
{t('footer.products')}
2026-01-27 17:26:30 +08:00
</h3>
<div className="flex flex-col gap-2">
2026-01-28 17:55:01 +08:00
{[1, 2, 3, 4, 5].map((num) => (
2026-01-27 17:26:30 +08:00
<a
2026-01-28 17:55:01 +08:00
key={num}
2026-01-27 17:26:30 +08:00
href="#"
className="text-[#9ca1af] hover:text-[#111827] transition-colors font-inter cursor-pointer"
style={{
fontSize: '14px',
lineHeight: '150%',
fontWeight: 400
}}
>
2026-01-28 17:55:01 +08:00
{t(`footer.product${num}`)}
2026-01-27 17:26:30 +08:00
</a>
))}
</div>
</div>
{/* Resources Column */}
<div className="flex flex-col gap-4 w-[178.67px]">
<h3
className="text-[#111827] font-inter"
style={{
fontSize: '16px',
lineHeight: '150%',
fontWeight: 700
}}
>
2026-01-28 17:55:01 +08:00
{t('footer.resources')}
2026-01-27 17:26:30 +08:00
</h3>
<div className="flex flex-col gap-2">
2026-01-28 17:55:01 +08:00
{[1, 2, 3, 4, 5].map((num) => (
2026-01-27 17:26:30 +08:00
<a
2026-01-28 17:55:01 +08:00
key={num}
2026-01-27 17:26:30 +08:00
href="#"
className="text-[#9ca1af] hover:text-[#111827] transition-colors font-inter cursor-pointer"
style={{
fontSize: '14px',
lineHeight: '150%',
fontWeight: 400
}}
>
2026-01-28 17:55:01 +08:00
{t(`footer.resource${num}`)}
2026-01-27 17:26:30 +08:00
</a>
))}
</div>
</div>
{/* Company Column */}
<div className="flex flex-col gap-4 w-[178.67px]">
<h3
className="text-[#111827] font-inter"
style={{
fontSize: '16px',
lineHeight: '150%',
fontWeight: 700
}}
>
2026-01-28 17:55:01 +08:00
{t('footer.company')}
2026-01-27 17:26:30 +08:00
</h3>
<div className="flex flex-col gap-2">
2026-01-28 17:55:01 +08:00
{[1, 2, 3, 4].map((num) => (
2026-01-27 17:26:30 +08:00
<a
2026-01-28 17:55:01 +08:00
key={num}
2026-01-27 17:26:30 +08:00
href="#"
className="text-[#9ca1af] hover:text-[#111827] transition-colors font-inter cursor-pointer"
style={{
fontSize: '14px',
lineHeight: '150%',
fontWeight: 400
}}
>
2026-01-28 17:55:01 +08:00
{t(`footer.company${num}`)}
2026-01-27 17:26:30 +08:00
</a>
))}
</div>
</div>
</div>
</div>
{/* Bottom Section - Copyright and Legal Links */}
2026-01-28 17:55:01 +08:00
<div className="w-full max-w-[1440px] border-t border-[#f3f4f6] px-6 py-8 flex flex-row items-center justify-between">
2026-01-27 17:26:30 +08:00
{/* Copyright */}
<div
className="text-[#9ca1af] font-inter"
style={{
fontSize: '14px',
lineHeight: '150%',
fontWeight: 400
}}
>
2026-01-28 17:55:01 +08:00
{t('footer.copyright')}
2026-01-27 17:26:30 +08:00
</div>
{/* Legal Links */}
<div className="flex flex-row gap-6">
<a
href="#"
className="text-[#9ca1af] hover:text-[#111827] transition-colors font-inter cursor-pointer"
style={{
fontSize: '14px',
lineHeight: '150%',
fontWeight: 400
}}
>
2026-01-28 17:55:01 +08:00
{t('footer.privacy')}
2026-01-27 17:26:30 +08:00
</a>
<a
href="#"
className="text-[#9ca1af] hover:text-[#111827] transition-colors font-inter cursor-pointer"
style={{
fontSize: '14px',
lineHeight: '150%',
fontWeight: 400
}}
>
2026-01-28 17:55:01 +08:00
{t('footer.terms')}
2026-01-27 17:26:30 +08:00
</a>
</div>
</div>
</footer>
);
}