Rework style.css and clear test entries

parent 3f1bf76d
...@@ -18,8 +18,7 @@ ...@@ -18,8 +18,7 @@
<form method="post"> <form method="post">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<br> <div class="separator-bar"></div><br>
<input type="submit" value="Add Author"> <input type="submit" value="Add Author" class="spanning-button">
</form> </form>
<br><hr>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -18,8 +18,7 @@ ...@@ -18,8 +18,7 @@
<form method="post"> <form method="post">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<br> <div class="separator-bar"></div><br>
<input type="submit" value="Add Book"> <input type="submit" value="Add Book" class="spanning-button">
</form> </form>
<br><hr>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -4,12 +4,14 @@ ...@@ -4,12 +4,14 @@
{% block title %} {{object}} {% endblock %} {% block title %} {{object}} {% endblock %}
{% block content %} {% block content %}
<h1> {{object}} </h1><br> <h1> {{object}} </h1>
<div class="separator-bar"></div>
<ul> <ul>
<li> <b>Age:</b> {{object.age}} </li> <li> <b>Age:</b> {{object.age}} </li>
<li> <b>Nationality:</b> {{object.nationality}} </li> <li> <b>Nationality:</b> {{object.nationality}} </li>
<li> <b>Bio:</b> {{object.bio}} </li> <li> <b>Bio:</b> {{object.bio}} </li>
</ul> </ul>
<a href="./edit"> Edit Author </a>
<br> <br>
<h3> Books by {{object}} I love: </h3> <h3> Books by {{object}} I love: </h3>
<ul> <ul>
...@@ -17,6 +19,6 @@ ...@@ -17,6 +19,6 @@
<li> <a href="{{book.get_absolute_url}}">{{book}}</a> </li> <li> <a href="{{book.get_absolute_url}}">{{book}}</a> </li>
{% endfor %} {% endfor %}
</ul> </ul>
<br><hr><br><br> <div class="separator-bar"></div><br>
<a href="../../../home/">Home</a> &nbsp; <a href="../../../authors/">Authors</a> &nbsp; <a href="../../../books/">Books</a> <a href="../../../home/">Home</a> &nbsp; <a href="../../../authors/">Authors</a> &nbsp; <a href="../../../books/">Books</a>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
{% block title %} My Favorite Authors {% endblock %} {% block title %} My Favorite Authors {% endblock %}
{% block content %} {% block content %}
<h1> Joaqs' Favorite Authors! </h1><br> <h1> Joaqs' Favorite Authors! </h1>
<div class="separator-bar"></div></div>
<ul> <ul>
{% for object in object_list %} {% for object in object_list %}
<li> <li>
...@@ -12,6 +13,6 @@ ...@@ -12,6 +13,6 @@
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
<br><hr><br><br> <div class="separator-bar"></div><br>
<a href="../home/">Home</a> &nbsp; <a href="../books/">Books</a> <a href="../home/">Home</a> &nbsp; <a href="../books/">Books</a>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
{% block title %} {{object}} {% endblock %} {% block title %} {{object}} {% endblock %}
{% block content %} {% block content %}
<h1> {{object}} </h1><br> <h1> {{object}} </h1>
<div class="separator-bar"></div>
<ul> <ul>
<li> <b>Author:</b> <a href="{{object.author.get_absolute_url}}">{{object.author}}</a> </li> <li> <b>Author:</b> <a href="{{object.author.get_absolute_url}}">{{object.author}}</a> </li>
<li> <b>Publisher:</b> {{object.publisher}} </li> <li> <b>Publisher:</b> {{object.publisher}} </li>
...@@ -12,6 +13,8 @@ ...@@ -12,6 +13,8 @@
<li> <b>ISBN:</b> {{object.ISBN}} </li> <li> <b>ISBN:</b> {{object.ISBN}} </li>
<li> <b>Blurb:</b> {{object.blurb}} </li> <li> <b>Blurb:</b> {{object.blurb}} </li>
</ul> </ul>
<br><hr><br><br> <br>
<a href="./edit"> Edit Book </a>
<br><br><div class="separator-bar"></div><br>
<a href="../../../home/">Home</a> &nbsp; <a href="../../../authors/">Authors</a> &nbsp; <a href="../../../books/">Books</a> <a href="../../../home/">Home</a> &nbsp; <a href="../../../authors/">Authors</a> &nbsp; <a href="../../../books/">Books</a>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
{% block title %} My Favorite Books {% endblock %} {% block title %} My Favorite Books {% endblock %}
{% block content %} {% block content %}
<h1> Joaqs' Favorite Books! </h1><br> <h1> Joaqs' Favorite Books! </h1>
<div class="separator-bar"></div>
<h6> This is definitely not just the list of best-selling books on Wikipedia :> </h6>
<ul> <ul>
{% for object in object_list %} {% for object in object_list %}
<li> <li>
...@@ -12,6 +14,6 @@ ...@@ -12,6 +14,6 @@
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
<br><hr><br><br> <div class="separator-bar"></div><br>
<a href="../home/">Home</a> &nbsp; <a href="../authors/">Authors</a> <a href="../home/">Home</a> &nbsp; <a href="../authors/">Authors</a>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -18,8 +18,7 @@ ...@@ -18,8 +18,7 @@
<form method="post"> <form method="post">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<br> <div class="separator-bar"></div><br>
<input type="submit" value="Save Changes"> <input type="submit" value="Save Changes" class="spanning-button">
</form> </form>
<br><hr>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -18,8 +18,7 @@ ...@@ -18,8 +18,7 @@
<form method="post"> <form method="post">
{% csrf_token %} {% csrf_token %}
{{ form.as_p }} {{ form.as_p }}
<br> <div class="separator-bar"></div><br>
<input type="submit" value="Save Changes"> <input type="submit" value="Save Changes" class="spanning-button">
</form> </form>
<br><hr>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -4,10 +4,11 @@ ...@@ -4,10 +4,11 @@
{% block title %} My Favorite Books & Authors {% endblock %} {% block title %} My Favorite Books & Authors {% endblock %}
{% block content %} {% block content %}
<h1> Welcome to Joaqs' Database of Favorite Books & Authors! </h1><h6> That is definitely not just the list of best-selling books on Wikipedia :> </h6><br> <h1> Welcome to Joaqs' Database of Favorite Books & Authors! </h1>
<div class="separator-bar"></div>
<p> Hi! My name is Joaqs! I usually like science fiction books and non-fiction books, but my favorite book series is A Song of Ice and Fire by George R. R. Martin. </p> <p> Hi! My name is Joaqs! I usually like science fiction books and non-fiction books, but my favorite book series is A Song of Ice and Fire by George R. R. Martin. </p>
<p> While I don't have a favorite author, I usually enjoy books that are experimental or have good twists. &#9786; </p> <p> While I don't have a favorite author, I usually enjoy books that are experimental or have good twists. &#9786; </p>
<br><hr><br><br> <div class="separator-bar"></div><br>
<a href="../authors/">Authors</a> &nbsp; <a href="../books/">Books</a><br> <a href="../authors/">Authors</a> &nbsp; <a href="../books/">Books</a><br><br>
<a href="../authors/add">Add Author</a> &nbsp; <a href="../books/add">Add Book</a> <a href="../authors/add">Add Author</a> &nbsp; <a href="../books/add">Add Book</a>
{% endblock %} {% endblock %}
\ No newline at end of file
body { body {
background-image: linear-gradient(to right, #000, #333); background-color: #111;
color: rgb(100, 100, 100); color: rgb(100, 100, 100);
font-size: 14px; font-size: 16px;
font-family: Garamond, serif; font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
margin: 20px; margin: 20px;
} }
...@@ -13,16 +13,21 @@ p { ...@@ -13,16 +13,21 @@ p {
a { a {
color: currentColor; color: currentColor;
transition: color 0.5s; transition: color 0.5s, background-color 0.5s;
background-color: #222;
border-radius: 4px;
padding: 4px;
} }
a:hover { a:hover {
color: white; color: white;
background-color: #444;
} }
li { li {
transition: color 0.5s, font-size 0.5s, text-shadow 0.5s; transition: color 0.5s, font-size 0.5s, text-shadow 0.5s;
font-size: 14px; font-size: 16px;
text-shadow: 0 0 0 currentColor; text-shadow: 0 0 0 currentColor;
list-style-type: none; list-style-type: none;
} }
...@@ -39,9 +44,51 @@ li:hover { ...@@ -39,9 +44,51 @@ li:hover {
h1 { h1 {
color: white; color: white;
text-align: center;
}
h3 {
color: white;
} }
h6 { h6 {
color: white; color: white;
text-align: center;
}
input {
background-color: #333;
border-radius: 4px;
border-style: none;
color: rgb(120, 120, 120);
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
font-size: 16px;
padding: 4px;
transition: color 0.5s, background-color 0.5s;
}
input:hover {
color: white;
background-color: #444;
} }
input:focus {
color: white;
}
.separator-bar {
border-image: linear-gradient(to right, #A0E7E5, #FFAEBC);
border-image-slice: 1;
border-style: solid;
border-width: 0 0 2px 0;
}
.spanning-button {
width: 100%;
}
.flexed-links {
display: flex;
justify-content: space-evenly;
}
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