메인페이지 원복시키기
This commit is contained in:
1 parent
c07ef255d4
commit
5f7e0051cd
9 files changed
+178
-123
No files matched your search
@@ -31,7 +31,6 @@ import {
|
||||
pickPrimaryUrl,
|
||||
type ClassifiedUrls,
|
||||
} from '../lib/classifyUrls';
|
||||
import { Button } from '@/shared/ui/button';
|
||||
import { PLATFORM_META } from '@/features/clinics/components/PlatformChips';
|
||||
import type { PlatformKey } from '@/features/clinics/types/workspace';
|
||||
|
||||
@@ -159,15 +158,13 @@ export default function MultiChannelInput({ variant = 'hero', onAnalyze }: Multi
|
||||
const Icon = meta.Icon;
|
||||
const value = urls[key];
|
||||
const status = validateField(value, key);
|
||||
const inactiveColor = isHero ? '#94a3b8' /* slate-400 */ : 'rgba(255,255,255,0.4)';
|
||||
return (
|
||||
<div key={key} className="relative">
|
||||
{/* 좌측 채널 아이콘 — 입력 시 브랜드 컬러, 빈 칸일 땐 회색.
|
||||
z-10 으로 input 의 bg/backdrop-blur 위에 올림 (없으면 input 배경이 아이콘을 가림) */}
|
||||
<div className="absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none flex items-center gap-2 z-10">
|
||||
{/* 좌측 채널 아이콘 — 입력 시 컬러 적용, 빈 칸일 땐 회색 */}
|
||||
<div className="absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none flex items-center gap-2">
|
||||
<Icon
|
||||
size={16}
|
||||
style={{ color: value ? meta.color : inactiveColor }}
|
||||
style={{ color: value ? meta.color : isHero ? '#94a3b8' : 'rgba(255,255,255,0.4)' }}
|
||||
/>
|
||||
</div>
|
||||
<input
|
||||
@@ -181,8 +178,8 @@ export default function MultiChannelInput({ variant = 'hero', onAnalyze }: Multi
|
||||
spellCheck={false}
|
||||
autoComplete="off"
|
||||
/>
|
||||
{/* 우측 검증 상태 아이콘 — 동일하게 z-10 */}
|
||||
<div className="absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none z-10">
|
||||
{/* 우측 검증 상태 아이콘 */}
|
||||
<div className="absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none">
|
||||
{status === 'valid' && (
|
||||
<CheckFilled size={16} className="text-emerald-500" />
|
||||
)}
|
||||
@@ -201,18 +198,18 @@ export default function MultiChannelInput({ variant = 'hero', onAnalyze }: Multi
|
||||
</p>
|
||||
|
||||
{/* 분석 시작 버튼 — DS Primary pill */}
|
||||
<Button
|
||||
<button
|
||||
onClick={handleSubmit}
|
||||
disabled={!canAnalyze}
|
||||
className={`w-full max-w-md mx-auto mt-4 px-10 py-4 h-auto text-lg font-medium rounded-full shadow-xl hover:shadow-2xl flex items-center justify-center gap-2 group bg-gradient-to-r transform-gpu will-change-transform transition-[transform,filter,box-shadow] duration-500 ease-[cubic-bezier(0.16,1,0.3,1)] motion-safe:hover:scale-[1.02] motion-safe:hover:brightness-110 active:scale-[0.98] active:duration-150 ${
|
||||
className={`w-full max-w-md mx-auto mt-4 px-10 py-4 text-lg font-medium rounded-full transition-all duration-150 shadow-xl hover:shadow-2xl flex items-center justify-center gap-2 group bg-gradient-to-r active:scale-[0.98] ${
|
||||
isHero
|
||||
? 'from-brand-purple to-brand-purple-deep text-white'
|
||||
: 'from-brand-grad-peach via-brand-grad-violet to-brand-grad-sky text-primary-900'
|
||||
? 'from-[#4F1DA1] to-[#021341] text-white hover:from-[#AF90FF] hover:to-[#AF90FF]'
|
||||
: 'from-[#fff3eb] via-[#e4cfff] to-[#f5f9ff] text-primary-900 hover:scale-[1.02]'
|
||||
}`}
|
||||
>
|
||||
Analyze
|
||||
<ArrowRight className="size-5 transform-gpu will-change-transform transition-transform duration-500 ease-[cubic-bezier(0.16,1,0.3,1)] motion-safe:group-hover:translate-x-1" />
|
||||
</Button>
|
||||
<ArrowRight className="w-5 h-5 group-hover:translate-x-1" />
|
||||
</button>
|
||||
|
||||
{/* 보조 안내 (하단) */}
|
||||
<p className={`text-xs font-medium mt-3 text-center leading-relaxed break-keep ${helperClass}`}>
|
||||
|
||||
Reference in new issue
Block a user