mirror of
https://github.com/movie-web/movie-web.git
synced 2025-02-06 11:43:27 +01:00
![mrjvs](/assets/img/avatar_default.png)
Co-authored-by: William Oldham <github@binaryoverload.co.uk> Co-authored-by: Jip Frijlink <JipFr@users.noreply.github.com>
24 lines
704 B
TypeScript
24 lines
704 B
TypeScript
import { BrandPill } from "@/components/layout/BrandPill";
|
|
import { BlurEllipsis } from "@/pages/layouts/SubPageLayout";
|
|
|
|
export function LargeTextPart(props: {
|
|
iconSlot?: React.ReactNode;
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<div className="flex flex-col justify-center items-center h-screen text-center font-medium">
|
|
{/* Overlayed elements */}
|
|
<BlurEllipsis />
|
|
<div className="right-[calc(2rem+env(safe-area-inset-right))] top-6 absolute">
|
|
<BrandPill />
|
|
</div>
|
|
|
|
{/* Content */}
|
|
{props.iconSlot ? props.iconSlot : null}
|
|
<div className="max-w-[19rem] mt-3 mb-12 text-type-secondary">
|
|
{props.children}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|