-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
328 lines (328 loc) · 15 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css" integrity="sha512-xh6O/CkQoPOWDdYTDqeRdPCVd1SpvCA9XXcUnZS2FmJNp1coAFzvtCN9BmamE+4aHK8yyUHUSCcJHgXloTyT2A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<script defer src="./script.js" type="text/javascript"></script>
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
<title> Tailwind Responsive Website</title>
</head>
<body>
<header>
<!-- Navbar -->
<nav class="relative container mx-auto p-6">
<div class="flex items-center justify-between">
<!-- Logo -->
<div class="pt-2">
<img
src="https://www.vivasoftltd.com/wp-content/uploads/2022/09/Logo-5.svg" alt="logo"/>
</div>
<!-- Menu Item -->
<div class="hidden space-x-6 md:flex">
<a href="#" class="hover:text-darkGrayishBlue">Home</a>
<a href="#" class="hover:text-darkGrayishBlue">about</a>
<a href="#" class="hover:text-darkGrayishBlue">Courses</a>
<a href="#" class="hover:text-darkGrayishBlue">Careers</a>
<a href="#" class="hover:text-darkGrayishBlue">Community</a>
</div>
<!-- Button -->
<a
href="#"
class="hidden p-3 px-6 pt-2 text-white bg-brightRed rounded-full baseline hover:bg-brightRedLight md:block"
>Free Trial</a>
<!-- Hamburger Icon -->
<button
id="menu-btn"
class="block hamburger md:hidden focus:outline-none">
<span class="hamburger-top"></span>
<span class="hamburger-middle"></span>
<span class="hamburger-bottom"></span>
</button>
</div>
<!-- Mobile Menu -->
<div class="md:hidden">
<div
id="menu"
class="absolute flex-col items-center hidden self-end py-8 mt-10 space-y-6 font-bold bg-white sm:w-auto sm:self-center left-6 right-6 drop-shadow-md"
>
<a href="#">Pricing</a>
<a href="#">Courses</a>
<a href="#">About Us</a>
<a href="#">Careers</a>
<a href="#">Community</a>
</div>
</div>
</nav>
</header>
<main>
<!-- Hero Section -->
<section>
<!-- Flex Container -->
<div class="container flex flex-col-reverse items-center px-6 mx-auto mt-10 space-y-0 md:space-y-0 md:flex-row">
<!-- Left item -->
<div class="flex flex-col mb-32 space-y-12 md:w-1/2">
<h1 class="max-w-md text-4xl font-bold text-center md:text-5xl md:text-left">
Welcome to the introductory class of web development.
</h1>
<p class="max-w-sm text-center text-darkGrayishBlue md:text-left">
Here you can learn some basic knowledge about frontend and backend development.
</p>
<div class="flex justify-center md:justify-start">
<a
href="#"
class="p-3 px-6 pt-2 text-white bg-brightRed rounded-full baseline hover:bg-brightRedLight"
>Get Started</a>
</div>
</div>
<!-- Image -->
<div class="md:w-1/2">
<img src="images/banner.jpg" alt="banner-image" />
</div>
</div>
</section>
<!-- Features Section -->
<section>
<div class="container flex flex-col px-4 mx-auto mt-10 space-y-12 md:space-y-0 md:flex-row">
<div class="md:w-1/2">
<img src="images/about-image.jpg" alt="feature-image" />
</div>
<!-- Numbered List -->
<div class="flex flex-col space-y-8 md:w-1/2">
<!-- List Item 1 -->
<div
class="flex flex-col space-y-3 md:space-y-0 md:space-x-6 md:flex-row">
<!-- Heading -->
<div class="rounded-l-full bg-brightRedSupLight md:bg-transparent">
<div class="flex items-center space-x-2">
<div
class="px-4 py-2 text-white rounded-full md:py-1 bg-brightRed"
>
01
</div>
<h3 class="text-base font-bold md:mb-4 md:hidden">
Customizable Learning
</h3>
</div>
</div>
<div>
<h3 class="hidden mb-4 text-lg font-bold md:block">
Customizable Learning
</h3>
<p class="text-darkGrayishBlue">
Personal preferences and goal with a variety of course available.
</p>
</div>
</div>
<!-- List Item 2 -->
<div class="flex flex-col space-y-3 md:space-y-0 md:space-x-6 md:flex-row">
<!-- Heading -->
<div class="rounded-l-full bg-brightRedSupLight md:bg-transparent">
<div class="flex items-center space-x-2">
<div class="px-4 py-2 text-white rounded-full md:py-1 bg-brightRed">
02
</div>
<h3 class="text-base font-bold md:mb-4 md:hidden">
Collaborative Learning
</h3>
</div>
</div>
<div>
<h3 class="hidden mb-4 text-lg font-bold md:block">
Collaborative Learning
</h3>
<p class="text-darkGrayishBlue">
Discussion forums and group projects are available on our platform.
</p>
</div>
</div>
<!-- List Item 3 -->
<div
class="flex flex-col space-y-3 md:space-y-0 md:space-x-6 md:flex-row">
<!-- Heading -->
<div class="rounded-l-full bg-brightRedSupLight md:bg-transparent">
<div class="flex items-center space-x-2">
<div class="px-4 py-2 text-white rounded-full md:py-1 bg-brightRed">
03
</div>
<h3 class="text-base font-bold md:mb-4 md:hidden">
Gamification
</h3>
</div>
</div>
<div>
<h3 class="hidden mb-4 text-lg font-bold md:block">
Gamification
</h3>
<p class="text-darkGrayishBlue">
Learning with points, badges, and leaderboards are available.
</p>
</div>
</div>
</div>
</div>
</section>
<!-- Courses section -->
<section>
<div class="container justify-between px-6 py-10 mx-auto space-y-8 md:space-y-0">
<div class="text-center m-auto mb-20 md:w-1/2">
<h4 class="font-bold text-darkBlue mb-4">Popular Courses</h4>
<h1 class="text-3xl md:text-4xl font-bold leading-snug">Explore Our Learning Opportunity</h1>
</div>
<div class="grid lg:grid-cols-3 md:grid-cols-1 gap-12 lg:gap-8 px-4 sm:px-6 lg:px-8">
<!-- course no 1 -->
<div class="bg-veryPaleRed border-2 border-solid border-darkGrayishBlue text-center py-20 px-5 rounded-2xl cursor-pointer">
<div class="bg-brightRedSupLight inline-block rounded-2xl py-5 px-6">
<i class="fa-solid fa-code text-4xl"></i>
</div>
<h3 class="text-xl font-bold py-4">Web Development</h3>
<p class="leading-relaxed">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
<!-- course no 2 -->
<div class="bg-veryPaleRed border-2 border-solid border-darkGrayishBlue text-center py-20 px-5 rounded-2xl cursor-pointer">
<div class="bg-brightRedSupLight inline-block rounded-2xl py-5 px-6">
<i class="fa-solid fa-code text-4xl"></i>
</div>
<h3 class="text-xl font-bold py-4">UX/UI Design</h3>
<p class="leading-relaxed">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
<!-- course no 3 -->
<div class="bg-veryPaleRed border-2 border-solid border-darkGrayishBlue text-center py-20 px-5 rounded-2xl cursor-pointer">
<div class="bg-brightRedSupLight inline-block rounded-2xl py-5 px-6">
<i class="fa-solid fa-code text-4xl"></i>
</div>
<h3 class="text-xl font-bold py-4">CyberSecurity</h3>
<p class="leading-relaxed">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
</div>
</section>
<!-- Score section -->
<section>
<div class="text-center m-auto mb-10 md:w-1/2">
<h1 class="text-3xl md:text-4xl font-bold leading-snug">Search Our Success Board</h1>
</div>
<div class="relative overflow-x-auto shadow-md sm:rounded-lg">
<div class="pb-4 bg-white">
<div class="relative mt-1 mb-3">
<div class="absolute inset-y-0 rtl:inset-r-0 start-0 flex items-center ps-3 pointer-events-none">
<svg class="w-4 h-4 text-gray-500 dark:text-gray-400" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"/>
</svg>
</div>
<input class="block pt-2 ps-10 text-sm text-gray-900 border border-brightRed rounded-lg w-80 bg-veryPaleRed" type="text" id="search" onkeyup="search()" placeholder="Search for names">
</div>
<table id="table" class="w-full text-sm text-left rtl:text-right">
<thead class="bg-brightRed text-xs text-gray-700 uppercase">
<tr>
<th scope="col" class="px-6 py-3">
<span data-sort="ranking" class="icon-arrow">↑</span>
Ranking
</th>
<th scope="col" class="px-6 py-3">
<span data-sort="name" class="icon-arrow">↑</span>
Name
</th>
<th scope="col" class="px-6 py-3">
<span data-sort="country" class="icon-arrow">↑</span>
Country
</th>
<th scope="col" class="px-6 py-3">
<span data-sort="score" class="icon-arrow">↑</span>
Score
</th>
<th scope="col" class="px-6 py-3">
<span data-sort="photo" class="icon-arrow">↑</span>
Photo
</th>
</tr>
</thead>
<tbody id="table_body">
</tbody>
</table>
</div>
</div>
<div class="bg-brightRed flex justify-center items-center gap-x-4">
<button id="prevButton" class="goPrev w-8 h-8 rounded-full">
<i class="fa-solid fa-angles-left w-4 h-4 inline-flex justify-center"></i>
</button>
<button id="nextButton" class="goNext w-8 h-8 rounded-full">
<i class="fa-solid fa-angles-right w-4 h-4 inline-flex justify-center"></i>
</button>
</div>
</section>
<!-- Footer -->
<footer class="bg-veryDarkBlue">
<!-- Flex Container -->
<div class="container flex flex-col-reverse justify-between px-6 py-10 mx-auto space-y-8 md:flex-row md:space-y-0">
<!-- Logo and social links container -->
<div class="flex flex-col-reverse items-center justify-between space-y-12 md:flex-col md:space-y-0 md:items-start">
<div class="mx-auto my-6 text-center text-white md:hidden">
Copyright © 2022, All Rights Reserved
</div>
<!-- Logo -->
<div>
<img src="img/logo-white.svg" class="h-8" alt="" />
</div>
<!-- Social Links Container -->
<div class="flex justify-center space-x-4">
<!-- Link 1 -->
<a href="#">
<img src="img/icon-facebook.svg" alt="" class="h-8" />
</a>
<!-- Link 2 -->
<a href="#">
<img src="img/icon-youtube.svg" alt="" class="h-8" />
</a>
<!-- Link 3 -->
<a href="#">
<img src="img/icon-twitter.svg" alt="" class="h-8" />
</a>
<!-- Link 4 -->
<a href="#">
<img src="img/icon-pinterest.svg" alt="" class="h-8" />
</a>
<!-- Link 5 -->
<a href="#">
<img src="img/icon-instagram.svg" alt="" class="h-8" />
</a>
</div>
</div>
<!-- List Container -->
<div class="flex justify-around space-x-32">
<div class="flex flex-col space-y-3 text-white">
<a href="#" class="hover:text-brightRed">Home</a>
<a href="#" class="hover:text-brightRed">Pricing</a>
<a href="#" class="hover:text-brightRed">Courses</a>
<a href="#" class="hover:text-brightRed">About</a>
</div>
<div class="flex flex-col space-y-3 text-white">
<a href="#" class="hover:text-brightRed">Careers</a>
<a href="#" class="hover:text-brightRed">Community</a>
<a href="#" class="hover:text-brightRed">Privacy Policy</a>
</div>
</div>
<!-- Input Container -->
<div class="flex flex-col justify-between">
<form>
<div class="flex space-x-3">
<input
type="text"
class="flex-1 px-4 rounded-full focus:outline-none"
placeholder="Sign Up for Newsletter"
/>
<button class="px-6 py-2 text-white rounded-full bg-brightRed hover:bg-brightRedLight focus:outline-none">
<i class="fa-solid fa-right-to-bracket"></i>
</button>
</div>
</form>
<div class="hidden text-white md:block">
Copyright © 2024, All Rights Reserved
</div>
</div>
</div>
</footer>
</main>
</body>
</html>