Skip to content

Commit

Permalink
feat: add credits page
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyphyn committed Sep 17, 2023
1 parent 76c5b6d commit d9ab0db
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
39 changes: 39 additions & 0 deletions src/routes/about/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script>
import Link from '$lib/components/input/Link.svelte'
import Logo from '$lib/components/ui/Logo.svelte'
import Profile from './Profile.svelte'
</script>

<div class="max-w-xl mx-auto">
Expand Down Expand Up @@ -39,4 +40,42 @@
<Link href="https://buymeacoffee.com/xylight" highlight>Donate</Link>
</li>
</ul>
<h1 class="text-2xl font-bold leading-8">Credits</h1>
<div class="grid grid-cols-1 sm:grid-cols-3 gap-4">
<Profile
avatar="https://lemmy.xylight.dev/pictrs/image/3281f13c-68bb-47c9-8c98-b67f67714d5a.png?format=webp&thumbnail=128"
description="Main developer"
name="Xylight"
class="sm:col-span-3 place-self-center"
link="https://xylight.dev"
/>
<hr class="border-slate-200 dark:border-zinc-800 w-full sm:col-span-3" />
<Profile
description="Early contributor"
name="pbui"
link="https://github.com/pbui"
/>
<Profile
description="Early supporter"
name="iJeff"
link="https://lemdro.id/u/ijeff"
/>
<Profile
description="Early contributor"
name="Cole"
link="https://lemdro.id/u/cole"
/>
<Profile
description="Big supporter"
name="lemmy.world team"
link="https://lemmy.world"
/>
<Profile description="Massive donator" name="rooki" />
<Profile description="Programming help" name="Sheodox" />
<Profile description="Design inspiration" name="ljdawson" />
</div>
<div class="mt-4">
If you've contributed in any way and aren't mentioned here, please let me
know and I'll add you here ASAP.
</div>
</div>
34 changes: 34 additions & 0 deletions src/routes/about/Profile.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<script lang="ts">
export let avatar: string | undefined = undefined
export let name: string
export let description: string
export let link: string = '#'
</script>

<div class="flex flex-row items-center gap-2 {$$props.class}">
{#if $$slots.avatar || avatar}
{#if $$slots.avatar}
<slot name="avatar" />
{:else}
<img
src={avatar}
alt="{name}'s profile"
width={40}
height={40}
class="w-10 h-10 rounded-full"
/>
{/if}
{/if}
<div class="flex flex-col">
<a
href={link}
class="font-semibold text-lg"
class:hover:underline={link != '#'}
>
{name}
</a>
<span class="text-slate-700 dark:text-zinc-300">{description}</span>
</div>
</div>

0 comments on commit d9ab0db

Please sign in to comment.