feat: add a little gradient to the top of the frontpage
This commit is contained in:
1 parent
af1e4c8b70
commit
9f6af2a2fb
4 files changed
+30
-3
No files matched your search
@@ -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>
|
||||
|
||||
@@ -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}>
|
||||
|
||||
@@ -4,6 +4,7 @@ import { error } from '@sveltejs/kit'
|
||||
import { instance } from '$lib/instance.js'
|
||||
import { instanceToURL } from '$lib/util.js'
|
||||
import { profile } from '$lib/auth.js'
|
||||
import { toast } from 'mono-svelte'
|
||||
|
||||
export const site = writable<GetSiteResponse | undefined>(undefined)
|
||||
|
||||
|
||||
@@ -37,6 +37,10 @@
|
||||
</div>
|
||||
</Modal>
|
||||
|
||||
<div
|
||||
class="background-gradient w-full h-64 absolute top-0 left-0 -z-10 object-cover"
|
||||
></div>
|
||||
|
||||
<div class="flex flex-col gap-4 max-w-full w-full min-w-0">
|
||||
<header>
|
||||
<Header>Frontpage</Header>
|
||||
@@ -69,3 +73,20 @@
|
||||
</Pageination>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.background-gradient {
|
||||
background-image: radial-gradient(
|
||||
circle at left,
|
||||
rgba(162, 1, 114, 0.1) 0%,
|
||||
rgba(255, 0, 43, 0) 100%
|
||||
),
|
||||
radial-gradient(
|
||||
circle at 60% 80%,
|
||||
rgba(162, 33, 1, 0.2) 0%,
|
||||
rgba(255, 0, 174, 0) 100%
|
||||
);
|
||||
background-repeat: no-repeat;
|
||||
mask-image: linear-gradient(to bottom, rgba(0 0 0 / 100%), transparent);
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user