|
|
@@ -1,18 +1,6 @@
|
|
|
import React from 'react';
|
|
|
import { useAuth } from '@/client/home/hooks/AuthProvider';
|
|
|
import { useNavigate } from 'react-router-dom';
|
|
|
-import { Button } from '@/client/components/ui/button';
|
|
|
-import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/client/components/ui/card';
|
|
|
-import { Avatar, AvatarFallback, AvatarImage } from '@/client/components/ui/avatar';
|
|
|
-import { Badge } from '@/client/components/ui/badge';
|
|
|
-import {
|
|
|
- ShieldCheck,
|
|
|
- UserCircle,
|
|
|
- Smartphone,
|
|
|
- LogIn,
|
|
|
- UserPlus,
|
|
|
- ExternalLink
|
|
|
-} from 'lucide-react';
|
|
|
|
|
|
const HomePage: React.FC = () => {
|
|
|
const { user } = useAuth();
|
|
|
@@ -65,7 +53,7 @@ const HomePage: React.FC = () => {
|
|
|
)}
|
|
|
</div>
|
|
|
</header>
|
|
|
-
|
|
|
+
|
|
|
{/* 主内容区 */}
|
|
|
<main className="flex-grow container mx-auto px-4 pt-24 pb-12">
|
|
|
{/* 英雄区域 */}
|
|
|
@@ -206,39 +194,9 @@ const HomePage: React.FC = () => {
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
- {/* 快速链接 */}
|
|
|
- <Card className="border-0 shadow-lg">
|
|
|
- <CardHeader>
|
|
|
- <CardTitle className="flex items-center space-x-2">
|
|
|
- <ExternalLink className="h-5 w-5" />
|
|
|
- <span>快速访问</span>
|
|
|
- </CardTitle>
|
|
|
- </CardHeader>
|
|
|
- <CardContent>
|
|
|
- <div className="flex flex-wrap gap-4">
|
|
|
- <Button
|
|
|
- variant="outline"
|
|
|
- onClick={() => window.open('/admin', '_blank')}
|
|
|
- className="flex items-center space-x-2"
|
|
|
- >
|
|
|
- <span>管理后台</span>
|
|
|
- <ExternalLink className="h-4 w-4" />
|
|
|
- </Button>
|
|
|
- <Button
|
|
|
- variant="outline"
|
|
|
- onClick={() => window.open('/ui', '_blank')}
|
|
|
- className="flex items-center space-x-2"
|
|
|
- >
|
|
|
- <span>API 文档</span>
|
|
|
- <ExternalLink className="h-4 w-4" />
|
|
|
- </Button>
|
|
|
- </div>
|
|
|
- </CardContent>
|
|
|
- </Card>
|
|
|
</div>
|
|
|
</main>
|
|
|
-
|
|
|
+
|
|
|
{/* 页脚 */}
|
|
|
<footer className="bg-white border-t border-gray-100 py-8">
|
|
|
<div className="container mx-auto px-4">
|