To design a static web site for a book cover page.
Create a new Django project and app.
Create a static file directory and mention the changes in settings.
Make a new folder templates inside your app and create a html and map them using views and url.
Write down the code for book cover using HTML and CSS.
Add images and other contents using CSS record a screenshot of it.
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<style>
.bookpage{
width: 400px;
height: 600px;
background-color: #3d3a3a;
color:white;
margin-left: auto;
margin-right: auto;
padding: 20px;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
background-image: url(/static/images/wave2.png);
background-size:600px;
}
.toptext{
color:rgb(238, 242, 135);
}
.tophr{
width:140px;
}
.author{
color: goldenrod;
display: inline;
position: relative;
color:lightgoldenrodyellow;
top:190px;
font-family:Georgia;
font-size: medium;
}
.booktitle{
font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
font-size: larger;
text-align: center;
position: relative;
color:antiquewhite;
top: 30px;
}
.id {
width:400px;
position: relative;
top:180px;
}
.publisher{
font-size: medium;
position: relative;
top:155px;
left:330px;
}
.edition{
color:orange;
font-size: medium;
font-family: Verdana;
position:relative;
top:85px;
}
.subtitle{
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: large;
text-align: center;
position: relative;
top:40px;
color:rgb(245, 205, 205);
}
.photo{
position: relative;
top: 135px;
left: 200px;
width: 100px;
height: 100px;
background-size: cover;
}
</style>
<title>Book Cover Page</title>
</head>
<body>
<div class="bookpage">
<div class="toptext">
EXPERT INSIGHT
</div>
<div class="tophr">
<hr style="color: rgb(172, 130, 51);">
</div>
<div class="booktitle">
<h1>Responsive Web Design With HTML5 and CSS</h1></div>
<div class="subtitle">
Develop future-proof responsive websites using the latest HTML5 and CSS Techniques
</div>
<div>
<div class="photo">
<img src="c:\Users\admin\Desktop\Blog-AI-FAQs-Ado-574937307mod-web.jpg" width="200" height="145" alt="ben">
</div>
<div class="id">
<hr style="color: orange;">
</div>
<div class="author">
<p><b>BHUVANESH.S.R</b></p>
</div>
<div class="publisher">
Packt>
</div>
<div class="edition">
<b>THIRD EDITION</b>
</div>
</div>
</body>
</html>
Thus the program to develop a website to display the cover page design of a book is done.