Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
garethcastillo_reading
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
Gareth Xerxes Yap Castillo
garethcastillo_reading
Commits
a2d4f194
Commit
a2d4f194
authored
Mar 29, 2023
by
Gareth Xerxes Yap Castillo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add css styling
parent
d51d23a6
Pipeline
#3096
failed with stages
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
67 additions
and
25 deletions
+67
-25
style.css
garethcastillo_reading/bookshelf/static/style.css
+42
-0
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+6
-4
authors.html
...stillo_reading/bookshelf/templates/bookshelf/authors.html
+4
-6
book_details.html
...o_reading/bookshelf/templates/bookshelf/book_details.html
+4
-2
books.html
...castillo_reading/bookshelf/templates/bookshelf/books.html
+6
-8
home.html
...hcastillo_reading/bookshelf/templates/bookshelf/home.html
+3
-3
base.html
garethcastillo_reading/templates/base.html
+2
-2
No files found.
garethcastillo_reading/bookshelf/static/style.css
0 → 100644
View file @
a2d4f194
.unaligned_header
{
color
:
rgb
(
0
,
70
,
254
);
font-family
:
"Comic Sans"
,
cursive
;
font-size
:
50px
;
}
.aligned_left_header
{
text-align
:
left
;
color
:
rgb
(
0
,
70
,
254
);
font-family
:
"Comic Sans"
,
cursive
;
font-size
:
50px
;
}
.unaligned_paragraph
{
color
:
rgb
(
0
,
70
,
254
);
font-family
:
"Bradley Hand"
,
cursive
;
font-size
:
50px
;
}
.aligned_left_paragraph_small
{
text-align
:
left
;
color
:
rgb
(
0
,
70
,
254
);
font-family
:
"Bradley Hand"
,
cursive
;
font-size
:
20px
;
}
a
{
color
:
rgb
(
0
,
70
,
254
);
font-family
:
"Century Gothic"
,
sans-serif
;
}
li
{
text-align
:
left
;
color
:
rgb
(
0
,
70
,
254
);
font-family
:
"Bradley Hand"
,
cursive
;
font-size
:
20px
;
}
body
{
text-align
:
center
;
background-color
:
hotpink
;
}
\ No newline at end of file
garethcastillo_reading/bookshelf/templates/bookshelf/author_details.html
View file @
a2d4f194
...
@@ -4,20 +4,22 @@
...
@@ -4,20 +4,22 @@
{% block title %}{{author.first_name}} {{author.last_name}}{% endblock %}
{% block title %}{{author.first_name}} {{author.last_name}}{% endblock %}
{% block content %}
{% block content %}
<h
1>
{{author.first_name}} {{author.last_name}}
</h1
>
<h
eader
class =
"aligned_left_header"
>
{{author.first_name}} {{author.last_name}}
</header
>
<p>
<p
class =
"aligned_left_paragraph_small"
>
{{author.age}}
<br
/>
{{author.age}}
<br
/>
{{author.nationality}}
<br
/>
{{author.nationality}}
<br
/>
{{author.bio}}
<br
/>
{{author.bio}}
<br
/>
Books by {{author.first_name}} {{author.last_name}} I love:
Books by {{author.first_name}} {{author.last_name}} I love:
<
o
l>
<
u
l>
{% for object in books %}
{% for object in books %}
<li><a
href =
"../../../books/{{object.pk}}/details/"
>
{{ object.title }}
</a></li>
<li><a
href =
"../../../books/{{object.pk}}/details/"
>
{{ object.title }}
</a></li>
{% empty %}
{% empty %}
<li>
No books registered.
</li>
<li>
No books registered.
</li>
{% endfor %}
{% endfor %}
</ol>
</ul>
</p>
<p
class =
"unaligned_paragraph"
>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
...
...
garethcastillo_reading/bookshelf/templates/bookshelf/authors.html
View file @
a2d4f194
...
@@ -4,18 +4,16 @@
...
@@ -4,18 +4,16 @@
{% block title %}My Favorite Authors:{% endblock %}
{% block title %}My Favorite Authors:{% endblock %}
{% block content %}
{% block content %}
<h
1>
Gareth's Favorite Authors:
</h1
>
<h
eader
class =
"aligned_left_header"
>
Gareth's Favorite Authors:
</header
>
<
o
l>
<
u
l>
{% for object in object_list %}
{% for object in object_list %}
<li><a
href =
"{{ object.id }}/details/"
>
{{ object.first_name }} {{ object.last_name }}
</a></li>
<li><a
href =
"{{ object.id }}/details/"
>
{{ object.first_name }} {{ object.last_name }}
</a></li>
{% empty %}
{% empty %}
<li>
No books registered.
</li>
<li>
No books registered.
</li>
{% endfor %}
{% endfor %}
</
o
l>
</
u
l>
<p>
<p
class =
"unaligned_paragraph"
>
<br
/>
<br
/>
<br
/>
<br
/>
<a
href =
"../home/"
>
Home
</a>
<a
href =
"../home/"
>
Home
</a>
<a
href =
"../books/"
>
Books
</a>
<a
href =
"../books/"
>
Books
</a>
...
...
garethcastillo_reading/bookshelf/templates/bookshelf/book_details.html
View file @
a2d4f194
...
@@ -4,13 +4,15 @@
...
@@ -4,13 +4,15 @@
{% block title %}{{book.title}}{% endblock %}
{% block title %}{{book.title}}{% endblock %}
{% block content %}
{% block content %}
<h
1>
{{book.title}}
</h1
>
<h
eader
class =
"aligned_left_header"
>
{{book.title}}
</header
>
<p>
<p
class =
"aligned_left_paragraph_small"
>
<a
href =
"../../../authors/{{book.author.pk}}/details/"
>
{{book.author.first_name}} {{book.author.last_name}}
</a>
<br
/>
<a
href =
"../../../authors/{{book.author.pk}}/details/"
>
{{book.author.first_name}} {{book.author.last_name}}
</a>
<br
/>
{{book.publisher}}
<br
/>
{{book.publisher}}
<br
/>
{{book.year_published}}
<br
/>
{{book.year_published}}
<br
/>
{{book.isbn}}
<br
/>
{{book.isbn}}
<br
/>
{{book.blurb}}
<br
/>
{{book.blurb}}
<br
/>
</p>
<p
class =
"unaligned_paragraph"
>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
...
...
garethcastillo_reading/bookshelf/templates/bookshelf/books.html
View file @
a2d4f194
...
@@ -4,20 +4,18 @@
...
@@ -4,20 +4,18 @@
{% block title %}My Favorite Books:{% endblock %}
{% block title %}My Favorite Books:{% endblock %}
{% block content %}
{% block content %}
<h
1>
Gareth's Favorite Books:
</h1
>
<h
eader
class =
"aligned_left_header"
>
Gareth's Favorite Books:
</header
>
<
o
l>
<
u
l>
{% for object in object_list %}
{% for object in object_list %}
<li><a
href =
"{{ object.id }}/details/"
>
{{ object.title }}
</a></li>
<li><a
href =
"{{ object.id }}/details/"
>
{{ object.title }}
</a></li>
{% empty %}
{% empty %}
<li>
No books registered.
</li>
<li>
No books registered.
</li>
{% endfor %}
{% endfor %}
</
o
l>
</
u
l>
<p>
<p
class =
"unaligned_paragraph"
>
<br
/>
<br
/>
<br
/>
<a
href =
"../home/"
>
Home
</a>
<br
/>
<a
href =
"../home/"
>
Home
</a>
<a
href =
"../authors/"
>
Authors
</a>
<a
href =
"../authors/"
>
Authors
</a>
</p>
</p
class
=
"unaligned_paragraph"
>
{% endblock %}
{% endblock %}
\ No newline at end of file
garethcastillo_reading/bookshelf/templates/bookshelf/home.html
View file @
a2d4f194
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
{% block title %}My Favorite Books and Authors{% endblock %}
{% block title %}My Favorite Books and Authors{% endblock %}
{% block content %}
{% block content %}
<h
1>
Welcome to Gareth's Database of Favorite Books and Authors!
</h1
>
<h
class =
"unaligned_header"
>
Welcome to Gareth's Database of Favorite Books and Authors!
</h
>
<p
>
I enjoy a variety of genres, no specific one, as long as it is good.
<p
class =
"unaligned_paragraph"
>
I enjoy a variety of genres, no specific one, as long as it is good.
</p>
<br
/
>
<p
class =
"unaligned_paragraph"
>
<br
/>
<br
/>
<br
/>
<br
/>
<a
href =
"../books/"
>
Books
</a>
<a
href =
"../books/"
>
Books
</a>
...
...
garethcastillo_reading/templates/base.html
View file @
a2d4f194
<html
lang=
"en"
>
{% load static %}
<html
lang=
"en"
>
<head>
<head>
<
!--<link rel="stylesheet" href="style.css">--
>
<
link
rel=
"stylesheet"
href=
"{% static 'style.css' %}"
>
<title>
{% block title %}My amazing site{% endblock %}
</title>
<title>
{% block title %}My amazing site{% endblock %}
</title>
{% block styles %}{% endblock %}
{% block styles %}{% endblock %}
</head>
</head>
...
...
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