crush-level-web/src/app/(main)/home/components/Header.tsx

70 lines
2.2 KiB
TypeScript
Raw Normal View History

2025-12-11 11:31:56 +00:00
'use client';
2025-11-13 08:38:25 +00:00
2025-12-11 11:31:56 +00:00
import Image from 'next/image';
import { IconButton } from '@/components/ui/button';
import Link from 'next/link';
import React from 'react';
import { useMedia } from '@/hooks/tools';
2025-12-09 09:13:46 +00:00
const Header = React.memo(() => {
2025-12-11 11:31:56 +00:00
const response = useMedia();
2025-11-13 08:38:25 +00:00
return (
2025-11-28 06:31:36 +00:00
<div
2025-12-11 11:31:56 +00:00
className="flex items-center justify-center"
2025-11-28 06:31:36 +00:00
style={{
backgroundImage: 'url(/images/home/bg-star.png)',
backgroundSize: 'contain',
backgroundPosition: 'center',
}}
2025-11-13 08:38:25 +00:00
>
2025-12-11 11:31:56 +00:00
<div className="flex-1 pt-12 pb-8 text-center">
2025-12-09 09:13:46 +00:00
<Image
src="/images/home/left-star.png"
className="h-12 w-12 object-cover"
alt="header-bg"
width={48}
height={48}
/>
<h1 className="txt-headline-m mt-3">Spicyxx.ai</h1>
<h1
className="txt-headline-m mt-3"
style={{
background:
'linear-gradient(109.2deg, rgba(211, 123, 235, 1) 37.08%, rgba(147, 123, 235, 1) 128.91%)',
WebkitBackgroundClip: 'text',
WebkitTextFillColor: 'transparent',
backgroundClip: 'text',
}}
>
A Different World
2025-11-13 08:38:25 +00:00
</h1>
<Link href="/crushcoin">
2025-12-09 09:13:46 +00:00
<div
className="border-outline-normal max-w-100 mt-8 relative flex h-12 items-center justify-between rounded-full border border-solid pr-2 pl-[59px]"
style={{
background:
'linear-gradient(90deg, rgba(168, 70, 201, 1) 0%, rgba(255, 183, 66, 1) 12.97%, rgba(80, 56, 255, 0) 100%)',
backgroundRepeat: 'no-repeat',
}}
>
<span className="txt-label-l whitespace-nowrap">Daily Free CrushCoins</span>
<IconButton iconfont="icon-arrow-right-border" size="small" variant="primary" />
<Image
src="/images/home/icon-crush-free.png"
className="absolute -top-5 left-1"
alt="icon-crush-free"
width={60}
height={60}
/>
2025-11-13 08:38:25 +00:00
</div>
</Link>
</div>
2025-12-11 11:31:56 +00:00
{response?.sm && (
<Image src="/images/home/banner-header.png" alt="banner-header" width={400} height={400} />
)}
2025-11-13 08:38:25 +00:00
</div>
2025-12-11 11:31:56 +00:00
);
});
2025-11-28 06:31:36 +00:00
2025-12-11 11:31:56 +00:00
export default Header;