-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
357 lines (296 loc) · 20.9 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
<!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>Document</title>
<link rel="stylesheet" href="assets/css/tailwind.css">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script src="assets/script/vue.global.js"></script>
</head>
<body>
<section id="top">
<header id="header" class="w-full h-96 box-border">
<div class="w-full h-full flex justify-center items-center pt-24">
<div class="w-full h-full m-auto flex flex-col justify-center items-center">
<h1 id="title" class="w-full h-12 text-center text-3xl font-bold text-white ">Web Design Inspiration Gallery</h1>
<p id="content" class="w-full h-12 text-center text-white">We would like to show your great web design to the world. Submit your website today !!!</p>
<button id="btnSubmit"
class="w-40 h-14 rounded-md bg-green-500 text-white transform scale-90 duration-500 hover:bg-green-700 hover:scale-95 hover:text-black">Submit a Website</button>
</div>
</div>
<div id="navBar" class="w-full h-24 bg-white flex items-center fixed z-10 top-0 right-0 transition-scroll-menu">
<div class="w-4/5 h-24 m-auto flex justify-between items-center">
<button id="menu" class="w-20 h-10 bg-gray-300 text-xl font-semibold rounded-xl
transition duration-300 hover:bg-gray-600 hover:text-white">
<i class="fas fa-bars"></i>
</button>
<div class="flex">
<h2 id="logo"
class="flex justify-center text-green-500 font-black mr-10 text-5xl w-52 h-14 relative cursor-pointer">
<a href="#">hotskills</a>
<span></span>
</h2>
<nav class="flex justify-center items-center">
<ul id="nav" class="flex items-center z-20">
<li class=" pr-16">
<a href="#">Categories</a>
</li>
<li class=" pr-16">
<a href="#">Submit a website</a>
</li>
<li class=" pr-16">
<a href="#">Contact us</a>
</li>
<button id="exit"
class="w-14 h-10 bg-white text-black text-xl font-semibold rounded-xl transition duration-300 hover:bg-gray-600 hover:text-white">
<i class="fas fa-times text-2xl pt-1"></i>
</button>
</ul>
</nav>
</div>
<button id="login"
class="w-20 h-10 bg-gray-300 text-xl font-semibold rounded-xl transition duration-300 hover:bg-gray-600 hover:text-white">Login</button>
</div>
</div>
</header>
</section>
<section id="center" class="bg-indigo-50 w-full">
<div class="w-full pb-5">
<div class="w-4/5 m-auto">
<h2 class="sub-title pt-10 font-medium text-2xl">Latest website design inspiration</h2>
<div class="w-full flex justify-end mt-5 mb-7">
<input type="text" placeholder="Search Here (disabled)" disabled class="w-input h-10 pl-3 outline-none border bg-blue-50 drop-shadow-sm">
</div>
<div id="card" class="flex flex-wrap justify-between gap-y-10 w-full my-5">
<!-- ============================================== card in new page ============================================================== -->
<template v-for="(item, index) in newList.info" :key="item.id">
<div v-show="this.oldPage == true" class="sub-card rounded box-border">
<div class="w-full h-1/5 flex justify-center items-center bg-blue-100 pt-1 box-border rounded-t">
<img class="w-5/6 h-12 m-auto block bg-center bg-cover" :src="item.airline[0].logo">
</div>
<div class="content-card w-full h-3/5 cursor-pointer relative">
<img class="content-card-img" :src="this.newList.img[index]">
<p class="detail flex justify-center items-center font-black">Hover for more details</p>
<div class="txt-content-card">
<p class="w-full h-full flex flex-col justify-center items-center text-white text-xs leading-6 tracking-wide p-5">
Name: {{item.airline[0].name}} <br>
Country : {{item.airline[0].country}} <br>
Slogan : {{item.airline[0].slogan}} <br>
Established : {{item.airline[0].established}} <br>
Website : {{item.airline[0].website}}
</p>
</div>
</div>
<div class="text-footer w-full h-1/5 flex justify-between items-center text-sm px-4">
<p><b>Name:</b> <span class="text-green-800">{{item.name}}</span></p>
<p><b>Trips:</b> <span class="text-red-600">{{item.trips}}</span></p>
</div>
</div>
</template>
<!-- ====================================== card in old page (pages that was clicked) =====================================-->
<template v-for="(item, index) in showOldList.info" :key="item.id">
<div v-show = "this.oldPage == false" class="sub-card rounded box-border">
<div class="w-full h-1/5 flex justify-center items-center bg-blue-100 pt-1 box-border rounded-t">
<img class="w-5/6 h-12 m-auto block bg-center bg-cover" :src="item.airline[0].logo">
</div>
<div class="content-card w-full h-3/5 cursor-pointer relative">
<img class="content-card-img" :src="this.showOldList.img[index]">
<p class="detail flex justify-center items-center font-black">Hover for more details</p>
<div class="txt-content-card">
<p class="w-full h-full flex flex-col justify-center items-center text-white text-xs leading-6 tracking-wide p-5">
Name: {{item.airline[0].name}} <br>
Country : {{item.airline[0].country}} <br>
Slogan : {{item.airline[0].slogan}} <br>
Established : {{item.airline[0].established}} <br>
Website : {{item.airline[0].website}}
</p>
</div>
</div>
<div class="text-footer w-full h-1/5 flex justify-between items-center text-sm px-4">
<p><b>Name:</b> <span class="text-green-800">{{item.name}}</span></p>
<p><b>Trips:</b> <span class="text-red-600">{{item.trips}}</span></p>
</div>
</div>
</template>
</div>
<!-- ============================================ button page ============================================================== -->
<div class="pagination flex items-center">
<button v-show="num!=1" v-on:click="prevPage()"
class="w-8 h-8 mr-1 rounded text-xs bg-indigo-200 transform duration-300 hover:bg-indigo-300 hover:scale-110">
<
</button>
<div>
<button v-show="(totalPages >= 1) && (num == 1)" v-on:click="page(1)"
class="w-8 h-8 mr-1 rounded text-xs text-white bg-indigo-500 transform scale-110" disabled>
1
</button>
<button v-show="(totalPages >= 1) && (num != 1)" v-on:click="page(1)"
class="w-8 h-8 mr-1 rounded text-xs bg-indigo-200 transform duration-300 hover:bg-indigo-300 hover:scale-110">
1
</button>
</div>
<div>
<button v-show="(totalPages >= 2) && (num == 2)" v-on:click="page(2)"
class="w-8 h-8 mr-1 rounded text-xs text-white bg-indigo-500 transform scale-110">
2
</button>
<button v-show="(totalPages >= 2) && (num != 2)" v-on:click="page(2)"
class="w-8 h-8 mr-1 rounded text-xs bg-indigo-200 transform duration-300 hover:bg-indigo-300 hover:scale-110">
2
</button>
</div>
<div>
<button v-show="(totalPages >= 3) && (num == 3)" v-on:click="page(3)"
class="w-8 h-8 mr-1 rounded text-xs text-white bg-indigo-500 transform scale-110">
3
</button>
<button v-show="(totalPages >= 3) && (num != 3)" v-on:click="page(3)"
class="w-8 h-8 mr-1 rounded text-xs bg-indigo-200 transform duration-300 hover:bg-indigo-300 hover:scale-110">
3
</button>
</div>
<!-- <div>
<button v-show="(totalPages >20) && (num == Math.ceil(totalPages/3))" v-on:click="page(Math.ceil(totalPages/3))"
class="w-8 h-8 mr-1 rounded text-xs text-white bg-indigo-500 transform scale-110">
{{Math.ceil(totalPages/3)}}
</button>
<button v-show="(totalPages >20) && (num != Math.ceil(totalPages/3))" v-on:click="page(Math.ceil(totalPages/3))"
class="w-8 h-8 mr-1 rounded text-xs bg-indigo-200 transform duration-300 hover:bg-indigo-300 hover:scale-110">
{{Math.ceil(totalPages/3)}}
</button>
</div> -->
<div>
<button v-show="(totalPages > 50) && (num == Math.ceil(totalPages/2))" v-on:click="page(Math.ceil(totalPages/2))"
class="w-8 h-8 mr-1 rounded text-xs text-white bg-indigo-500 transform scale-110">
{{Math.ceil(totalPages/2)}}
</button>
<button v-show="(totalPages > 50) && (num != Math.ceil(totalPages/2))" v-on:click="page(Math.ceil(totalPages/2))"
class="w-8 h-8 mr-1 rounded text-xs bg-indigo-200 transform duration-300 hover:bg-indigo-300 hover:scale-110">
{{Math.ceil(totalPages/2)}}
</button>
</div>
<div>
<button v-show="totalPages>10" class="w-8 h-8 mr-1 rounded text-xs bg-gray-200 transform duration-300 cursor-not-allowed" disabled>...</button>
</div>
<div>
<button v-show ="(totalPages) && (num == totalPages)" v-on:click="page(totalPages)"
class="w-8 h-8 mr-1 rounded text-xs text-white bg-indigo-500 transform scale-110">
{{totalPages}}
</button>
<button v-show ="(totalPages) && (num != totalPages)" v-on:click="page(totalPages)"
class="w-8 h-8 mr-1 rounded text-xs bg-indigo-200 transform duration-300 hover:bg-indigo-300 hover:scale-110">
{{totalPages}}
</button>
</div>
<div>
<button v-show ="num!=totalPages" v-on:click="nextPage()"
class="w-8 h-8 rounded text-xs bg-indigo-200 transform duration-300 hover:bg-indigo-300 hover:scale-110">
>
</button>
</div>
</div>
<!-- ========================================================= search ======================================================================= -->
<form @submit.prevent="search">
<div class="w-input border-2 border-green-400 rounded mt-5">
<div>
<div>
<input type="number" min="1" :max="this.totalPages" placeholder="Go to Page (type number)" class="w-full h-10 rounded pl-3 outline-none border-none bg-blue-50"
v-model = "numSearch">
</div>
<div>
<!-- <input type="button" class="w-input h-10 pl-3 outline-none bg-green-400" value="Search"> -->
<button v-if="numSearch == ''" disabled type="submit" class="w-full h-10 text-white font-black text-sm outline-none border-none rounded-b-sm bg-green-500 transition duration-500 hover:bg-green-700">Search (Go to page)</button>
<button v-else="numSearch != ''" type="submit" class="w-full h-10 text-white font-black text-sm outline-none border-none rounded-b-sm bg-green-500 transition duration-500 hover:bg-green-700">Search (Go to page)</button>
</div>
</div>
</div>
</form>
<!-- ========================================================= show numeric of page ========================================================= -->
<p v-if="num=='' || num == 1" class="text-xl text-green-700 font-black pt-4">Current page : 1</p>
<p v-else class="text-xl text-green-700 font-black pt-4">Current page : {{this.num}}</p>
</div>
</div>
</section>
<section id="footer">
<footer id="bottom">
<div class="w-full bg-gray-900 relative box-border">
<div class="w-4/5 h-full m-auto flex flex-wrap justify-between py-6">
<div class="w-1/4 h-full col-1">
<h3 class="text-white border-b border-gray-400">THE HOT SKILLS</h3>
<p class="text-gray-400 py-4 hover:text-green-400">
<a href="#" class="no-underline">About</a>
</p>
<p class="text-gray-400 pb-4 hover:text-green-400">
<a href="#" class="no-underline">Contact</a>
</p>
<p class="text-gray-400 pb-4 hover:text-green-400">
<a href="#" class="no-underline">Sign In / Sign Up</a>
</p>
<div class="w-full flex items-start gap-2">
<a href="#" class="flex justify-center items-center w-8 h-8 rounded-full border-2 border-gray-400 text-gray-400 hover:text-green-400 hover:border-green-400
no-underline">
<i class="fab fa-facebook-f"></i>
</a>
<a href="#" class="flex justify-center items-center w-8 h-8 rounded-full border-2 border-gray-400 text-gray-400 hover:text-green-400 hover:border-green-400
no-underline">
<i class="fab fa-twitter"></i>
</a>
<a href="#" class="flex justify-center items-center w-8 h-8 rounded-full border-2 border-gray-400 text-gray-400 hover:text-green-400 hover:border-green-400
no-underline">
<i class="fab fa-google-plus-g"></i>
</a>
<a href="#" class="flex justify-center items-center w-8 h-8 rounded-full border-2 border-gray-400 text-gray-400 hover:text-green-400 hover:border-green-400
no-underline">
<i class="fab fa-tumblr"></i>
</a>
<a href="#" class="flex justify-center items-center w-8 h-8 rounded-full border-2 border-gray-400 text-gray-400 hover:text-green-400 hover:border-green-400
no-underline">
<i class="fab fa-pinterest-p"></i>
</a>
<a href="#" class="flex justify-center items-center w-8 h-8 rounded-full border-2 border-gray-400 text-gray-400 hover:text-green-400 hover:border-green-400
no-underline">
<i class="fab fa-instagram"></i>
</a>
</div>
</div>
<div class="w-1/4 h-full col-2">
<h3 class="text-white border-b border-gray-400">HOT WEBSITES OF THE WEEK</h3>
<p class="text-gray-400 py-4">
Subscribe to receive inspiration ideas and news in your inbox.
</p>
<input type="text" placeholder="Enter your email" class="text-black outline-none border-none bg-indigo-100 w-full h-10 px-3">
<button class="w-40 h-10 mt-3 text-white font-black text-sm rounded bg-green-500 transition duration-500 hover:bg-green-700">SUBSCRIBE</button>
</div>
<div class="w-2/6 h-full col-3">
<h3 class="text-white border-b border-gray-400">WHAT'S NEW</h3>
<div class="row-col-3 w-full h-full flex justify-between py-4">
<div class="w-2/4 h-full">
<a href="#">
<img src="news.jpg" class="bg-center bg-cover">
</a>
</div>
<div class="w-2/4 h-full px-3">
<p class="text-gray-400 text-justify text-sm"><span class="text-xl text-white text-green-400">Thehotskills</span> is a showcase of the creative and interactive design and community of the world's best designers, developers and creative agencies.</p>
</div>
</div>
</div>
</div>
<div id="copyRight" class="w-full bg-white text-center py-4">
<p>Copyright ©2015 <span class="text-green-400 font-black">Thehotskills</span> | All rights reserved | <span class="text-green-400 font-black">M@de</span> by Kokleng<span class="text-green-400">.</span></p>
</div>
</div>
</footer>
<marquee bgcolor="#00bb86" derection="right" behavior="alternate">
<font size="4" color="white">
<<< Kokleng loy9 >>>
</font>
</marquee>
</section>
<script src="assets/script/script.js"></script>
<script src="assets/script/vue.js"></script>
</body>
</html>