Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rachpurisima_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
Rachel
rachpurisima_reading
Commits
a3c1cf1d
Commit
a3c1cf1d
authored
Apr 25, 2023
by
rachbit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated CSS templates and layout
parent
28bdadfd
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
101 additions
and
29 deletions
+101
-29
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+17
-2
authors.html
...risima_reading/bookshelf/templates/bookshelf/authors.html
+17
-5
book_details.html
...a_reading/bookshelf/templates/bookshelf/book_details.html
+14
-0
books.html
...purisima_reading/bookshelf/templates/bookshelf/books.html
+15
-5
home.html
rachpurisima_reading/bookshelf/templates/bookshelf/home.html
+10
-2
settings.py
rachpurisima_reading/rachpurisima_reading/settings.py
+1
-2
base.html
rachpurisima_reading/templates/base.html
+27
-13
No files found.
rachpurisima_reading/bookshelf/templates/bookshelf/author_details.html
View file @
a3c1cf1d
...
@@ -2,13 +2,28 @@
...
@@ -2,13 +2,28 @@
{% load static %}
{% load static %}
{% block title %}{{object.first_name}} {{object.last_name}}{% endblock %}
{% block title %}{{object.first_name}} {{object.last_name}}{% endblock %}
{% block header %}
<cite><h1
class=
"text-center"
>
People behind the Pages
</h1></cite>
{% endblock %}
{% block subtitle %}
<cite>
read between their lines
<br>
-
</cite>
{% endblock %}
{% block content %}
{% block content %}
<h1>
{{object.first_name}} {{object.last_name}}
</h1>
<h1>
{{object.first_name}} {{object.last_name}}
</h1>
<ul>
<ul>
Age: {{object.age}}
<br>
Age: {{object.age}}
<br>
Nationality: {{object.nationality}}
<br>
Nationality: {{object.nationality}}
<br>
About the Author:
<br>
<br>
<div
class=
"container"
>
<div
class=
"container
-fluid
"
>
{{object.bio}}
<br>
{{object.bio}}
<br>
</div>
</div>
</ul>
</ul>
...
...
rachpurisima_reading/bookshelf/templates/bookshelf/authors.html
View file @
a3c1cf1d
...
@@ -2,18 +2,30 @@
...
@@ -2,18 +2,30 @@
{% load static %}
{% load static %}
{% block title %}My Favorite Authors{% endblock %}
{% block title %}My Favorite Authors{% endblock %}
{% block header %}
<h1
class=
"text-center"
>
Rachel's Favorite Authors
</h1>
{% endblock %}
{% block subtitle %}
<p
class=
"text-center"
>
<cite>
meet my current hyperfixations
<br></cite>
-
</p>
{% endblock %}
{% block content %}
{% block content %}
<h1>
Rach's Favorite Authors:
</h1>
<div
class=
"list-group"
>
<ul>
{% for object in object_list %}
{% for object in object_list %}
<
li
>
<
button
type=
"button"
class=
"list-group-item list-group-item-action"
>
<a
href=
"{{ object.get_absolute_url }}"
>
<a
href=
"{{ object.get_absolute_url }}"
>
{{object.first_name}} {{object.last_name}}
{{object.first_name}} {{object.last_name}}
</a>
</a>
</
li
>
</
button
>
{% endfor %}
{% endfor %}
</
ul
>
</
div
>
{% endblock %}
{% endblock %}
{% block navbar %}
{% block navbar %}
<li><a
href=
"/bookshelf/home"
>
Home
</a></li>
<li><a
href=
"/bookshelf/home"
>
Home
</a></li>
<li><a
href=
"/bookshelf/books"
>
Books
</a></li>
<li><a
href=
"/bookshelf/books"
>
Books
</a></li>
...
...
rachpurisima_reading/bookshelf/templates/bookshelf/book_details.html
View file @
a3c1cf1d
...
@@ -2,6 +2,20 @@
...
@@ -2,6 +2,20 @@
{% load static %}
{% load static %}
{% block title %}{{object.title}}{% endblock %}
{% block title %}{{object.title}}{% endblock %}
{% block header %}
<cite><h1
class=
"text-center"
>
Reading is what?
</h1></cite>
{% endblock %}
{% block subtitle %}
<cite>
fundamental.
<br>
-
</cite>
{% endblock %}
{% block content %}
{% block content %}
<h1>
{{object.title}} ({{object.year_published}})
</h1>
<h1>
{{object.title}} ({{object.year_published}})
</h1>
<ul>
<ul>
...
...
rachpurisima_reading/bookshelf/templates/bookshelf/books.html
View file @
a3c1cf1d
...
@@ -2,18 +2,28 @@
...
@@ -2,18 +2,28 @@
{% load static %}
{% load static %}
{% block title %}My Favorite Books{% endblock %}
{% block title %}My Favorite Books{% endblock %}
{% block header %}
<h1
class=
"text-center"
>
Rachel's Favorite Books
</h1>
{% endblock %}
{% block subtitle %}
<p
class=
"text-center"
>
<cite>
Welcome to my little Library
<br></cite>
-
</p>
{% endblock %}
{% block content %}
{% block content %}
<h1>
Rach's Favorite Books:
</h1>
<div
class=
"list-group"
>
<ul>
{% for object in object_list %}
{% for object in object_list %}
<
li
>
<
button
type=
"button"
class=
"list-group-item list-group-item-action"
>
<a
href=
"{{object.get_absolute_url}}"
>
<a
href=
"{{object.get_absolute_url}}"
>
{{object.title}}
{{object.title}}
</a>
</a>
</
li
>
</
button
>
{% endfor %}
{% endfor %}
</
ul
>
</
div
>
{% endblock %}
{% endblock %}
{% block navbar %}
{% block navbar %}
<li><a
href=
"/bookshelf/home"
>
Home
</a></li>
<li><a
href=
"/bookshelf/home"
>
Home
</a></li>
<li><a
href=
"#"
>
Books
</a></li>
<li><a
href=
"#"
>
Books
</a></li>
...
...
rachpurisima_reading/bookshelf/templates/bookshelf/home.html
View file @
a3c1cf1d
...
@@ -3,12 +3,20 @@
...
@@ -3,12 +3,20 @@
{% block title %}My Favorite Books
&
Authors{% endblock %}
{% block title %}My Favorite Books
&
Authors{% endblock %}
{% block
content
%}
{% block
header
%}
<h1
class=
"text-center"
>
Welcome to Rach's Database of Favorite Books and Authors!
</h1>
<h1
class=
"text-center"
>
Welcome to Rach's Database of Favorite Books and Authors!
</h1>
{% endblock %}
{% block subtitle %}
<p
class=
"text-center"
>
<p
class=
"text-center"
>
!! Book !! Review !! I do not like reading that much but these are some of the books I would like to gatekeep.
!! Book !! Review !!
<br>
-
<br>
I do not like reading that much.
<br>
But here are some of the books I would like to
<cite
title=
"link"
><a
href=
"/bookshelf/books"
>
gatekeep
</a></cite>
.
</p>
</p>
{% endblock %}
{% endblock %}
{% block navbar %}
{% block navbar %}
<li><a
href=
"#"
>
Home
</a></li>
<li><a
href=
"#"
>
Home
</a></li>
<li><a
href=
"/bookshelf/books"
>
Books
</a></li>
<li><a
href=
"/bookshelf/books"
>
Books
</a></li>
...
...
rachpurisima_reading/rachpurisima_reading/settings.py
View file @
a3c1cf1d
...
@@ -18,7 +18,6 @@ load_dotenv()
...
@@ -18,7 +18,6 @@ load_dotenv()
# Build paths inside the project like this: BASE_DIR / 'subdir'.
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR
=
Path
(
__file__
)
.
resolve
()
.
parent
.
parent
BASE_DIR
=
Path
(
__file__
)
.
resolve
()
.
parent
.
parent
# Quick-start development settings - unsuitable for production
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
...
@@ -122,7 +121,7 @@ USE_TZ = True
...
@@ -122,7 +121,7 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.2/howto/static-files/
# https://docs.djangoproject.com/en/3.2/howto/static-files/
STATIC_URL
=
'
/
static/'
STATIC_URL
=
'static/'
# Default primary key field type
# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
...
...
rachpurisima_reading/templates/base.html
View file @
a3c1cf1d
...
@@ -2,11 +2,19 @@
...
@@ -2,11 +2,19 @@
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<link
rel=
"stylesheet"
href=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
>
<style>
.navbar-custom
{
background-color
:
black
;
}
.nav.navbar-nav.navbar-center
li
a
{
color
:
white
;
text-decoration-style
:
solid
;
}
</style>
<title>
{% block title %}My amazing site{% endblock %}
</title>
<title>
{% block title %}My amazing site{% endblock %}
</title>
{% block styles %}{% endblock %}
<nav
class=
"navbar navbar-custom"
>
<nav
class=
"navbar navbar-default"
>
<div
class=
"container"
>
<div
class=
"container-fluid"
>
<ul
class=
"nav navbar-nav navbar-center"
>
<ul
class=
"nav navbar-nav"
>
{% block navbar %}
{% block navbar %}
{% endblock %}
{% endblock %}
</ul>
</ul>
...
@@ -15,17 +23,23 @@
...
@@ -15,17 +23,23 @@
</head>
</head>
<body>
<body>
<div
id=
"content"
>
<div
id=
"content"
>
<div
class=
"container"
>
<figure
class=
"text-center"
>
{% block content %}{% endblock %}
<blockquote
class=
"blockquote"
>
</div>
{% block header %}{% endblock %}
<figcaption
class=
"blockquote-header"
>
{% block subtitle %}{% endblock %}
</figcaption>
</blockquote>
<figure
class=
"container-fluid"
>
<div
class=
"text-left"
>
{% block content %}{% endblock %}
</div>
</div>
</figure>
</figure>
</div>
</div>
<br><br><br>
<br><br><br>
{% block scripts %}{% endblock %}
{% block scripts %}{% endblock %}
<div
class=
"container"
>
<p
class=
"text-centered"
>
<img
src=
"https://media.tenor.com/l1pItZnKEsoAAAAM/funny-as-hell.gif"
alt=
"honkhonk"
>
where he going
</p>
</div>
</body>
</body>
</html>
</html>
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