Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
sharmchua_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
Sharmaine Chua
sharmchua_reading
Commits
e8fa2405
Commit
e8fa2405
authored
Mar 30, 2023
by
Sharmaine Chua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added css file and added bg color in base.html
parent
a434192c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
78 additions
and
42 deletions
+78
-42
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+16
-11
authors.html
sharmchua_reading/bookshelf/templates/bookshelf/authors.html
+12
-8
book_details.html
...a_reading/bookshelf/templates/bookshelf/book_details.html
+14
-10
books.html
sharmchua_reading/bookshelf/templates/bookshelf/books.html
+10
-6
home.html
sharmchua_reading/bookshelf/templates/bookshelf/home.html
+8
-6
style.css
sharmchua_reading/static/css/style.css
+17
-0
base.html
sharmchua_reading/templates/base.html
+1
-1
No files found.
sharmchua_reading/bookshelf/templates/bookshelf/author_details.html
View file @
e8fa2405
...
...
@@ -4,13 +4,16 @@
{% block title %} {{ object.title }} {% endblock %}
{% block content %}
<h1>
{{ object }}
</h1>
<h3>
<h3>
Age: {{ object.age }} years old
<br>
Nationality: {{ object.nationality }}
<br>
Bio:
<br>
{{ object.bio }}
<br>
<br>
</h3>
<h2>
Books by {{ object }} I love:
<br>
</h2>
<h3>
{% for books in object.books_set.all %}
<a
href=
"{{ books.get_absolute_url }}"
>
<li>
...
...
@@ -22,14 +25,16 @@
{# the links to other html files #}
<center>
<a
href=
"../../home"
>
<button
type=
"button"
>
Home
</button>
</a>
<a
href=
"../../books"
>
<button
type=
"button"
>
Books
</button>
</a>
<a
href=
"../../authors"
>
<button
type=
"button"
>
Authors
</button>
</a>
<div
class=
"btn"
>
<a
href=
"../../home"
>
<button
type=
"button"
><p>
Home
</p></button>
</a>
<a
href=
"../../books"
>
<button
type=
"button"
><p>
Books
</p></button>
</a>
<a
href=
"../../authors"
>
<button
type=
"button"
><p>
Authors
</p></button>
</a>
</div>
</center>
{% endblock %}
\ No newline at end of file
sharmchua_reading/bookshelf/templates/bookshelf/authors.html
View file @
e8fa2405
...
...
@@ -4,22 +4,26 @@
{% block content %}
<h1>
Sharm's Favorite Authors:
</h1>
{% for object in object_list %}
<p>
<a
href=
"{{ object.get_absolute_url }}"
>
<li>
{{ object }}
</li>
</a>
</p>
{% endfor %}
<br><br><br>
{# the links to other html files #}
<center>
<a
href=
"../home"
>
<button
type=
"button"
>
Home
</button>
</a>
<a
href=
"../books"
>
<button
type=
"button"
>
Books
</button>
</a>
</center>
<div
class=
"btn"
>
<center>
<a
href=
"../home"
>
<button
type=
"button"
><p>
Home
</p></button>
</a>
<a
href=
"../books"
>
<button
type=
"button"
><p>
Books
</p></button>
</a>
</center>
</div>
{% endblock %}
\ No newline at end of file
sharmchua_reading/bookshelf/templates/bookshelf/book_details.html
View file @
e8fa2405
...
...
@@ -4,12 +4,14 @@
{% block title %} {{ object.title }} {% endblock %}
{% block content %}
<h1>
{{ object.title }}
</h1>
<h
3
>
<h
2
>
by
<a
href =
{{
object
.
author
.
get_absolute_url
}}
>
{{ object.author }}
</a>
<br>
</h2>
<h3>
Publisher: {{ object.publisher }}
<br>
Year Published: {{ object.year_published }}
<br>
ISBN: {{ object.ISBN }}
<br>
...
...
@@ -18,14 +20,16 @@
{# the links to other html files #}
<center>
<a
href=
"../../home"
>
<button
type=
"button"
>
Home
</button>
</a>
<a
href=
"../../books"
>
<button
type=
"button"
>
Books
</button>
</a>
<a
href=
"../../authors"
>
<button
type=
"button"
>
Authors
</button>
</a>
<div
class=
"btn"
>
<a
href=
"../../home"
>
<button
type=
"button"
><p>
Home
</p></button>
</a>
<a
href=
"../../books"
>
<button
type=
"button"
><p>
Books
</p></button>
</a>
<a
href=
"../../authors"
>
<button
type=
"button"
><p>
Authors
</p></button>
</a>
</div>
</center>
{% endblock %}
\ No newline at end of file
sharmchua_reading/bookshelf/templates/bookshelf/books.html
View file @
e8fa2405
...
...
@@ -10,22 +10,26 @@
{% block content %}
<h1>
Sharm's Favorite Books:
</h1>
{% for object in object_list %}
<p>
<a
href=
"{{ object.get_absolute_url }}"
>
<li>
{{ object.title }}
</li>
</a>
</p>
{% endfor %}
<br><br><br>
{# the links to other html files #}
<center>
<a
href=
"../home"
>
<button
type=
"button"
>
Home
</button>
</a>
<a
href=
"../authors"
>
<button
type=
"button"
>
Authors
</button>
</a>
<div
class =
btn""
>
<a
href=
"../home"
>
<button
type=
"button"
><p>
Home
</p></button>
</a>
<a
href=
"../authors"
>
<button
type=
"button"
><p>
Authors
</p></button>
</a>
</div
"
>
</center>
{% endblock %}
\ No newline at end of file
sharmchua_reading/bookshelf/templates/bookshelf/home.html
View file @
e8fa2405
...
...
@@ -11,11 +11,13 @@
<br><br><br><br><br>
{# the links to other html files #}
<a
href=
"../books"
>
<button
type=
"button"
>
Books
</button>
</a>
<a
href=
"../authors"
>
<button
type=
"button"
>
Authors
</button>
</a>
<div
class =
"btn"
>
<a
href=
"../books"
>
<button
type=
"button"
><p>
Books
</p></button>
</a>
<a
href=
"../authors"
>
<button
type=
"button"
><p>
Authors
</p></button>
</a>
</div>
</center>
{% endblock %}
\ No newline at end of file
sharmchua_reading/static/css/style.css
0 → 100644
View file @
e8fa2405
h1
{
font-family
:
"Lucida Sans"
,
"Lucida Sans Regular"
,
"Lucida Grande"
,
"Lucida Sans Unicode"
,
Geneva
,
Verdana
,
sans-serif
;
color
:
#afcaff
;
}
h2
{
font-family
:
"Lucida Sans"
,
"Lucida Sans Regular"
,
"Lucida Grande"
,
"Lucida Sans Unicode"
,
Geneva
,
Verdana
,
sans-serif
;
}
h3
{
font-family
:
"Lucida Sans"
,
"Lucida Sans Regular"
,
"Lucida Grande"
,
"Lucida Sans Unicode"
,
Geneva
,
Verdana
,
sans-serif
;
}
p
{
font-family
:
"Lucida Sans"
,
"Lucida Sans Regular"
,
"Lucida Grande"
,
"Lucida Sans Unicode"
,
Geneva
,
Verdana
,
sans-serif
;
}
\ No newline at end of file
sharmchua_reading/templates/base.html
View file @
e8fa2405
...
...
@@ -4,7 +4,7 @@
<link
rel=
"stylesheet"
href=
"style.css"
>
<title>
{% block title %}My Favorite Books and Authors{% endblock %}
</title>
</head>
<body>
<body
style =
"background-color: #8ecced;"
>
<div
id=
"content"
>
{% block content %}{% endblock %}
</div>
...
...
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