client: remove TODO doc from home

This commit is contained in:
Max Leiter 2022-03-10 12:51:26 -08:00
parent d669f1057e
commit 96fc4f38ae
No known key found for this signature in database
GPG key ID: A3512F2F2F17EBDA

View file

@ -25,35 +25,18 @@ export function getStaticProps() {
In terms of design and functionality. Hosts images and markdown, rendered. Creates links that can be private or public. Uses/requires registration. In terms of design and functionality. Hosts images and markdown, rendered. Creates links that can be private or public. Uses/requires registration.
I have looked at dozens of pastebin-like things. I have looked at dozens of pastebin-like things.
` `
const todoDoc =
`#### In no particular order:
- Less JavaScript usage (it's currently required)
- A non-Node backend
- Hosting images
- Password-protected posts
- Administrator panel
- Meta tags
- User settings
- Search
- "Forking"
- LaTeX
- Syntax highlighting based on filename ending`
return { return {
props: { props: {
introContent: introDoc, introContent: introDoc,
todoContent: todoDoc,
} }
} }
} }
type Props = ThemeProps & { type Props = ThemeProps & {
introContent: string introContent: string
todoContent: string
} }
const Home = ({ theme, changeTheme, introContent, todoContent }: Props) => { const Home = ({ theme, changeTheme, introContent }: Props) => {
return ( return (
<Page className={styles.container} width="100%"> <Page className={styles.container} width="100%">
<Head> <Head>
@ -75,12 +58,6 @@ const Home = ({ theme, changeTheme, introContent, todoContent }: Props) => {
title={`Welcome to Drift.md`} title={`Welcome to Drift.md`}
initialTab={`preview`} initialTab={`preview`}
/> />
<Document
editable={false}
content={todoContent}
title={`TODO.md`}
initialTab={`preview`}
/>
</Page.Content> </Page.Content>
</Page > </Page >
) )