Add navbar and design to homepage

parent e54bcb5d
...@@ -4,6 +4,6 @@ from . import views ...@@ -4,6 +4,6 @@ from . import views
app_name="assignments" app_name="assignments"
urlpatterns = [ urlpatterns = [
path('', views.index, name="index"), path('', views.index, name="indexAssignments"),
path('<int:assignment_id>/details', views.details, name="details") path('<int:assignment_id>/details', views.details, name="details")
] ]
\ No newline at end of file
...@@ -7,17 +7,24 @@ ...@@ -7,17 +7,24 @@
{% block title %}Homepage{% endblock %} {% block title %}Homepage{% endblock %}
{% block content %} {% block content %}
<h1>Welcome to Widget!</h1> <nav class="topnav">
<div> <a href="{% url 'homepage:indexHomepage' %}">Homepage</a>
<h2>Widget Users:</h3> <a href="{% url 'announcements:indexAnnouncements' %}">Announcements</a>
{% if user_list %} <a href="{% url 'forum:indexForum' %}">Forum</a>
<ol> <a href="{% url 'assignments:indexAssignments' %}">Assignments</a>
{% for user in user_list %} </nav>
<li><a href="{% url 'homepage:details' user.id%}">{{user.last_name}}, {{user.first_name}} {{user.middle_name}}</a></li>
{% endfor %} <h1 class="welcome">Welcome to Widget!</h1>
</ol> <div class="users">
{% else %} <h2>Widget Users:</h3>
<p>There are no existing users.</p> {% if user_list %}
{% endif %} <ol>
</div> {% for user in user_list %}
<li><a href="{% url 'homepage:details' user.id%}">{{user.last_name}}, {{user.first_name}} {{user.middle_name}}</a></li>
{% endfor %}
</ol>
{% else %}
<p>There are no existing users.</p>
{% endif %}
</div>
{% endblock %} {% endblock %}
\ No newline at end of file
@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,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
html {
height: 100%;
width: 100%;
}
body { body {
font-family: sans-serif, Arial, Helvetica; height: 100%;
color:#035700; width: 100%;
font-family: "Inter", sans-serif;
color:#161616;
line-height: 2; line-height: 2;
background-image: url(https://dailystocktips.co.in/wp-content/uploads/2020/12/gradient-background-02.jpg);
background-size: 100% 100%;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
background-attachment: fixed;
-ms-overflow-style: none;
scrollbar-width: none;
}
body::-webkit-scrollbar {
display: none;
} }
div { .users {
display: block;
margin: auto; margin: auto;
width: 50%; width: 20%;
border: 3px solid rgb(194, 7, 169); padding: 30px 40px;
padding: 30px 40px 40px 40px; margin-bottom: 100px;
color: white;
border-top: 1px solid white;
border-bottom: 1px solid white;
} }
h1 { h1 {
display: block;
font-size: 40px; font-size: 40px;
text-align: center; text-align: center;
text-decoration: underline;
} }
h2 { h2 {
font-size: 28px; font-size: 15px;
margin: 0px 0px 10px 0px; margin: 0px 0px 10px 0px;
text-align: center; text-align: center;
} }
...@@ -27,24 +74,41 @@ ul { ...@@ -27,24 +74,41 @@ ul {
list-style-type: none; list-style-type: none;
} }
li { ol {
font-size: 20px; display: block;
padding: 0 0 0 25px;
counter-reset: numList;
} }
p { ol li {
font-size: 20px; width: 100%;
position: relative;
padding-left: 10px;
} }
span { ol li:before {
font-weight: bold; counter-increment: numList;
content: counter(numList);
position: absolute;
left: -20px;
top: 5px;
font: bold 15px 'Inter';
text-align: center;
color: #fff;
width: 20px;
height: 20px;
background: rgb(16, 16, 16);
} }
span.perfect { li {
color: rgb(96, 189, 96); font-size: 15px;
} }
span.passing { p {
color:#bb5959 font-size: 15px;
} }
img { img {
...@@ -54,5 +118,33 @@ img { ...@@ -54,5 +118,33 @@ img {
} }
a { a {
color:#891fa3; color:#e1bb54;
}
a:hover {
color: white;
}
.topnav {
padding: 30px 30px;
}
.topnav a {
display: inline-block;
padding: 8px;
color:#f4eeee;
text-align: center;
text-decoration: none;
}
.topnav a:hover {
text-decoration: underline;
}
h1.welcome {
font-size: 100px;
margin: 0px;
padding: 14vh 0 9vh 0;
color: white;
font-family: "Arimo";
} }
\ 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