source: templates/favorites.html@ 19e7fbe

Last change on this file since 19e7fbe was 19e7fbe, checked in by Valerija Andrijeska <valerija.andrijeska@…>, 3 days ago

BiblioPremium application

  • Property mode set to 100644
File size: 5.4 KB
RevLine 
[19e7fbe]1<!DOCTYPE html>
2<html lang="mk">
3
4<head>
5 <meta charset="UTF-8">
6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
8 <title>Омилени | BiblioPremium</title>
9
10 <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
11</head>
12
13<body>
14
15<header class="navbar">
16
17 <div class="logo">
18 <img src="{{ url_for('static', filename='images/logo.png') }}"
19 alt="BiblioPremium">
20 </div>
21
22 <nav>
23
24 <a href="{{ url_for('home') }}">
25 Почетна
26 </a>
27
28 <a href="{{ url_for('home') }}#books">
29 Книги
30 </a>
31
32 <a href="{{ url_for('recommendations') }}">
33 Препораки
34 </a>
35
36 {% if session.get('korisnik_id') %}
37
38 <a href="{{ url_for('favorites') }}">
39 Омилени
40 </a>
41
42 <a href="{{ url_for('orders') }}">
43 Мои нарачки
44 </a>
45
46 <a href="{{ url_for('preferences') }}">
47 Мои преференции
48 </a>
49
50 {% endif %}
51
52 </nav>
53
54
55 <div class="nav-buttons">
56
57 {% if session.get('korisnik_id') %}
58
59 <span class="logged-user">
60 👤 {{ session.get('ime') }}
61 </span>
62
63 <a href="{{ url_for('logout') }}"
64 class="login-btn">
65 Одјави се
66 </a>
67
68 {% else %}
69
70 <a href="{{ url_for('login') }}"
71 class="login-btn">
72 Најава
73 </a>
74
75 <a href="{{ url_for('register') }}"
76 class="register-btn">
77 Регистрација
78 </a>
79
80 {% endif %}
81
82 </div>
83
84</header>
85
86
87<section class="books-section">
88
89 <div class="section-header">
90
91 <div>
92
93 <span class="details-label">
94 ТВОЈАТА КОЛЕКЦИЈА
95 </span>
96
97 <h2>
98 Омилени книги
99 </h2>
100
101 </div>
102
103 </div>
104
105
106 {% if knigi %}
107
108 <div class="books-grid">
109
110 {% for kniga in knigi %}
111
112 <div class="book-card">
113
114 <div class="book-cover">
115
116 {% if kniga[1] == 'Atomic Habits' %}
117
118 <img src="{{ url_for('static', filename='images/Atomic Habits.png') }}"
119 alt="Atomic Habits">
120
121 {% elif kniga[1] == 'The Alchemist' %}
122
123 <img src="{{ url_for('static', filename='images/The Alchemist.png') }}"
124 alt="The Alchemist">
125
126 {% elif kniga[1] == 'Ikigai' %}
127
128 <img src="{{ url_for('static', filename='images/Ikigai.png') }}"
129 alt="Ikigai">
130
131 {% elif kniga[1] == 'Deep Work' %}
132
133 <img src="{{ url_for('static', filename='images/Deep Work.png') }}"
134 alt="Deep Work">
135
136 {% elif kniga[1] == 'The Power of Now' %}
137
138 <img src="{{ url_for('static', filename='images/The Power of Now.png') }}"
139 alt="The Power of Now">
140
141 {% elif kniga[1] == 'Mindset' %}
142
143 <img src="{{ url_for('static', filename='images/Mindset.png') }}"
144 alt="Mindset">
145
146 {% elif kniga[1] == 'The Little Prince' %}
147
148 <img src="{{ url_for('static', filename='images/The Little Prince.png') }}"
149 alt="The Little Prince">
150
151 {% elif kniga[1] == 'Think and Grow Rich' %}
152
153 <img src="{{ url_for('static', filename='images/Think and Grow Rich.png') }}"
154 alt="Think and Grow Rich">
155
156 {% else %}
157
158 <span class="book-placeholder">
159 📖
160 </span>
161
162 {% endif %}
163
164 </div>
165
166
167 <div class="book-info">
168
169 <h3>
170 {{ kniga[1] }}
171 </h3>
172
173 <p class="price">
174 {{ kniga[2] }} ден.
175 </p>
176
177
178 <a
179 href="{{ url_for('book_details', kniga_id=kniga[0]) }}"
180 class="details-btn"
181 >
182 Погледни детали
183 </a>
184
185
186 <form
187 method="POST"
188 action="{{ url_for('remove_favorite', kniga_id=kniga[0]) }}"
189 >
190
191 <button
192 type="submit"
193 class="remove-favorite-btn"
194 >
195 ♥ Отстрани од омилени
196 </button>
197
198 </form>
199
200 </div>
201
202 </div>
203
204 {% endfor %}
205
206 </div>
207
208
209 {% else %}
210
211 <p>
212 Сè уште немаш додадено омилени книги.
213 </p>
214
215 {% endif %}
216
217</section>
218
219</body>
220
221</html>
Note: See TracBrowser for help on using the repository browser.