mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-05 13:15:18 +02:00
Fix adding to collection to change value of is_public first try
This commit is contained in:
parent
f7c440c364
commit
4c858ab8b5
4 changed files with 23 additions and 76 deletions
|
@ -6,11 +6,13 @@
|
|||
console.log(user);
|
||||
</script>
|
||||
|
||||
<div class="avatar flex items-center justify-center mt-4">
|
||||
<div class="w-48 rounded-md">
|
||||
<img src={user.profile_pic} alt={user.username} />
|
||||
{#if user.profile_pic}
|
||||
<div class="avatar flex items-center justify-center mt-4">
|
||||
<div class="w-48 rounded-md">
|
||||
<img src={user.profile_pic} alt={user.username} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<h1 class="text-center font-semibold text-4xl mt-4">{user.first_name} {user.last_name}</h1>
|
||||
<h2 class="text-center font-semibold text-2xl">{user.username}</h2>
|
||||
|
@ -21,6 +23,12 @@
|
|||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="flex justify-center mt-4">
|
||||
<p class="text-sm text-neutral-content">
|
||||
{user.date_joined ? 'Joined ' + new Date(user.date_joined).toLocaleDateString() : ''}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<svelte:head>
|
||||
<title>{user.username} | AdventureLog</title>
|
||||
<meta name="description" content="View your adventure collections." />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue