[update] Home Page 수정
This commit is contained in:
1 parent
8e1cc981fa
commit
bac6b9f910
27 files changed
+798
-393
No files matched your search
@@ -1,35 +1,64 @@
|
||||
import ArrowRightIcon from "@/assets/home/arrow-right.svg?react";
|
||||
import {
|
||||
CTA_BUTTON_LABEL,
|
||||
CTA_DESCRIPTION,
|
||||
CTA_FOOTNOTE,
|
||||
CTA_HEADLINE,
|
||||
CTA_URL_PLACEHOLDER,
|
||||
} from "@/features/home/constants/cta_contents";
|
||||
import { useAnalyze } from "@/features/home/hooks/useAnalyze";
|
||||
import { useInView } from "@/hooks/useInView";
|
||||
|
||||
export function CTASection() {
|
||||
return (
|
||||
<div className="relative flex flex-col items-center justify-center py-[96px] h-[512px] bg-[#0A1128] overflow-hidden">
|
||||
const { ref, inView } = useInView<HTMLElement>();
|
||||
const { url, setUrl, handleAnalyze } = useAnalyze();
|
||||
|
||||
{/* 배경 글로우 원 */}
|
||||
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] rounded-full bg-[rgba(173,70,255,0.20)] blur-[50px] pointer-events-none" />
|
||||
return (
|
||||
<section ref={ref} className="py-20 md:py-24 bg-navy-900 text-white px-6 relative overflow-hidden">
|
||||
<div className="absolute inset-0 -z-10 bg-[radial-gradient(ellipse_at_center,_var(--tw-gradient-stops))] from-navy-800 via-navy-900 to-navy-900 opacity-80" />
|
||||
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-violet-500/20 rounded-full blur-[100px] pointer-events-none" />
|
||||
|
||||
{/* 타이틀 */}
|
||||
<div className="relative flex flex-col items-center gap-4 pb-16">
|
||||
<div
|
||||
className="bg-gradient-to-r from-[#FFF3EB] via-[#E4CFFF] to-[#F5F9FF] bg-clip-text text-transparent text-[48px] font-bold leading-[48px]"
|
||||
style={{ fontFamily: "var(--font-family-display)" }}
|
||||
>
|
||||
Ready to Transform Your Marketing?
|
||||
</div>
|
||||
<div className="text-[#E9D4FF] text-[18px] leading-[29.25px] break-keep">
|
||||
URL 하나로 시작하는 완벽한 마케팅 자동화. 지금 바로 무료 진단을 받아보세요.
|
||||
</div>
|
||||
</div>
|
||||
<div className="max-w-4xl mx-auto text-center relative z-10">
|
||||
<h2
|
||||
className={`display-36 md:display-48 mb-4 leading-tight text-transparent bg-clip-text bg-gradient-to-r from-marketing-cream via-marketing-lilac to-marketing-ice break-keep ${
|
||||
inView ? "animate-fade-in-up" : "opacity-0"
|
||||
}`}
|
||||
>
|
||||
{CTA_HEADLINE}
|
||||
</h2>
|
||||
|
||||
{/* 버튼 */}
|
||||
<div className="relative flex flex-col gap-4 w-[448px]">
|
||||
<button className="flex items-center justify-center w-full h-[56px] rounded-full border border-white/20 bg-gradient-to-r from-white via-[#E4CFFF] to-[#F5F9FF] shadow text-[#0A1128]/60 text-base font-medium cursor-pointer">
|
||||
Enter Your URL
|
||||
</button>
|
||||
<button className="flex items-center justify-center w-full h-[56px] bg-gradient-to-r from-[#4F1DA1] to-[#021341] rounded-[999px] text-white text-base font-medium leading-6 cursor-pointer">
|
||||
Analyze ➜
|
||||
</button>
|
||||
<div className="text-[#E9D4FF]/80 text-center text-sm leading-5">
|
||||
네이버 블로그, 플레이스, 소셜미디어 종합 분석 리포트 받아보기
|
||||
</div>
|
||||
</div>
|
||||
<p
|
||||
className={`body-18-md-20 font-light text-lavender-200 mb-10 max-w-2xl mx-auto break-keep ${
|
||||
inView ? "animate-fade-in-up animation-delay-100" : "opacity-0"
|
||||
}`}
|
||||
>
|
||||
{CTA_DESCRIPTION}
|
||||
</p>
|
||||
|
||||
<div
|
||||
className={`flex flex-col items-center justify-center gap-4 max-w-md mx-auto ${
|
||||
inView ? "animate-fade-in-up animation-delay-200" : "opacity-0"
|
||||
}`}
|
||||
>
|
||||
<input
|
||||
type="url"
|
||||
placeholder={CTA_URL_PLACEHOLDER}
|
||||
value={url}
|
||||
onChange={(e) => setUrl(e.target.value)}
|
||||
onKeyDown={(e) => e.key === "Enter" && handleAnalyze()}
|
||||
className="w-full px-8 py-4 body-16-medium bg-gradient-to-r from-marketing-cream via-marketing-lilac to-marketing-ice border border-white/20 rounded-full focus:outline-none focus:ring-2 focus:ring-white/50 shadow-sm text-center text-navy-900 placeholder:text-navy-900/60 break-keep"
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
onClick={handleAnalyze}
|
||||
className="w-full px-10 py-4 body-18 font-medium text-white rounded-full transition-all shadow-xl hover:shadow-2xl flex items-center justify-center gap-2 group cursor-pointer bg-gradient-to-r from-violet-700 to-navy-950 hover:from-violet-hover hover:to-violet-hover break-keep"
|
||||
>
|
||||
{CTA_BUTTON_LABEL}
|
||||
<ArrowRightIcon aria-hidden="true" className="w-5 h-5 group-hover:translate-x-1 transition-transform" />
|
||||
</button>
|
||||
<p className="label-12 text-lavender-200/80 mt-2 break-keep">{CTA_FOOTNOTE}</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user