2023-08-04 00:11:41 +00:00
|
|
|
import {CreatePrivateBoardPanel} from "@/app/CreatePrivateBoardPanel"
|
|
|
|
import {CreatePublicBoardPanel} from "@/app/CreatePublicBoardPanel"
|
2023-08-01 16:13:20 +00:00
|
|
|
import {default as React} from "react";
|
2023-08-04 14:41:33 +00:00
|
|
|
import style from "./page.module.css"
|
2023-08-01 16:13:20 +00:00
|
|
|
|
|
|
|
export default function Page() {
|
2023-08-04 14:41:33 +00:00
|
|
|
return <div className={style.pageRoot}>
|
|
|
|
<PageHeader/>
|
|
|
|
<PageMain/>
|
|
|
|
<PageFooter/>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
|
|
|
|
function PageHeader() {
|
|
|
|
return (
|
|
|
|
<header className={style.pageHeader}>
|
2023-08-01 16:13:20 +00:00
|
|
|
<h1>
|
|
|
|
{process.env.NEXT_PUBLIC_SITE_NAME ?? "Todoblue"}
|
|
|
|
</h1>
|
|
|
|
</header>
|
2023-08-04 14:41:33 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
function PageMain() {
|
|
|
|
return (
|
|
|
|
<main className={style.pageMain}>
|
2023-08-01 16:13:20 +00:00
|
|
|
<div className={"chapter-2"}>
|
|
|
|
<h2>
|
|
|
|
Crea un nuovo tabellone
|
|
|
|
</h2>
|
2023-08-04 00:11:41 +00:00
|
|
|
<CreatePublicBoardPanel/>
|
|
|
|
<CreatePrivateBoardPanel/>
|
2023-08-01 16:13:20 +00:00
|
|
|
</div>
|
|
|
|
</main>
|
2023-08-04 14:41:33 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
function PageFooter() {
|
|
|
|
return (
|
|
|
|
<footer className={style.pageFooter}>
|
|
|
|
<p>
|
|
|
|
© <a href="https://steffo.eu">Stefano Pigozzi</a> -
|
|
|
|
<a href="https://www.gnu.org/licenses/agpl-3.0.en.html">AGPL 3.0</a> -
|
|
|
|
<a href="https://github.com/Steffo99/todocolors">GitHub</a>
|
|
|
|
</p>
|
|
|
|
</footer>
|
|
|
|
)
|
2023-08-01 16:13:20 +00:00
|
|
|
}
|