This commit is contained in:
2025-06-07 10:13:46 +09:00
parent e43a35f64a
commit 6ffb7e23d4
9 changed files with 813 additions and 376 deletions

View File

@ -5,33 +5,37 @@ import Dashboard from "../components/Dashboard";
export const metadata = {
title: "Voice RSS Summary",
description: "RSSフィードから自動生成された音声ポッドキャストをご紹介します。",
description:
"RSSフィードから自動生成された音声ポッドキャストをご紹介します。",
};
export default function Home() {
const [activeTab, setActiveTab] = useState<'dashboard' | 'episodes' | 'feeds'>('dashboard');
const [activeTab, setActiveTab] = useState<
"dashboard" | "episodes" | "feeds"
>("dashboard");
return (
<div className="min-h-screen bg-gradient-to-br from-blue-50 via-white to-purple-50">
<div className="min-h-screen">
{/* Header */}
<header className="bg-white shadow-sm border-b">
<header className="glass-effect border-b border-white/20 sticky top-0 z-50 backdrop-blur-xl">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex justify-between items-center py-6">
<div className="flex items-center space-x-3">
<div className="w-10 h-10 bg-gradient-to-r from-blue-500 to-purple-600 rounded-lg flex items-center justify-center">
<svg className="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M15.536 8.464a5 5 0 010 7.072m2.828-9.9a9 9 0 010 12.728M9 12a3 3 0 106 0 3 3 0 00-6 0z" />
</svg>
</div>
<div className="flex items-center space-x-4 animate-fadeIn">
<div>
<h1 className="text-2xl font-bold text-gray-900">Voice RSS Summary</h1>
<p className="text-sm text-gray-600">AI音声ポッドキャスト自動生成システム</p>
<h1 className="text-3xl font-bold gradient-text">
Voice RSS Summary
</h1>
<p className="text-sm text-slate-600 font-medium">
AI音声ポッドキャスト自動生成システム
</p>
</div>
</div>
<div className="hidden md:flex items-center space-x-4">
<div className="flex items-center space-x-2 text-sm text-gray-500">
<div className="w-2 h-2 bg-green-400 rounded-full animate-pulse"></div>
<span></span>
<div className="hidden md:flex items-center space-x-6">
<div className="flex items-center space-x-3 px-4 py-2 rounded-full bg-green-50 border border-green-200">
<div className="w-3 h-3 bg-green-500 rounded-full animate-pulse shadow-lg"></div>
<span className="text-sm font-semibold text-green-700">
</span>
</div>
</div>
</div>
@ -39,26 +43,41 @@ export default function Home() {
</header>
{/* Navigation */}
<nav className="bg-white border-b border-gray-200">
<nav className="glass-effect border-b border-white/20 relative">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex space-x-8">
<div className="flex space-x-2">
{[
{ id: 'dashboard', label: 'ダッシュボード', icon: '📊' },
{ id: 'episodes', label: 'エピソード', icon: '🎧' },
{ id: 'feeds', label: 'フィード管理', icon: '📡' }
].map((tab) => (
{ id: "dashboard", label: "ダッシュボード", icon: "📊" },
{ id: "episodes", label: "エピソード", icon: "🎧" },
{ id: "feeds", label: "フィード管理", icon: "📡" },
].map((tab, index) => (
<button
key={tab.id}
onClick={() => setActiveTab(tab.id as any)}
className={`flex items-center space-x-2 py-4 px-1 border-b-2 font-medium text-sm transition-colors duration-200 ${
className={`relative flex items-center space-x-3 py-4 px-6 font-semibold text-sm rounded-t-xl transition-all duration-300 transform hover:scale-105 ${
activeTab === tab.id
? 'border-blue-500 text-blue-600'
: 'border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300'
? "bg-white text-slate-800 shadow-lg border-b-2 border-transparent"
: "text-slate-600 hover:text-slate-800 hover:bg-white/50"
}`}
aria-current={activeTab === tab.id ? 'page' : undefined}
style={{
animationDelay: `${index * 0.1}s`,
}}
aria-current={activeTab === tab.id ? "page" : undefined}
>
<span role="img" aria-hidden="true">{tab.icon}</span>
<span>{tab.label}</span>
<span
className="text-lg animate-fadeIn"
role="img"
aria-hidden="true"
>
{tab.icon}
</span>
<span className="animate-slideIn">{tab.label}</span>
{activeTab === tab.id && (
<div
className="absolute bottom-0 left-0 right-0 h-1 rounded-t-full"
style={{ background: "var(--gradient-primary)" }}
></div>
)}
</button>
))}
</div>
@ -66,27 +85,59 @@ export default function Home() {
</nav>
{/* Main Content */}
<main className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<main className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
<div className="space-y-8">
{activeTab === 'dashboard' && <Dashboard />}
{activeTab === 'episodes' && (
<div className="bg-white rounded-xl shadow-sm p-6">
<div className="flex items-center space-x-3 mb-6">
<div className="w-8 h-8 bg-purple-100 rounded-lg flex items-center justify-center">
<span role="img" aria-hidden="true" className="text-lg">🎧</span>
{activeTab === "dashboard" && (
<div className="animate-fadeIn">
<Dashboard />
</div>
)}
{activeTab === "episodes" && (
<div className="glass-effect rounded-3xl shadow-2xl p-8 border border-white/20 animate-fadeIn">
<div className="flex items-center space-x-4 mb-8">
<div
className="w-12 h-12 rounded-2xl flex items-center justify-center shadow-lg"
style={{
background: "linear-gradient(135deg, #a855f7, #7c3aed)",
}}
>
<span role="img" aria-hidden="true" className="text-2xl">
🎧
</span>
</div>
<div>
<h2 className="text-2xl font-bold text-slate-800">
</h2>
<p className="text-slate-600 text-sm">
</p>
</div>
<h2 className="text-xl font-semibold text-gray-900"></h2>
</div>
<EpisodePlayer />
</div>
)}
{activeTab === 'feeds' && (
<div className="bg-white rounded-xl shadow-sm p-6">
<div className="flex items-center space-x-3 mb-6">
<div className="w-8 h-8 bg-blue-100 rounded-lg flex items-center justify-center">
<span role="img" aria-hidden="true" className="text-lg">📡</span>
{activeTab === "feeds" && (
<div className="glass-effect rounded-3xl shadow-2xl p-8 border border-white/20 animate-fadeIn">
<div className="flex items-center space-x-4 mb-8">
<div
className="w-12 h-12 rounded-2xl flex items-center justify-center shadow-lg"
style={{
background: "linear-gradient(135deg, #0ea5e9, #0284c7)",
}}
>
<span role="img" aria-hidden="true" className="text-2xl">
📡
</span>
</div>
<div>
<h2 className="text-2xl font-bold text-slate-800">
</h2>
<p className="text-slate-600 text-sm">
RSSフィードの追加と管理
</p>
</div>
<h2 className="text-xl font-semibold text-gray-900"></h2>
</div>
<FeedManager />
</div>
@ -95,13 +146,33 @@ export default function Home() {
</main>
{/* Footer */}
<footer className="bg-gray-50 border-t mt-16">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div className="text-center text-gray-500 text-sm">
<p>© 2025 Voice RSS Summary. AI技術により最新のニュースを音声でお届けします</p>
<footer className="mt-24 relative">
<div className="glass-effect border-t border-white/20">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
<div className="text-center">
<div className="flex items-center justify-center space-x-3 mb-4">
<div
className="w-8 h-8 rounded-lg flex items-center justify-center"
style={{ background: "var(--gradient-primary)" }}
></div>
<span className="text-lg font-bold gradient-text">
Voice RSS Summary
</span>
</div>
<p className="text-slate-600 text-sm font-medium max-w-2xl mx-auto leading-relaxed">
AI技術により最新のニュースを音声でお届けします
<br />
</p>
<div className="mt-6 pt-6 border-t border-white/20">
<p className="text-slate-500 text-xs">
© 2025 Voice RSS Summary. All rights reserved.
</p>
</div>
</div>
</div>
</div>
</footer>
</div>
);
}
}