Mirrored from https://github.com/LeeRoySheep/BookAlchemy.git
Synced Nov 2, 19:30 UTC
| 1 | <!DOCTYPE html> |
| 2 | <html lang="en" xmlns="http://www.w3.org/1999/html"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | <title>{{ recomendation['book']['title'] }}</title> |
| 7 | <link rel="stylesheet" href="/static/style.css"> |
| 8 | </head> |
| 9 | <body> |
| 10 | |
| 11 | <header class="title-container"> |
| 12 | <h1>🤖 AI Recomendation: <strong>{{ recomendation['book']['title'] }} </strong></h1> |
| 13 | <h2>📖 Written by: <strong>{{ recomendation['book']['author'] }}</strong></h2> |
| 14 | <nav> |
| 15 | <form action="/add_recommendation" method="POST"> |
| 16 | <input type="hidden" name="isbn" value="{{ recomendation['book']['isbn'] }}"> |
| 17 | <input type="hidden" name="title" value="{{ recomendation['book']['title'] }}"> |
| 18 | <input type="hidden" name="author" value="{{ recomendation['book']['author'] }}"> |
| 19 | <input type="hidden" name="year" value="{{ recomendation['book']['year'] }}"> |
| 20 | <input type="hidden" name="birthday" |
| 21 | value="{{ recomendation['book']['birthday'] }}"> |
| 22 | {% if recomendation['book']['died'] %} |
| 23 | <input type="hidden" name="died" value="{{ recomendation['book']['died'] }}"> |
| 24 | {% elif not recomendation['book']['died'] %} |
| 25 | <input type="hidden" name="died" value=""> |
| 26 | {% endif %} |
| 27 | <button type="submit" class="btn btn-primary">✨ Add to My Library</button> |
| 28 | </form> |
| 29 | <a href="/get_ai_recommendation" class="btn btn-primary"> |
| 30 | <button>🔄 New Recomendation</button></a> |
| 31 | </nav> |
| 32 | </header> |
| 33 | <section class="book-card2"> |
| 34 | <p class="details">🗓 Published: {{ recomendation['book']['year'] }}</p> |
| 35 | <p class="details">📚 ISBN: {{ recomendation['book']['isbn'] }}</p> |
| 36 | <a href="https://openlibrary.org/isbn/{{ recomendation['book']['isbn'] }}" |
| 37 | target="_blank"> |
| 38 | <img src="https://covers.openlibrary.org/b/isbn/ |
| 39 | {{ recomendation['book']['isbn'] }}-M.jpg" |
| 40 | class="cover" |
| 41 | alt="Book Cover"> |
| 42 | </a><br> |
| 43 | <div class="description">Reasoning: {{ recomendation['reasoning'] }} </div> <br> |
| 44 | |
| 45 | <footer class="botton-container"> |
| 46 | <a href="/" class="btn btn-secondary btn-back"><button>⬅ Back to Home</button></a> |
| 47 | </footer> |
| 48 | </section> |
| 49 | |
| 50 | </body> |
| 51 | </html> |