Spaces:
Running
Running
Upload pages/index.js with huggingface_hub
Browse files- pages/index.js +50 -0
pages/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { useState } from 'react'
|
| 2 |
+
import AgentSelector from '../components/AgentSelector'
|
| 3 |
+
import SecureProcessor from '../components/SecureProcessor'
|
| 4 |
+
import PrivacyDashboard from '../components/PrivacyDashboard'
|
| 5 |
+
|
| 6 |
+
export default function Home() {
|
| 7 |
+
const [selectedAgent, setSelectedAgent] = useState(null)
|
| 8 |
+
|
| 9 |
+
const handleAgentSelect = (agent) => {
|
| 10 |
+
setSelectedAgent(agent)
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
return (
|
| 14 |
+
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
| 15 |
+
<div className="mb-8">
|
| 16 |
+
<h1 className="text-4xl font-bold mb-4">
|
| 17 |
+
Multi-Agent Secure Media Platform
|
| 18 |
+
</h1>
|
| 19 |
+
<p className="text-lg text-dark-600 dark:text-dark-400 max-w-3xl">
|
| 20 |
+
Protecting your digital footprint with military-grade security, AI-powered analysis,
|
| 21 |
+
and creative problem-solving capabilities. Your data never leaves your control.
|
| 22 |
+
</p>
|
| 23 |
+
</div>
|
| 24 |
+
|
| 25 |
+
<div className="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
| 26 |
+
<div className="lg:col-span-1">
|
| 27 |
+
<AgentSelector
|
| 28 |
+
onAgentSelect={handleAgentSelect}
|
| 29 |
+
selectedAgent={selectedAgent}
|
| 30 |
+
/>
|
| 31 |
+
</div>
|
| 32 |
+
|
| 33 |
+
<div className="lg:col-span-2">
|
| 34 |
+
<SecureProcessor selectedAgent={selectedAgent} />
|
| 35 |
+
</div>
|
| 36 |
+
</div>
|
| 37 |
+
|
| 38 |
+
<div className="mt-6">
|
| 39 |
+
<PrivacyDashboard />
|
| 40 |
+
</div>
|
| 41 |
+
|
| 42 |
+
<footer className="mt-12 pt-8 border-t border-dark-200 dark:border-dark-700">
|
| 43 |
+
<div className="text-center text-sm text-dark-500 dark:text-dark-400">
|
| 44 |
+
<p>© 2024 SecureAgent Platform. All data processed with maximum privacy protection.</p>
|
| 45 |
+
<p className="mt-1">Built with advanced encryption and zero-knowledge architecture.</p>
|
| 46 |
+
</div>
|
| 47 |
+
</footer>
|
| 48 |
+
</div>
|
| 49 |
+
)
|
| 50 |
+
}
|