-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: mateonunez <mateonunez95@gmail.com>
- Loading branch information
1 parent
585aeb8
commit 93ff3b1
Showing
4 changed files
with
11 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
'use client'; | ||
|
||
import s from 'components/articles/article.module.css'; | ||
|
||
import ArticleMeta from 'components/articles/meta'; | ||
import ArticleTitle from 'components/articles/title'; | ||
import ArticleContent from 'components/articles/content'; | ||
import Article from 'components/articles'; | ||
|
||
export default function ArticlePageClient({ source, frontmatter }) { | ||
const { title, date, author, tags, readingTime } = frontmatter; | ||
|
||
return ( | ||
<div className={s.root}> | ||
<ArticleMeta date={date} author={author} tags={tags} readingTime={readingTime} /> | ||
|
||
<ArticleTitle title={title} /> | ||
|
||
<ArticleContent source={source} /> | ||
<Article | ||
frontMatter={frontmatter} | ||
source={source} | ||
/> | ||
</div> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'use client'; | ||
|
||
import s from './content.module.css'; | ||
|
||
import { MDXRemote } from 'next-mdx-remote'; | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'use client'; | ||
|
||
import s from './meta.module.css'; | ||
|
||
import Link from 'next/link'; | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
'use client'; | ||
|
||
import s from './title.module.css'; | ||
|
||
export default function ArticleTitle({ title }) { | ||
|