one post: DONE ENOUGH

This commit is contained in:
mehbark 2023-09-30 15:30:55 -04:00
parent 4f2646850b
commit 705a352d4e

View file

@ -11,7 +11,7 @@ export const Post = ({
display_name, display_name,
username, username,
posted, posted,
link, link = "https://static.pyrope.net/cursor-fun-end",
id, id,
}: { }: {
children?: ComponentChildren; children?: ComponentChildren;
@ -23,7 +23,7 @@ export const Post = ({
display_name?: string; display_name?: string;
username: string; username: string;
posted: string; posted: string;
link: string; link?: string;
id?: string; id?: string;
}) => ( }) => (
<div class="post"> <div class="post">
@ -43,7 +43,9 @@ export const Post = ({
</a> </a>
</div> </div>
)} )}
<div class="post-content">{children}</div> <div style="display: flex;">
<div class="post-content">{children}</div>
</div>
</div> </div>
<Hrish /> <Hrish />
<Bottom n_comments={n_comments} /> <Bottom n_comments={n_comments} />
@ -51,14 +53,59 @@ export const Post = ({
); );
render_and_copy( render_and_copy(
<Post <div class="posts">
headline="can i have more than one post please" <Post
username="onepost" headline="can i have more than one post please"
display_name="one post per user" username="mehbark"
posted="1 post" posted="6 hr. ago"
link="dummy" n_comments={2}
n_comments={413} >
> one post isn't really enough for me
Hello world how's it going </Post>
</Post> <Post
headline="@onepost says"
username="onepost"
display_name="one post per user"
posted="6 hr. ago"
n_comments={1}
>
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>
); );