Skip to content

Commit

Permalink
Post.jsを作成しよう
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yoshiii committed Sep 29, 2022
1 parent 4137c34 commit 576532a
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
40 changes: 40 additions & 0 deletions src/components/timeline/Post.jsx
@@ -0,0 +1,40 @@
import {
ChatBubbleOutline,
FavoriteBorder,
PublishOutlined,
Repeat,
VerifiedUser,
} from "@mui/icons-material";
import { Avatar } from "@mui/material";
import React from "react";

const Post = () => {
return (
<div className="post">
<div className="post__avatar">
<Avatar src="" />
</div>
<div className="post__body">
<div className="post__header">
<h3 className="post__headerText">プログラミングチュートリアル</h3>
<div className="post__headerSpecial">
<VerifiedUser className="post__badge" />
@name
</div>
<div className="post__headerDiscription">
<p>テキストテキストテキスト</p>
</div>
</div>
</div>
<img src="https://source.unsplash.com/random/" alt="" />
<div className="post__footer">
<ChatBubbleOutline fontSize="small" />
<Repeat fontSize="small" />
<FavoriteBorder fontSize="small" />
<PublishOutlined fontSize="small" />
</div>
</div>
);
};

export default Post;
3 changes: 2 additions & 1 deletion src/components/timeline/Timeline.jsx
@@ -1,4 +1,5 @@
import React from "react";
import Post from "./Post";
import "./Timeline.scss";
import TweetBox from "./TweetBox";
const Timeline = () => {
Expand All @@ -9,7 +10,7 @@ const Timeline = () => {
<h2>ホーム</h2>
</div>
<TweetBox />
{/* Post */}
<Post />
</div>
);
};
Expand Down

0 comments on commit 576532a

Please sign in to comment.