one post: DONE ENOUGH
This commit is contained in:
parent
4f2646850b
commit
705a352d4e
1 changed files with 60 additions and 13 deletions
|
@ -11,7 +11,7 @@ export const Post = ({
|
|||
display_name,
|
||||
username,
|
||||
posted,
|
||||
link,
|
||||
link = "https://static.pyrope.net/cursor-fun-end",
|
||||
id,
|
||||
}: {
|
||||
children?: ComponentChildren;
|
||||
|
@ -23,7 +23,7 @@ export const Post = ({
|
|||
display_name?: string;
|
||||
username: string;
|
||||
posted: string;
|
||||
link: string;
|
||||
link?: string;
|
||||
id?: string;
|
||||
}) => (
|
||||
<div class="post">
|
||||
|
@ -43,22 +43,69 @@ export const Post = ({
|
|||
</a>
|
||||
</div>
|
||||
)}
|
||||
<div style="display: flex;">
|
||||
<div class="post-content">{children}</div>
|
||||
</div>
|
||||
</div>
|
||||
<Hrish />
|
||||
<Bottom n_comments={n_comments} />
|
||||
</div>
|
||||
);
|
||||
|
||||
render_and_copy(
|
||||
<div class="posts">
|
||||
<Post
|
||||
headline="can i have more than one post please"
|
||||
username="mehbark"
|
||||
posted="6 hr. ago"
|
||||
n_comments={2}
|
||||
>
|
||||
one post isn't really enough for me
|
||||
</Post>
|
||||
<Post
|
||||
headline="@onepost says"
|
||||
username="onepost"
|
||||
display_name="one post per user"
|
||||
posted="1 post"
|
||||
link="dummy"
|
||||
n_comments={413}
|
||||
posted="6 hr. ago"
|
||||
n_comments={1}
|
||||
>
|
||||
Hello world how's it going
|
||||
i don't really make the rules i'm just a bot
|
||||
</Post>
|
||||
<Post
|
||||
headline="@onepost says"
|
||||
username="onepost"
|
||||
display_name="one post per user"
|
||||
posted="5 hr. ago"
|
||||
n_comments={11}
|
||||
>
|
||||
wait a minute! i didn't say that! you're putting posts in my mouth!
|
||||
</Post>
|
||||
<Post
|
||||
headline="my bad"
|
||||
username="mehbark"
|
||||
posted="3 hr. ago"
|
||||
n_comments={0}
|
||||
>
|
||||
i'm sorry about that do you want a css crime as penance
|
||||
</Post>
|
||||
<Post
|
||||
headline="@onepost says"
|
||||
username="onepost"
|
||||
display_name="one post per user"
|
||||
posted="2 hr. ago"
|
||||
n_comments={111}
|
||||
>
|
||||
isn't this whole thing a css crime (that probably won't work)?
|
||||
</Post>
|
||||
<Post
|
||||
headline="my bad"
|
||||
username="mehbark"
|
||||
posted="30 min. ago"
|
||||
n_comments={3}
|
||||
>
|
||||
<span style='background: url("https://t4.ftcdn.net/jpg/02/31/38/67/240_F_231386743_1tDqjFySEGvqfoctbankdrsPTS7C76cz.jpg") 50% 50% no-repeat fixed;'>
|
||||
oh yeah, good point! that makes my job a lot easier
|
||||
</span>
|
||||
</Post>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue