[feat] report 페이지 추가
This commit is contained in:
1 parent
af58b96aff
commit
675cfcab8d
126 files changed
+3642
-1
No files matched your search
@@ -0,0 +1,58 @@
|
||||
import type { ReactNode } from "react";
|
||||
|
||||
export type PageSectionProps = {
|
||||
id?: string;
|
||||
title: string;
|
||||
subtitle?: string;
|
||||
dark?: boolean;
|
||||
className?: string;
|
||||
children: ReactNode;
|
||||
};
|
||||
|
||||
export function PageSection({
|
||||
id,
|
||||
title,
|
||||
subtitle,
|
||||
dark = false,
|
||||
className = "",
|
||||
children,
|
||||
}: PageSectionProps) {
|
||||
return (
|
||||
<section
|
||||
id={id}
|
||||
className={[
|
||||
"py-16 md:py-20 px-6 scroll-mt-36 animate-fade-in-up",
|
||||
dark ? "bg-navy-900 text-white relative overflow-hidden" : "bg-white",
|
||||
className,
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(" ")}
|
||||
>
|
||||
{dark ? (
|
||||
<div
|
||||
className="absolute inset-0 bg-[radial-gradient(ellipse_at_top_right,rgba(108,92,231,0.15),transparent_60%)] pointer-events-none"
|
||||
aria-hidden
|
||||
/>
|
||||
) : null}
|
||||
<div className="relative max-w-7xl mx-auto">
|
||||
<header className="mb-10">
|
||||
<h2
|
||||
className={
|
||||
dark
|
||||
? "font-serif text-3xl md:display-36 font-bold mb-3 bg-gradient-to-r from-lavender-200 to-marketing-ice bg-clip-text text-transparent"
|
||||
: "font-serif text-3xl md:display-36 font-bold mb-3 text-gradient"
|
||||
}
|
||||
>
|
||||
{title}
|
||||
</h2>
|
||||
{subtitle ? (
|
||||
<p className={dark ? "body-18 text-lavender-200 break-keep" : "body-18 text-neutral-70 break-keep"}>
|
||||
{subtitle}
|
||||
</p>
|
||||
) : null}
|
||||
</header>
|
||||
{children}
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user