client: improve default home message
This commit is contained in:
parent
c1c5af2b18
commit
9949faeebd
2 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
API_URL=http://localhost:3000
|
API_URL=http://localhost:3000
|
||||||
WELCOME_TITLE="Welcome to Drift"
|
WELCOME_TITLE="Welcome to Drift"
|
||||||
WELCOME_CONTENT="### Drift is a self-hostable clone of GitHub Gist. \nIt is a simple way to share code and text snippets with your friends, with support for the following:\n \n - Render GitHub Extended Markdown (including images)\n - User authentication\n - Private, public, and secret posts\n \n If you want to signup, you can join at [/signup](/signup) as long as you have a passcode provided by the administrator (which you don\'t need for this demo).\n **This demo is on a memory-only database, so accounts and pastes can be deleted at any time.**\n You can find the source code on [GitHub](https://github.com/MaxLeiter/drift).\n \n Drift was inspired by [this tweet](https://twitter.com/emilyst/status/1499858264346935297):\n > What is the absolute closest thing to GitHub Gist that can be self-hosted?\n 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."
|
WELCOME_CONTENT="## Drift is a self-hostable clone of GitHub Gist. \nIt is a simple way to share code and text snippets with your friends, with support for the following:\n \n - Render GitHub Extended Markdown (including images)\n - User authentication\n - Private, public, and password protected posts\n - Markdown is rendered and stored on the server\n - Syntax highlighting and automatic language detection\n - Drag-and-drop file uploading\n\n If you want to signup, you can join at [/signup](/signup) as long as you have a passcode provided by the administrator (which you don\\\'t need for this demo). **This demo is on a memory-only database, so accounts and pastes can be deleted at any time.** \n\nYou can find the source code on [GitHub](https://github.com/MaxLeiter/drift)."
|
||||||
SECRET_KEY=secret
|
SECRET_KEY=secret
|
|
@ -18,13 +18,13 @@ export function getStaticProps() {
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
introContent: string
|
introContent: string
|
||||||
|
introTitle: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const Home = ({ introContent }: Props) => {
|
const Home = ({ introContent, introTitle }: Props) => {
|
||||||
return (
|
return (
|
||||||
<Page className={styles.container}>
|
<Page className={styles.container}>
|
||||||
<PageSeo />
|
<PageSeo />
|
||||||
|
|
||||||
<Page.Header>
|
<Page.Header>
|
||||||
<Header />
|
<Header />
|
||||||
</Page.Header>
|
</Page.Header>
|
||||||
|
@ -36,7 +36,7 @@ const Home = ({ introContent }: Props) => {
|
||||||
</div>
|
</div>
|
||||||
<Document
|
<Document
|
||||||
content={introContent}
|
content={introContent}
|
||||||
title={`Welcome to Drift.md`}
|
title={introTitle}
|
||||||
initialTab={`preview`}
|
initialTab={`preview`}
|
||||||
/>
|
/>
|
||||||
</Page.Content>
|
</Page.Content>
|
||||||
|
|
Loading…
Reference in a new issue