Skip to content

Instantly share code, notes, and snippets.

@igorasilveira
Created February 19, 2022 09:38
Show Gist options
  • Save igorasilveira/0c8fc0f8eb5eb2bb6536327401d85c87 to your computer and use it in GitHub Desktop.
Save igorasilveira/0c8fc0f8eb5eb2bb6536327401d85c87 to your computer and use it in GitHub Desktop.
Protected page
import Head from "next/head";
import Navbar from "../components/Navbar";
import styles from "../styles/Home.module.css";
export default function Protected() {
return (
<div className={styles.container}>
<Head>
<title>Protected page</title>
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</Head>
<Navbar />
<main className={styles.main}>
<h1 className={styles.title}>Welcome to a protected page.</h1>
<p className={styles.description}>Here are your details</p>
</main>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment