Skip to content

Commit

Permalink
UI improved for useraccount page and images added for team members
Browse files Browse the repository at this point in the history
  • Loading branch information
mahigangal committed Apr 10, 2024
1 parent 1d422f8 commit 292f178
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 38 deletions.
Binary file added Django/communicado/pages/static/mahi.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Django/communicado/pages/static/mithish.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Django/communicado/pages/static/ojus.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Django/communicado/pages/static/pratham.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Django/communicado/pages/static/sparsh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
92 changes: 54 additions & 38 deletions Django/communicado/pages/templates/pages/useraccount.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>useraccount</title>
<title>User Account</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #0f0101;
color: #fff; /* Set text color to white */
}

.center {
Expand All @@ -19,89 +20,104 @@
background-color: #080000;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
border: 2px solid #000; /* Changed border color to white */
border: 2px solid #000;
text-align: center;
}

h1 {
color: #fff; /* Changed text color to white */
text-align: center;
margin-bottom: 20px; /* Add margin below the header */
font-size: 24px; /* Adjust font size */
margin-bottom: 20px;
font-size: 24px;
}

ul {
list-style-type: none;
padding: 0;
text-align: left; /* Align the text left */
margin-left: 40px; /* Add margin for spacing */
margin-bottom: 0; /* Remove bottom margin */
text-align: left;
margin: 0 auto; /* Center the list */
max-width: 400px; /* Limit maximum width */
}

li {
border-bottom: 1px solid #ddd;
padding: 20px 0;
position: relative;
color: #fff; /* Changed text color to white */
}

strong {
color: #fff;
}


/* Apply custom styles */
.btn {
display: inline-block;
padding: 10px 20px;
font-size: 18px;
background-color: transparent;
color: #fff;
background-color: transparent;
color: #fff;
text-decoration: none;
border: 2px solid #f4f5f7;
border: 2px solid #f4f5f7;
border-radius: 5px;
margin-top: 20px;
transition: background-color 0.3s, border-color 0.3s, color 0.3s;
transition: background-color 0.3s, border-color 0.3s, color 0.3s;
text-align: center;
}

.btn:hover {
background-color: #fff;
border-color: #fff;
color: #000;
}
background-color: #fff;
border-color: #fff;
color: #000;
}

.user-container {
background-color: #1f1f1f; /* Change background color */
border-radius: 5px;
padding: 20px;
margin-top: 20px;
}

/* Add style for the image */
.user-image {
width: 100px; /* Set image width */
height: 100px; /* Set image height */
border-radius: 50%; /* Make it round */
background-color: #fff; /* Add background color */
display: block; /* Center the image */
margin: 20px auto; /* Add margin for spacing */
width: 100px;
height: 100px;
border-radius: 50%;
background-color: #fff;
display: block;
margin: 20px auto;
}
</style>
</head>
<body>
{% include './header.html' %}

{% if error_message %}
<p style="color: rgb(238, 225, 225);">{{ error_message }}</p>
<p>{{ error_message }}</p>
{% else %}
<div class="center">

{% if user %}
<h1>Your Account Information</h1>
<img src="../../static/icon.png" alt="User Image" class="user-image">

<ul>
<li>
<strong>Role:</strong> {{ user.role }}<br>
<strong>Username:</strong> {{ user.username }}<br>
<strong>Email:</strong> {{ user.email }}<br>
<strong>Address:</strong> {{ user.address }}<br>
</li>
</ul>
<div class="user-container">
{% if user.username == "mithsEventOrg" %}
<img src="../../static/mithish.jpeg" alt="User Image" class="user-image">
{% endif %}
{% if user.username == "sparshkhanna" %}
<img src="../../static/sparsh.png" alt="User Image" class="user-image">
{% endif %}
{% if user.username == "mahigangal" %}
<img src="../../static/mahi.jpeg" alt="User Image" class="user-image">
{% endif %}
{% if user.username == "ojussharma" %}
<img src="../../static/ojus.jpeg" alt="User Image" class="user-image">
{% endif %}
{% if user.username == "prathamshah" %}
<img src="../../static/pratham.jpeg" alt="User Image" class="user-image">
{% endif %}

<ul>
<li><strong>Role:</strong> {{ user.role }}</li>
<li><strong>Username:</strong> {{ user.username }}</li>
<li><strong>Email:</strong> {{ user.email }}</li>
<li><strong>Address:</strong> {{ user.address }}</li>
</ul>
</div>
<a href="#" class="btn">Edit Account Details</a>
<a href="userbookinfo" class="btn">Booking History</a>
{% endif %}
Expand Down

0 comments on commit 292f178

Please sign in to comment.