Files
next-web/src/components/Tagline.tsx
T

45 lines
1.6 KiB
TypeScript
Raw Normal View History

2025-07-03 13:35:22 -04:00
"use client";
2025-07-08 14:57:06 -04:00
import { textColor, bgColor } from '@/interfaces/common'
2025-07-03 13:35:22 -04:00
interface TaglineProps {
bgColor: bgColor;
textColor: textColor;
textTop: string;
textBottom: string;
}
const Tagline: React.FC<TaglineProps> = (
2025-07-10 11:52:38 -04:00
{
2025-07-03 13:35:22 -04:00
bgColor,
textColor,
textTop,
textBottom
}
) => {
return (
2025-07-10 11:52:38 -04:00
<>
<div className='h-[calc(100vh-85px)] lg:min-h-[640px] xl:min-h-[786px] 2xl:min-h-[1080px] flex'>
<div className="absolute top-0 left-0 w-full aspect-16/9 bg-cover bg-center bg-[url('/images/bg.jpg')] bg-britton-medium bg-blend-soft-light bg-position-[center_-4.5rem] rounded-b-3xl">
<div className="relative w-full h-full overflow-hidden">
2025-07-10 13:29:33 -04:00
<div className="absolute flex flex-col w-100 lg:w-150 xl:w-190 bottom-2/5 left-7/20 text-center text-britton-dark text-4xl lg:text-5xl xl:text-7xl">
2025-07-10 11:52:38 -04:00
<div className="flex justify-start">
2025-07-10 13:29:33 -04:00
<div className="w-5/6 lg:w-4/5 relative bg-britton-light rounded-t-3xl rounded-l-3xl rounded-out-br-3xl py-2 lg:py-3 px-4">
2025-07-10 11:52:38 -04:00
{textTop}
</div>
</div>
<div className="flex justify-end">
2025-07-10 13:29:33 -04:00
<div className="w-5/6 lg:w-4/5 relative bg-britton-light rounded-b-3xl rounded-r-3xl rounded-out-tl-3xl py-2 lg:py-3 px-4">
2025-07-10 11:52:38 -04:00
{textBottom}
</div>
</div>
</div>
</div>
</div>
2025-07-08 14:57:06 -04:00
</div>
2025-07-10 11:52:38 -04:00
</>
2025-07-03 13:35:22 -04:00
);
};
export default Tagline;