Merge branch 'main' into feature-dashboard

This commit is contained in:
skkim committed 2026-03-25 16:52:13 +09:00
commit eceea6a5a4
18 files changed
+679 -721

No files matched your search

+2 -1
View File
@@ -8,10 +8,11 @@ const Footer: React.FC = () => {
<footer className="landing-footer">
<div className="footer-content">
<div className="footer-left">
<img src="/assets/images/logo.svg" alt="CASTAD" className="footer-logo" />
<img src="/assets/images/ado2-sidebar-logo.svg" alt="ADO2" className="footer-logo" />
<p className="footer-copyright">Copyright ⓒ O2O Inc. All rights reserved</p>
</div>
<div className="footer-right">
<p className="footer-info">{t('footer.company')}</p>
<p className="footer-info">{t('footer.businessNumber')}</p>
<p className="footer-info">{t('footer.headquarters')}</p>
<p className="footer-info">{t('footer.researchCenter')}</p>
+1 -1
View File
@@ -82,7 +82,7 @@ const Sidebar: React.FC<SidebarProps> = ({ activeItem, onNavigate, onHome, userI
{ id: '대시보드', label: t('sidebar.dashboard'), disabled: false, icon: <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5"><rect x="3" y="3" width="7" height="9"/><rect x="14" y="3" width="7" height="5"/><rect x="14" y="12" width="7" height="9"/><rect x="3" y="16" width="7" height="5"/></svg> },
{ id: '새 프로젝트 만들기', label: t('sidebar.newProject'), disabled: false, icon: <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg> },
{ id: 'ADO2 콘텐츠', label: t('sidebar.ado2Contents'), disabled: false, icon: <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/></svg> },
{ id: '내 콘텐츠', label: t('sidebar.myContents'), disabled: true, icon: <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg> },
// { id: '내 콘텐츠', label: t('sidebar.myContents'), disabled: true, icon: <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg> },
{ id: '콘텐츠 캘린더', label: '콘텐츠 캘린더', disabled: false, icon: <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg> },
{ id: '내 정보', label: t('sidebar.myInfo'), disabled: false, icon: <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.5"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg> },
];
+9 -16
View File
@@ -132,7 +132,7 @@ const SocialPostingModal: React.FC<SocialPostingModalProps> = ({
const [isPrivacyDropdownOpen, setIsPrivacyDropdownOpen] = useState(false);
const [isLoadingAutoDescription, setIsLoadingAutoDescription] = useState(false);
const [isHorizontalVideo, setIsHorizontalVideo] = useState(false);
const [videoSpecs, setVideoSpecs] = useState<{ resolution: string; duration: string } | null>(null);
const [videoMeta, setVideoMeta] = useState<{ width: number; height: number; duration: number } | null>(null);
const channelDropdownRef = useRef<HTMLDivElement>(null);
const privacyDropdownRef = useRef<HTMLDivElement>(null);
@@ -176,12 +176,6 @@ const SocialPostingModal: React.FC<SocialPostingModalProps> = ({
if (isOpen) {
loadSocialAccounts();
loadAutocomplete();
// // 비디오 정보로 기본 제목 설정
// if (video) {
// const date = new Date(video.created_at);
// const formattedDate = `${date.getFullYear()}.${String(date.getMonth() + 1).padStart(2, '0')}.${String(date.getDate()).padStart(2, '0')}`;
// setTitle(`${video.store_name} ${formattedDate}`);
// }
}
}, [isOpen, video]);
@@ -437,10 +431,7 @@ const SocialPostingModal: React.FC<SocialPostingModalProps> = ({
onLoadedMetadata={(e) => {
const v = e.currentTarget;
setIsHorizontalVideo(v.videoWidth > v.videoHeight);
const totalSec = Math.floor(v.duration);
const m = Math.floor(totalSec / 60).toString().padStart(2, '0');
const s = (totalSec % 60).toString().padStart(2, '0');
setVideoSpecs({ resolution: `${v.videoWidth}×${v.videoHeight}`, duration: `${m}:${s}` });
setVideoMeta({ width: v.videoWidth, height: v.videoHeight, duration: v.duration });
}}
/>
</div>
@@ -449,18 +440,20 @@ const SocialPostingModal: React.FC<SocialPostingModalProps> = ({
{/* Right: Form */}
<div className="social-posting-form">
{/* Video Info */}
<div className="social-posting-video-info">
{/* <div className="social-posting-video-info">
<span className="social-posting-label-badge">{t('social.postNumber')}</span>
<span className="social-posting-add-btn">+</span>
</div>
</div> */}
<div className="social-posting-video-meta">
<p className="social-posting-video-title">
{video.store_name} {new Date(video.created_at).toLocaleString('ko-KR')}
</p>
{videoSpecs && (
<p className="social-posting-video-specs">{videoSpecs.resolution} · {videoSpecs.duration}</p>
)}
<p className="social-posting-video-specs">
{videoMeta
? `${videoMeta.width}×${videoMeta.height} · ${Math.floor(videoMeta.duration / 60)}:${String(Math.floor(videoMeta.duration % 60)).padStart(2, '0')}`
: t('social.videoSpecs')}
</p>
</div>
{/* Channel Selector - Custom Dropdown */}