1 | <link rel="stylesheet" href="../CSS/Header.css">
|
---|
2 |
|
---|
3 | <div class="top-banner">
|
---|
4 | <button class="banner-button prev-button">
|
---|
5 | <svg class="banner-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
---|
6 | <path d="M15 18l-6-6 6-6"/>
|
---|
7 | </svg>
|
---|
8 | </button>
|
---|
9 |
|
---|
10 | <div class="banner-content">
|
---|
11 | <div class="banner-message active">Читај!</div>
|
---|
12 | <div class="banner-message">Вратете ги книгите на време и избегнете казни за доцнење!</div>
|
---|
13 | <div class="banner-message">Погледнете ги новите наслови во нашата библиотека!</div>
|
---|
14 | <div class="banner-message">Изнајмете книги од сите жанрови!</div>
|
---|
15 | </div>
|
---|
16 |
|
---|
17 | <button class="banner-button next-button">
|
---|
18 | <svg class="banner-arrow" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
---|
19 | <path d="M9 18l6-6-6-6"/>
|
---|
20 | </svg>
|
---|
21 | </button>
|
---|
22 | </div>
|
---|
23 |
|
---|
24 | <header class="header">
|
---|
25 | <div class="header-main">
|
---|
26 | <div style="display: flex; align-items: center;">
|
---|
27 | <div class="logo" onclick="redirectToHome()">Book-Tracker</div>
|
---|
28 | </div>
|
---|
29 |
|
---|
30 | <div class="search-container">
|
---|
31 | <form action="Search.php" method="GET" id="searchForm">
|
---|
32 | <input type="text"
|
---|
33 | name="search"
|
---|
34 | class="search-input"
|
---|
35 | placeholder="Search by Title, Author, Keyword or ISBN"
|
---|
36 | required>
|
---|
37 | <svg class="search-icon"
|
---|
38 | viewBox="0 0 24 24"
|
---|
39 | fill="none"
|
---|
40 | stroke="currentColor"
|
---|
41 | stroke-width="2"
|
---|
42 | onclick="document.getElementById('searchForm').submit();"
|
---|
43 | style="cursor: pointer;">
|
---|
44 | <circle cx="11" cy="11" r="8"></circle>
|
---|
45 | <line x1="21" y1="21" x2="16.65" y2="16.65"></line>
|
---|
46 | </svg>
|
---|
47 | </form>
|
---|
48 | </div>
|
---|
49 |
|
---|
50 |
|
---|
51 | <!--
|
---|
52 | <div class="search-container">
|
---|
53 | <input type="text" class="search-input" placeholder="Search by Title, Author, Keyword or ISBN">
|
---|
54 | <svg class="search-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
---|
55 | <circle cx="11" cy="11" r="8"></circle>
|
---|
56 | <line x1="21" y1="21" x2="16.65" y2="16.65"></line>
|
---|
57 | </svg>
|
---|
58 | </div>-->
|
---|
59 | </form>
|
---|
60 |
|
---|
61 | <div class="header-icons">
|
---|
62 | <!-- Profile -->
|
---|
63 | <a href="Profile.php" style="text-decoration: none;">
|
---|
64 | <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
---|
65 | <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
|
---|
66 | <circle cx="12" cy="7" r="4"></circle>
|
---|
67 | </svg>
|
---|
68 | </a>
|
---|
69 | <!-- CART -->
|
---|
70 | <a href="Cart.php" style="text-decoration: none;">
|
---|
71 | <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
---|
72 | <circle cx="9" cy="21" r="1"></circle>
|
---|
73 | <circle cx="20" cy="21" r="1"></circle>
|
---|
74 | <path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path>
|
---|
75 | </svg>
|
---|
76 | </a>
|
---|
77 | </div>
|
---|
78 | <button class="menu-button">
|
---|
79 | <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
---|
80 | <line x1="3" y1="12" x2="21" y2="12"></line>
|
---|
81 | <line x1="3" y1="6" x2="21" y2="6"></line>
|
---|
82 | <line x1="3" y1="18" x2="21" y2="18"></line>
|
---|
83 | </svg>
|
---|
84 | </button>
|
---|
85 |
|
---|
86 | </div>
|
---|
87 |
|
---|
88 | <nav class="nav-menu">
|
---|
89 | <div class="nav-item has-dropdown">
|
---|
90 | <div class="nav-link" onclick="redirectToBooks()">Books</div>
|
---|
91 | <div class="dropdown-menu">
|
---|
92 | <div class="dropdown-section">
|
---|
93 | <h3>Browse Categories</h3>
|
---|
94 | <div class="dropdown-content">
|
---|
95 | <a href="#" class="dropdown-item">Art & Architecture</a>
|
---|
96 | <a href="#" class="dropdown-item">Biography</a>
|
---|
97 | <a href="#" class="dropdown-item">Business</a>
|
---|
98 | <a href="#" class="dropdown-item">Children's Books</a>
|
---|
99 | <a href="#" class="dropdown-item">Cookbooks</a>
|
---|
100 | <a href="#" class="dropdown-item">History</a>
|
---|
101 | <a href="#" class="dropdown-item">Mystery & Crime</a>
|
---|
102 | <a href="#" class="dropdown-item">Romance</a>
|
---|
103 | </div>
|
---|
104 | </div>
|
---|
105 | </div>
|
---|
106 | </div>
|
---|
107 |
|
---|
108 | <div class="nav-item has-dropdown">
|
---|
109 | <div class="nav-link" onclick="redirectToFiction()">Fiction</div>
|
---|
110 | </div>
|
---|
111 |
|
---|
112 | <div class="nav-item has-dropdown">
|
---|
113 | <div class="nav-link" onclick="redirectToFantasy()">Fantasy</div>
|
---|
114 | </div>
|
---|
115 |
|
---|
116 | <div class="nav-item has-dropdown">
|
---|
117 | <div class="nav-link" onclick="redirectToNewBooks()">New Releases</div>
|
---|
118 | </div>
|
---|
119 | </nav>
|
---|
120 | </header>
|
---|
121 |
|
---|
122 | <script src="../Scripts/Header.js"></script>
|
---|
123 | <script>
|
---|
124 | function redirectToHome() {
|
---|
125 | window.location.href = './HomePage.php';
|
---|
126 | }
|
---|
127 | function redirectToBooks() {
|
---|
128 | window.location.href = './Books.php?';
|
---|
129 | }
|
---|
130 | function redirectToFiction() {
|
---|
131 | window.location.href = './Books.php?genres%5B%5D=Fiction';
|
---|
132 | }
|
---|
133 | function redirectToFantasy() {
|
---|
134 | window.location.href = './Books.php?genres%5B%5D=Fantasy';
|
---|
135 | }
|
---|
136 | function redirectToNewBooks() {
|
---|
137 | window.location.href = './Books.php?year_from=2020&year_to=2024';
|
---|
138 | }
|
---|
139 | </script>
|
---|