|
| 1 | +import { GithubInfo } from 'fumadocs-ui/components/github-info'; |
1 | 2 | import Link from 'next/link';
|
| 3 | +import Image from 'next/image'; |
| 4 | +import { ImageCarousel } from './images'; |
| 5 | +import { Rocket, Zap, Box, Shield, Puzzle, Github, MousePointer } from 'lucide-react'; |
| 6 | + |
| 7 | +const contributors = ['undefined-moe', 'pandadtdyy', 'wuxianucw', 'criyle', 'Macesuted', 'guke1024']; |
2 | 8 |
|
3 | 9 | export default function HomePage() {
|
4 | 10 | return (
|
5 |
| - <main className="flex flex-1 flex-col justify-center text-center"> |
6 |
| - <h1 className="mb-4 text-2xl font-bold">Hello World</h1> |
7 |
| - <p className="text-fd-muted-foreground"> |
8 |
| - You can open{' '} |
9 |
| - <Link |
10 |
| - href="/docs" |
11 |
| - className="text-fd-foreground font-semibold underline" |
12 |
| - > |
13 |
| - /docs |
14 |
| - </Link>{' '} |
15 |
| - and see the documentation. |
| 11 | + <main className="flex flex-1 flex-col max-w-3xl mx-auto px-4 py-16"> |
| 12 | + <div className="flex items-center gap-4 mb-6"> |
| 13 | + <div className="relative w-12 h-12"> |
| 14 | + <Image |
| 15 | + src="/favicon.png" |
| 16 | + alt="Hydro Logo" |
| 17 | + fill |
| 18 | + className="object-contain" |
| 19 | + priority |
| 20 | + /> |
| 21 | + </div> |
| 22 | + <h1 className="text-4xl font-bold"> |
| 23 | + Hydro Development Team |
| 24 | + </h1> |
| 25 | + </div> |
| 26 | + <p className="text-fd-muted-foreground text-lg mb-8"> |
| 27 | + 专注信息学竞赛,提供一站式服务。 |
16 | 28 | </p>
|
| 29 | + <div className="grid grid-cols-1 md:grid-cols-2 gap-6 mb-12"> |
| 30 | + <div className="group block p-6 rounded-lg border border-fd-border hover:shadow-lg transition-all"> |
| 31 | + <Link |
| 32 | + href="/docs/Hydro" |
| 33 | + className="hover:border-fd-border-hover" |
| 34 | + > |
| 35 | + <h3 className="text-xl font-semibold mb-2"> |
| 36 | + Hydro - 在线测评系统 |
| 37 | + </h3> |
| 38 | + <p className="text-fd-muted-foreground"> |
| 39 | + 高性能、可扩展、多语言、跨平台、易安装、有题库。 |
| 40 | + </p> |
| 41 | + </Link> |
| 42 | + <GithubInfo |
| 43 | + owner="hydro-dev" |
| 44 | + repo="Hydro" |
| 45 | + /> |
| 46 | + </div> |
| 47 | + <div className="group block p-6 rounded-lg border border-fd-border hover:shadow-lg transition-all"> |
| 48 | + <Link |
| 49 | + href="/docs/Tools" |
| 50 | + className="hover:border-fd-border-hover" |
| 51 | + > |
| 52 | + <h3 className="text-xl font-semibold mb-2"> |
| 53 | + XCPC-Tools - 现场赛工具包 |
| 54 | + </h3> |
| 55 | + <p className="text-fd-muted-foreground"> |
| 56 | + DOMJudge 支持、赛事监控、小票打印、摄像头管理 |
| 57 | + </p> |
| 58 | + </Link> |
| 59 | + <GithubInfo |
| 60 | + owner="hydro-dev" |
| 61 | + repo="xcpc-tools" |
| 62 | + /> |
| 63 | + </div> |
| 64 | + </div> |
| 65 | + <ImageCarousel /> |
| 66 | + |
| 67 | + <div className="col-span-full flex flex-row items-start justify-center border-l border-t p-8 pb-2 text-center"> |
| 68 | + <h2 className="bg-fd-primary text-fd-primary-foreground px-1 text-2xl font-semibold">优势特性</h2> |
| 69 | + <MousePointer className="w-6 h-6 -ml-1 mt-8" /> |
| 70 | + </div> |
| 71 | + <div className="grid grid-cols-1 md:grid-cols-3 gap-8 mb-12"> |
| 72 | + <div className="flex flex-col items-start"> |
| 73 | + <div className="flex items-center gap-2 mb-2"> |
| 74 | + <Rocket className="w-6 h-6" /> |
| 75 | + <h3 className="text-xl font-semibold">强大</h3> |
| 76 | + </div> |
| 77 | + <p className="text-fd-muted-foreground"> |
| 78 | + 提供了比赛 训练 讨论 题解 作业等功能 |
| 79 | + </p> |
| 80 | + </div> |
| 81 | + <div className="flex flex-col items-start"> |
| 82 | + <div className="flex items-center gap-2 mb-2"> |
| 83 | + <Zap className="w-6 h-6" /> |
| 84 | + <h3 className="text-xl font-semibold">性能</h3> |
| 85 | + </div> |
| 86 | + <p className="text-fd-muted-foreground"> |
| 87 | + 沙箱复用,延迟计算,提高运行效率 |
| 88 | + </p> |
| 89 | + </div> |
| 90 | + <div className="flex flex-col items-start"> |
| 91 | + <div className="flex items-center gap-2 mb-2"> |
| 92 | + <Box className="w-6 h-6" /> |
| 93 | + <h3 className="text-xl font-semibold">便捷</h3> |
| 94 | + </div> |
| 95 | + <p className="text-fd-muted-foreground"> |
| 96 | + 支持使用脚本一键搭建 |
| 97 | + </p> |
| 98 | + </div> |
| 99 | + <div className="flex flex-col items-start"> |
| 100 | + <div className="flex items-center gap-2 mb-2"> |
| 101 | + <Shield className="w-6 h-6" /> |
| 102 | + <h3 className="text-xl font-semibold">安全</h3> |
| 103 | + </div> |
| 104 | + <p className="text-fd-muted-foreground"> |
| 105 | + 使用 Linux 容器技术隔离用户程序 |
| 106 | + </p> |
| 107 | + </div> |
| 108 | + <div className="flex flex-col items-start"> |
| 109 | + <div className="flex items-center gap-2 mb-2"> |
| 110 | + <Puzzle className="w-6 h-6" /> |
| 111 | + <h3 className="text-xl font-semibold">扩展</h3> |
| 112 | + </div> |
| 113 | + <p className="text-fd-muted-foreground"> |
| 114 | + 可通过安装附加组件进行扩展 |
| 115 | + </p> |
| 116 | + </div> |
| 117 | + <div className="flex flex-col items-start"> |
| 118 | + <div className="flex items-center gap-2 mb-2"> |
| 119 | + <Github className="w-6 h-6" /> |
| 120 | + <h3 className="text-xl font-semibold">开源</h3> |
| 121 | + </div> |
| 122 | + <p className="text-fd-muted-foreground"> |
| 123 | + 代码基于 AGPL 开源,可修改 |
| 124 | + </p> |
| 125 | + </div> |
| 126 | + </div> |
| 127 | + |
| 128 | + <div className="flex flex-col items-center text-center max-w-2xl mx-auto"> |
| 129 | + <p className="text-fd-muted-foreground text-lg mb-8"> |
| 130 | + <span className="text-red-500">❤</span> Hydro 由开源社区驱动。 |
| 131 | + </p> |
| 132 | + <div className="flex flex-wrap justify-center gap-2 mb-4"> |
| 133 | + {contributors.map((username) => ( |
| 134 | + <div |
| 135 | + key={username} |
| 136 | + className="w-12 h-12 rounded-full overflow-hidden bg-fd-subtle relative group" |
| 137 | + > |
| 138 | + <Image |
| 139 | + src={`https://github.com/${username}.png`} |
| 140 | + alt={`Contributor ${username}`} |
| 141 | + fill |
| 142 | + className="object-cover" |
| 143 | + /> |
| 144 | + </div> |
| 145 | + ))} |
| 146 | + </div> |
| 147 | + <p className="text-fd-muted-foreground"> |
| 148 | + 我们的一些活跃贡献者 |
| 149 | + </p> |
| 150 | + </div> |
17 | 151 | </main>
|
18 | 152 | );
|
19 | 153 | }
|
0 commit comments