add index, videos list, and single video page
This commit is contained in:
parent
afdb47ab02
commit
77f783fcf8
3 changed files with 57 additions and 16 deletions
|
|
@ -23,24 +23,11 @@ const Home: NextPage = () => {
|
|||
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2 md:gap-8">
|
||||
<Link
|
||||
className="flex max-w-xs flex-col gap-4 rounded-xl bg-white/10 p-4 text-white hover:bg-white/20"
|
||||
href="https://create.t3.gg/en/usage/first-steps"
|
||||
target="_blank"
|
||||
href="/videos"
|
||||
>
|
||||
<h3 className="text-2xl font-bold">First Steps →</h3>
|
||||
<h3 className="text-2xl font-bold">Go to Videos →</h3>
|
||||
<div className="text-lg">
|
||||
Just the basics - Everything you need to know to set up your
|
||||
database and authentication.
|
||||
</div>
|
||||
</Link>
|
||||
<Link
|
||||
className="flex max-w-xs flex-col gap-4 rounded-xl bg-white/10 p-4 text-white hover:bg-white/20"
|
||||
href="https://create.t3.gg/en/introduction"
|
||||
target="_blank"
|
||||
>
|
||||
<h3 className="text-2xl font-bold">Documentation →</h3>
|
||||
<div className="text-lg">
|
||||
Learn more about Create T3 App, the libraries it uses, and how
|
||||
to deploy it.
|
||||
The entire videos collection
|
||||
</div>
|
||||
</Link>
|
||||
</div>
|
||||
|
|
|
|||
27
src/pages/share/[videoId].tsx
Normal file
27
src/pages/share/[videoId].tsx
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import { type NextPage } from "next";
|
||||
import Head from "next/head";
|
||||
|
||||
import { api } from "~/utils/api";
|
||||
|
||||
const VideoList: NextPage = () => {
|
||||
const hello = api.example.hello.useQuery({ text: "from tRPC" });
|
||||
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>Create T3 App</title>
|
||||
<meta name="description" content="Generated by create-t3-app" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
</Head>
|
||||
<main className="flex min-h-screen flex-col items-center justify-center bg-gradient-to-b from-[#2e026d] to-[#15162c]">
|
||||
<div className="container flex flex-col items-center justify-center gap-12 px-4 py-16 ">
|
||||
<h1 className="text-5xl font-extrabold tracking-tight text-white sm:text-[5rem]">
|
||||
single video page
|
||||
</h1>
|
||||
</div>
|
||||
</main>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default VideoList;
|
||||
27
src/pages/videos.tsx
Normal file
27
src/pages/videos.tsx
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import { type NextPage } from "next";
|
||||
import Head from "next/head";
|
||||
|
||||
import { api } from "~/utils/api";
|
||||
|
||||
const VideoList: NextPage = () => {
|
||||
const hello = api.example.hello.useQuery({ text: "from tRPC" });
|
||||
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>Create T3 App</title>
|
||||
<meta name="description" content="Generated by create-t3-app" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
</Head>
|
||||
<main className="flex min-h-screen flex-col items-center justify-center bg-gradient-to-b from-[#2e026d] to-[#15162c]">
|
||||
<div className="container flex flex-col items-center justify-center gap-12 px-4 py-16 ">
|
||||
<h1 className="text-5xl font-extrabold tracking-tight text-white sm:text-[5rem]">
|
||||
<span className="text-[hsl(280,100%,70%)]">video collection list</span>
|
||||
</h1>
|
||||
</div>
|
||||
</main>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default VideoList;
|
||||
Loading…
Reference in a new issue