Spaces:
Sleeping
Sleeping
Update index.html
Browse files7 unmodified lines891011121314100 unmodified lines11511611711811912012125 unmodified lines1471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312327 unmodified lines<script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script><script src="https://unpkg.com/@babel/standalone/babel.min.js"></script><script src="https://cdn.tailwindcss.com"></script><!-- Lucide Icons の読み込み --><script src="https://unpkg.com/lucide@latest"></script></head><body class="bg-slate-50 min-h-screen flex flex-col">100 unmodified lines</div><h3 className="font-bold text-slate-900 mb-1">{tool.title}</h3><p className="text-xs text-slate-500 leading-relaxed">{tool.description}</p>{tool.id === 'youtube' && !youtubeEnabled && (<div className="absolute top-2 right-2 bg-amber-100 text-amber-700 text-[10px] px-2 py-0.5 rounded-full font-bold">要Colab設定</div>25 unmodified lines<div className="space-y-6">{selectedTool.id === 'youtube' ? (<div className="space-y-2"><label className="block text-sm font-bold text-slate-700">YouTube URL (1行に1つ)</label><textareaplaceholder="https://www.youtube.com/watch?v=..."className="w-full h-32 p-4 bg-slate-50 border-2 border-slate-100 rounded-2xl focus:border-indigo-500 focus:outline-none transition-all font-mono text-sm"value={youtubeUrl}onChange={(e) => setYoutubeUrl(e.target.value)}/></div>) : (<div className="border-2 border-dashed border-slate-200 rounded-3xl p-12 text-center hover:border-indigo-400 transition-all bg-slate-50 group"><inputtype="file"multipleclassName="hidden"id="fileInput"onChange={(e) => setFiles(Array.from(e.target.files))}/><label htmlFor="fileInput" className="cursor-pointer block"><Icon name="upload-cloud" className="w-12 h-12 text-slate-300 mx-auto mb-4 group-hover:text-indigo-500 transition-colors" /><p className="text-slate-600 font-bold mb-1">{files.length > 0 ? `${files.length}個のファイルを選択中` : 'ファイルをドラッグ&ドロップ'}</p><p className="text-slate-400 text-sm font-medium">またはクリックしてファイルを選択</p></label></div>)}{taskState.status !== 'idle' && (<div className="bg-slate-50 rounded-2xl p-6 border border-slate-100"><div className="flex justify-between text-sm font-bold mb-3"><span className="text-indigo-600">{taskState.last_log}</span><span className="text-slate-400">{taskState.progress}%</span></div><div className="w-full bg-slate-200 rounded-full h-3 overflow-hidden"><divclassName="h-full bg-indigo-600 transition-all duration-500 shadow-[0_0_10px_rgba(79,70,229,0.5)]"style={{ width: `${taskState.progress}%` }}></div></div></div>)}<div className="flex gap-4"><buttononClick={startProcessing}disabled={taskState.status === 'processing' || taskState.status === 'uploading' || (selectedTool.id === 'youtube' && !youtubeUrl)}className="flex-1 bg-slate-900 text-white py-4 rounded-2xl font-bold hover:bg-indigo-600 disabled:bg-slate-200 transition-all shadow-lg">処理開始</button>{downloadUrl && (<ahref={downloadUrl}className="flex-1 bg-emerald-500 text-white py-4 rounded-2xl font-bold text-center hover:bg-emerald-600 animate-pulse shadow-lg">ダウンロード</a>)}</div></div></div></div>)}</div>{/* Footer / Copyright */}<footer className="py-8 text-center border-t border-slate-100"><div className="flex items-center justify-center gap-2 text-slate-400 text-sm font-medium"><span>© {new Date().getFullYear()}</span><span className="text-slate-900 font-black tracking-tight">HatakeyamaTechnology</span><span className="hidden sm:inline">|</span><span className="hidden sm:inline">All Rights Reserved.</span></div></footer></div>);}const root = ReactDOM.createRoot(document.getElementById('root'));root.render(<App />);</script></body></html>7 unmodified lines8910111213100 unmodified lines11411511611711811912025 unmodified lines1461471481497 unmodified lines<script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script><script src="https://unpkg.com/@babel/standalone/babel.min.js"></script><script src="https://cdn.tailwindcss.com"></script><script src="https://unpkg.com/lucide@latest"></script></head><body class="bg-slate-50 min-h-screen flex flex-col">100 unmodified lines</div><h3 className="font-bold text-slate-900 mb-1">{tool.title}</h3><p className="text-xs text-slate-500 leading-relaxed">{tool.description}</p>{tool.id === 'youtube' && (<div className="absolute top-2 right-2 bg-amber-100 text-amber-700 text-[10px] px-2 py-0.5 rounded-full font-bold">要Colab設定</div>25 unmodified lines<div className="space-y-6">{selectedTool.id === 'youtube' ? (<div className="space-y-2"><label className="block text-sm font-bold text-slate-700">YouTube URL (1行に1つ)</label>
index.html+2-85