From 45c3b87243b6a06e19adc45ae015d45c87cb36db Mon Sep 17 00:00:00 2001 From: Hollgy Date: Fri, 8 Mar 2024 14:52:20 +0100 Subject: [PATCH] style adjustments, moving to darker theme --- client-solid/src/Components/Comment.tsx | 23 +++++++-- client-solid/src/Components/Posts.tsx | 17 +++++-- client-solid/src/Util/Icons.tsx | 68 ++++++++++++++++++++----- client-solid/tailwind.config.js | 6 +-- 4 files changed, 90 insertions(+), 24 deletions(-) diff --git a/client-solid/src/Components/Comment.tsx b/client-solid/src/Components/Comment.tsx index 0ceb98f..802d2ef 100644 --- a/client-solid/src/Components/Comment.tsx +++ b/client-solid/src/Components/Comment.tsx @@ -1,5 +1,8 @@ -import { JSXElement, } from "solid-js"; -import { PublicComment } from "../Util/api"; +import { JSXElement } from "solid-js"; + +import { ReplyIcon } from "../Util/Icons"; +import { EngagementIcon } from "../Util/Icons"; +import { PublicComment } from "../Util/api"; /** * Comment is a component that displays a single comment. @@ -9,11 +12,21 @@ import { PublicComment } from "../Util/api"; */ export function Comment({ comment }: { comment: PublicComment }): JSXElement { return ( -
-
-
{comment.created_at}
+
+
+
{comment.created_at}
{comment.content}
+ +
+
+ {/* Placeholder icon, tbd */} + +
+
+ +
+
); } diff --git a/client-solid/src/Components/Posts.tsx b/client-solid/src/Components/Posts.tsx index 1e467d3..39377d4 100644 --- a/client-solid/src/Components/Posts.tsx +++ b/client-solid/src/Components/Posts.tsx @@ -1,7 +1,7 @@ import { useNavigate } from "@solidjs/router"; import { For, JSXElement, Show, createSignal } from "solid-js"; -import { Arrow, loadSpinner } from "../Util/Icons"; +import { Arrow, EngagementIcon, loadSpinner } from "../Util/Icons"; import { Post, getPosts } from "../Util/api"; export function Posts(): JSXElement { @@ -26,10 +26,19 @@ export function Posts(): JSXElement { export function PostSegment(props: { post: Post }): JSXElement { const nav = useNavigate(); return ( -
+
-

{props.post?.content}

-
+

+ {props.post?.content} +

+
+