castad front 작업
This commit is contained in:
1 parent
aa39cde4c6
commit
a42562279e
30 files changed
+4332
No files matched your search
Executable
+63
@@ -0,0 +1,63 @@
|
||||
|
||||
import React from 'react';
|
||||
import Header from '../../components/Header';
|
||||
|
||||
interface DisplaySectionProps {
|
||||
onStartClick?: () => void;
|
||||
}
|
||||
|
||||
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">
|
||||
<Header />
|
||||
|
||||
<div className="content-safe-area pt-24 sm:pt-28">
|
||||
{/* 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">
|
||||
{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
|
||||
`}
|
||||
>
|
||||
{/* 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>
|
||||
|
||||
{/* 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>
|
||||
</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>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default DisplaySection;
|
||||
Executable
+105
@@ -0,0 +1,105 @@
|
||||
|
||||
import React, { useState } from 'react';
|
||||
|
||||
interface HeroSectionProps {
|
||||
onAnalyze?: (url: string) => void;
|
||||
onNext?: () => void;
|
||||
error?: string | null;
|
||||
}
|
||||
|
||||
const isValidUrl = (string: string): boolean => {
|
||||
try {
|
||||
const url = new URL(string);
|
||||
return url.protocol === 'http:' || url.protocol === 'https:';
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
const HeroSection: React.FC<HeroSectionProps> = ({ onAnalyze, onNext, error: externalError }) => {
|
||||
const [url, setUrl] = useState('');
|
||||
const [localError, setLocalError] = useState('');
|
||||
|
||||
const error = externalError || localError;
|
||||
|
||||
const handleStart = () => {
|
||||
if (!url.trim()) {
|
||||
setLocalError('URL을 입력해주세요.');
|
||||
return;
|
||||
}
|
||||
|
||||
if (!isValidUrl(url.trim())) {
|
||||
setLocalError('올바른 URL 형식이 아닙니다. (예: https://example.com)');
|
||||
return;
|
||||
}
|
||||
|
||||
setLocalError('');
|
||||
if (onAnalyze) {
|
||||
onAnalyze(url);
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="w-full h-full flex flex-col items-center justify-center bg-[#121a1d] text-white px-4 relative">
|
||||
<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>
|
||||
|
||||
{/* Subtitle */}
|
||||
<p className="text-sm sm:text-base md:text-xl font-light mb-12 opacity-80 text-center max-w-lg">
|
||||
Marketing Automation for Location Based Business
|
||||
</p>
|
||||
|
||||
{/* Input Form */}
|
||||
<div className="w-full max-w-sm flex flex-col gap-3">
|
||||
<input
|
||||
type="text"
|
||||
value={url}
|
||||
onChange={(e) => {
|
||||
setUrl(e.target.value);
|
||||
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' : ''}`}
|
||||
/>
|
||||
{error && (
|
||||
<p className="text-red-400 text-xs text-center">{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>
|
||||
</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"
|
||||
strokeLinejoin="round"
|
||||
>
|
||||
<path d="M7 13l5 5 5-5M7 6l5 5 5-5" />
|
||||
</svg>
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default HeroSection;
|
||||
Executable
+87
@@ -0,0 +1,87 @@
|
||||
|
||||
import React from 'react';
|
||||
import Header from '../../components/Header';
|
||||
|
||||
interface WelcomeSectionProps {
|
||||
onStartClick?: () => void;
|
||||
onNext?: () => void;
|
||||
}
|
||||
|
||||
const WelcomeSection: React.FC<WelcomeSectionProps> = ({ onStartClick, onNext }) => {
|
||||
const features = [
|
||||
{
|
||||
id: 1,
|
||||
title: '비즈니스 핵심 정보 분석',
|
||||
description: '홈페이지, 네이버 지도, 블로그 등의 URL을 입력하세요',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: '홍보 콘텐츠 자동 제작',
|
||||
description: '분석 정보를 바탕으로 제작합니다',
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: '멀티채널 자동 배포',
|
||||
description: '다운로드 또는 SNS 즉시 업로드',
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<div className="w-full h-full flex flex-col bg-[#121a1d] text-white overflow-hidden">
|
||||
<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]">
|
||||
<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>
|
||||
</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">
|
||||
{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>
|
||||
</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"
|
||||
>
|
||||
처음으로
|
||||
</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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default WelcomeSection;
|
||||
Reference in new issue
Block a user