From 8d9b5d05026ae7152e9c80455cdeffd0d09178a9 Mon Sep 17 00:00:00 2001 From: mehbark Date: Fri, 21 Jul 2023 16:56:09 -0400 Subject: [PATCH] things are looking pretty good --- html/this-post-is-two-posts.tsx | 86 ++++++++++++++++++++++++++++++--- 1 file changed, 79 insertions(+), 7 deletions(-) diff --git a/html/this-post-is-two-posts.tsx b/html/this-post-is-two-posts.tsx index 6abd7f4..30215c5 100644 --- a/html/this-post-is-two-posts.tsx +++ b/html/this-post-is-two-posts.tsx @@ -1,4 +1,5 @@ -import { Main, render_and_copy } from "./common.tsx"; +import { ComponentChildren } from "preact"; +import { Main, mk_class_wrapper, render_and_copy } from "./common.tsx"; // i heard you liked posts, so i put a post in your post so you can post while you post const ReblogIcon = () => ( @@ -17,6 +18,14 @@ const LikeIcon = () => ( /> ); +const OptionsIcon = () => ( + the cohost icon for post options +); + const Bottom = ({ n_comments }: { n_comments: number }) => (
@@ -32,10 +41,73 @@ const Bottom = ({ n_comments }: { n_comments: number }) => (
); -render_and_copy( -
- bla bla post content -
- -
+const Content = ({ + children, + id, +}: { + children?: ComponentChildren; + id?: string; +}) => ( +
+ {children} +
+); + +const Middle = mk_class_wrapper("middle"); + +// no reblog sorry :( +const Top = ({ + display_name, + username, + link, + posted, +}: { + display_name?: string; + username: string; + posted: string; + link: string; + id?: string; +}) => ( +
+ + +
+); + +const Hrish = () => ( +
+
+
+); + +// mainly used this as my reference lol https://cohost.org/kokoscript/post/2141494-that-time-logitech-t +render_and_copy( + <> +
+
+ homestuck etc bla bla bla + + + + + homestuck^2 etc bla bla bla +
+ );