Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bellapanghulan_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
Ysabella Panghulan
bellapanghulan_reading
Commits
8d282b65
Commit
8d282b65
authored
Mar 28, 2023
by
Ysabella Panghulan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edited book details style
parent
6149869f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
14 deletions
+53
-14
authors.html
...ghulan_reading/bookshelf/templates/bookshelf/authors.html
+3
-3
book_details.html
...n_reading/bookshelf/templates/bookshelf/book_details.html
+13
-8
books.html
...anghulan_reading/bookshelf/templates/bookshelf/books.html
+4
-3
book_details.css
bellapanghulan_reading/static/stylesheets/book_details.css
+33
-0
No files found.
bellapanghulan_reading/bookshelf/templates/bookshelf/authors.html
View file @
8d282b65
...
...
@@ -15,9 +15,9 @@
<div
class=
"list"
>
<ol>
{% for object in object_list %}
<li
>
<a
href=
"{{ object.get_absolute_url }}"
>
{{ object }}
</a
>
</li
>
<a
href=
"{{ object.get_absolute_url }}"
>
<li>
{{ object }}
</li
>
</a
>
{% endfor %}
</ol>
</div>
...
...
bellapanghulan_reading/bookshelf/templates/bookshelf/book_details.html
View file @
8d282b65
{%extends 'base.html'%}
{% block stylesheets %}
{% load static %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'stylesheets/book_details.css' %}"
>
{% endblock %}
{% block title %} {{ object.title }} {% endblock %}
...
...
@@ -9,16 +13,17 @@
{% block body %}
<div
class=
"books-content"
>
{% block content %}
<a
href=
"{{ object.author.get_absolute_url }}"
>
{{ object.author }}
</a>
<h3>
{{ object.publisher }}
</h3>
<h3>
{{ object.ISBN }}
</h3>
<a
href=
"{{ object.author.get_absolute_url }}"
class=
"author"
>
{{ object.author }}
</a>
<div
class=
"author-details"
>
<h3><span
class=
"label"
>
Publisher
</span><br>
{{ object.publisher }}
</h3>
<h3><span
class=
"label"
>
Year Published
</span><br>
{{ object.year_published }}
</h3>
<h3><span
class=
"label"
>
ISBN
</span><br>
{{ object.ISBN }}
</h3>
</div>
<p>
{{ object.blurb }}
</p>
<div
class=
"links"
>
<ul>
<li><a
href=
"/home/"
>
Home
</a></li>
<li><a
href=
"/books/"
>
Books
</a></li>
<li><a
href=
"/authors/"
>
Authors
</a></li>
</ul>
<a
href=
"/home/"
class=
"btn-primary"
>
Home
</a>
<a
href=
"/books/"
class=
"btn-secondary"
>
Books
</a>
<a
href=
"/authors/"
class=
"btn-primary"
>
Authors
</a>
</div>
{% endblock %}
</div>
...
...
bellapanghulan_reading/bookshelf/templates/bookshelf/books.html
View file @
8d282b65
...
...
@@ -17,9 +17,10 @@
<div
class=
"list"
>
<ol>
{% for object in object_list %}
<li>
<a
href=
"{{ object.get_absolute_url }}"
>
{{ object.title }}
</a>
</li>
<a
href=
"{{ object.get_absolute_url }}"
>
<li>
{{ object.title }}
</li>
</a>
{% endfor %}
</ol>
</div>
...
...
bellapanghulan_reading/static/stylesheets/book_details.css
0 → 100644
View file @
8d282b65
body
{
padding
:
3.5rem
;
}
h2
{
text-transform
:
uppercase
;
font-size
:
30px
;
}
.author
{
display
:
block
;
text-align
:
center
;
color
:
black
;
}
.author-details
{
margin-top
:
1.5rem
;
display
:
grid
;
grid-template-columns
:
1
fr
1
fr
1
fr
;
background-color
:
#b39aff
;
border-radius
:
0.4rem
;
}
h3
{
font-size
:
medium
;
display
:
block
;
text-align
:
center
;
}
@media
only
screen
and
(
max-width
:
760px
)
{
h3
{
font-size
:
small
;
padding
:
0.2rem
;
}
}
\ 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