Commit f0e033a8 authored by Albert Gagalac's avatar Albert Gagalac

Final edit of CSS

parent ebebefef
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %} {% load static %}
{% block css %} {% endblock %} {% block css %}
h1 {
padding-top: 2%;
}
h3 {
font-family:'Comic Sans MS',cursive;
text-decoration: underline;
}
{% endblock %}
{% block title %}{{object}}{% endblock %} {% block title %}{{object}}{% endblock %}
{% block heading %}{{object}}{% endblock %} {% block heading %}{{object}}{% endblock %}
{% block content %} {% block content %}
<ul>
<h3>Age:</h3> {{object.age}}<br> <h3>Age:</h3> {{object.age}}<br>
<h3>Nationality:</h3> {{object.nationality}}<br> <h3>Nationality:</h3> {{object.nationality}}<br>
<h3>Bio:</h3> {{object.bio}} <h3>Bio:</h3> {{object.bio}}
<br><br><br><a href="/home/ ">Home</a> | <a href="/books/ ">Books</a> | <a href="/author/ ">Authors</a> <br><br><br><a href="/home/ ">Home</a> | <a href="/books/ ">Books</a> | <a href="/author/ ">Authors</a>
</ul>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -3,26 +3,17 @@ ...@@ -3,26 +3,17 @@
{% block css %} {% block css %}
h1 { h1 {
text-align: center; padding-top: 80px;
padding-top: 175px;
font-family: "Comic Sans MS", cursive;
}
ul {
text-align: center;
font-family: "Arial", cursive;
} }
{% endblock %} {% endblock %}
{% block title %}My Favorite Authors{% endblock %} {% block title %}My Favorite Authors{% endblock %}
{% block heading %}Burt's Favorite Authors{% endblock %} {% block heading %}Burt's Favorite Authors{% endblock %}
{% block content %} {% block content %}
<ul>
{% for object in object_list %} {% for object in object_list %}
<a href="{{ object.get_absolute_url }}"> <a href="{{ object.get_absolute_url }}">
{{ object }} {{ object }}
</a> <br> </a> <br><br>
{% endfor %}<br> {% endfor %}<br>
<a href="/home/ ">Home</a> | <a href="/books/ ">Books</a> | <a href="/author/ ">Authors</a> <a href="/home/ ">Home</a> | <a href="/books/ ">Books</a> | <a href="/author/ ">Authors</a>
</ul>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -3,25 +3,21 @@ ...@@ -3,25 +3,21 @@
{% block css %} {% block css %}
h1 { h1 {
text-align: center; padding-top: 2%;
padding-top: 175px;
font-family: "Comic Sans MS", cursive;
} }
p { h3 {
text-align: center; font-family:'Comic Sans MS',cursive;
font-family: "Arial", cursive; text-decoration: underline;
} }
{% endblock %} {% endblock %}
{% block title %}{{object}}{% endblock %} {% block title %}{{object}}{% endblock %}
{% block heading %}{{object}}{% endblock %} {% block heading %}{{object}}{% endblock %}
{% block content %} {% block content %}
<ul> <h3>Author:</h3> {{object.author}}
<h3>Author:</h3> {{object.author}}<br> <h3>Publisher:</h3> {{object.publisher}}
<h3>Publisher:</h3> {{object.publisher}}<br> <h3>ISBN:</h3> {{object.ISBN}}
<h3>ISBN:</h3> {{object.ISBN}}<br>
<h3>Blurb:</h3> {{object.blurb}} <h3>Blurb:</h3> {{object.blurb}}
<br><br><br><a href="/home/ ">Home</a> | <a href="/books/ ">Books</a> | <a href="/author/ ">Authors</a> <br><br><br><a href="/home/ ">Home</a> | <a href="/books/ ">Books</a> | <a href="/author/ ">Authors</a>
</ul>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -3,24 +3,17 @@ ...@@ -3,24 +3,17 @@
{% block css %} {% block css %}
h1 { h1 {
text-align: center; padding-top: 80px;
padding-top: 175px; color: deep-blue;
font-family: "Comic Sans MS", cursive;
}
ul {
text-align: center;
font-family: "Arial", cursive;
} }
{% endblock %} {% endblock %}
{% block title %}My Favorite Books{% endblock %} {% block title %}My Favorite Books{% endblock %}
{% block heading %}Burt's Favorite Books{% endblock %} {% block heading %}Burt's Favorite Books{% endblock %}
{% block content %} {% block content %}
<ul>
{% for object in object_list %} {% for object in object_list %}
<a href="{{ object.get_absolute_url }}">{{object.title}}</a><br> <a href="{{ object.get_absolute_url }}">{{object.title}}</a><br><br>
{% endfor %} <br><br> {% endfor %} <br>
<a href="/home/ ">Home</a> | <a href="/author/">Authors</a> <a href="/home/ ">Home</a> | <a href="/author/">Authors</a>
</ul>
{% endblock %} {% endblock %}
\ No newline at end of file
{% extends "base.html" %} {% extends "base.html" %}
{% load static %} {% load static %}
{% comment %} {% block css %}
<style>
h1 {
text-align: center;
padding-top: 175px;
}
p {
text-align: center;
}
</style>
{% endblock %} {% endcomment %}
{% block css %} {% block css %}
h1 { h1 {
text-align: center; padding-top: 100px;
padding-top: 175px;
font-family: "Comic Sans MS", cursive;
} }
p { h4{
text-align: center; color: #F4C35D;
font-family: "Arial", cursive;
} }
{% endblock %} {% endblock %}
...@@ -33,6 +18,7 @@ ...@@ -33,6 +18,7 @@
I have come to love more manga that deal with <br> I have come to love more manga that deal with <br>
down-to-earth and realistic themes. <br> <br> down-to-earth and realistic themes. <br> <br>
tl;dr: I now weeb <br> <br> <br> tl;dr: I now weeb <br> <br> <br>
<a href="/books/ ">Books</a> | <a href="/author/">Authors</a> <a href="/books/ ">Books</a> | <a href="/author/">Authors</a><br>
<h4>dsg ftw</h4>
{% endblock %} {% endblock %}
...@@ -7,10 +7,10 @@ from .views import ( ...@@ -7,10 +7,10 @@ from .views import (
urlpatterns = [ urlpatterns = [
path('', home, name='home'), path('', home, name='home'),
path('home/', home, name='home'), path('home/', home, name='home'),
path("author/", AuthorListView.as_view(), name="author-list"), path("authors/", AuthorListView.as_view(), name="author-list"),
path("books/", BookListView.as_view(), name="books-list"), path("books/", BookListView.as_view(), name="books-list"),
path("books/<int:pk>/details", BookDetailView.as_view(), name="books-detail"), path("books/<int:pk>/details", BookDetailView.as_view(), name="books-detail"),
path("author/<int:pk>/details", AuthorDetailView.as_view(), name="author-detail"), path("authors/<int:pk>/details", AuthorDetailView.as_view(), name="author-detail"),
] ]
app_name = "bookshelf" app_name = "bookshelf"
\ No newline at end of file
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<style> <style>
.itemDiv{
white-space: normal;
max-width: 500px;
overflow: hidden;
text-overflow: ellipsis;
margin: auto;
text-align: center;
font-family: 'Arial', sans-serif;
}
{% block css %} {% block css %}
body {background: rgba(255, 207, 51, 0.938);}
{% endblock %} {% endblock %}
</style> </style>
<link rel="stylesheet" href="style.css">
<title>{% block title %}Burt's Book Bemporium{% endblock %}</title> <title>{% block title %}Burt's Book Bemporium{% endblock %}</title>
</head> </head>
<body> <body style = "background-color:#F4C35D;">
<h1>{% block heading %}{% endblock %}</h1> <h1 style= "font-family:'Comic Sans MS',cursive;
<div id="content"> text-align: center;">{% block heading %}{% endblock %}
</h1>
<div class = "itemDiv">
<p>{% block content %}{% endblock %}</p> <p>{% block content %}{% endblock %}</p>
</div> </div>
</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