-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
120 lines (115 loc) · 5.58 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/full.min.css" rel="stylesheet" type="text/css" />
<script src="https://cdn.tailwindcss.com"></script>
<link rel="shortcut icon" href="Img/GadgetHunterLogo.png" type="image/x-icon">
<title>Gadget Hunter</title>
<style>
.text-gradient {
background-image: linear-gradient(to right, #6366f1, #9f7aea, #ed64a6);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
</style>
</head>
<body>
<center class="sticky top-0 z-50">
<header class="bg-slate-700 h-36 rounded-b-3xl">
<div class="navbar">
<div class="navbar-start">
<div class="dropdown">
<div tabindex="0" role="button" class="btn btn-ghost btn-circle">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-slate-300" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M4 6h16M4 12h16M4 18h7" />
</svg>
</div>
<ul tabindex="0"
class="menu menu-sm dropdown-content mt-3 z-[1] p-2 shadow bg-base-100 rounded-box w-52">
<li><a onclick="handleHomePage()">Homepage</a></li>
<li><a>iPhone</a></li>
<li><a>Samsung</a></li>
<li><a>OPPO</a></li>
<li><a>Huawei</a></li>
<li><a>Watch</a></li>
<li><a>About</a></li>
</ul>
</div>
</div>
<div>
<img src="Img/GadgetHunterLogo.png" class="w-10 mr-7" alt="GadgetHunter">
</div>
<div>
<h2 class="text-4xl lg:text-5xl text-center">
<span class="text-gradient"><a href="index.html">GadgetHunter</a></span>
</h2>
</div>
<div class="navbar-end">
<button class="btn btn-ghost btn-circle">
<div class="indicator">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-slate-300" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9" />
</svg>
<span class="badge badge-xs badge-success indicator-item"></span>
</div>
</button>
</div>
</div>
<div>
<!-- Search -->
<section class="p-2 text-center items-center justify-center flex">
<div>
<input id="search-field" type="text" placeholder="Search your gadget" class="input input-bordered w-auto lg:w-96 max-w-xs rounded-full" />
</div>
<div>
<button class="btn btn-accent rounded-full text-base lg:text-xl hover:scale-110 duration-350 w-[80px] lg:w-full" onclick="handleSearch()" title="Search">Search</button>
</div>
</section>
</div>
</header>
</center>
<main class="container mx-auto mt-8">
<!-- Phone Container -->
<section>
<!-- Spinner -->
<div id="loading-spinner" class="hidden text-center my-40">
<span class="loading loading-spinner text-accent loading-md"></span>
</div>
<div id="phone-container" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3">
</div>
<!-- Show all button -->
<div id="show-all-container" class="hidden mx-auto mt-8 text-center">
<button onclick="handleShowAll()" class="btn btn-accent text-xl hover:scale-90 duration-350">Show All</button>
</div>
</section>
<!-- Show Details Modal -->
<!-- Open the modal using ID.showModal() method -->
<dialog id="show_details_modal" class="modal modal-bottom sm:modal-middle">
<div class="modal-box">
<h3 id="show-details-phone-name" class="font-bold text-lg"></h3>
<div id="show-details-container"></div>
<div class="modal-action">
<form method="dialog">
<!-- A button to Order -->
<button onclick="handleLogIn()" class="btn btn-accent text-xl">Order</button>
<!-- if there is a button in form, it will close the modal -->
<button class="btn btn-error text-xl">Close</button>
</form>
</div>
</div>
</dialog>
</main>
<footer>
</footer>
<!-- Script -->
<script src="Js/phone.js"></script>
<script src="Js/setonclick.js"></script>
</body>
</html>