Files
mxivideo/src/pages/KVTestPage.tsx
2025-07-10 22:22:22 +08:00

75 lines
2.8 KiB
TypeScript

import React from 'react'
import { ArrowLeft } from 'lucide-react'
import { Link } from 'react-router-dom'
import CloudflareKVDemo from '../components/CloudflareKVDemo'
const KVTestPage: React.FC = () => {
return (
<div className="min-h-screen bg-secondary-50">
{/* Header */}
<div className="bg-white border-b border-secondary-200 px-6 py-4">
<div className="flex items-center space-x-4">
<Link
to="/"
className="flex items-center space-x-2 text-secondary-600 hover:text-secondary-900 transition-colors"
>
<ArrowLeft size={20} />
<span></span>
</Link>
<div className="h-6 w-px bg-secondary-300" />
<h1 className="text-2xl font-bold text-secondary-900">
Cloudflare KV
</h1>
</div>
</div>
{/* Content */}
<div className="p-6">
<div className="max-w-6xl mx-auto">
{/* Description */}
<div className="bg-white rounded-lg shadow-sm border border-secondary-200 p-6 mb-6">
<h2 className="text-lg font-semibold text-secondary-900 mb-3">
Cloudflare KV
</h2>
<p className="text-secondary-600 mb-4">
MixVideo V2 使 Cloudflare KV
</p>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
<div className="bg-blue-50 p-4 rounded-lg">
<h3 className="font-medium text-blue-900 mb-2"></h3>
<p className="text-sm text-blue-700">
Cloudflare KV
</p>
</div>
<div className="bg-green-50 p-4 rounded-lg">
<h3 className="font-medium text-green-900 mb-2"></h3>
<p className="text-sm text-green-700">
</p>
</div>
<div className="bg-purple-50 p-4 rounded-lg">
<h3 className="font-medium text-purple-900 mb-2"></h3>
<p className="text-sm text-purple-700">
</p>
</div>
<div className="bg-orange-50 p-4 rounded-lg">
<h3 className="font-medium text-orange-900 mb-2"></h3>
<p className="text-sm text-orange-700">
</p>
</div>
</div>
</div>
{/* KV Demo Component */}
<CloudflareKVDemo />
</div>
</div>
</div>
)
}
export default KVTestPage