CSS Files have been added

parent 7e79ee13
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
{% block title %} My Favorite Authors {% endblock %} {% block title %} My Favorite Authors {% endblock %}
{% block content %} {% block content %}
<link rel="stylesheet" href="{% static 'list_style.css' %}">
<h1>Luigi's Favorite Authors: </h1> <h1>Luigi's Favorite Authors: </h1>
<ul> <ul>
{% for object in authors %} {% for object in authors %}
......
...@@ -3,11 +3,14 @@ ...@@ -3,11 +3,14 @@
{% block title %} {{ author.first_name }}{% endblock %} {% block title %} {{ author.first_name }}{% endblock %}
{% block content %} {% block content %}
<link rel="stylesheet" href="{% static 'details_style.css' %}">
<h1>{{ author.first_name }} {{author.last_name}}</h1> <h1>{{ author.first_name }} {{author.last_name}}</h1>
<ul> <ul>
<li>{{ author.age }}</li> <li>Age: {{ author.age }}</li>
<li>{{ author.nationality }}</li> <li>Nationality: {{ author.nationality }}</li>
<div class="bio">
<li>{{ author.bio }}</li> <li>{{ author.bio }}</li>
</div>
</ul> </ul>
<p> <p>
<a href="http://127.0.0.1:8000/bookshelf/home">Home</a> <a href="http://127.0.0.1:8000/bookshelf/home">Home</a>
......
...@@ -3,13 +3,16 @@ ...@@ -3,13 +3,16 @@
{% block title %} {{ object.title }}{% endblock %} {% block title %} {{ object.title }}{% endblock %}
{% block content %} {% block content %}
<link rel="stylesheet" href="{% static 'details_style.css' %}">
<h1>{{ object.title }}</h1> <h1>{{ object.title }}</h1>
<ul> <ul>
<li>Author: <a href="{{ object.author.get_absolute_url }}""> {{ object.author }}</a></li> <li>Author: <a href="{{ object.author.get_absolute_url }}""> {{ object.author }}</a></li>
<li>Publisher: {{ object.publisher }}</li> <li>Publisher: {{ object.publisher }}</li>
<li>Year Published: {{ object.year_published }}</li> <li>Year Published: {{ object.year_published }}</li>
<li>ISBN: {{ object.ISBN }}</li> <li>ISBN: {{ object.ISBN }}</li>
<li>Blurb: {{ object.blurb }}</li> <div class="blurb">
<li>{{ object.blurb }}</li>
</div>
</ul> </ul>
<p> <p>
<a href="http://127.0.0.1:8000/bookshelf/home">Home</a> <a href="http://127.0.0.1:8000/bookshelf/home">Home</a>
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
{% block title %} My Favorite Books {% endblock %} {% block title %} My Favorite Books {% endblock %}
{% block content %} {% block content %}
<link rel="stylesheet" href="{% static 'list_style.css' %}">
<h1>Luigi's Favorite Books</h1> <h1>Luigi's Favorite Books</h1>
<ul> <ul>
{% for object in books %} {% for object in books %}
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
{% block title %} My Favorite Books and Authors {% endblock %} {% block title %} My Favorite Books and Authors {% endblock %}
{% block content %} {% block content %}
<link rel="stylesheet" href="{% static 'home_style.css' %}">
<h1>Welcome to Luigi's Database of Favorite Books and Authors!</h1> <h1>Welcome to Luigi's Database of Favorite Books and Authors!</h1>
<p> <p>
I don't usually read in my freetime, but when I do, I usually I don't usually read in my freetime, but when I do, I usually
......
...@@ -122,6 +122,7 @@ USE_TZ = True ...@@ -122,6 +122,7 @@ USE_TZ = True
# 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/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, '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
......
h1{
text-align: center;
color:darkcyan
}
ul{
text-align: center;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
list-style-type: none;
line-height: 2;
}
.blurb{
padding: 70px 70px;
position: absolute;
text-align: center;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
.bio{
padding: 70px 70px;
position: absolute;
text-align: center;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
p{
position: absolute;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
left: 45%;
bottom: 50px;
}
\ No newline at end of file
h1{
text-align: center;
color:darkcyan
}
p{
text-align: center;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
\ No newline at end of file
h1{
text-align: center;
color:darkcyan
}
ul{
text-align: center;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
list-style-type: none;
line-height: 2;
}
p{
text-align: center;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
\ 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