Skip to content

Commit

Permalink
Fix user list and login page
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakycrow committed Oct 18, 2024
1 parent b743d96 commit 31cc1bc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/Logo.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a class={`w-full block object-cover ${$$restProps.class}`} href="/">
<a class={`w-14 lg:w-[100px] ${$$restProps.class}`} href="/">
<img
alt="Logo for Sneaky Crow, LLC (vector art of a crow with a green baseball cap on)"
src="/logo_green.svg"
Expand Down
1 change: 0 additions & 1 deletion src/routes/login/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
</svelte:head>

<section class="flex lg:col-span-6 justify-center items-center flex-col space-y-4">
<Logo />
<h1 class="text-xl drop-shadow-md font-bold">Sign in</h1>
{#each providers as provider}
<a
Expand Down
18 changes: 12 additions & 6 deletions src/routes/settings/admin/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,23 @@
<table class="table table-hover bg-transparent">
<thead>
<tr>
{#each Object.keys(users[0]) as key}
<th>{key}</th>
{/each}
<th>avatar</th>
<th>id</th>
<th>username</th>
<th>email</th>
<th>role</th>
</tr>
</thead>
<tbody>
{#each users as user}
<tr>
{#each Object.values(user) as value}
<td>{value}</td>
{/each}
<td>
<img src={user.avatar} class="w-8 rounded-full" alt={`Avatar for {user.username}`} />
</td>
<td>{user.id}</td>
<td>{user.username}</td>
<td>{user.email}</td>
<td>{user.role}</td>
</tr>
{/each}
</tbody>
Expand Down

0 comments on commit 31cc1bc

Please sign in to comment.