카카오 로그인 및 비로그인 플로우 적용 .

This commit is contained in:
HyeongBaeYang committed 2026-01-21 16:09:29 +09:00
1 parent 2acf4e2cb6
commit 662b6b80bc
15 files changed
+1393 -335

No files matched your search

+19 -4
View File
@@ -50,6 +50,7 @@ const orbConfigs: OrbConfig[] = [
const HeroSection: React.FC<HeroSectionProps> = ({ onAnalyze, onNext, error: externalError, scrollProgress = 0 }) => {
const [url, setUrl] = useState('');
const [localError, setLocalError] = useState('');
const [isFocused, setIsFocused] = useState(false);
const orbRefs = useRef<(HTMLDivElement | null)[]>([]);
const animationRefs = useRef<number[]>([]);
@@ -174,8 +175,8 @@ const HeroSection: React.FC<HeroSectionProps> = ({ onAnalyze, onNext, error: ext
<div className="hero-content">
{/* Logo Image */}
<img
src="/assets/images/castad-logo-large.svg"
alt="CASTAD"
src="/assets/images/ado2-logo.svg"
alt="ADO2"
className="hero-logo"
/>
@@ -183,7 +184,7 @@ const HeroSection: React.FC<HeroSectionProps> = ({ onAnalyze, onNext, error: ext
{/* Input Form */}
<div className="hero-form">
<span className="hero-input-label">URL 입력</span>
<div className="hero-input-wrapper">
<div className={`hero-input-wrapper ${isFocused ? 'focused' : ''} ${error ? 'error' : ''} ${url && !isFocused ? 'filled' : ''}`}>
<input
type="text"
value={url}
@@ -191,9 +192,23 @@ const HeroSection: React.FC<HeroSectionProps> = ({ onAnalyze, onNext, error: ext
setUrl(e.target.value);
if (localError) setLocalError('');
}}
onFocus={() => setIsFocused(true)}
onBlur={() => setIsFocused(false)}
placeholder="https://www.castad.com"
className={`hero-input ${error ? 'error' : ''}`}
className={`hero-input ${url ? 'has-value' : ''}`}
/>
{url && (
<button
type="button"
className="hero-input-clear"
onClick={() => {
setUrl('');
setLocalError('');
}}
>
<img src="/assets/images/input-clear-icon.svg" alt="Clear" />
</button>
)}
</div>
<span className="hero-input-hint">URL에서 가져온 정보로 영상이 자동 생성됩니다.</span>
{error && (