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
e2cfce4e
Commit
e2cfce4e
authored
May 17, 2022
by
Charles Lim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed static and template folder for homepage
parent
40a6f200
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
53 deletions
+6
-53
index.html
homepage/templates/homepage/index.html
+2
-2
widgetuser_detail.html
homepage/templates/homepage/widgetuser_detail.html
+2
-2
urls.py
homepage/urls.py
+2
-2
default_profilepic.png
static/default_profilepic.png
+0
-0
homepage.css
static/homepage.css
+0
-23
widgetuser_details.css
static/widgetuser_details.css
+0
-24
No files found.
homepage/templates/homepage/index.html
View file @
e2cfce4e
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
{% block title %}Homepage{% endblock %}
{% block title %}Homepage{% endblock %}
{% block styles %}
{% block styles %}
<link
rel=
"stylesheet"
href=
"{% static '/homepage.css' %}"
>
<link
rel=
"stylesheet"
href=
"{% static '
homepage
/homepage.css' %}"
>
{% endblock %}
{% endblock %}
{% block header %}
{% block header %}
...
@@ -14,6 +14,6 @@ Welcome to Widget!
...
@@ -14,6 +14,6 @@ Welcome to Widget!
{% block content %}
{% block content %}
{% 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
class=
"details"
href=
"
homepage/
{{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
homepage/templates/homepage/widgetuser_detail.html
View file @
e2cfce4e
...
@@ -5,11 +5,11 @@
...
@@ -5,11 +5,11 @@
{% block title %}Homepage{% endblock %}
{% block title %}Homepage{% endblock %}
{% block styles %}
{% block styles %}
<link
rel=
"stylesheet"
href=
"{% static '/widgetuser_details.css' %}"
>
<link
rel=
"stylesheet"
href=
"{% static '
homepage
/widgetuser_details.css' %}"
>
{% endblock %}
{% endblock %}
{% block header %}
{% block header %}
<img
width=
60
height=
60
src=
"{% static '/default_profilepic.png' %}"
/>
<img
width=
60
height=
60
src=
"{% static '
homepage
/default_profilepic.png' %}"
/>
{{object.last_name}}, {{object.first_name}} {{object.middle_name}}
{{object.last_name}}, {{object.first_name}} {{object.middle_name}}
{% endblock %}
{% endblock %}
...
...
homepage/urls.py
View file @
e2cfce4e
from
django.urls
import
path
from
django.urls
import
path
from
.views
import
HomepageView
,
WidgetUserDetailView
from
.views
import
HomepageView
,
WidgetUserDetailView
urlpatterns
=
[
urlpatterns
=
[
path
(
''
,
HomepageView
.
as_view
(),
name
=
'index'
),
path
(
''
,
HomepageView
.
as_view
(),
name
=
'index'
),
path
(
'<int:pk>/details'
,
WidgetUserDetailView
.
as_view
(),
name
=
'widgetuser_detail'
),
path
(
'/<int:pk>/details'
,
WidgetUserDetailView
.
as_view
(),
name
=
'widgetuser_detail'
),
]
]
app_name
=
"homepage"
app_name
=
"homepage"
static/default_profilepic.png
deleted
100644 → 0
View file @
40a6f200
15.1 KB
static/homepage.css
deleted
100644 → 0
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
static/widgetuser_details.css
deleted
100644 → 0
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
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