-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.tsx
More file actions
35 lines (32 loc) · 918 Bytes
/
page.tsx
File metadata and controls
35 lines (32 loc) · 918 Bytes
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
import Link from "next/link";
import "@/app/_config/dbConnect";
import "@/app/_config/schemas";
import styles from "./page.module.css";
import { BasicHeader,InfoBox } from "@/components/server";
function LoginBox() {
return (
<div className="login box">
<Link href="/auth/register" className="linkbutton">
Register
</Link>
<Link href="/auth/login" className="linkbutton">
Login
</Link>
</div>
);
}
export default async function Home() {
const welcomeText = `
Welcome! This is Markdown Reader, an app that allows you to upload markdown documents and view them in the browser.
Register an account to get started!
`;
return (
<main className={styles.main}>
<BasicHeader></BasicHeader>
<div className="wrapper">
<InfoBox className="info box" text={welcomeText}></InfoBox>
<LoginBox></LoginBox>
</div>
</main>
)
}