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,
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,7 +43,9 @@ export const Post = ({
</a>
</div>
)}
<div class="post-content">{children}</div>
<div style="display: flex;">
<div class="post-content">{children}</div>
</div>
</div>
<Hrish />
<Bottom n_comments={n_comments} />
@ -51,14 +53,59 @@ export const Post = ({
);
render_and_copy(
<Post
headline="can i have more than one post please"
username="onepost"
display_name="one post per user"
posted="1 post"
link="dummy"
n_comments={413}
>
Hello world how's it going
</Post>
<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="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>
);