Compare commits
2 commits
0907e2b7bd
...
458cf196e9
Author | SHA1 | Date | |
---|---|---|---|
|
458cf196e9 | ||
|
7b87c92139 |
5 changed files with 8 additions and 8 deletions
|
@ -8,12 +8,12 @@ export default function EngagementButton({ post }: { post: Post }): JSXElement {
|
||||||
<>
|
<>
|
||||||
<div class="flex p-1">
|
<div class="flex p-1">
|
||||||
<button
|
<button
|
||||||
class="btn btn-xs hover:border-primary"
|
class="btn btn-xs hover:border-primary rounded-base"
|
||||||
aria-label="Show sign of engagement"
|
aria-label="Show sign of engagement"
|
||||||
>
|
>
|
||||||
<EngagementIcon />
|
<EngagementIcon />
|
||||||
</button>
|
</button>
|
||||||
<span class="text-1xl countdown text-center pt-1.5">
|
<span class="text-1xl countdown text-center pt-1.5 px-1.5">
|
||||||
<p style={{ "--value": 46 }}>{post.votes}</p>
|
<p style={{ "--value": 46 }}>{post.votes}</p>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -8,12 +8,12 @@ export default function ReplyButton({ post }: { post: Post }): JSXElement {
|
||||||
<>
|
<>
|
||||||
<div class="flex p-1">
|
<div class="flex p-1">
|
||||||
<button
|
<button
|
||||||
class="btn btn-xs hover:border-primary"
|
class="btn btn-xs hover:border-primary rounded-base"
|
||||||
aria-label="Show sign of engagement"
|
aria-label="Show sign of engagement"
|
||||||
>
|
>
|
||||||
<ReplyIcon />
|
<ReplyIcon />
|
||||||
</button>
|
</button>
|
||||||
<span class="text-1xl countdown text-center pt-1.5">
|
<span class="text-1xl countdown text-center pt-1.5 px-1.5">
|
||||||
<p style={{ "--value": 11 }}>{post.comments}</p>
|
<p style={{ "--value": 11 }}>{post.comments}</p>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -9,7 +9,7 @@ export default function ReportButton(): JSXElement {
|
||||||
<Show when={login_ctx.loggedIn()}>
|
<Show when={login_ctx.loggedIn()}>
|
||||||
<div class="flex p-1">
|
<div class="flex p-1">
|
||||||
<button
|
<button
|
||||||
class="btn btn-xs hover:border-primary"
|
class="rounded-base btn btn-xs hover:border-primary"
|
||||||
aria-label="Report post or comment"
|
aria-label="Report post or comment"
|
||||||
>
|
>
|
||||||
<ReportIcon />
|
<ReportIcon />
|
||||||
|
|
|
@ -14,7 +14,7 @@ export default function ToPostButton({ post }: { post: Post }): JSXElement {
|
||||||
<div class="p-1">
|
<div class="p-1">
|
||||||
<button
|
<button
|
||||||
onClick={(): void => nav("/post/" + post.id)}
|
onClick={(): void => nav("/post/" + post.id)}
|
||||||
class="btn btn-xs"
|
class="btn btn-xs hover:border-primary"
|
||||||
aria-label="View post"
|
aria-label="View post"
|
||||||
>
|
>
|
||||||
<Arrow />
|
<Arrow />
|
||||||
|
|
|
@ -21,13 +21,13 @@ export function PostSegment({ post }: { post: Post }): JSXElement {
|
||||||
<div class="card compact w-full flex-grow border-b-2 border-b-primary bg-base-200 text-base-content transition-all hover:bg-base-300">
|
<div class="card compact w-full flex-grow border-b-2 border-b-primary bg-base-200 text-base-content transition-all hover:bg-base-300">
|
||||||
<div class="card-body md:mx-6">
|
<div class="card-body md:mx-6">
|
||||||
<div class="flex flex-row justify-between">
|
<div class="flex flex-row justify-between">
|
||||||
<h3>{dateOfCreation}</h3>
|
<p class="text-xs">{dateOfCreation}</p>
|
||||||
<ReportButton />
|
<ReportButton />
|
||||||
</div>
|
</div>
|
||||||
<Show when={isEdited}>
|
<Show when={isEdited}>
|
||||||
<p>This post has been edited</p>
|
<p>This post has been edited</p>
|
||||||
</Show>
|
</Show>
|
||||||
<p class="break-words text-base-content md:pt-2">{post.content}</p>
|
<p class="text-base my-5">{post.content}</p>
|
||||||
<div class="card-actions justify-between">
|
<div class="card-actions justify-between">
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<EngagementButton post={post} />
|
<EngagementButton post={post} />
|
||||||
|
|
Loading…
Reference in a new issue