Commit a3c1cf1d authored by rachbit's avatar rachbit

updated CSS templates and layout

parent 28bdadfd
...@@ -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>
......
...@@ -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>
......
...@@ -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>
......
...@@ -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>
......
...@@ -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>
......
...@@ -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
......
...@@ -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>
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