www: add features for privacy and browsing

This commit is contained in:
2023-10-13 09:58:16 +02:00
committed by Mathieu Virbel
parent a3e9683f1e
commit 168e4d6fa4
5 changed files with 208 additions and 7 deletions

View File

@@ -9,6 +9,7 @@ import Image from "next/image";
import Link from "next/link";
import About from "./(aboutAndPrivacy)/about";
import Privacy from "./(aboutAndPrivacy)/privacy";
import { featPrivacy } from "./lib/utils";
const poppins = Poppins({ subsets: ["latin"], weight: ["200", "400", "600"] });
@@ -93,9 +94,29 @@ export default function RootLayout({ children }) {
</Link>
<div>
{/* Text link on the right */}
<About buttonText="About" />
<Link
href="/transcripts/new"
className="hover:underline focus-within:underline underline-offset-2 decoration-[.5px] font-light px-2"
>
Create
</Link>
&nbsp;·&nbsp;
<Privacy buttonText="Privacy" />
<Link
href="/browse"
className="hover:underline focus-within:underline underline-offset-2 decoration-[.5px] font-light px-2"
>
Browse
</Link>
&nbsp;·&nbsp;
<About buttonText="About" />
{featPrivacy() ? (
<>
&nbsp;·&nbsp;
<Privacy buttonText="Privacy" />
</>
) : (
<></>
)}
</div>
</header>