turkmentv_front/components/lottery/LotteryHeader.tsx

48 lines
1.2 KiB
TypeScript
Raw Permalink Normal View History

2025-02-18 10:47:56 +00:00
import Image from "next/image";
import InfoDateAllert from "../common/InfoDateAllert";
2024-12-23 19:32:36 +00:00
interface LotteryHeaderProps {
title: string;
description: string;
image: string;
smsCode: string;
startDate: string;
2024-12-23 19:32:36 +00:00
}
2025-02-18 10:47:56 +00:00
const LotteryHeader = ({
title,
description,
image,
smsCode,
startDate,
}: LotteryHeaderProps) => {
2024-12-23 19:32:36 +00:00
return (
<section className="container">
<div className="flex flex-col md:gap-[32px] gap-[24px]">
<div className="flex flex-col gap-[24px] items-center">
<h1 className="sm:font-display-1-regular text-[32px] leading-[40px] text-center">
{title}
</h1>
2025-02-18 10:47:56 +00:00
<p className="text-center text-textLarge leading-textLarge">
{description}
</p>
<InfoDateAllert date={startDate} text="Senesi:" />
2024-12-23 19:32:36 +00:00
</div>
{image && (
<div className="md:mb-8 sm:mb-[40px] mb-[16px]">
<Image
src={image}
width={1416}
height={177}
alt="banner"
2025-02-18 10:47:56 +00:00
className="rounded-[12px] h-[177px] object-cover"
2024-12-23 19:32:36 +00:00
/>
</div>
)}
</div>
</section>
);
};
export default LotteryHeader;