|
5 | 5 |
|
6 | 6 | <!-- content -->
|
7 | 7 |
|
8 |
| -{% block content %} |
| 8 | +{% block content %} {% load tailwind_filters %} |
9 | 9 |
|
10 |
| -<div class="bg-gray-100 h-screen flex items-center justify-center"> |
11 |
| - <div class="max-w-md bg-white p-8 rounded shadow-md"> |
12 |
| - <div class="flex items-center justify-center"> |
| 10 | +<div class="flex bg-gray-100 justify-center items-center h-screen w-screen"> |
| 11 | + <div |
| 12 | + class="w-full max-w-sm bg-white border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700 px-12 py-6" |
| 13 | + > |
| 14 | + <div class="flex flex-col items-center pb-10"> |
13 | 15 | <img
|
14 |
| - src="https://placekitten.com/100/100" |
15 |
| - alt="User Avatar" |
16 |
| - class="w-16 h-16 rounded-full" |
| 16 | + class="w-24 h-24 mb-3 rounded-full shadow-lg" |
| 17 | + {% if user_profile.profile_pic %} |
| 18 | + src="{{user_profile.profile_pic.url}}" |
| 19 | + {% else %} |
| 20 | + src="" |
| 21 | + {% endif %} |
| 22 | + alt="User Profile Image" |
17 | 23 | />
|
18 |
| - </div> |
19 |
| - |
20 |
| - <div class="mt-4"> |
21 |
| - <h1 class="text-2xl font-semibold">John Doe</h1> |
22 |
| - <p class="text-gray-500">Web Developer</p> |
23 |
| - </div> |
24 |
| - |
25 |
| - <div class="mt-6"> |
26 |
| - <h2 class="text-lg font-semibold">Contact Information</h2> |
27 |
| - <ul class="mt-2 text-gray-600"> |
28 |
| - |
29 |
| - <li>Phone: +1 234 567 890</li> |
30 |
| - </ul> |
31 |
| - </div> |
32 |
| - |
33 |
| - <div class="mt-6"> |
34 |
| - <h2 class="text-lg font-semibold">About Me</h2> |
35 |
| - <p class="mt-2 text-gray-600"> |
36 |
| - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in dui |
37 |
| - mauris. |
38 |
| - </p> |
| 24 | + <h5 class="mb-1 text-xl font-medium text-gray-900 dark:text-white"> |
| 25 | + {{user.first_name}} {{user.last_name}} |
| 26 | + </h5> |
| 27 | + <span class="text-sm text-gray-500 dark:text-gray-400" |
| 28 | + >{{user.email}}</span |
| 29 | + > |
| 30 | + <form enctype="multipart/form-data" method="post"> |
| 31 | + {% csrf_token %} {{ form | crispy}} |
| 32 | + <button |
| 33 | + type="submit" |
| 34 | + class="text-white bg-primary-700 hover:bg-primary-800 focus:ring-4 focus:outline-none focus:ring-primary-300 font-medium rounded-lg text-sm sm:w-auto px-5 py-2.5 text-center dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800" |
| 35 | + > |
| 36 | + Save |
| 37 | + </button> |
| 38 | + </form> |
39 | 39 | </div>
|
40 | 40 | </div>
|
41 | 41 | </div>
|
|
0 commit comments