css 정리 .

This commit is contained in:
HyeongBaeYang committed 2025-12-24 13:09:05 +09:00
1 parent 97577b6ba3
commit ecbd81d091
16 files changed
+3778 -485

No files matched your search

+19 -30
View File
@@ -10,49 +10,38 @@ const DisplaySection: React.FC<DisplaySectionProps> = ({ onStartClick }) => {
const videoIds = ['dM8_d6Aud68', 'bb8nKmKcT0c', 'dM8_d6Aud68'];
return (
<div className="w-full h-full flex flex-col bg-[#121a1d] text-white relative overflow-hidden">
<div className="display-section">
<Header />
<div className="content-safe-area pt-24 sm:pt-28">
<div className="content-safe-area" style={{ paddingTop: '7rem' }}>
{/* Main visual frames container */}
<div className="flex flex-row justify-center items-center gap-2 sm:gap-6 md:gap-10 lg:gap-14 mb-8 md:mb-16 w-full max-w-6xl">
<div className="video-frames">
{videoIds.map((videoId, index) => (
<div
key={`${videoId}-${index}`}
className={`
${index === 2 ? 'hidden md:flex' : 'flex'}
w-[135px] sm:w-[190px] md:w-[230px] lg:w-[280px]
aspect-[9/16] rounded-[24px] sm:rounded-[40px] md:rounded-[48px]
bg-black border border-white border-opacity-10
overflow-hidden relative shadow-[0_30px_80px_rgba(0,0,0,0.9)]
items-center justify-center transition-all
`}
className={`phone-frame ${index === 2 ? 'hidden-mobile' : ''}`}
>
{/* YouTube Embed Container - 9:16 ratio */}
<div className="absolute inset-0 w-full h-full pointer-events-none overflow-hidden">
<iframe
className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[180%] h-[100%] object-cover"
src={`https://www.youtube.com/embed/${videoId}?autoplay=1&mute=1&loop=1&playlist=${videoId}&controls=0&showinfo=0&rel=0&modestbranding=1&iv_load_policy=3&disablekb=1&playsinline=1`}
title="YouTube video player"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowFullScreen
></iframe>
</div>
{/* YouTube Embed Container */}
<div className="phone-video-container">
<iframe
src={`https://www.youtube.com/embed/${videoId}?autoplay=1&mute=1&loop=1&playlist=${videoId}&controls=0&showinfo=0&rel=0&modestbranding=1&iv_load_policy=3&disablekb=1&playsinline=1`}
title="YouTube video player"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowFullScreen
></iframe>
</div>
{/* Device Bezel/Frame */}
<div className="absolute inset-0 border-[6px] sm:border-[10px] border-[#20282b] rounded-[24px] sm:rounded-[40px] md:rounded-[48px] pointer-events-none z-20"></div>
{/* Notch */}
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-1/4 h-3 sm:h-5 bg-[#20282b] rounded-b-2xl z-30 opacity-80"></div>
{/* Device Bezel/Frame */}
<div className="phone-bezel"></div>
{/* Notch */}
<div className="phone-notch"></div>
</div>
))}
</div>
{/* Action Button */}
<button
onClick={onStartClick}
className="py-3 px-14 sm:py-3.5 sm:px-16 rounded-full bg-[#a682ff] hover:bg-[#9570f0] transition-all transform active:scale-95 text-white font-bold text-xs sm:text-base tracking-wide shadow-xl shadow-[#a682ff44] mb-8"
>
<button onClick={onStartClick} className="display-button">
시작하기
</button>
</div>
+20 -28
View File
@@ -40,20 +40,18 @@ const HeroSection: React.FC<HeroSectionProps> = ({ onAnalyze, onNext, error: ext
};
return (
<div className="w-full h-full flex flex-col items-center justify-center bg-[#121a1d] text-white px-4 relative">
<div className="hero-section">
<div className="content-safe-area">
{/* Title */}
<h1 className="font-serif-logo italic text-6xl sm:text-7xl md:text-8xl lg:text-9xl font-bold mb-4 tracking-tight text-center leading-none">
CASTAD
</h1>
<h1 className="hero-title">CASTAD</h1>
{/* Subtitle */}
<p className="text-sm sm:text-base md:text-xl font-light mb-12 opacity-80 text-center max-w-lg">
<p className="hero-subtitle">
Marketing Automation for Location Based Business
</p>
{/* Input Form */}
<div className="w-full max-w-sm flex flex-col gap-3">
<div className="hero-form">
<input
type="text"
value={url}
@@ -62,36 +60,30 @@ const HeroSection: React.FC<HeroSectionProps> = ({ onAnalyze, onNext, error: ext
if (localError) setLocalError('');
}}
placeholder="URL 입력"
className={`w-full py-3 sm:py-4 px-6 rounded-full bg-white text-gray-800 text-center focus:outline-none placeholder:text-gray-400 font-medium text-sm sm:text-base ${error ? 'ring-2 ring-red-500' : ''}`}
className={`hero-input ${error ? 'error' : ''}`}
/>
{error && (
<p className="text-red-400 text-xs text-center">{error}</p>
<p className="hero-error">{error}</p>
)}
<button
onClick={handleStart}
className="w-full py-3 sm:py-4 px-6 rounded-full bg-[#a682ff] hover:bg-[#9570f0] transition-all transform active:scale-95 text-white font-bold text-sm sm:text-base shadow-lg shadow-[#a682ff33]"
>
<button onClick={handleStart} className="hero-button">
시작하기
</button>
</div>
</div>
{/* Footer Indicator - Now a button */}
<button
onClick={onNext}
className="absolute bottom-6 sm:bottom-10 flex flex-col items-center gap-2 opacity-40 hover:opacity-100 transition-opacity cursor-pointer animate-bounce"
>
<span className="text-[10px] sm:text-xs font-light">더 알아보기</span>
<div className="w-8 h-8 sm:w-10 sm:h-10 border border-white rounded-full flex items-center justify-center">
<svg
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
{/* Footer Indicator */}
<button onClick={onNext} className="scroll-indicator">
<span className="scroll-indicator-text">더 알아보기</span>
<div className="scroll-indicator-icon">
<svg
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<path d="M7 13l5 5 5-5M7 6l5 5 5-5" />
+16 -34
View File
@@ -27,55 +27,37 @@ const WelcomeSection: React.FC<WelcomeSectionProps> = ({ onStartClick, onNext })
];
return (
<div className="w-full h-full flex flex-col bg-[#121a1d] text-white overflow-hidden">
<div className="welcome-section">
<Header />
<div className="content-safe-area pt-20 md:pt-24">
<div className="mb-6 md:mb-10 text-center">
<div className="inline-block mb-2 text-[#a682ff]">
<div className="content-safe-area" style={{ paddingTop: '5rem' }}>
<div className="welcome-header">
<div className="welcome-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
<path d="M12 2l2.4 7.2L22 12l-7.6 2.4L12 22l-2.4-7.2L2 12l7.6-2.4z" />
</svg>
</div>
<h2 className="text-xl sm:text-2xl md:text-3xl lg:text-4xl font-bold mb-2">
CASTAD에 오신 것을 환영합니다.
</h2>
<p className="text-gray-400 text-xs sm:text-sm md:text-base">
분석, 제작, 배포까지 콘텐츠 마케팅 자동화
</p>
<h2 className="welcome-title">CASTAD에 오신 것을 환영합니다.</h2>
<p className="welcome-subtitle">분석, 제작, 배포까지 콘텐츠 마케팅 자동화</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-3 sm:gap-4 md:gap-6 w-full max-w-5xl mb-8 overflow-y-auto md:overflow-visible pr-1">
<div className="feature-grid">
{features.map((feature) => (
<div
key={feature.id}
className="relative bg-[#1c2a2e] rounded-2xl md:rounded-3xl p-4 sm:p-6 md:p-8 flex flex-row md:flex-col items-center md:items-center text-left md:text-center transition-all border border-transparent"
>
<div className="w-6 h-6 sm:w-8 sm:h-8 shrink-0 rounded-full border border-gray-600 flex items-center justify-center mr-4 md:mr-0 md:mb-6 text-[10px] sm:text-xs font-bold text-gray-400">
{feature.id}
</div>
<div className="flex flex-col md:items-center">
<h3 className="text-sm sm:text-base md:text-lg font-bold mb-1 md:mb-4">{feature.title}</h3>
<p className="text-gray-400 text-[10px] sm:text-xs md:text-sm leading-tight md:leading-relaxed">
{feature.description}
</p>
<div key={feature.id} className="feature-item">
<div className="feature-number">{feature.id}</div>
<div className="feature-content">
<h3 className="feature-title">{feature.title}</h3>
<p className="feature-description">{feature.description}</p>
</div>
</div>
))}
</div>
<div className="flex gap-4">
<button
onClick={onStartClick}
className="py-3 px-8 rounded-full border border-gray-700 hover:bg-white/5 transition-all text-white font-bold text-xs sm:text-sm mb-4"
>
<div className="welcome-buttons">
<button onClick={onStartClick} className="btn-ghost">
처음으로
</button>
<button
onClick={onNext}
className="py-3 px-10 md:px-14 rounded-full bg-[#a682ff] hover:bg-[#9570f0] transition-all transform active:scale-95 text-white font-bold text-xs sm:text-sm shadow-lg shadow-[#a682ff33] mb-4"
>
<button onClick={onNext} className="btn-cta">
시작하기
</button>
</div>