-
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.
- Loading branch information
Showing
18 changed files
with
153 additions
and
20 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: "Mdxで書けるMarkdownのスタイル確認" | ||
date: "2020-12-29-06-56" | ||
tags: [mdx, markdown, blog] | ||
--- | ||
|
||
これはテスト記事です | ||
- これはテストのテキストです。 | ||
- これはThis is a pen; | ||
- React compornent; | ||
- Next.js | ||
|
||
# これはテストです React Components - Next.js | ||
|
||
`content` | ||
|
||
# Code block | ||
```js | ||
console.log('test desu') | ||
const test = getPostData() | ||
``` | ||
|
||
```ts | ||
import { parse, format } from 'date-fns' | ||
|
||
export function formatDate(date: string) { | ||
const fmt = parse(date, 'yyyy-MM-dd-HH-mm', new Date()) | ||
// return format(fmt, 'yyyy/MM/dd HH:mm') | ||
return format(fmt, 'yyyy/MM/dd') | ||
} | ||
``` |
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,18 @@ | ||
import Link from 'next/link' | ||
import styles from './styles/tagsInArticleList.module.scss' | ||
|
||
export default function Tag(props: { | ||
tags: string[] | ||
}) { | ||
return ( | ||
<div className={styles.articleTags}> | ||
{props.tags.map((tag, index) => { | ||
return ( | ||
<Link href={`/tags/${tag}`} key={index}> | ||
<a className={styles.tag}>{tag}</a> | ||
</Link> | ||
) | ||
})} | ||
</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
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
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,37 @@ | ||
@import '../../styles/config'; | ||
|
||
.articleTags { | ||
margin: 0 0 1rem 0; | ||
// margin-top: 1rem; | ||
// margin-bottom: 3rem; | ||
} | ||
|
||
.tag { | ||
display: inline-block; | ||
// background-color: #f1f1f1; | ||
color: var(--color-link); | ||
// padding: 0.3rem 0.8rem; | ||
// margin: 0 0.7rem; | ||
margin-right: 1.3rem; | ||
margin-bottom: .3rem; | ||
border-radius: 4px; | ||
text-decoration: none; | ||
font-weight: 300; | ||
font-size: 17px; | ||
font-family: 'Roboto', 'Segoe UI', 'Helvetica Neue', Arial, 'BIZ UDPGothic', 'Yu Gothic UI', 'Meiryo UI', Helvetica, sans-serif; | ||
letter-spacing: .07rem; | ||
line-height: 1rem; | ||
@media screen and (max-width: $breakPoint) { | ||
margin-right: .8rem; | ||
margin-bottom: .2rem; | ||
font-size: 15px; | ||
} | ||
} | ||
.tag:last-child { | ||
margin-right: 0; | ||
} | ||
.tag:hover { | ||
// background-color: #f6f6f6; | ||
// background-color: #e9e9e9; | ||
// text-decoration: none; | ||
} |
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,5 +1,6 @@ | ||
{ | ||
"13990": "202009120358_13990_develop-test-3.mdx", | ||
"64403": "202008271034_64403_develop-test-1.mdx", | ||
"75234": "202012290656_75234_markdown-style-test.mdx", | ||
"80520": "202008301100_80520_develop-test-2.mdx" | ||
} |
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
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
4f9a659
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: