mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-25 15:59:38 +02:00
Refactor admin settings page, add UserCard component, and update user management functionality
This commit is contained in:
parent
29e9b308ba
commit
b3bd8780e7
4 changed files with 46 additions and 7 deletions
17
src/lib/components/UserCard.svelte
Normal file
17
src/lib/components/UserCard.svelte
Normal file
|
@ -0,0 +1,17 @@
|
|||
<script lang="ts">
|
||||
import type { DatabaseUser } from "$lib/server/auth";
|
||||
|
||||
export let user: DatabaseUser;
|
||||
</script>
|
||||
|
||||
<div class="card w-96 bg-base-100 shadow-xl">
|
||||
<div class="card-body">
|
||||
<h2 class="card-title">{user.first_name} {user.last_name}</h2>
|
||||
<p>{user.username}</p>
|
||||
<p>Last Login: {user.last_login}</p>
|
||||
<p>Created: {user.signup_date}</p>
|
||||
<div class="card-actions justify-end">
|
||||
<button class="btn btn-primary">Edit User</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue