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

71 lines
2.1 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-12-17 10:13:47 +00:00
2025-11-13 08:38:25 +00:00
return (
2025-12-17 10:13:47 +00:00
<Link href="/crushcoin">
<div
className="h-50 rounded-4xl px-6 mb-12 flex items-center justify-between"
style={{
background:
'linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(202, 153, 255, 0.2) 100%)',
}}
>
<div className="flex gap-3 items-center">
<Image
src="/images/home/icon-crush-free.png"
className="h-30 w-30 object-cover"
alt="header-bg"
width={120}
height={120}
/>
<div>
<div className="flex gap-5 txt-display-l">
Check-in{' '}
<Image
src="/images/home/left-star.png"
className="h-12 w-12 object-cover"
alt="header-bg"
width={48}
height={48}
/>
</div>
<div className="flex gap-5 items-center">
<span
className="txt-headline-s bg-clip-text text-transparent"
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',
}}
>
Daily Free crush coinsh
</span>
<IconButton iconfont="icon-arrow-right-border" size="small" variant="primary" />
</div>
2025-11-13 08:38:25 +00:00
</div>
2025-12-17 10:13:47 +00:00
</div>
{response?.lg && (
<Image
src="/images/home/banner-header.png"
alt="banner-header"
width={250}
height={250}
/>
)}
2025-11-13 08:38:25 +00:00
</div>
2025-12-17 10:13:47 +00:00
</Link>
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;