-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🍯🧊 ↝ Adding document component & updating styling to enable long-form…
- Loading branch information
1 parent
40f4aa2
commit fd089d3
Showing
9 changed files
with
862 additions
and
6 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
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
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,27 @@ | ||
import React from "react"; | ||
import Document, { Html, Head, Main, NextScript, DocumentContext } from "next/document"; | ||
import { CssBaseline } from '@nextui-org/react'; | ||
|
||
class JournalDocument extends Document { | ||
static async getInitialProps (ctx : DocumentContext ) { | ||
const initialProps = await Document.getInitialProps(ctx); | ||
return { | ||
...initialProps, | ||
styles: React.Children.toArray([ initialProps.styles ]), | ||
}; | ||
} | ||
|
||
render () { | ||
return ( | ||
<Html lang='en'> | ||
<Head>{CssBaseline.flush()}</Head> | ||
<body> | ||
<Main /> | ||
<NextScript /> | ||
</body> | ||
</Html> | ||
); | ||
}; | ||
}; | ||
|
||
export default JournalDocument; |
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 @@ | ||
import type { NextPage } from "next"; |
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,15 @@ | ||
import type { NextPage } from "next"; | ||
import styles from '../../styles/Home.module.css'; | ||
import { Text, Spacer } from '@nextui-org/react'; | ||
|
||
const JournalHome: NextPage = () => { | ||
return ( | ||
<> | ||
<Text h2>All extracted articles</Text> | ||
<Spacer y={1} /> | ||
<Text size="$lg"> | ||
Feel free to add more articles to extract metadata from | ||
</Text> | ||
</> | ||
); | ||
}; |
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 |
---|---|---|
|
@@ -126,4 +126,4 @@ | |
.logo img { | ||
filter: invert(1); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.