Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nishaespera_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
Julia Anishka
nishaespera_reading
Commits
8a31ffef
Commit
8a31ffef
authored
Mar 28, 2023
by
Julia Anishka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
applied basic CSS styling to all pages
parent
d1b68803
Pipeline
#3076
canceled with stages
Changes
12
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
97 additions
and
22 deletions
+97
-22
models.cpython-310.pyc
...pera_reading/bookshelf/__pycache__/models.cpython-310.pyc
+0
-0
models.py
nishaespera_reading/bookshelf/models.py
+3
-0
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+8
-7
authors.html
...espera_reading/bookshelf/templates/bookshelf/authors.html
+7
-1
book_details.html
...a_reading/bookshelf/templates/bookshelf/book_details.html
+18
-10
books.html
nishaespera_reading/bookshelf/templates/bookshelf/books.html
+7
-1
home.html
nishaespera_reading/bookshelf/templates/bookshelf/home.html
+12
-2
db.sqlite3
nishaespera_reading/db.sqlite3
+0
-0
settings.cpython-310.pyc
.../nishaespera_reading/__pycache__/settings.cpython-310.pyc
+0
-0
settings.py
nishaespera_reading/nishaespera_reading/settings.py
+1
-0
base.css
nishaespera_reading/static/base.css
+39
-0
base.html
nishaespera_reading/templates/base.html
+2
-1
No files found.
nishaespera_reading/bookshelf/__pycache__/models.cpython-310.pyc
View file @
8a31ffef
No preview for this file type
nishaespera_reading/bookshelf/models.py
View file @
8a31ffef
...
...
@@ -48,5 +48,8 @@ class Books(models.Model):
def
__str__
(
self
):
return
self
.
title
def
get_author
(
self
):
return
self
.
author
def
get_absolute_url
(
self
):
return
reverse
(
'bookshelf:book_details'
,
kwargs
=
{
'pk'
:
self
.
pk
})
\ No newline at end of file
nishaespera_reading/bookshelf/templates/bookshelf/author_details.html
View file @
8a31ffef
...
...
@@ -3,7 +3,9 @@
{% extends 'base.html' %}
{% block title %} {{ object }} {% endblock %}
{% block header %}
<h2>
{{ object }}
</h2>
<div
class=
"title"
>
<h1>
{{ object }}
</h1>
</div>
{% endblock %}
{% block body %}
...
...
@@ -22,10 +24,9 @@
</li>
{% endfor %}
</ul>
<div>
<h5>
<a
href=
"/home/"
>
Home
</a>
<a
href=
"/books/"
>
Books
</a>
<a
href=
"/authors/"
>
Authors
</a>
</h5>
</div>
<div
class=
"btns"
>
<a
href=
"/home/"
class=
"btn"
>
Home
</a>
<a
href=
"/books/"
class=
"btn"
>
Books
</a>
<a
href=
"/authors/"
class=
"btn"
>
Authors
</a>
</div>
{% endblock %}
\ No newline at end of file
nishaespera_reading/bookshelf/templates/bookshelf/authors.html
View file @
8a31ffef
...
...
@@ -3,7 +3,10 @@
{% extends 'base.html' %}
{% block title %} My Favorite Authors {% endblock %}
{% block header %}
<div
class=
"title"
>
<h1>
Nisha's Favorite Authors
</h1>
</div>
{% endblock %}
{% block content %}
...
...
@@ -18,5 +21,8 @@
{% endfor %}
</ul>
</div>
<h5>
<a
href=
"/home/"
>
Home
</a>
<a
href=
"/books/"
>
Books
</a></h5>
<div
class=
"btns"
>
<center><a
href=
"/home/"
class=
"btn"
>
Home
</a>
<a
href=
"/books/"
class=
"btn"
>
Books
</a>
</center>
</div>
{% endblock %}
\ No newline at end of file
nishaespera_reading/bookshelf/templates/bookshelf/book_details.html
View file @
8a31ffef
...
...
@@ -3,17 +3,25 @@
{% extends 'base.html' %}
{% block title %} {{ object.title }} {% endblock %}
{% block header %}
<h2>
{{ object.title }}
</h2>
<div
class=
"title"
>
<h1>
{{ object.title }}
</h1>
</div>
{% endblock %}
{% block body %}
<h4>
{{ object.publisher }}
</h4>
<h4>
{{ object.year_published }}
</h4>
<h4>
{{ object.ISBN }}
</h4>
<h4>
{{ object.blurb }}
</h4>
<h5>
<a
href=
"/home/"
>
Home
</a>
<a
href=
"/books/"
>
Books
</a>
<a
href=
"/authors/"
>
Authors
</a>
</h5>
<h4>
Author:
<a
href=
"{{ object.get_author.get_absolute_url }}"
>
{{ object.get_author }}
</a>
</h4>
<h4>
Publisher: {{ object.publisher }}
</h4>
<h4>
Year published: {{ object.year_published }}
</h4>
<h4>
ISBN: {{ object.ISBN }}
</h4>
<p>
Blurb: {{ object.blurb }}
</p>
<div
class=
"btns"
>
<a
href=
"/home/"
class=
"btn"
>
Home
</a>
<a
href=
"/books/"
class=
"btn"
>
Books
</a>
<a
href=
"/authors/"
class=
"btn"
>
Authors
</a>
</div>
{% endblock %}
\ No newline at end of file
nishaespera_reading/bookshelf/templates/bookshelf/books.html
View file @
8a31ffef
...
...
@@ -2,7 +2,10 @@
{% extends 'base.html' %}
{% block title %} My Favorite Books {% endblock %}
{% block header %}
<div
class=
"title"
>
<h1>
Nisha's Favorite Books
</h1>
</div>
{% endblock %}
{% block content %}
...
...
@@ -17,5 +20,8 @@
{% endfor %}
</ul>
</div>
<h5>
<a
href=
"/home/"
>
Home
</a>
<a
href=
"/authors/"
>
Authors
</a></h5>
<div
class=
"btns"
>
<a
href=
"/home/"
class=
"btn"
>
Home
</a>
<a
href=
"/authors/"
class=
"btn"
>
Authors
</a>
</div>
{% endblock %}
\ No newline at end of file
nishaespera_reading/bookshelf/templates/bookshelf/home.html
View file @
8a31ffef
{% extends 'base.html' %}
{% block title %} My Favorite Books
&
Authors {% endblock %}
{% block header %}
<div
class=
"home-title"
>
<h1>
Welcome to Nisha's Database of
<br>
Favorite Books and Authors!
</h1>
</div>
{% endblock %}
{% block body %}
<h3><center>
Welcome to Nisha's Database of
<br>
Favorite Books and Authors!
</center></h3
>
<div
class=
"home-body"
>
<p>
The genres I usually enjoy include mystery, romance, and fantasy. From narratives
that revolve around crimes to supernatural elements in a fictional world, I find each
scene interesting. I enjoyed books written by J.K Rowling, specifically, Harry Potter due
...
...
@@ -9,5 +15,9 @@
emotional and engaging storytelling. The characters in her book are deeply relatable and
she's able to move her readers through genuine dialogues.
</p>
<a
href=
"/books/"
>
Books
</a>
<a
href=
"/authors/"
>
Authors
</a></h5>
</div>
<div
class=
"btns"
>
<a
href=
"/books/"
class=
"btn"
>
Books
</a>
<a
href=
"/authors/"
class=
"btn"
>
Authors
</a>
</div>
{% endblock %}
\ No newline at end of file
nishaespera_reading/db.sqlite3
View file @
8a31ffef
No preview for this file type
nishaespera_reading/nishaespera_reading/__pycache__/settings.cpython-310.pyc
View file @
8a31ffef
No preview for this file type
nishaespera_reading/nishaespera_reading/settings.py
View file @
8a31ffef
...
...
@@ -120,6 +120,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.2/howto/static-files/
STATIC_URL
=
'/static/'
STATICFILES_DIRS
=
[
os
.
path
.
join
(
BASE_DIR
,
'static'
)]
# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
...
...
nishaespera_reading/static/base.css
0 → 100644
View file @
8a31ffef
.btn
{
background-color
:
lightblue
;
color
:
white
;
border-radius
:
2px
;
padding
:
4px
;
margin-right
:
100px
;
font-family
:
"Montserrat"
;
}
.btns
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
h1
{
color
:
white
;
font-family
:
"Montserrat"
;
text-align
:
center
;
}
body
{
font-family
:
"Montserrat"
;
padding
:
50px
;
}
.title
{
background-color
:
pink
;
}
.home-title
{
background
:
-webkit-linear-gradient
(
to
top
,
pink
,
lightblue
);
background
:
linear-gradient
(
to
top
,
pink
,
lightblue
);
}
.home-body
{
display
:
flex
;
text-align
:
center
;
}
nishaespera_reading/templates/base.html
View file @
8a31ffef
...
...
@@ -5,7 +5,8 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
{% block title %} {% endblock %}
</title>
{% load static %}
<link
rel=
"stylesheet"
href=
"{% static 'base.css' %}"
type=
"text/css"
>
{% block styles %}{% endblock %}
</head>
<body>
...
...
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