feat: color overhaul
This commit is contained in:
1 parent
8fc452951b
commit
e5fbf7493c
22 files changed
+234
-243
No files matched your search
@@ -23,7 +23,7 @@
|
||||
}}
|
||||
>
|
||||
<span slot="label" class="flex items-center gap-1">
|
||||
<Icon src={Clock} size="16" mini />
|
||||
<Icon src={Clock} size="15" mini />
|
||||
Time
|
||||
</span>
|
||||
<option value="TopAll">All</option>
|
||||
@@ -47,7 +47,7 @@
|
||||
}}
|
||||
>
|
||||
<span slot="label" class="flex items-center gap-1">
|
||||
<Icon src={ChartBar} size="14" mini />
|
||||
<Icon src={ChartBar} size="13" mini />
|
||||
Sort
|
||||
</span>
|
||||
<option value="Active">Active</option>
|
||||
|
||||
@@ -4,12 +4,15 @@
|
||||
import Subscribe from '../../../../routes/communities/Subscribe.svelte'
|
||||
import {
|
||||
ChatBubbleOvalLeftEllipsis,
|
||||
Check,
|
||||
Icon,
|
||||
PencilSquare,
|
||||
Plus,
|
||||
UserGroup,
|
||||
} from 'svelte-hero-icons'
|
||||
import FormattedNumber from '$lib/components/util/FormattedNumber.svelte'
|
||||
import { Button } from 'mono-svelte'
|
||||
import { isSubscribed } from '$lib/util.js'
|
||||
|
||||
export let community: CommunityView
|
||||
</script>
|
||||
@@ -17,7 +20,7 @@
|
||||
<div class="py-4 flex flex-col gap-1 text-sm max-w-full">
|
||||
<div class="flex flex-row items-center">
|
||||
<span
|
||||
class="break-words max-w-full w-max text-base font-bold text-sky-400 hover:underline"
|
||||
class="break-words max-w-full w-max text-base font-bold hover:underline"
|
||||
>
|
||||
<CommunityLink
|
||||
showInstance={false}
|
||||
@@ -40,9 +43,22 @@
|
||||
: 'NotSubscribed'
|
||||
}
|
||||
}}
|
||||
color={community.subscribed == 'Subscribed' ? 'primary' : 'ghost'}
|
||||
color={isSubscribed(community.subscribed) ? 'elevatedLow' : 'primary'}
|
||||
class={isSubscribed(community.subscribed)
|
||||
? 'text-slate-600 dark:text-zinc-400'
|
||||
: ''}
|
||||
>
|
||||
{community.subscribed == 'Subscribed' ? 'Subscribed' : 'Subscribe'}
|
||||
<Icon
|
||||
src={isSubscribed(community.subscribed) ? Check : Plus}
|
||||
size="16"
|
||||
mini
|
||||
slot="prefix"
|
||||
/>
|
||||
{#if isSubscribed(community.subscribed)}
|
||||
Subscribed
|
||||
{:else}
|
||||
Subscribe
|
||||
{/if}
|
||||
</Button>
|
||||
</Subscribe>
|
||||
</div>
|
||||
|
||||
@@ -49,10 +49,10 @@
|
||||
{#if view == 'list' || view == 'compact'}
|
||||
<div
|
||||
class="absolute -inset-0.5 group-hover:-inset-2 group-hover:-inset-y-3 group-hover:md:-inset-4
|
||||
transition-all -z-[5] rounded-xl group-hover:bg-slate-100 group-hover:dark:bg-zinc-900"
|
||||
transition-all rounded-xl group-hover:bg-slate-50 group-hover:dark:bg-zinc-900"
|
||||
/>
|
||||
{/if}
|
||||
<div class="flex flex-row gap-2 max-w-full w-full">
|
||||
<div class="flex flex-row gap-2 max-w-full w-full z-10">
|
||||
<div class="flex flex-col w-full gap-2">
|
||||
<div class="flex flex-col w-full gap-2">
|
||||
<PostMeta
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
</Modal>
|
||||
{/if}
|
||||
|
||||
<div class="flex flex-row gap-2 items-center h-8">
|
||||
<div class="flex flex-row gap-2 items-center h-8 [&>*]:z-10">
|
||||
<PostVote
|
||||
post={post.post}
|
||||
bind:vote={post.my_vote}
|
||||
|
||||
Reference in new issue
Block a user