mirror of
https://github.com/privacy-scaling-explorations/pse.dev.git
synced 2026-01-14 00:28:28 -05:00
47 lines
1.2 KiB
TypeScript
47 lines
1.2 KiB
TypeScript
import { ReactNode } from "react"
|
|
|
|
import { AppContent } from "./ui/app-content"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
type BannerProps = {
|
|
title: ReactNode
|
|
subtitle?: string
|
|
children?: ReactNode
|
|
className?: string
|
|
}
|
|
|
|
const Banner = ({ title, subtitle, children, className }: BannerProps) => {
|
|
return (
|
|
<section
|
|
className={cn(
|
|
"relative bg-cover-gradient dark:bg-anakiwa-975 text-center dark:bg-none",
|
|
className
|
|
)}
|
|
>
|
|
<div className="py-16">
|
|
<AppContent className="flex flex-col gap-8">
|
|
<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 dark:text-tuatara-100">
|
|
{title}
|
|
</h6>
|
|
) : (
|
|
title
|
|
)}
|
|
{subtitle && (
|
|
<span className="md:max-w-[600px] text-base lg:text-xl font-normal font-sans text-tuatara-950 dark:text-tuatara-100">
|
|
{subtitle}
|
|
</span>
|
|
)}
|
|
</div>
|
|
{children}
|
|
</AppContent>
|
|
</div>
|
|
</section>
|
|
)
|
|
}
|
|
|
|
Banner.displayName = "Banner"
|
|
|
|
export { Banner }
|