Skip to content

Commit

Permalink
css 直書き
Browse files Browse the repository at this point in the history
  • Loading branch information
nasubi916 committed Apr 7, 2024
1 parent f9f3fe0 commit 3546a8a
Show file tree
Hide file tree
Showing 6 changed files with 1,267 additions and 37 deletions.
47 changes: 23 additions & 24 deletions articles/uploaded/test.mdx → articles/uploaded/test.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
tags:
- アニメ
- ゲーム
- アニメ
- ゲーム
---

Blogを表示できたら成功。
Expand All @@ -14,28 +14,24 @@ Blogを表示できたら成功。

この文が挿入されていたら成功

*ReadItLater* *Youtube*

# [笹川真生 - 日本の九月の気層です / Mao Sasagawa - Japan's September Air Layer](https://www.youtube.com/watch?v=4-3Ogspng1I&list=RDRcDBofJ-_oA&index=12)
[笹川真生 - 日本の九月の気層です / Mao Sasagawa - Japan's September Air Layer](https://www.youtube.com/watch?v=4-3Ogspng1I&list=RDRcDBofJ-_oA&index=12)

<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/4-3Ogspng1I" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Markdownの構文一覧

>
>
> 引用
>
> >
> > 引用のネスト
> > あふぁds
>
> >
> > 引用のネスト
> > あふぁds
image
![test](Test20240406233811738.jpg)

**bold**

*itaric*

`code`

~~cancel~~
Expand All @@ -53,24 +49,27 @@ image
* aaa

1. number
1. test
2. test
1. i
1. ii
1. iii
1. iv
1. v
2. ii
3. iii
4. iv
5. v

* [ ] tests
* [x] aaa

codeblock

````typescript
const [number,setNumber] =useState(0)
```typescript filename="test.tsx"
const [number,setNumber] = useState(0)

export default funciton home ():ReactElement {
return(
<h1> home page </h1>
{number}
)
return(
<h1> home page </h1>
{number}
)
}
````
```

LinkCard
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"@mdx-js/react": "^3.0.1",
"@mdx-js/rollup": "^3.0.1",
"@nanostores/react": "^0.7.2",
"github-markdown-css": "^5.5.1",
"nanostores": "^0.10.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
21 changes: 15 additions & 6 deletions src/pages/blogs/+Page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { type ReactElement } from "react";
import Test from "../../../articles/uploaded/test.mdx"
import { styled as p } from "@panda/jsx";
import "./Layout.css"
import Test from "../../../articles/uploaded/test.md";

/** @type {import('mdx/types.js').MDXComponents} */
const components = {
Expand All @@ -9,11 +11,18 @@ const components = {
};
export default function Blogs(): ReactElement {
return (
<div>
<p.div
alignItems="center"
display="flex"
flexDirection="column"
justifyContent="center"
>
<h1>Blogs</h1>
<div className="markdown-body">
<Test components={components} />
</div>
</div>
<p.div w="full">
<div className="markdown-body">
<Test components={components} />
</div>
</p.div>
</p.div>
);
}
Loading

0 comments on commit 3546a8a

Please sign in to comment.