feat: add recent pastes page with data fetching and display logic

This commit is contained in:
2026-01-20 11:26:06 -05:00
parent 698183690c
commit 8a6ab29f52
3 changed files with 66 additions and 1 deletions
@@ -22,7 +22,11 @@
<div class="top-0 left-0 z-100 h-15 w-full bg-neutral-900">
<div class="mx-auto flex h-15 w-[95%] max-w-7xl items-center py-2">
<a href={resolve('/')} class="text-xl font-bold text-white hover:text-neutral-300">Sharpbin</a>
<div>
<a href={resolve('/')} class="text-xl font-bold text-white hover:text-neutral-300">Sharpbin</a
>
<a href={resolve('/recent')} class="ml-6 text-white hover:text-neutral-300">Recent Pastes</a>
</div>
{#if $user}
<div class="ml-auto flex items-center space-x-4">
{#if $user.roles.includes(1) || $user.roles.includes(255)}