Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_father when can i be on my own i have the hello world to see
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
father when can i be on my own i have the hello world to see
widget_father when can i be on my own i have the hello world to see
Commits
5e7e63a1
Commit
5e7e63a1
authored
May 14, 2022
by
Charles Lim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Designed the base, homepage and detail html
parent
113e781b
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
98 additions
and
32 deletions
+98
-32
homepage.css
homepage/static/homepage.css
+23
-0
widgetuser_details.css
homepage/static/widgetuser_details.css
+0
-0
widgetuser_detail.html
homepage/templates/homepage/widgetuser_detail.html
+9
-4
index.html
homepage/templates/index.html
+12
-4
settings.py
..._i_be_on_my_own_i_have_the_hello_world_to_see/settings.py
+0
-1
base_style.css
...y_own_i_have_the_hello_world_to_see/static/base_style.css
+33
-3
base.html
..._my_own_i_have_the_hello_world_to_see/templates/base.html
+21
-20
No files found.
homepage/static/homepage.css
0 → 100644
View file @
5e7e63a1
@font-face
{
font-family
:
'Oxygen'
;
font-style
:
normal
;
font-weight
:
400
;
font-display
:
swap
;
src
:
url(https://fonts.gstatic.com/s/oxygen/v15/2sDfZG1Wl4LcnbuKjk0m.woff2)
format
(
'woff2'
);
unicode-range
:
U
+
0000-00
FF
,
U
+
0131
,
U
+
0152-0153
,
U
+
02
BB-02BC
,
U
+
02
C6
,
U
+
02
DA
,
U
+
02
DC
,
U
+
2000-206
F
,
U
+
2074
,
U
+
20
AC
,
U
+
2122
,
U
+
2191
,
U
+
2193
,
U
+
2212
,
U
+
2215
,
U
+
FEFF
,
U
+
FFFD
;
}
.details
{
color
:
black
;
padding
:
10px
20px
10px
20px
;
text-decoration
:
none
;
font-family
:
Oxygen
;
width
:
fit-content
;
background-size
:
200%
100%
;
background-image
:
linear-gradient
(
to
right
,
#ffffff
50%
,
#000000
50%
);
transition
:
background-position
0.3s
ease-in-out
,
color
0.2s
ease-in-out
;
}
.details
:hover
{
background-color
:
black
;
background-position
:
-100%
0
;
color
:
white
;
}
\ No newline at end of file
homepage/static/widgetuser_details.css
0 → 100644
View file @
5e7e63a1
homepage/templates/homepage/widgetuser_detail.html
View file @
5e7e63a1
<!-- homepage/widgetuser_detail.html -->
<!-- homepage/widgetuser_detail.html -->
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load static %}
{% block title %}Homepage{% endblock %}
{% block title %}Homepage{% endblock %}
{% block styles%}
<link
rel=
"stylesheet"
href=
"{% static '/widgetuser_details.css' %}"
>
{% endblock %}
{% block content %}
{% block content %}
<p>
{{object.last_name}}, {{object.first_name}} {{object.middle_name}}
</p>
<p>
{{object.last_name}}, {{object.first_name}} {{object.middle_name}}
</p>
<p>
{{object.id_num}}
</p>
<p>
{{object.id_num}}
</p>
<p>
{{object.email}}
</p>
<p>
{{object.email}}
</p>
<p>
{{object.department.home_unit}}, {{object.department.dept_name}}
</p>
<p>
{{object.department.home_unit}}, {{object.department.dept_name}}
</p>
{% endblock %}
{% endblock %}
\ No newline at end of file
homepage/templates/index.html
View file @
5e7e63a1
<!-- homepage/index.html -->
<!-- homepage/index.html -->
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load static %}
{% block title %}Homepage{% endblock %}
{% block title %}Homepage{% endblock %}
{% block styles %}
{% block styles %}
<link
rel=
"stylesheet"
href=
"{% static '/homepage.css' %}"
>
{% endblock %}
{% endblock %}
{% block header %}
Welcome to Widget!
{% endblock %}
{% block content %}
{% block content %}
<h1>
Welcome to Widget!
</h1>
{% for user in all_widgetusers %}
{% for user in all_widgetusers %}
<a
class=
"details"
href=
"{{user.id}}/details"
>
{{forloop.counter}}. {{user.last_name}}, {{user.first_name}} {{user.middle_name}}
</a>
</br>
<a
href=
"{{user.id}}/details"
>
{{forloop.counter}}. {{user.last_name}}, {{user.first_name}} {{user.middle_name}}
</a>
</br>
{% endfor %}
{% endfor %}
{% endblock %}
{% endblock %}
\ No newline at end of file
widget_father_when_can_i_be_on_my_own_i_have_the_hello_world_to_see/settings.py
View file @
5e7e63a1
...
@@ -126,7 +126,6 @@ USE_TZ = True
...
@@ -126,7 +126,6 @@ USE_TZ = True
# https://docs.djangoproject.com/en/4.0/howto/static-files/
# https://docs.djangoproject.com/en/4.0/howto/static-files/
STATIC_URL
=
'/static/'
STATIC_URL
=
'/static/'
STATICFILES_DIRS
=
[
os
.
path
.
join
(
BASE_DIR
,
'static'
)]
# Default primary key field type
# Default primary key field type
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
...
...
widget_father_when_can_i_be_on_my_own_i_have_the_hello_world_to_see/static/base_style.css
View file @
5e7e63a1
@font-face
{
font-family
:
'Khula'
;
font-style
:
normal
;
font-weight
:
300
;
font-display
:
swap
;
src
:
url(https://fonts.gstatic.com/s/khula/v12/OpNPnoEOns3V7G-ljBvTpi8.woff2)
format
(
'woff2'
);
unicode-range
:
U
+
0000-00
FF
,
U
+
0131
,
U
+
0152-0153
,
U
+
02
BB-02BC
,
U
+
02
C6
,
U
+
02
DA
,
U
+
02
DC
,
U
+
2000-206
F
,
U
+
2074
,
U
+
20
AC
,
U
+
2122
,
U
+
2191
,
U
+
2193
,
U
+
2212
,
U
+
2215
,
U
+
FEFF
,
U
+
FFFD
;
}
@font-face
{
font-family
:
'Comfortaa'
;
font-style
:
normal
;
font-weight
:
700
;
font-display
:
swap
;
src
:
url(https://fonts.gstatic.com/s/comfortaa/v38/1Pt_g8LJRfWJmhDAuUsSQamb1W0lwk4S4Y_LDrMfIA.woff2)
format
(
'woff2'
);
unicode-range
:
U
+
0000-00
FF
,
U
+
0131
,
U
+
0152-0153
,
U
+
02
BB-02BC
,
U
+
02
C6
,
U
+
02
DA
,
U
+
02
DC
,
U
+
2000-206
F
,
U
+
2074
,
U
+
20
AC
,
U
+
2122
,
U
+
2191
,
U
+
2193
,
U
+
2212
,
U
+
2215
,
U
+
FEFF
,
U
+
FFFD
;
}
nav
:focus
{
nav
:focus
{
outline
:
0
!important
;
outline
:
0
!important
;
}
}
...
@@ -13,14 +29,28 @@ ul {
...
@@ -13,14 +29,28 @@ ul {
ul
li
{
ul
li
{
padding
:
20px
;
padding
:
20px
;
}
}
ul
li
a
{
.links
{
padding
:
21px
;
padding
:
21px
;
text-decoration
:
none
;
text-decoration
:
none
;
font-size
:
15px
;
color
:
white
;
color
:
white
;
font-family
:
Comfortaa
;
transition
:
background-color
0.2s
ease-in-out
;
}
}
ul
li
a
:hover
{
.links
:hover
{
background-color
:
#
cc00ff
background-color
:
#
410178
;
}
}
body
{
body
{
margin
:
0
;
margin
:
0
;
}
}
.content
{
display
:
flex
;
flex-direction
:
column
;
margin
:
16px
0
0
25px
;
}
.header
{
margin
:
0
;
padding
:
0
;
font-size
:
50px
;
font-family
:
Khula
}
\ No newline at end of file
widget_father_when_can_i_be_on_my_own_i_have_the_hello_world_to_see/templates/base.html
View file @
5e7e63a1
...
@@ -4,19 +4,20 @@
...
@@ -4,19 +4,20 @@
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<title>
{% block title %}{% endblock %}
</title>
<title>
{% block title %}{% endblock %}
</title>
<link
href=
"{% static 'base_style.css' %}"
rel=
"stylesheet"
>
<link
href=
"{% static 'base_style.css' %}"
rel=
"stylesheet"
/
>
{% block styles %}{% endblock %}
{% block styles %}{% endblock %}
</head>
</head>
<body>
<body>
<nav>
<nav>
<ul>
<ul>
<li><a
href=
"/homepage"
>
Homepage
</a></li>
<li><a
class=
"links"
href=
"/homepage"
>
HOMEPAGE
</a></li>
<li><a
href=
"/assignments"
>
Assignments
</a></li>
<li><a
class=
"links"
href=
"/assignments"
>
ASSIGNMENTS
</a></li>
<li><a
href=
"/forum"
>
Forum
</a></li>
<li><a
class=
"links"
href=
"/forum"
>
FORUM
</a></li>
<li><a
href=
"/announcements"
>
Announcement Board
</a></li>
<li><a
class=
"links"
href=
"/announcements"
>
ANNOUNCEMENTS
</a></li>
</ul>
</ul>
</nav>
</nav>
<div
id=
"content"
>
<div
class=
"content"
>
<h1
class=
"header"
>
{% block header %}{% endblock %}
</h1>
{% block content %}{% endblock %}
{% block content %}{% endblock %}
</div>
</div>
{% block scripts %}{% endblock %}
{% block scripts %}{% endblock %}
...
...
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