[feat] plan 페이지 생성
This commit is contained in:
1 parent
603ea4eb35
commit
92fadede97
59 files changed
+2687
-49
No files matched your search
@@ -6,6 +6,8 @@ export type PageSectionProps = {
|
||||
subtitle?: string;
|
||||
dark?: boolean;
|
||||
className?: string;
|
||||
/** false면 섹션 입장용 `animate-fade-in-up` 미적용 (DEMO에 없는 모션을 쓰지 않을 때) */
|
||||
animateEnter?: boolean;
|
||||
children: ReactNode;
|
||||
};
|
||||
|
||||
@@ -15,13 +17,15 @@ export function PageSection({
|
||||
subtitle,
|
||||
dark = false,
|
||||
className = "",
|
||||
animateEnter = true,
|
||||
children,
|
||||
}: PageSectionProps) {
|
||||
return (
|
||||
<section
|
||||
id={id}
|
||||
className={[
|
||||
"py-16 md:py-20 px-6 scroll-mt-36 animate-fade-in-up",
|
||||
"py-16 md:py-20 px-6 scroll-mt-36",
|
||||
animateEnter ? "animate-fade-in-up" : "",
|
||||
dark ? "bg-navy-900 text-white relative overflow-hidden" : "bg-white",
|
||||
className,
|
||||
]
|
||||
@@ -34,19 +38,30 @@ export function PageSection({
|
||||
aria-hidden
|
||||
/>
|
||||
) : null}
|
||||
<div className="relative max-w-7xl mx-auto">
|
||||
<div
|
||||
className={[
|
||||
"relative max-w-7xl mx-auto",
|
||||
dark ? "text-white" : "text-neutral-80",
|
||||
].join(" ")}
|
||||
>
|
||||
<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"
|
||||
: "font-serif text-3xl md:display-36 font-bold mb-3 text-transparent text-gradient"
|
||||
}
|
||||
>
|
||||
{title}
|
||||
</h2>
|
||||
{subtitle ? (
|
||||
<p className={dark ? "body-18 text-lavender-200 break-keep" : "body-18 text-neutral-70 break-keep"}>
|
||||
<p
|
||||
className={
|
||||
dark
|
||||
? "body-18 text-lavender-200 break-keep solid-text-paint"
|
||||
: "body-18 text-neutral-70 break-keep solid-text-paint"
|
||||
}
|
||||
>
|
||||
{subtitle}
|
||||
</p>
|
||||
) : null}
|
||||
|
||||
Reference in new issue
Block a user