Update homepage design

parent b02db5e0
...@@ -7,16 +7,27 @@ ...@@ -7,16 +7,27 @@
{% block title %}{{user.user_id}}{% endblock %} {% block title %}{{user.user_id}}{% endblock %}
{% block content %} {% block content %}
<h1>{{user.last_name}}, {{user.first_name}} {{user.middle_name}}</h1> <nav class="topnav">
<div> <a href="{% url 'homepage:indexHomepage' %}">Homepage</a>
{% if user.image %} <a href="{% url 'announcements:indexAnnouncements' %}">Announcements</a>
<p style="text-align:center"><img src = "{{ user.image.url }}"></p><br> <a href="{% url 'forum:indexForum' %}">Forum</a>
{% endif %} <a href="{% url 'assignments:indexAssignments' %}">Assignments</a>
<ul> </nav>
<li>ID Number: {{user.id_num}}</li>
<li>Email Address: {{user.email}}</li> <div class="flex-container">
<li>Department: {{user.department.dept_name}}</li> <div class="user-card">
<li>Home Unit: {{user.department.home_unit}}</li> <h1>{{user.last_name}}, {{user.first_name}} {{user.middle_name}}</h1>
</ul> <div>
{% if user.image %}
<img class="user-image flex-item" src = "{{ user.image.url }}">
{% endif %}
<ul class="flex-item">
<li>ID Number: {{user.id_num}}</li>
<li>Email Address: {{user.email}}</li>
<li>Department: {{user.department.dept_name}}</li>
<li>Home Unit: {{user.department.home_unit}}</li>
</ul>
</div>
</div>
</div> </div>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<h1 class="welcome">Welcome to Widget!</h1> <h1 class="welcome">Welcome to Widget!</h1>
<div class="users"> <div class="users">
<h2>Widget Users:</h3> <h2>Widget Users:</h2>
{% if user_list %} {% if user_list %}
<ol> <ol>
{% for user in user_list %} {% for user in user_list %}
......
@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Arimo:wght@700&display=swap');
html, body, div, span, applet, object, iframe, html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
...@@ -31,7 +30,7 @@ body { ...@@ -31,7 +30,7 @@ body {
height: 100%; height: 100%;
width: 100%; width: 100%;
font-family: "Inter", sans-serif; font-family: "Inter", sans-serif;
color:#161616; color:white;
line-height: 2; line-height: 2;
background-image: url(https://dailystocktips.co.in/wp-content/uploads/2020/12/gradient-background-02.jpg); background-image: url(https://dailystocktips.co.in/wp-content/uploads/2020/12/gradient-background-02.jpg);
background-size: 100% 100%; background-size: 100% 100%;
...@@ -41,6 +40,7 @@ body { ...@@ -41,6 +40,7 @@ body {
background-attachment: fixed; background-attachment: fixed;
-ms-overflow-style: none; -ms-overflow-style: none;
scrollbar-width: none; scrollbar-width: none;
background-color: #121212;
} }
body::-webkit-scrollbar { body::-webkit-scrollbar {
...@@ -51,13 +51,50 @@ body::-webkit-scrollbar { ...@@ -51,13 +51,50 @@ body::-webkit-scrollbar {
display: block; display: block;
margin: auto; margin: auto;
width: 20%; width: 20%;
padding: 30px 40px; padding: 30px 70px;
margin-bottom: 100px; margin-bottom: 100px;
color: white; color: white;
border-top: 1px solid white; border-top: 1px solid white;
border-bottom: 1px solid white; border-bottom: 1px solid white;
} }
.user-card {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 50%;
padding: 30px 50px;
color: white;
background-color: #121212;
border-radius: 25px;
border-top: 1px solid white;
border-bottom: 1px solid white;
}
.flex-container {
display: flex;
flex: 1 1 75%;
justify-content: center;
align-items: center;
}
.user-card > div {
display: flex;
flex-flow: row wrap;
margin: 10px 0;
}
.flex-item {
flex: 1 1 auto;
margin: auto 0;
}
.user-image {
width: 25%;
margin: 0 20px;
}
h1 { h1 {
display: block; display: block;
font-size: 40px; font-size: 40px;
...@@ -100,7 +137,7 @@ ol li:before { ...@@ -100,7 +137,7 @@ ol li:before {
width: 20px; width: 20px;
height: 20px; height: 20px;
background: rgb(16, 16, 16); background: #121212;
} }
li { li {
...@@ -142,9 +179,10 @@ a:hover { ...@@ -142,9 +179,10 @@ a:hover {
} }
h1.welcome { h1.welcome {
font-size: 100px; font-size: 7vw;
margin: 0px; margin: 14vh 0 9vh 0;
padding: 14vh 0 9vh 0; padding: 1vh 0 1vh 0;
color: white; color: white;
font-family: "Arimo"; font-family: "Inter";
background-color: #121212;
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment