Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
neilocampo_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
Christianneil Emmanuel Ocampo
neilocampo_reading
Commits
d3236845
Commit
d3236845
authored
Mar 28, 2023
by
Christianneil Emmanuel Ocampo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied bootstrap styling to all webpages.
parent
7ebb52dd
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
138 additions
and
56 deletions
+138
-56
.gitignore
.gitignore
+3
-1
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+38
-18
authors.html
...ocampo_reading/bookshelf/templates/bookshelf/authors.html
+16
-8
book_details.html
...o_reading/bookshelf/templates/bookshelf/book_details.html
+36
-10
books.html
neilocampo_reading/bookshelf/templates/bookshelf/books.html
+17
-10
home.html
neilocampo_reading/bookshelf/templates/bookshelf/home.html
+22
-7
settings.cpython-39.pyc
...ng/neilocampo_reading/__pycache__/settings.cpython-39.pyc
+0
-0
settings.py
neilocampo_reading/neilocampo_reading/settings.py
+2
-1
author_cat.gif
neilocampo_reading/static/author_cat.gif
+0
-0
book_cat.gif
neilocampo_reading/static/book_cat.gif
+0
-0
home_gif.gif
neilocampo_reading/static/home_gif.gif
+0
-0
base.html
neilocampo_reading/templates/base.html
+4
-1
No files found.
.gitignore
View file @
d3236845
**/.env
**/.env
\ No newline at end of file
db.sqlite3
**/**__pycache__
\ No newline at end of file
neilocampo_reading/bookshelf/templates/bookshelf/author_details.html
View file @
d3236845
...
@@ -2,22 +2,42 @@
...
@@ -2,22 +2,42 @@
{% load static %}
{% load static %}
{% block title %}{{object.first_name}} {{object.last_name}}{% endblock %}
{% block title %}{{object.first_name}} {{object.last_name}}{% endblock %}
{% block content %}
{% block content %}
<h1>
{{ object.first_name }} {{ object.last_name }}
</h1>
<div
class=
"text-center"
>
<h2>
Age: {{object.age}}
</h2>
<div
class=
"container-fluid p-5 bg-dark text-white"
>
<h2>
Nationality: {{object.nationality}}
</h2>
<h1
style=
font-size:80px
>
{{ object.first_name }} {{ object.last_name }}
</h1>
<h2>
Bio: {{object.bio}}
</h2>
<br>
<div
class=
"row"
>
<h2>
Books by {{object.first_name}} {{object.last_name}} I love:
</h2>
<div
class=
"col-6"
>
<ul>
<h5>
Age: {{ object.age }}
</h5>
{% for book in object.books.all %}
</div>
<li>
<div
class=
"col-6"
>
<a
href=
"{{ book.get_absolute_url }}"
>
{{book.title}}
</a>
<h5>
Nationality: {{ object.nationality }}
</h5>
</li>
</div>
{% endfor %}
</div>
</ul>
</div>
<div
class=
"container p-3"
>
<a
href=
"/bookshelf/home/"
>
Home
</a>
<p><b>
Biography:
</b><br><br>
<a
href=
"/bookshelf/books/"
>
Books
</a>
{{object.bio }}
<a
href=
"/bookshelf/authors/"
>
Authors
</a>
</p>
</div>
<div
class=
"container-fluid p-4 bg-dark text-white"
>
<h2>
Books by {{object.first_name}} {{object.last_name}} I love:
</h2>
<br>
{% for book in object.books.all %}
<a
href=
"{{ book.get_absolute_url }}"
class=
"link-light"
>
{{ book.title }}
</a>
<br>
{% endfor %}
</div>
<br>
<button
type=
"button"
class=
"btn btn-dark"
>
<a
href=
"/bookshelf/home/"
class=
"link-light"
>
Home
</a>
</button>
<button
type=
"button"
class=
"btn btn-dark"
>
<a
href=
"/bookshelf/books/"
class=
"link-light"
>
Books
</a>
</button>
<button
type=
"button"
class=
"btn btn-dark"
>
<a
href=
"/bookshelf/authors/"
class=
"link-light"
>
Authors
</a>
</button>
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
neilocampo_reading/bookshelf/templates/bookshelf/authors.html
View file @
d3236845
...
@@ -2,14 +2,22 @@
...
@@ -2,14 +2,22 @@
{% load static %}
{% load static %}
{% block title %}My Favorite Authors{% endblock %}
{% block title %}My Favorite Authors{% endblock %}
{% block content %}
{% block content %}
<h2>
Neil's Favorite Authors
</h2>
<div
class=
"text-center"
>
<ul>
<div
class=
"container-fluid p-5 bg-dark text-white"
>
<img
src=
"{% static 'author_cat.gif'%}"
class=
"img-fluid"
>
<h1>
Neil's Favorite Authors
</h1>
</div>
<br>
{% for object in object_list %}
{% for object in object_list %}
<
li
>
<
a
href=
"{{ object.get_absolute_url }}"
class=
"link-dark"
>
<a
href=
"{{ object.get_absolute_url }}"
>
{{ object.first_name }} {{ object.last_name }}
</a>
{{ object.first_name }} {{ object.last_name }}
</a>
<
/li
>
<
br
>
{% endfor %}
{% endfor %}
</ul>
<br>
<a
href=
"/bookshelf/home/"
>
Home
</a>
<button
type=
"button"
class=
"btn btn-dark"
>
<a
href=
"/bookshelf/books/"
>
Books
</a>
<a
href=
"/bookshelf/home/"
class=
"link-light"
>
Home
</a>
</button>
<button
type=
"button"
class=
"btn btn-dark"
>
<a
href=
"/bookshelf/books/"
class=
"link-light"
>
Books
</a>
</button>
{% endblock %}
{% endblock %}
\ No newline at end of file
neilocampo_reading/bookshelf/templates/bookshelf/book_details.html
View file @
d3236845
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load static %}
{% load static %}
{% block title %}
This is the book details page
{% endblock %}
{% block title %}
{{ object.title }}
{% endblock %}
{% block content %}
{% block content %}
<h1>
{{object.title}}
</h1>
<div
class=
"text-center"
>
<h2>
Author:
<a
href=
"{{ object.author.get_absolute_url }}"
>
{{object.author.first_name}} {{object.author.last_name}}
</a>
</h2>
<div
class=
"container-fluid p-5 bg-dark text-white"
>
<h2>
Publisher: {{object.publisher}}
</h2>
<h1
style=
font-size:100px
>
{{ object.title }}
</h1>
<h2>
Year Published: {{object.year_published}}
</h2>
<br>
<h2>
ISBN: {{object.ISBN}}
</h2>
<div
class=
"row"
>
<h2>
Blurb: {{object.blurb}}
</h2>
<div
class=
"col-4"
>
<a
href=
"/bookshelf/home/"
>
Home
</a>
<h5>
Author:
<a
href=
"/bookshelf/books/"
>
Books
</a>
<a
href=
"{{ object.author.get_absolute_url }}"
class=
"link-light"
>
<a
href=
"/bookshelf/authors/"
>
Authors
</a>
{{object.author.first_name}} {{object.author.last_name}}
</a>
</h5>
</div>
<div
class=
"col-4"
>
<h5>
Publisher: {{ object.publisher }}
</h5>
</div>
<div
class=
"col-4"
>
<h5>
Year Published: {{ object.year_published }}
</h5>
</div>
</div>
</div>
<div
class=
"container p-3"
>
<p><b>
ISBN:
</b>
{{ object.ISBN }}
<br><br>
<b>
Blurb:
</b>
{{ object.blurb }}
</p>
</div>
<button
type=
"button"
class=
"btn btn-dark"
>
<a
href=
"/bookshelf/home/"
class=
"link-light"
>
Home
</a>
</button>
<button
type=
"button"
class=
"btn btn-dark"
>
<a
href=
"/bookshelf/books/"
class=
"link-light"
>
Books
</a>
</button>
<button
type=
"button"
class=
"btn btn-dark"
>
<a
href=
"/bookshelf/authors/"
class=
"link-light"
>
Authors
</a>
</button>
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
neilocampo_reading/bookshelf/templates/bookshelf/books.html
View file @
d3236845
{% extends 'base.html' %}
{% extends 'base.html' %}
{% load static %}
{% load static %}
{% block title %}
This is the authors page
{% endblock %}
{% block title %}
My Favorite Books
{% endblock %}
{% block content %}
{% block content %}
<h1>
Books Object List
</h1>
<div
class=
"text-center"
>
<br><br>
<div
class=
"container-fluid p-5 bg-dark text-white"
>
<ul>
<img
src=
"{% static 'book_cat.gif'%}"
class=
"img-fluid"
width=
"400"
height=
"500"
>
<h1>
Neil's Favorite Books
</h1>
</div>
<br>
{% for object in object_list %}
{% for object in object_list %}
<li>
<a
href=
"{{ object.get_absolute_url }}"
class=
"link-dark"
>
{{ object.title }}
</a>
<a
href=
"{{ object.get_absolute_url }}"
>
{{ object.title }}
</a>
<br>
</li>
{% endfor %}
{% endfor %}
</ul>
<br>
<a
href=
"/bookshelf/home/"
>
Home
</a>
<button
type=
"button"
class=
"btn btn-dark"
>
<a
href=
"/bookshelf/authors/"
>
Authors
</a>
<a
href=
"/bookshelf/home/"
class=
"link-light"
>
Home
</a>
</button>
<button
type=
"button"
class=
"btn btn-dark"
>
<a
href=
"/bookshelf/authors/"
class=
"link-light"
>
Authors
</a>
</button>
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
neilocampo_reading/bookshelf/templates/bookshelf/home.html
View file @
d3236845
...
@@ -2,11 +2,26 @@
...
@@ -2,11 +2,26 @@
{% load static %}
{% load static %}
{% block title %}My Favorite Books
&
Authors{% endblock %}
{% block title %}My Favorite Books
&
Authors{% endblock %}
{% block content %}
{% block content %}
<h1>
Welcome to Neil's Database of Favorite Books and Authors
</h1>
<div
class=
"text-center"
>
<p>
My go-to authors and books are generally those that ara already famous or well-known.
<br>
<div
class=
"container-fluid p-5 bg-dark text-white"
>
While it might seem that I'm a trendchaser, I'd like to think that I just don't want to
<br>
<h1>
Welcome to Neil's Database of Favorite Books and Authors
</h1>
be disappointed. While I do enjoy the calmness that comes with reading, I still prioritize
<br>
</div>
making every second of it worthwhile.
</p>
<div
class=
"container p-3"
>
<a
href=
"/bookshelf/books/"
>
Books
</a>
<br>
<a
href=
"/bookshelf/authors/"
>
Authors
</a>
<img
src=
"{% static 'home_gif.gif'%}"
class=
"img-fluid"
>
<p>
My go-to authors and books are generally those that are already famous or well-known.
While it might seem that I'm a trendchaser, I'd like to think that I just don't want to
be disappointed. While I do enjoy the calmness that comes with reading, I still prioritize
making every second of it worthwhile.
</p>
<br>
</div>
<button
type=
"button"
class=
"btn btn-dark"
>
<a
href=
"/bookshelf/books/"
class=
"link-light"
>
Books
</a>
</button>
<button
type=
"button"
class=
"btn btn-dark"
>
<a
href=
"/bookshelf/authors/"
class=
"link-light"
>
Authors
</a>
</button>
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
neilocampo_reading/neilocampo_reading/__pycache__/settings.cpython-39.pyc
View file @
d3236845
No preview for this file type
neilocampo_reading/neilocampo_reading/settings.py
View file @
d3236845
...
@@ -41,7 +41,8 @@ INSTALLED_APPS = [
...
@@ -41,7 +41,8 @@ INSTALLED_APPS = [
'django.contrib.sessions'
,
'django.contrib.sessions'
,
'django.contrib.messages'
,
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'django.contrib.staticfiles'
,
'bookshelf'
'bookshelf'
,
'django_bootstrap5'
,
]
]
MIDDLEWARE
=
[
MIDDLEWARE
=
[
...
...
neilocampo_reading/static/author_cat.gif
0 → 100644
View file @
d3236845
88.6 KB
neilocampo_reading/static/book_cat.gif
0 → 100644
View file @
d3236845
78 KB
neilocampo_reading/static/home_gif.gif
0 → 100644
View file @
d3236845
30.5 KB
neilocampo_reading/templates/base.html
View file @
d3236845
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
{% load django_bootstrap5 %}
{% bootstrap_css %}
{% bootstrap_javascript %}
<link
rel=
"stylesheet"
href=
"style.css"
>
<title>
{% block title %}My Favorite Books
&
Authors{% endblock %}
</title>
<title>
{% block title %}My Favorite Books
&
Authors{% 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