홈 화면 수정 .
This commit is contained in:
1 parent
879cd7d10c
commit
10923f26b6
9 files changed
+760
-181
No files matched your search
+6
-4
@@ -1,5 +1,6 @@
|
||||
|
||||
import React, { useRef, useState, useEffect } from 'react';
|
||||
import Header from './components/Header';
|
||||
import HeroSection from './pages/Landing/HeroSection';
|
||||
import WelcomeSection from './pages/Landing/WelcomeSection';
|
||||
import DisplaySection from './pages/Landing/DisplaySection';
|
||||
@@ -112,21 +113,22 @@ const App: React.FC = () => {
|
||||
}
|
||||
|
||||
return (
|
||||
<main className="snap-container" ref={containerRef}>
|
||||
<section className="snap-section">
|
||||
<main className="landing-container" ref={containerRef}>
|
||||
<Header />
|
||||
<section className="landing-section">
|
||||
<HeroSection
|
||||
onAnalyze={handleStartAnalysis}
|
||||
onNext={() => scrollToSection(1)}
|
||||
error={error}
|
||||
/>
|
||||
</section>
|
||||
<section className="snap-section">
|
||||
<section className="landing-section">
|
||||
<WelcomeSection
|
||||
onStartClick={() => scrollToSection(0)}
|
||||
onNext={() => scrollToSection(0)}
|
||||
/>
|
||||
</section>
|
||||
<section className="snap-section">
|
||||
<section className="landing-section">
|
||||
<DisplaySection onStartClick={() => scrollToSection(0)} />
|
||||
</section>
|
||||
</main>
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
|
||||
import React from 'react';
|
||||
|
||||
const Footer: React.FC = () => {
|
||||
return (
|
||||
<footer className="landing-footer">
|
||||
<div className="footer-content">
|
||||
<div className="footer-left">
|
||||
<img src="/assets/images/logo.svg" alt="CASTAD" className="footer-logo" />
|
||||
<p className="footer-copyright">Copyright ⓒ O2O Inc. All rights reserved</p>
|
||||
</div>
|
||||
<div className="footer-right">
|
||||
<p className="footer-info">사업자 등록번호 : 620-87-00810 | 대표 : 안성민</p>
|
||||
<p className="footer-info">본사 : 41593 대구광역시 북구 옥산로 111, 5층 유니콘랩 대구 A05호</p>
|
||||
<p className="footer-info">연구소 : 13453 경기 성남시 수정구 금토로 32 (금토동) (주)KT 판교빌딩 504호~505호 (East)</p>
|
||||
<p className="footer-info">전화 : 070-4260-8310 | 010-2755-6463</p>
|
||||
<p className="footer-info">이메일 : o2oteam@o2o.kr</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
};
|
||||
|
||||
export default Footer;
|
||||
@@ -230,9 +230,9 @@ const GenerationFlow: React.FC<GenerationFlowProps> = ({ onHome, initialActiveIt
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="flex w-full h-[100dvh] bg-[#0d1416] text-white overflow-hidden">
|
||||
<div className={`flex w-full bg-[#0d1416] text-white ${activeItem === '대시보드' || activeItem === '비즈니스 설정' ? 'min-h-[100dvh]' : 'h-[100dvh] overflow-hidden'}`}>
|
||||
<Sidebar activeItem={activeItem} onNavigate={setActiveItem} onHome={handleHome} />
|
||||
<div className="flex-1 h-full relative overflow-hidden pl-0 md:pl-0">
|
||||
<div className={`flex-1 relative pl-0 md:pl-0 ${activeItem === '대시보드' || activeItem === '비즈니스 설정' ? 'overflow-y-auto' : 'h-full overflow-hidden'}`}>
|
||||
{renderContent()}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
import React from 'react';
|
||||
import Header from '../../components/Header';
|
||||
import Footer from '../../components/Footer';
|
||||
|
||||
interface DisplaySectionProps {
|
||||
onStartClick?: () => void;
|
||||
@@ -15,9 +15,7 @@ const DisplaySection: React.FC<DisplaySectionProps> = ({ onStartClick }) => {
|
||||
|
||||
return (
|
||||
<div className="display-section">
|
||||
<Header />
|
||||
|
||||
<div className="content-safe-area" style={{ paddingTop: '7rem' }}>
|
||||
<div className="content-safe-area">
|
||||
{/* Main visual frames container */}
|
||||
<div className="display-frames">
|
||||
{frames.map((frame, index) => (
|
||||
@@ -35,6 +33,7 @@ const DisplaySection: React.FC<DisplaySectionProps> = ({ onStartClick }) => {
|
||||
시작하기
|
||||
</button>
|
||||
</div>
|
||||
<Footer />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -41,52 +41,66 @@ const HeroSection: React.FC<HeroSectionProps> = ({ onAnalyze, onNext, error: ext
|
||||
|
||||
return (
|
||||
<div className="hero-section">
|
||||
<div className="content-safe-area">
|
||||
{/* Title */}
|
||||
<h1 className="hero-title">CASTAD</h1>
|
||||
{/* Animated background orbs */}
|
||||
<div className="hero-bg-orbs">
|
||||
<div className="hero-orb hero-orb-purple-1"></div>
|
||||
<div className="hero-orb hero-orb-mint-1"></div>
|
||||
<div className="hero-orb hero-orb-purple-2"></div>
|
||||
<div className="hero-orb hero-orb-mint-2"></div>
|
||||
</div>
|
||||
{/* Background blur overlay */}
|
||||
<div className="hero-bg-blur"></div>
|
||||
|
||||
<div className="hero-content">
|
||||
{/* Logo Image */}
|
||||
<img
|
||||
src="/assets/images/castad-logo-large.svg"
|
||||
alt="CASTAD"
|
||||
className="hero-logo"
|
||||
/>
|
||||
|
||||
{/* Subtitle */}
|
||||
<p className="hero-subtitle">
|
||||
Marketing Automation for Location Based Business
|
||||
</p>
|
||||
|
||||
{/* Input Form */}
|
||||
<div className="hero-form">
|
||||
<input
|
||||
type="text"
|
||||
value={url}
|
||||
onChange={(e) => {
|
||||
setUrl(e.target.value);
|
||||
if (localError) setLocalError('');
|
||||
}}
|
||||
placeholder="URL 입력"
|
||||
className={`hero-input ${error ? 'error' : ''}`}
|
||||
/>
|
||||
<span className="hero-input-label">URL 입력</span>
|
||||
<div className="hero-input-wrapper">
|
||||
<input
|
||||
type="text"
|
||||
value={url}
|
||||
onChange={(e) => {
|
||||
setUrl(e.target.value);
|
||||
if (localError) setLocalError('');
|
||||
}}
|
||||
placeholder="https://www.castad.com"
|
||||
className={`hero-input ${error ? 'error' : ''}`}
|
||||
/>
|
||||
</div>
|
||||
<span className="hero-input-hint">URL에서 가져온 정보로 영상이 자동 생성됩니다.</span>
|
||||
{error && (
|
||||
<p className="hero-error">{error}</p>
|
||||
)}
|
||||
|
||||
<button onClick={handleStart} className="hero-button">
|
||||
시작하기
|
||||
브랜드 분석
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Footer Indicator */}
|
||||
<button onClick={onNext} className="scroll-indicator">
|
||||
<span className="scroll-indicator-text">더 알아보기</span>
|
||||
<span className="scroll-indicator-text">스크롤하여 더 보기</span>
|
||||
<div className="scroll-indicator-icon">
|
||||
<svg
|
||||
width="16"
|
||||
height="16"
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth="2"
|
||||
strokeWidth="1"
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
>
|
||||
<path d="M7 13l5 5 5-5M7 6l5 5 5-5" />
|
||||
<path d="M7 10l5 5 5-5" />
|
||||
</svg>
|
||||
</div>
|
||||
</button>
|
||||
|
||||
@@ -1,66 +1,65 @@
|
||||
|
||||
import React from 'react';
|
||||
import Header from '../../components/Header';
|
||||
|
||||
interface WelcomeSectionProps {
|
||||
onStartClick?: () => void;
|
||||
onNext?: () => void;
|
||||
}
|
||||
|
||||
const WelcomeSection: React.FC<WelcomeSectionProps> = ({ onStartClick, onNext }) => {
|
||||
const WelcomeSection: React.FC<WelcomeSectionProps> = () => {
|
||||
const features = [
|
||||
{
|
||||
id: 1,
|
||||
title: '비즈니스 핵심 정보 분석',
|
||||
description: '홈페이지, 네이버 지도, 블로그 등의\nURL을 입력하세요',
|
||||
icon: '/assets/images/icon-analysis.svg',
|
||||
iconBg: '#9BCACC'
|
||||
iconBg: '#9BCACC',
|
||||
icon: '/assets/images/icon-analysis.svg'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: '홍보 콘텐츠 자동 제작',
|
||||
description: '분석된 정보를 바탕으로\n비즈니스에 맞는 음악, 자막, 노래, 영상을\n자동으로 제작해요',
|
||||
icon: '/assets/images/icon-content.svg',
|
||||
iconBg: '#DFC7FD'
|
||||
iconBg: '#DFC7FD',
|
||||
icon: '/assets/images/icon-content.svg'
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: '멀티채널 자동 배포',
|
||||
description: '완성된 영상은 다운로드하거나\n바로 SNS에 업로드 할 수 있어요',
|
||||
icon: '/assets/images/icon-deploy.svg',
|
||||
iconBg: '#D4FDF3'
|
||||
iconBg: '#D4FDF3',
|
||||
icon: '/assets/images/icon-deploy.svg'
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<div className="welcome-section">
|
||||
<Header />
|
||||
<div className="welcome-content">
|
||||
{/* Star Icon - Top Center */}
|
||||
<div className="welcome-star">
|
||||
<img src="/assets/images/star-icon.svg" alt="star" />
|
||||
</div>
|
||||
|
||||
<div className="content-safe-area" style={{ paddingTop: '5rem' }}>
|
||||
{/* Header */}
|
||||
<div className="welcome-header">
|
||||
<div className="welcome-icon">
|
||||
<img src="/assets/images/star-icon.svg" alt="star" />
|
||||
</div>
|
||||
<h2 className="welcome-title">CASTAD에 오신 것을 환영합니다.</h2>
|
||||
<p className="welcome-subtitle">분석, 제작, 배포까지 콘텐츠 마케팅의 전과정을 자동화</p>
|
||||
</div>
|
||||
|
||||
{/* Feature Cards */}
|
||||
<div className="feature-grid">
|
||||
{features.map((feature) => (
|
||||
<div key={feature.id} className="feature-item">
|
||||
<div className="feature-number">{feature.id}</div>
|
||||
<h3 className="feature-title">{feature.title}</h3>
|
||||
<div className="feature-icon" style={{ backgroundColor: feature.iconBg }}>
|
||||
<img src={feature.icon} alt={feature.title} />
|
||||
<div key={feature.id} className="feature-card">
|
||||
<div className="feature-number-badge">
|
||||
<span>{feature.id}</span>
|
||||
</div>
|
||||
<p className="feature-description">{feature.description}</p>
|
||||
<h3 className="feature-card-title">{feature.title}</h3>
|
||||
<div className="feature-icon-box" style={{ backgroundColor: feature.iconBg }}>
|
||||
<img src={feature.icon} alt={feature.title} className="feature-icon-img" />
|
||||
</div>
|
||||
<p className="feature-card-description">{feature.description}</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<button onClick={onNext} className="btn-start">
|
||||
시작하기
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user