| 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"
|
|---|
| 11 | href="{{ url_for('static', filename='style.css') }}">
|
|---|
| 12 | </head>
|
|---|
| 13 |
|
|---|
| 14 | <body>
|
|---|
| 15 |
|
|---|
| 16 | <header class="navbar">
|
|---|
| 17 |
|
|---|
| 18 | <div class="logo">
|
|---|
| 19 | <img src="{{ url_for('static', filename='images/logo.png') }}"
|
|---|
| 20 | alt="BiblioPremium">
|
|---|
| 21 | </div>
|
|---|
| 22 |
|
|---|
| 23 | <nav>
|
|---|
| 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 | {% if session.get('uloga') == 'ADMIN' %}
|
|---|
| 39 |
|
|---|
| 40 | <a href="{{ url_for('admin_dashboard') }}">
|
|---|
| 41 | Администрација
|
|---|
| 42 | </a>
|
|---|
| 43 |
|
|---|
| 44 | {% else %}
|
|---|
| 45 |
|
|---|
| 46 | <a href="{{ url_for('favorites') }}">
|
|---|
| 47 | Омилени
|
|---|
| 48 | </a>
|
|---|
| 49 |
|
|---|
| 50 | <a href="{{ url_for('orders') }}">
|
|---|
| 51 | Мои нарачки
|
|---|
| 52 | </a>
|
|---|
| 53 |
|
|---|
| 54 | <a href="{{ url_for('preferences') }}">
|
|---|
| 55 | Мои преференции
|
|---|
| 56 | </a>
|
|---|
| 57 |
|
|---|
| 58 | {% endif %}
|
|---|
| 59 |
|
|---|
| 60 | {% endif %}
|
|---|
| 61 | </nav>
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 | <div class="nav-buttons">
|
|---|
| 65 |
|
|---|
| 66 | {% if session.get('korisnik_id') %}
|
|---|
| 67 |
|
|---|
| 68 | <span class="logged-user">
|
|---|
| 69 | 👤 {{ session.get('ime') }}
|
|---|
| 70 | </span>
|
|---|
| 71 |
|
|---|
| 72 | <a href="{{ url_for('logout') }}"
|
|---|
| 73 | class="login-btn">
|
|---|
| 74 | Одјави се
|
|---|
| 75 | </a>
|
|---|
| 76 |
|
|---|
| 77 | {% else %}
|
|---|
| 78 |
|
|---|
| 79 | <a href="{{ url_for('login') }}"
|
|---|
| 80 | class="login-btn">
|
|---|
| 81 | Најава
|
|---|
| 82 | </a>
|
|---|
| 83 |
|
|---|
| 84 | <a href="{{ url_for('register') }}"
|
|---|
| 85 | class="register-btn">
|
|---|
| 86 | Регистрација
|
|---|
| 87 | </a>
|
|---|
| 88 |
|
|---|
| 89 | {% endif %}
|
|---|
| 90 |
|
|---|
| 91 | </div>
|
|---|
| 92 |
|
|---|
| 93 | </header>
|
|---|
| 94 |
|
|---|
| 95 |
|
|---|
| 96 | <section class="hero">
|
|---|
| 97 |
|
|---|
| 98 | <div class="hero-content">
|
|---|
| 99 |
|
|---|
| 100 | <span class="hero-label">
|
|---|
| 101 | ТВОЈАТА ЛИЧНА КНИЖАРНИЦА
|
|---|
| 102 | </span>
|
|---|
| 103 |
|
|---|
| 104 | <h1>
|
|---|
| 105 | Пронајди книга<br>
|
|---|
| 106 | што одговара на <span>тебе.</span>
|
|---|
| 107 | </h1>
|
|---|
| 108 |
|
|---|
| 109 | <p>
|
|---|
| 110 | Откриј книги според твоите интереси, расположение
|
|---|
| 111 | и моментални потреби.
|
|---|
| 112 | </p>
|
|---|
| 113 |
|
|---|
| 114 |
|
|---|
| 115 | <form class="search-box"
|
|---|
| 116 | method="GET"
|
|---|
| 117 | action="{{ url_for('home') }}">
|
|---|
| 118 |
|
|---|
| 119 | <input
|
|---|
| 120 | type="text"
|
|---|
| 121 | name="search"
|
|---|
| 122 | value="{{ search }}"
|
|---|
| 123 | placeholder="Пребарај книга по наслов..."
|
|---|
| 124 | >
|
|---|
| 125 |
|
|---|
| 126 | <button type="submit">
|
|---|
| 127 | Пребарај
|
|---|
| 128 | </button>
|
|---|
| 129 |
|
|---|
| 130 | </form>
|
|---|
| 131 |
|
|---|
| 132 | </div>
|
|---|
| 133 |
|
|---|
| 134 |
|
|---|
| 135 | <div class="hero-image">
|
|---|
| 136 | <img src="{{ url_for('static', filename='images/books.png') }}"
|
|---|
| 137 | alt="BiblioPremium книги">
|
|---|
| 138 | </div>
|
|---|
| 139 |
|
|---|
| 140 | </section>
|
|---|
| 141 |
|
|---|
| 142 |
|
|---|
| 143 | <section class="books-section" id="books">
|
|---|
| 144 |
|
|---|
| 145 | <div class="section-header">
|
|---|
| 146 |
|
|---|
| 147 | <div>
|
|---|
| 148 | <span>ИСТРАЖИ ЈА КОЛЕКЦИЈАТА</span>
|
|---|
| 149 | <h2>Популарни книги</h2>
|
|---|
| 150 | </div>
|
|---|
| 151 |
|
|---|
| 152 | </div>
|
|---|
| 153 |
|
|---|
| 154 |
|
|---|
| 155 | <div class="books-grid">
|
|---|
| 156 |
|
|---|
| 157 | {% if not knigi %}
|
|---|
| 158 |
|
|---|
| 159 | <p class="no-results">
|
|---|
| 160 | Не е пронајдена книга со тој наслов.
|
|---|
| 161 | </p>
|
|---|
| 162 |
|
|---|
| 163 | {% endif %}
|
|---|
| 164 |
|
|---|
| 165 |
|
|---|
| 166 | {% for kniga in knigi %}
|
|---|
| 167 |
|
|---|
| 168 | <div class="book-card">
|
|---|
| 169 |
|
|---|
| 170 | <div class="book-cover">
|
|---|
| 171 |
|
|---|
| 172 | {% if kniga[1] == 'Atomic Habits' %}
|
|---|
| 173 |
|
|---|
| 174 | <img src="{{ url_for('static', filename='images/Atomic Habits.png') }}"
|
|---|
| 175 | alt="Atomic Habits">
|
|---|
| 176 |
|
|---|
| 177 | {% elif kniga[1] == 'The Alchemist' %}
|
|---|
| 178 |
|
|---|
| 179 | <img src="{{ url_for('static', filename='images/The Alchemist.png') }}"
|
|---|
| 180 | alt="The Alchemist">
|
|---|
| 181 |
|
|---|
| 182 | {% elif kniga[1] == 'Ikigai' %}
|
|---|
| 183 |
|
|---|
| 184 | <img src="{{ url_for('static', filename='images/Ikigai.png') }}"
|
|---|
| 185 | alt="Ikigai">
|
|---|
| 186 |
|
|---|
| 187 | {% elif kniga[1] == 'Deep Work' %}
|
|---|
| 188 |
|
|---|
| 189 | <img src="{{ url_for('static', filename='images/Deep Work.png') }}"
|
|---|
| 190 | alt="Deep Work">
|
|---|
| 191 |
|
|---|
| 192 | {% elif kniga[1] == 'The Power of Now' %}
|
|---|
| 193 |
|
|---|
| 194 | <img src="{{ url_for('static', filename='images/The Power of Now.png') }}"
|
|---|
| 195 | alt="The Power of Now">
|
|---|
| 196 |
|
|---|
| 197 | {% elif kniga[1] == 'Mindset' %}
|
|---|
| 198 |
|
|---|
| 199 | <img src="{{ url_for('static', filename='images/Mindset.png') }}"
|
|---|
| 200 | alt="Mindset">
|
|---|
| 201 |
|
|---|
| 202 | {% elif kniga[1] == 'The Little Prince' %}
|
|---|
| 203 |
|
|---|
| 204 | <img src="{{ url_for('static', filename='images/The Little Prince.png') }}"
|
|---|
| 205 | alt="The Little Prince">
|
|---|
| 206 |
|
|---|
| 207 | {% elif kniga[1] == 'Think and Grow Rich' %}
|
|---|
| 208 |
|
|---|
| 209 | <img src="{{ url_for('static', filename='images/Think and Grow Rich.png') }}"
|
|---|
| 210 | alt="Think and Grow Rich">
|
|---|
| 211 |
|
|---|
| 212 | {% else %}
|
|---|
| 213 |
|
|---|
| 214 | <span class="book-placeholder">📖</span>
|
|---|
| 215 |
|
|---|
| 216 | {% endif %}
|
|---|
| 217 |
|
|---|
| 218 | </div>
|
|---|
| 219 |
|
|---|
| 220 |
|
|---|
| 221 | <div class="book-info">
|
|---|
| 222 |
|
|---|
| 223 | <h3>
|
|---|
| 224 | {{ kniga[1] }}
|
|---|
| 225 | </h3>
|
|---|
| 226 |
|
|---|
| 227 | <p class="price">
|
|---|
| 228 | {{ kniga[2] }} ден.
|
|---|
| 229 | </p>
|
|---|
| 230 |
|
|---|
| 231 | <a
|
|---|
| 232 | href="{{ url_for('book_details', kniga_id=kniga[0]) }}"
|
|---|
| 233 | class="details-btn"
|
|---|
| 234 | >
|
|---|
| 235 | Погледни детали
|
|---|
| 236 | </a>
|
|---|
| 237 |
|
|---|
| 238 | </div>
|
|---|
| 239 |
|
|---|
| 240 | </div>
|
|---|
| 241 |
|
|---|
| 242 | {% endfor %}
|
|---|
| 243 |
|
|---|
| 244 | </div>
|
|---|
| 245 |
|
|---|
| 246 | </section>
|
|---|
| 247 |
|
|---|
| 248 | </body>
|
|---|
| 249 |
|
|---|
| 250 | </html> |
|---|