-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpage.tsx
More file actions
47 lines (44 loc) · 1.59 KB
/
page.tsx
File metadata and controls
47 lines (44 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
"use client";
import { useQuery } from "convex/react";
import LinkGenerator from "./components/LinkGenerator";
import { api } from "@/convex/_generated/api";
import LeaderBoard from "./components/LeaderBoard/LeaderBoard";
export default function Home() {
const allSlugs = useQuery(api.slugs.getAllSlugs);
return (
<main className="flex justify-center items-center min-h-screen">
<div className="flex justify-between m-auto items-center">
<div className="flex-col justify-center p-5">
<h1 className="pb-10 text-3xl text-left">100Editors</h1>
<div className="flex justify-center content-center flex-col gap-5 w-full">
<p>
Race the clock to write a story satisfying all your
publisher's rules!
</p>
<p className="mb-10">
Edit alone or with up to 100 friends. Make a room or join your
friends!
</p>
<LinkGenerator />
<footer className="mt-10">
<p>Made by members of the 100Devs Community</p>
<p>Not associated with 100Devs</p>
<a
className="text-blue-600"
href="https://github.com/web-dev-cody-hackathon/100editors"
target="_blank"
>
View github repository
</a>
</footer>
</div>
</div>
{allSlugs && (
<div className="flex flex-col h-full p-5 grow rounded-2xl">
<LeaderBoard allSlugs={allSlugs} />
</div>
)}
</div>
</main>
);
}