Files
pse.dev/components/banner.tsx
Kalidou Diagne 926cf9e5dd feat: research page (#316)
* feat: research page
2025-04-09 06:35:30 +01:00

36 lines
915 B
TypeScript

import { ReactNode } from "react"
import { AppContent } from "./ui/app-content"
type BannerProps = {
title: ReactNode
subtitle?: string
children?: ReactNode
}
const Banner = ({ title, subtitle, children }: BannerProps) => {
return (
<section className="relative bg-white text-center">
<div className="py-16">
<AppContent className="flex flex-col gap-6">
<div className="flex flex-col items-center text-center">
{typeof title === "string" ? (
<h6 className="py-4 font-sans text-base font-bold uppercase tracking-[4px] text-tuatara-950">
{title}
</h6>
) : (
title
)}
{subtitle && <p className="md:max-w-[600px]">{subtitle}</p>}
</div>
{children}
</AppContent>
</div>
</section>
)
}
Banner.displayName = "Banner"
export { Banner }