web-humas-fe/components/landing/BannerHumas.tsx

22 lines
724 B
TypeScript
Raw Normal View History

2024-12-12 09:48:17 +00:00
import { useTranslations } from "next-intl";
2024-11-05 06:15:40 +00:00
import React from "react";
export default function BannerHumas() {
2024-12-12 09:48:17 +00:00
const t = useTranslations("Banner");
2024-11-05 06:15:40 +00:00
return (
2025-01-14 15:30:13 +00:00
<div className="h-fit relative text-white lg:mt-[-130px]">
2024-11-05 06:15:40 +00:00
<img
src="headerbanner1.png"
alt="humasbanner"
2025-01-14 15:30:13 +00:00
className="w-full relative h-[33vh] lg:h-auto object-cover"
2024-11-05 06:15:40 +00:00
/>
2025-01-14 15:30:13 +00:00
<div className="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-center w-full lg:w-[75%]">
2024-12-16 11:31:59 +00:00
<p className="text-sm lg:text-[42px] lg:leading-10 font-bold pb-1 md:pb-5">
2024-12-12 09:48:17 +00:00
{t("jumbotron")}
2024-11-05 06:15:40 +00:00
</p>
2024-12-12 09:48:17 +00:00
<p className="text-xs md:text-medium">{`"${t("phrase")}"`}</p>
2024-11-05 06:15:40 +00:00
</div>
</div>
);
}