Commit 91a62a31 authored by Gabriel Geraldo's avatar Gabriel Geraldo

updated css for all pages on bookshelf app

parent ea8a6d44
Pipeline #3108 canceled with stages
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %}
{% block style %}
<link rel='stylesheet' type='text/css' href="{% static 'base.css' %}"/>
<link rel='stylesheet' type='text/css' href="{% static 'details.css' %}"/>
{% endblock %}
{% 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> <header>Author Details: {{ object.first_name }} {{ object.last_name }}</header>
<p>{{ object.age }}</p> <section>
<p>{{ object.nationality }}</p> <ul>
<p>{{ object.bio}}</p> <li class="title">{{ object.first_name }} {{ object.last_name }}</li>
<h1>Books by {{ object.first_name }} {{ object.last_name }} I love</h1> <li class="subinfo">Age: {{ object.age }}</li>
<ul> <li class="subinfo">Nationality: {{ object.nationality }}</li>
{% for book in object.books.all %} <li class="subinfo">Bio:<br>{{ object.bio}}</li>
<li> </ul>
<a href="{{ book.get_absolute_url }}">{{ book.title }}</a> </section>
</li> <section>
{% endfor %} <ul>
</ul> <li class="title">Books by {{ object.first_name }} {{ object.last_name }} I love</li>
<a href="../../home">Home</a> {% for book in object.books.all %}
<a href="../../books">Books</a> <li class="subinfo">
<a href="../">Authors</a> <a href="{{ book.get_absolute_url }}">{{ book.title }}</a>
</li>
{% endfor %}
</ul>
</section>
<nav>
<a href="../../home">Home</a>
<a href="../../books">Books</a>
<a href="../">Authors</a>
</nav>
{% endblock %} {% endblock %}
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %}
{% block style %}
<link rel='stylesheet' type='text/css' href="{% static 'base.css' %}"/>
<link rel='stylesheet' type='text/css' href="{% static 'list.css' %}"/>
{% endblock %}
{% block title %}My Favorite Authors{% endblock %} {% block title %}My Favorite Authors{% endblock %}
{% block content %} {% block content %}
<h1>{{ nickname }}'s Favorite Authors:</h1> <header>{{ nickname }}'s Favorite Authors:</header>
<ul> <section>
{% for object in object_list %} <ul>
<li><a href="{{ object.get_absolute_url }}">{{ object.first_name }} {{object.last_name}}</a></li> {% for object in object_list %}
{% endfor %} <li><a href="{{ object.get_absolute_url }}">{{ object.first_name }} {{object.last_name}}</a></li>
</ul> {% endfor %}
<a href="../home">Home</a> </ul>
<a href="../books">Books</a> </section>
<nav>
<a href="../home">Home</a>
<a href="../books">Books</a>
</nav>
{% endblock %} {% endblock %}
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %}
{% block style %}
<link rel='stylesheet' type='text/css' href="{% static 'base.css' %}"/>
<link rel='stylesheet' type='text/css' href="{% static 'details.css' %}"/>
{% endblock %}
{% block title %}{{ object.title }}{% endblock %} {% block title %}{{ object.title }}{% endblock %}
{% block content %} {% block content %}
<h1>{{ object.title }}</h1> <header>Book Details: {{ object.title }}</header>
<p>{{ object.author }}</p> <section>
<p>{{ object.publisher }}</p> <ul>
<p>{{ object.year_published}}</p> <li class="title">{{ object.title }}</li>
<p>{{ object.isbn }}</p> <li class="subinfo">Author: {{ object.author }}</li>
<p>{{ object.blurb }}</p> <li class="subinfo">Publisher: {{ object.publisher }}</li>
<a href="../../home">Home</a> <li class="subinfo">Year Published: {{ object.year_published}}</li>
<a href="../">Books</a> <li class="subinfo">ISBN: {{ object.isbn }}</li>
<a href="../../authors">Authors</a> <li class="subinfo">Short Description: <br>{{ object.blurb }}</li>
</ul>
</section>
<nav>
<a href="../../home">Home</a>
<a href="../">Books</a>
<a href="../../authors">Authors</a>
</nav>
{% endblock %} {% endblock %}
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %}
{% block style %}
<link rel='stylesheet' type='text/css' href="{% static 'base.css' %}"/>
<link rel='stylesheet' type='text/css' href="{% static 'list.css' %}"/>
{% endblock %}
{% block title %}My Favorite Books{% endblock %} {% block title %}My Favorite Books{% endblock %}
{% block content %} {% block content %}
<h1>{{ nickname }}'s Favorite Books:</h1> <header>{{ nickname }}'s Favorite Books:</header>
<ul> <section>
{% for object in object_list %} <ul>
<li><a href="{{ object.get_absolute_url }}">{{ object.title }}</a></li> {% for object in object_list %}
{% endfor %} <li><a href="{{ object.get_absolute_url }}">{{ object.title }}</a></li>
</ul> {% endfor %}
<a href="../home">Home</a> </ul>
<a href="../authors">Authors</a> </section>
<nav>
<a href="../home">Home</a>
<a href="../authors">Authors</a>
</nav>
{% endblock %} {% endblock %}
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %}
{% block style %}
<link rel='stylesheet' type='text/css' href="{% static 'base.css' %}"/>
{% endblock %}
{% block title %}My Favorite Books & Authors{% endblock %} {% block title %}My Favorite Books & Authors{% endblock %}
{% block content %} {% block content %}
<h1>Welcome to {{ nickname }}'s Database of Favorite Books and Authors!</h1> <header>Welcome to {{ nickname }}'s Database of Favorite Books and Authors!</header>
<p>I really like etc and etc</p> <section>
<a href="../books">Books</a> <p>
<a href="../authors">Authors</a> I honestly do not read much books but I really enjoy books that explore different ways of viewing the world whether it be scientific or just from a personal perspective. I think they're pieces of knowledge that allow us to view the world more fully.
</p>
<br>
<p>
DISCLAIMER: The books I put in this database are not real books. They are made by my imagination HAHA
</p>
<br>
<p>
Click the links below to go through my make-believe books.
</p>
</section>
<nav>
<a href="../books">Books</a>
<a href="../authors">Authors</a>
</nav>
{% endblock %} {% endblock %}
...@@ -19,6 +19,8 @@ load_dotenv() ...@@ -19,6 +19,8 @@ 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
STATIC_URL = 'static/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
# Quick-start development settings - unsuitable for production # Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
......
@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
* {
margin: 0;
font-family: 'Inter', sans-serif;
}
header {
padding: 1em;
background-color: #6F1A07;
color: white;
font: bold 3em 'Inter', sans-serif;
text-align: center;
}
section {
padding: 2em 0 2em 0;
margin: 0 30em 0 3em;
}
nav {
padding: 0.75em;
background-color: #AF9164;
font: bold 1em 'Inter', sans-serif;
text-align: center;
}
nav > a {
color: white;
text-decoration: underline;
margin: 5em;
}
nav > a:hover {
color: black;
transition: 0.25s ease-in;
}
\ No newline at end of file
ul {
list-style: none;
}
ul > li {
margin-bottom: .5em;
}
.title {
font-weight: 800;
font-size: 2em;
}
.subinfo {
font-style: italic;;
}
li > a:hover {
background-color: #6F1A07;
color: white;
transition: all 0.5s;
}
li > a {
color: black;
padding: .25em;
}
\ No newline at end of file
li {
margin-bottom: .5em;
}
li > a:hover {
background-color: #6F1A07;
color: white;
transition: all 0.5s;
}
li > a {
color: black;
padding: .25em;
}
...@@ -2,11 +2,12 @@ ...@@ -2,11 +2,12 @@
<html> <html>
<head> <head>
<title>{% block title %}My amazing site{% endblock %}</title> <title>{% block title %}My amazing site{% endblock %}</title>
{% block style %}{% endblock %}
</head> </head>
<body> <body>
<div id="content"> <div id="content">
{% block content %}{% endblock %} {% block content %}{% endblock %}
</div> </div>
{% block scripts %}{% endblock %}
</body> </body>
</html> </html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment