Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_Alipins
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Angelico Ruiz T. Teaño
widget_Alipins
Commits
b02db5e0
Commit
b02db5e0
authored
May 16, 2022
by
Irish Danielle Morales
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add navbar and design to homepage
parent
e54bcb5d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
132 additions
and
33 deletions
+132
-33
urls.py
widget_alipins/assignments/urls.py
+1
-1
index.html
widget_alipins/homepage/templates/homepage/index.html
+20
-13
style.css
widget_alipins/static/homepage/style.css
+111
-19
No files found.
widget_alipins/assignments/urls.py
View file @
b02db5e0
...
...
@@ -4,6 +4,6 @@ from . import views
app_name
=
"assignments"
urlpatterns
=
[
path
(
''
,
views
.
index
,
name
=
"index"
),
path
(
''
,
views
.
index
,
name
=
"index
Assignments
"
),
path
(
'<int:assignment_id>/details'
,
views
.
details
,
name
=
"details"
)
]
\ No newline at end of file
widget_alipins/homepage/templates/homepage/index.html
View file @
b02db5e0
...
...
@@ -7,17 +7,24 @@
{% block title %}Homepage{% endblock %}
{% block content %}
<h1>
Welcome to Widget!
</h1>
<div>
<h2>
Widget Users:
</h3>
{% if user_list %}
<ol>
{% 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>
<nav
class=
"topnav"
>
<a
href=
"{% url 'homepage:indexHomepage' %}"
>
Homepage
</a>
<a
href=
"{% url 'announcements:indexAnnouncements' %}"
>
Announcements
</a>
<a
href=
"{% url 'forum:indexForum' %}"
>
Forum
</a>
<a
href=
"{% url 'assignments:indexAssignments' %}"
>
Assignments
</a>
</nav>
<h1
class=
"welcome"
>
Welcome to Widget!
</h1>
<div
class=
"users"
>
<h2>
Widget Users:
</h3>
{% if user_list %}
<ol>
{% 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 %}
\ No newline at end of file
widget_alipins/static/homepage/style.css
View file @
b02db5e0
@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
{
font-family
:
sans-serif
,
Arial
,
Helvetica
;
color
:
#035700
;
height
:
100%
;
width
:
100%
;
font-family
:
"Inter"
,
sans-serif
;
color
:
#161616
;
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
;
width
:
50%
;
border
:
3px
solid
rgb
(
194
,
7
,
169
);
padding
:
30px
40px
40px
40px
;
width
:
20%
;
padding
:
30px
40px
;
margin-bottom
:
100px
;
color
:
white
;
border-top
:
1px
solid
white
;
border-bottom
:
1px
solid
white
;
}
h1
{
display
:
block
;
font-size
:
40px
;
text-align
:
center
;
text-decoration
:
underline
;
}
h2
{
font-size
:
28
px
;
font-size
:
15
px
;
margin
:
0px
0px
10px
0px
;
text-align
:
center
;
}
...
...
@@ -27,24 +74,41 @@ ul {
list-style-type
:
none
;
}
li
{
font-size
:
20px
;
ol
{
display
:
block
;
padding
:
0
0
0
25px
;
counter-reset
:
numList
;
}
p
{
font-size
:
20px
;
ol
li
{
width
:
100%
;
position
:
relative
;
padding-left
:
10px
;
}
span
{
font-weight
:
bold
;
ol
li
:before
{
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
{
color
:
rgb
(
96
,
189
,
96
)
;
li
{
font-size
:
15px
;
}
span
.passing
{
color
:
#bb5959
p
{
font-size
:
15px
;
}
img
{
...
...
@@ -54,5 +118,33 @@ img {
}
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment