-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
100 lines (89 loc) · 3.24 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>superhero hunter</title>
<link rel="shortcut icon" href="/groot.ico" type="image/x-icon">
<!-- style sheet here -->
<link rel="stylesheet" href="./style/index.css">
<script src="https://kit.fontawesome.com/9d34235b2f.js" crossorigin="anonymous"></script>
</head>
<body>
<!-- !! Navbar structure start here -->
<nav class="navbar" id="navbar">
<!-- logo and app name -->
<div class="app-logo-name">
<img src="./images/groot.jpg" alt="logo">
<div class="app-name">
<span id="first-name">Superhero</span>
<span id="last-name">Hunter</span>
</div>
<!-- home and favourites links -->
<div class="nav-btn">
<a href="index.html" id="home" class="cur-poi">Home</a>
<a href="favourite.html"
target="_parent"
id="favourite"
class="cur-poi"
onclick="showFavouriteList"
>Favourites</a>
</div>
</div>
<!-- Profile logo -->
<div class="profile cur-poi">
<i class="fa-solid fa-circle-user"></i>
</div>
<!-- foldable nav menu -->
<div class="foldable-menu">
<div id="open-menu" >
<i class="fa-solid fa-bars cur-poi"></i>
</div>
<div id="close-menu" class="hide">
<i class="fa-solid fa-xmark cur-poi"></i>
</div>
<div class="nav-list hide" id="nav-list">
<a href="index.html">Home</a>
<a href="favourite.html">Favourites</a>
<a href="index.html">profile</a>
<a href="index.html">Logout</a>
</div>
</div>
</nav>
<!-- Navbar structuring end here -->
<!-- ! Main container -->
<main class="main" id="main">
<!-- Todo: serach section -->
<section class="search-section">
<!-- search box -->
<div class="search-bar-wrapper">
<div class="search-bar">
<div class="input-box">
<input type="text" id="input" placeholder="Type here...">
</div>
<i class="fa-solid fa-magnifying-glass"></i>
<span id="search-span" class="cur-poi ">Search</span>
</div>
<!-- auto suggestion container -->
<div class="auto-suggest" id="auto-suggest"> </div>
</div>
</section>
<!-- Todo: superhero container, contains all superhero card -->
<section class="superhero-container">
<!-- superhero card list container-->
<div class="superhero-card-container" id="superhero-card-container"></div>
</section>
</main>
<!-- main end here -->
<!-- !! Footer details -->
<footer>
</footer>
</body>
<!-- cdn for md5 crypto-js to generate hash -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src/md5.min.js"></script>
<!-- js files -->
<script src="./features/auto-complete.js"></script>
<script src="./features/suggestion.js"></script>
<script src="./features/index.js"></script>
</html>