Mirrored from https://github.com/LeeRoySheep/BookAlchemy.git
Synced Nov 2, 19:30 UTC
| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | <title>{{ book.title }}</title> |
| 7 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css"> |
| 8 | <style> |
| 9 | body { |
| 10 | background-color: #111111; |
| 11 | padding: 5%; |
| 12 | } |
| 13 | .container { |
| 14 | max-width: 600px; |
| 15 | background: white; |
| 16 | padding: 10px; |
| 17 | border-radius: 8px; |
| 18 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); |
| 19 | text-align: center; |
| 20 | } |
| 21 | h1 { |
| 22 | color: #343a40; |
| 23 | } |
| 24 | .details { |
| 25 | font-size: 18px; |
| 26 | margin-top: 10px; |
| 27 | } |
| 28 | .cover { |
| 29 | margin: 15px 0; |
| 30 | max-width: 95%; |
| 31 | border-radius: 8px; |
| 32 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); |
| 33 | } |
| 34 | .btn-back { |
| 35 | margin-top: 8px; |
| 36 | text-decoration: none; |
| 37 | } |
| 38 | </style> |
| 39 | </head> |
| 40 | <body> |
| 41 | |
| 42 | <div class="container"> |
| 43 | <h1>📖 {{ book.title }}</h1> |
| 44 | <p class="details">✍ Written by: <strong>{{ book.name }}</strong></p> |
| 45 | <p class="details">🗓 Published: {{ book.publication_year }}</p> |
| 46 | <p class="details">📚 ISBN: {{ book.isbn if book.isbn else "N/A" }}</p> |
| 47 | |
| 48 | {% if book.isbn %} |
| 49 | <a href="https://openlibrary.org/isbn/{{ book.isbn }}" target="_blank"> |
| 50 | <img src="https://covers.openlibrary.org/b/isbn/{{ book.isbn }}-M.jpg" class="cover" alt="Book Cover"> |
| 51 | </a><br> |
| 52 | {% endif %} |
| 53 | <p class="details">⭐ Rating: {{ book.rating if book.rating else "N/A" }} / 10</p> |
| 54 | |
| 55 | <a href="/" class="btn btn-secondary btn-back">⬅ Back to Home</a> |
| 56 | </div> |
| 57 | |
| 58 | </body> |
| 59 | </html> |