feat: add a little gradient to the top of the frontpage

This commit is contained in:
Xylight committed 2024-05-06 17:39:35 -07:00
1 parent af1e4c8b70
commit 9f6af2a2fb
4 files changed
+30 -3

No files matched your search

+3 -2
View File
@@ -72,18 +72,19 @@
<slot
name="sidebar"
class="hidden md:flex sticky top-0 left-0 w-full max-w-full h-max bg-slate-50 dark:bg-zinc-950
z-40
{sidePadding}"
style="grid-area: sidebar; width: 100% !important;"
/>
<slot
name="main"
class="w-full bg-slate-25 dark:bg-zinc-925 justify-self-center shadow-sm
class="w-full bg-slate-25 dark:bg-zinc-925 justify-self-center shadow-sm z-0
{contentPadding}"
style="grid-area: main"
/>
<slot
name="suffix"
class="max-xl:hidden w-full sticky top-0 left-0 h-max bg-slate-50 dark:bg-zinc-950 {sidePadding}"
class="max-xl:hidden w-full sticky top-0 left-0 h-max bg-slate-50 dark:bg-zinc-950 z-40 {sidePadding}"
style="grid-area: suffix;"
/>
</div>
+5 -1
View File
@@ -1,4 +1,4 @@
<script>
<script lang="ts">
import { profile } from '$lib/auth'
import {
@@ -7,6 +7,7 @@
Menu,
MenuButton,
MenuDivider,
Modal,
Select,
toast,
} from 'mono-svelte'
@@ -23,6 +24,7 @@
Inbox,
InformationCircle,
Moon,
ServerStack,
Sun,
Swatch,
UserCircle,
@@ -31,6 +33,8 @@
import { legacyTheme } from '$lib/ui/colors'
import { userSettings } from '$lib/settings'
import { goto } from '$app/navigation'
import SiteCard from '$lib/components/lemmy/SiteCard.svelte'
import { site } from '$lib/lemmy'
</script>
<Menu {...$$restProps}>