add profile picture

This commit is contained in:
Tutur33
2023-12-06 20:43:25 +01:00
parent bdc6c56467
commit f81296cf7c
15 changed files with 952 additions and 32 deletions
+19
View File
@@ -62,6 +62,25 @@
@end
</div>
<div>
<img class="h-32 w-32 rounded-full" src="{{ auth.user.avatarUrl }}" alt="">
<form action="" method="post" enctype="multipart/form-data">
<label for="avatar">Avatar :</label>
<input type="file" name="avatar" id="avatar">
<button type=""submit>Valider</button>
</form>
</div>
<div>
<h2>Delete your compte :</h2>
<a href="{{ route('delete') }}">Delete</a>
</div>
</main>
@end
+1 -1
View File
@@ -47,7 +47,7 @@
<button type="button" class="relative flex rounded-full bg-gray-800 text-sm focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-gray-800" id="user-menu-button" aria-expanded="false" aria-haspopup="true">
<span class="absolute -inset-1.5"></span>
<span class="sr-only">Open user menu</span>
<img class="h-8 w-8 rounded-full" src="/pp.jpg" alt="">
<img class="h-8 w-8 rounded-full" src="{{ auth.user.avatarUrl }}" alt="">
</button>
</div>