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
40a6f200
Commit
40a6f200
authored
May 17, 2022
by
Charles Lim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed static and template folder for homepage
parent
6369fd8c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
53 additions
and
31 deletions
+53
-31
default_profilepic.png
homepage/static/homepage/default_profilepic.png
+0
-0
homepage.css
homepage/static/homepage/homepage.css
+23
-0
widgetuser_details.css
homepage/static/homepage/widgetuser_details.css
+24
-0
index.html
homepage/templates/homepage/index.html
+0
-0
views.py
homepage/views.py
+1
-1
base.html
..._my_own_i_have_the_hello_world_to_see/templates/base.html
+0
-25
urls.py
..._can_i_be_on_my_own_i_have_the_hello_world_to_see/urls.py
+5
-5
No files found.
homepage/static/homepage/default_profilepic.png
0 → 100644
View file @
40a6f200
15.1 KB
homepage/static/homepage/homepage.css
0 → 100644
View file @
40a6f200
@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/homepage/widgetuser_details.css
0 → 100644
View file @
40a6f200
@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
;
}
p
{
margin-top
:
0
;
margin-bottom
:
20px
;
font-family
:
Oxygen
;
}
h1
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
}
img
{
border-radius
:
50%
;
border
:
1px
solid
black
;
margin-right
:
30px
;
margin-top
:
-10px
;
}
\ No newline at end of file
homepage/templates/index.html
→
homepage/templates/
homepage/
index.html
View file @
40a6f200
File moved
homepage/views.py
View file @
40a6f200
...
...
@@ -9,7 +9,7 @@ class HomepageView(View):
objects_set
=
{
"all_widgetusers"
:
[
obj
for
obj
in
WidgetUser
.
objects
.
all
()
.
order_by
(
'last_name'
)]
}
return
render
(
request
,
'index.html'
,
objects_set
)
return
render
(
request
,
'
homepage/
index.html'
,
objects_set
)
class
WidgetUserDetailView
(
DetailView
):
...
...
widget_father_when_can_i_be_on_my_own_i_have_the_hello_world_to_see/templates/base.html
deleted
100644 → 0
View file @
6369fd8c
<!-- project/template/base.html -->
{% load static %}
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<title>
{% block title %}{% endblock %}
</title>
<link
href=
"{% static 'base_style.css' %}"
rel=
"stylesheet"
/>
{% block styles %}{% endblock %}
</head>
<body>
<nav>
<ul>
<li><a
class=
"links"
href=
"/homepage"
>
HOMEPAGE
</a></li>
<li><a
class=
"links"
href=
"/assignments"
>
ASSIGNMENTS
</a></li>
<li><a
class=
"links"
href=
"/forum"
>
FORUM
</a></li>
<li><a
class=
"links"
href=
"/announcements"
>
ANNOUNCEMENTS
</a></li>
</ul>
</nav>
<div
class=
"content"
>
<h1
class=
"header"
>
{% block header %}{% endblock %}
</h1>
{% block content %}{% endblock %}
</div>
{% block scripts %}{% endblock %}
</body>
</html>
widget_father_when_can_i_be_on_my_own_i_have_the_hello_world_to_see/urls.py
View file @
40a6f200
...
...
@@ -19,12 +19,12 @@ from django.conf.urls.static import static
from
django.conf
import
settings
urlpatterns
=
[
path
(
'homepage
/
'
,
include
(
"homepage.urls"
,
namespace
=
'homepage'
)),
path
(
'admin
/
'
,
admin
.
site
.
urls
),
path
(
'forum
/
'
,
include
(
"forum.urls"
,
namespace
=
'forum'
)),
path
(
'announcements
/
'
,
include
(
"announcement_board.urls"
,
path
(
'homepage'
,
include
(
"homepage.urls"
,
namespace
=
'homepage'
)),
path
(
'admin'
,
admin
.
site
.
urls
),
path
(
'forum'
,
include
(
"forum.urls"
,
namespace
=
'forum'
)),
path
(
'announcements'
,
include
(
"announcement_board.urls"
,
namespace
=
'announcement_board'
)),
path
(
'assignments
/
'
,
include
(
"assignments.urls"
,
namespace
=
'assignments'
)),
path
(
'assignments'
,
include
(
"assignments.urls"
,
namespace
=
'assignments'
)),
]
urlpatterns
+=
static
(
settings
.
MEDIA_URL
,
document_root
=
settings
.
MEDIA_ROOT
)
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