diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 969c4e17..1b5aa379 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -76,8 +76,8 @@
class="min-h-screen {$userSettings.font == 'inter'
? 'font-inter'
: $userSettings.font == 'system'
- ? 'font-system'
- : 'font-sans'}"
+ ? 'font-system'
+ : 'font-sans'}"
route={$page.route}
>
@@ -102,7 +102,7 @@
slot="main"
let:style={s}
let:class={c}
- class="p-3 sm:p-6 min-w-0 w-full flex flex-col min-h-full {c}"
+ class="p-3 sm:p-6 min-w-0 w-full flex flex-col min-h-full relative {c}"
style={s}
class:max-w-6xl={$userSettings.newWidth}
id="main"
diff --git a/src/routes/c/[name]/+page.svelte b/src/routes/c/[name]/+page.svelte
index a0308e82..a805ac2e 100644
--- a/src/routes/c/[name]/+page.svelte
+++ b/src/routes/c/[name]/+page.svelte
@@ -20,7 +20,7 @@
XMark,
} from 'svelte-hero-icons'
import Placeholder from '$lib/components/ui/Placeholder.svelte'
- import { profile } from '$lib/auth';
+ import { profile } from '$lib/auth'
export let data
@@ -56,9 +56,16 @@
+{#if data.community.community_view.community.banner}
+
+{/if}
-
+
- {#if $profile?.user && $profile.user.moderates.map(c => c.community.id).includes(data.community.community_view.community.id)}
-
+ {#if $profile?.user && $profile.user.moderates
+ .map((c) => c.community.id)
+ .includes(data.community.community_view.community.id)}
+
{/if}
-
+
{#if data.community.community_view.blocked}
@@ -149,3 +158,6 @@
+
+
diff --git a/src/routes/u/[name]/+page.svelte b/src/routes/u/[name]/+page.svelte
index 3452ecf4..35f320dd 100644
--- a/src/routes/u/[name]/+page.svelte
+++ b/src/routes/u/[name]/+page.svelte
@@ -145,6 +145,13 @@
{/if}
+{#if data.person_view.person.banner}
+

+{/if}
diff --git a/src/style/app.css b/src/style/app.css
index cf35c5c4..8904149f 100644
--- a/src/style/app.css
+++ b/src/style/app.css
@@ -93,3 +93,7 @@ pre {
.dark ::-webkit-scrollbar-thumb {
@apply bg-zinc-800;
}
+
+.banner {
+ mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
+}
\ No newline at end of file