Book / templates /book_detail.html
anwesh2410's picture
Upload 39 files
54862ee verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ book.title }} - BookNest</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap" rel="stylesheet">
</head>
<body>
<!-- Include Navigation Bar -->
{% include 'navbar.html' %}
<!-- Flash Messages -->
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<div class="flash-messages">
{% for category, message in messages %}
<div class="alert alert-{{ category }}">{{ message }}</div>
{% endfor %}
</div>
{% endif %}
{% endwith %}
<!-- Book Details -->
<div class="container book-detail">
<div class="book-detail-content">
<img src="{{ book.image_url }}" alt="{{ book.title }}" class="book-image-detail">
<div class="book-info">
<h1>{{ book.title }}</h1>
<p><strong>Authors:</strong> {{ book.authors | join(', ') }}</p>
<p><strong>Average Rating:</strong> {{ book.averageRating }}</p>
<p><strong>Ratings Count:</strong> {{ book.ratingsCount }}</p>
<p><strong>Published Date:</strong> {{ book.publishedDate }}</p>
<p><strong>Page Count:</strong> {{ book.pageCount }}</p>
<p><strong>Language:</strong> {{ book.language }}</p>
<p><strong>Publisher:</strong> {{ book.publisher }}</p>
<p><strong>Description:</strong> {{ book.description }}</p>
</div>
</div>
</div>
<!-- Include Footer -->
{% include 'footer.html' %}
</body>
</html>