[feat] landing: 솔루션 랜딩페이지 신규 — 히어로·데모·ROI 시뮬레이터 섹션, docker 서비스(:3100) 추가
This commit is contained in:
1 parent
25e13d7b01
commit
03c22f9474
43 files changed
+5172
No files matched your search
@@ -0,0 +1,49 @@
|
||||
import * as React from "react"
|
||||
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
const sectionBg = {
|
||||
white: "bg-white",
|
||||
surface: "bg-surface",
|
||||
dark: "bg-ink text-white",
|
||||
}
|
||||
|
||||
const sectionWidth = {
|
||||
sm: "max-w-3xl",
|
||||
md: "max-w-4xl",
|
||||
lg: "max-w-5xl",
|
||||
}
|
||||
|
||||
type SectionProps = React.HTMLAttributes<HTMLElement> & {
|
||||
bg?: keyof typeof sectionBg
|
||||
/** 내부 컨테이너 최대폭 */
|
||||
width?: keyof typeof sectionWidth
|
||||
/** 상단 구분선. 하단까지 필요하면 className 에 border-b border-line 추가 */
|
||||
bordered?: boolean
|
||||
/** 컨테이너 밖(섹션 전체 기준)에 까는 장식 요소 — 배경 블롭 등 */
|
||||
decor?: React.ReactNode
|
||||
containerClassName?: string
|
||||
}
|
||||
|
||||
function Section({
|
||||
bg = "white",
|
||||
width = "md",
|
||||
bordered = false,
|
||||
decor,
|
||||
className,
|
||||
containerClassName,
|
||||
children,
|
||||
...props
|
||||
}: SectionProps) {
|
||||
return (
|
||||
<section
|
||||
className={cn("py-36 md:py-44", sectionBg[bg], bordered && "border-t border-line", decor && "relative overflow-hidden", className)}
|
||||
{...props}
|
||||
>
|
||||
{decor}
|
||||
<div className={cn("mx-auto px-6", sectionWidth[width], decor && "relative z-10", containerClassName)}>{children}</div>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
|
||||
export { Section }
|
||||
Reference in new issue
Block a user