1
0
cvsa/packages/temp_frontend/app/routes/home/index.tsx

51 lines
1.6 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { useState } from "react";
import { Layout } from "@/components/Layout";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { MilestoneVideos } from "@/routes/home/Milestone";
import type { Route } from "./+types/index";
export function meta({}: Route.MetaArgs) {
return [{ title: "中V档案馆" }];
}
export default function Home() {
const [input, setInput] = useState("");
return (
<Layout>
<div className="bg-red-100 dark:bg-red-900 text-red-800 dark:text-red-200 p-4 mt-8 rounded-lg">
<h2 className="text-red-900 dark:text-red-200 text-2xl font-bold mb-2"></h2>
<p></p>
<p></p>
</div>
<h2 className="text-2xl font-medium mt-8 mb-4"></h2>
<div className="flex max-sm:flex-col sm:items-center justify-between gap-7 mb-8">
<div className="flex gap-3">
<a href="/time-calculator">
<Button></Button>
</a>
<a href="/labelling">
<Button></Button>
</a>
</div>
<div className="flex sm:w-96 gap-3">
<Input
placeholder="输入 BV 号或 av 号"
value={input}
onChange={(e) => setInput(e.target.value)}
/>
<a href={`/song/${input}/add`}>
<Button></Button>
</a>
<a href={`/video/${input}/info`}>
<Button></Button>
</a>
</div>
</div>
<MilestoneVideos />
</Layout>
);
}