[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,40 @@
|
||||
import * as React from "react"
|
||||
import { cva, type VariantProps } from "class-variance-authority"
|
||||
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
// CTA 버튼 토큰. 랜딩의 CTA 는 전부 앵커 스크롤이라 href 를 주면 <a> 로 렌더한다
|
||||
// (SSG 특성상 하이드레이션 전에도 동작).
|
||||
const buttonVariants = cva(
|
||||
"inline-flex items-center justify-center gap-2 transition-all cursor-pointer disabled:opacity-50",
|
||||
{
|
||||
variants: {
|
||||
variant: {
|
||||
primary: "bg-primary hover:bg-primary-deep text-white",
|
||||
secondary: "bg-fill hover:bg-fill-hover text-ink-soft hover:text-ink",
|
||||
// 밝은 배경 위 반투명 보조 버튼 (글라스 히어로)
|
||||
glass: "bg-white/70 hover:bg-white text-ink-soft hover:text-ink border border-white shadow-sm",
|
||||
},
|
||||
size: {
|
||||
pill: "px-4.5 py-2.5 text-sm font-semibold rounded-full",
|
||||
md: "px-6 py-2.5 text-xs font-bold rounded-full",
|
||||
lg: "px-8 py-4.5 text-base font-bold rounded-[20px]",
|
||||
xl: "px-10 py-5 text-base font-bold rounded-[22px]",
|
||||
},
|
||||
},
|
||||
defaultVariants: { variant: "primary", size: "lg" },
|
||||
},
|
||||
)
|
||||
|
||||
type ButtonProps = VariantProps<typeof buttonVariants> &
|
||||
React.ButtonHTMLAttributes<HTMLButtonElement> &
|
||||
React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
||||
href?: string
|
||||
}
|
||||
|
||||
function Button({ className, variant, size, href, ...props }: ButtonProps) {
|
||||
const Comp: React.ElementType = href ? "a" : "button"
|
||||
return <Comp href={href} className={cn(buttonVariants({ variant, size }), className)} {...props} />
|
||||
}
|
||||
|
||||
export { Button, buttonVariants }
|
||||
Reference in new issue
Block a user