-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Migrate back to pages router :/
- Loading branch information
Showing
12 changed files
with
103 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import "./styles/globals.css"; | ||
import type { AppProps } from "next/app"; | ||
|
||
export default function App({ Component, pageProps }: AppProps) { | ||
return <Component {...pageProps} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Html, Head, Main, NextScript } from "next/document"; | ||
|
||
export default function Document() { | ||
return ( | ||
<Html lang="en"> | ||
<Head /> | ||
<body> | ||
<Main /> | ||
<NextScript /> | ||
</body> | ||
</Html> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
'use client'; | ||
|
||
import { Neucha } from 'next/font/google'; | ||
import Head from 'next/head'; | ||
import ReactMarkdown from 'react-markdown' | ||
|
||
const neucha = Neucha({ | ||
weight: "400", | ||
preload: true, | ||
fallback: [ | ||
"Neucha", "Dekko", | ||
// fallbacks from https://github.com/system-fonts/modern-font-stacks#handwritten | ||
'Segoe Print', 'Bradley Hand', 'Chilanka', 'TSCu_Comic', | ||
'casual', 'cursive', | ||
], | ||
subsets: ["latin"], | ||
}) | ||
|
||
async function getPrivacyPolicyMarkdown(): Promise<string> { | ||
const res = await fetch('https://raw.githubusercontent.com/saber-notes/saber/main/privacy_policy.md'); | ||
const text = await res.text(); | ||
return text; | ||
} | ||
|
||
export async function getStaticProps() { | ||
const markdown = await getPrivacyPolicyMarkdown(); | ||
|
||
return { props: { markdown } }; | ||
} | ||
|
||
export default function PrivacyPolicy({ markdown }: { markdown: string }) { | ||
return ( | ||
<> | ||
<Head> | ||
<title>Saber: Privacy Policy</title> | ||
<meta name="description" content="The notes app built for handwriting" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
</Head> | ||
<main className={neucha.className}> | ||
<ReactMarkdown>{markdown}</ReactMarkdown> | ||
|
||
<br /> | ||
<p> | ||
See this page on{' '} | ||
<a href="https://github.com/saber-notes/saber/blob/main/privacy_policy.md"> | ||
GitHub | ||
</a> | ||
</p> | ||
</main> | ||
</> | ||
); | ||
} |
File renamed without changes.
File renamed without changes.