-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
303 lines (258 loc) · 9.45 KB
/
index.html
File metadata and controls
303 lines (258 loc) · 9.45 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WiFix</title>
<link rel="icon" href="../assets/icon2.png" type="image/x-icon">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400..700;1,400..700&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap" rel="stylesheet">
<style type="text/css">
body {
margin: 0;
padding: 0;
overflow: hidden;
height: 100vh;
background-color: #000;
color: white;
font-family: "Cabin", Arial, sans-serif;
font-weight: 200;
}
.container {
text-align: center;
}
.logo {
width: 60px;
}
.screenshot {
border: #224 solid 4.95px;
border-radius: 35px;
margin-bottom: 20px;
height: 55vh;
box-shadow: 0px 0px 20px #2e8bc0;
transition: 0.25s;
margin-top: 5px;
/* margin-bottom: 5px; */
}
.screenshot:hover {
box-shadow: 0px 0px 20px #2e8bc0,0px 0px 25px #224;
}
.features {
margin-bottom: 20px;
display: flex;
flex-direction: column;
justify-content: space-around;
}
.download-button {
padding: 11.5px;
background-color: #2e8bc0;
color: white;
text-decoration: none;
border-radius: 5px;
height: 25px;
}
.hero {
top: 0;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 25px;
box-shadow: 0px 0px 30px #2e8bc079;
/* border-radius: 0px 0px 8px 8px; */
height: 80px;
}
.hero1 {
display: flex;
gap: 5px;
align-items: center;
}
.main {
position: relative;
margin: 10px 20px;
gap: 5px;
justify-content: space-around;
}
.upcomingInfo, .iosUpcomingInfo {
font-size: smaller;
background-color: #333333e1;
padding: 8px 5px;
position: absolute;
bottom: -80px;
display: none;
border-radius: 5px;
}
.downloadDiv {
position: relative;
justify-content: center;
display: flex;
}
.bottomBar {
bottom: 0;
position: absolute;
display: flex;
flex-direction: column;
justify-content: center;
font-size: 25px;
gap: 5px;
background-color: #111;
border-radius: 12px 12px 0 0;
padding: 30px 0 35px 0;
/* align-items: center; */
box-shadow: 0px -3.5px 15px #2e8bc079;
max-width: 400px;
max-height: 35px; /*4.5vh*/
@media (min-width: 768px) {
max-height: 2.5vw;
}
left:0;
right:0;
margin: 0 auto;
}
.mainText {
margin-top: 40px;
text-shadow: 0px 0px 10px #2e8bc0;
font-style: italic;
}
.special {
margin: 0;
font-size: 24px;
display: inline;
}
.bottomBarText {
font-size: 13px;
color: #777;
margin: 0px auto;
text-decoration: none;
}
.name {
color: #eee;
}
.credits {
display: flex;
flex-direction: column;
height: 100px;
font-family: "Source Code Pro";
font-weight: 400;
}
.github-button {
padding: 11.5px;
background-color: #fff;
margin-right: 10px;
text-decoration: none;
border-radius: 5px;
height: 25px;
}
.alert {
display: none;
position: absolute;
right: 15px;
top: -15px;
background-color: #ef4138;
padding: 0 10px;
border-radius: 4px;
/* border: 5px solid rgb(250, 45, 45); */
text-decoration: none;
color: white;
}
</style>
</head>
<body>
<div class="container">
<div class="hero">
<div class="hero1">
<img src="./assets/icon2.png" alt="Wifix" class="logo">
<h1>WiFiX</h1>
</div>
<div class="heroButtons">
<div class="downloadDiv">
<a href="https://github.com/itsmathew/WiFix">
<img src="./webAssets/github.png" alt="Github" class="github-button"></a>
<img src="./webAssets/download-circular-button.png" alt="Download" class="download-button">
<!-- <a href="#" class="download-button">Download Now</a>
-->
<!-- <a href="https://www.flaticon.com/free-icons/download" title="download icons" class="download-button">Download icons created by Catalin Fertu - Flaticon</a> -->
<!-- <div class="upcomingInfo">
Browser Extension<br>Coming Soon!
</div> -->
<div class="iosUpcomingInfo">
Currently Unavailable for IOS
</div>
</div>
</div>
</div>
<div class="main">
<a class="alert" href="https://chromewebstore.google.com/detail/WiFix/adkmbifmldepnhdagnfoeijmfkdfkfao">
<p>Browser Extension Now Available!</p>
</a>
<h2 class="mainText">Never login to WiFi ever again!</h2>
<img src="./assets/appScreenshot.jpeg" alt="App Screenshot" class="screenshot">
</div>
<div class="bottomBar">
<div class="">
<p class="autotype special"></p>
</div>
<div class="credits">
<p class="bottomBarText">Developed by
<a class="bottomBarText name" href="https://www.linkedin.com/in/mathewmanachery/">Mathew
Manachery</a> &
<a class="bottomBarText name" href="https://www.linkedin.com/in/noel-georgi-22521a303/">Noel Georgi</a>
</p>
<!-- <a class="bottomBarText" href="https://www.linkedin.com/in/mathewmanachery/">Developed by Mathew Manachery and Noel Georgi</a> -->
<a class="bottomBarText" href="https://www.linkedin.com/in/muhammed-basil-5b1144326/">Logo by <span class="name">Muhammed
Basil</span></a>
</div>
</div>
</div>
<script src="https://unpkg.com/typed.js@2.1.0/dist/typed.umd.js"></script>
<script>
const downloadButton = document.querySelector('.download-button');
const extensionUrl = "https://chromewebstore.google.com/detail/WiFix/adkmbifmldepnhdagnfoeijmfkdfkfao";
const upcomingInfo = document.querySelector('.upcomingInfo');
const iosUpcomingInfo = document.querySelector('.iosUpcomingInfo');
const alertTab = document.querySelector('.alert');
const userAgent = navigator.userAgent;
let downloadUrl = 'https://wifix-iiitk.netlify.app/assets/wifix%20v1.2.0.apk';
// fetch('https://api.github.com/repos/mathew2103/WiFix/releases/latest')
// .then(response => response.json())
// .then(data => {
// downloadUrl = data.assets[0].browser_download_url;
// })
// .catch(error => console.error('Error fetching latest release:', error));
if(userAgent.match(/iPhone/i)) {
downloadButton.style.cursor = 'not-allowed';
downloadButton.addEventListener('mouseover', () => {
iosUpcomingInfo.style.display = 'block';
});
downloadButton.addEventListener('mouseout', () => {
iosUpcomingInfo.style.display = 'none';
});
} else if(userAgent.match(/Android/i)) {
downloadButton.addEventListener('click', (e) => {
window.location.href = downloadUrl;
});
} else {
downloadButton.style.cursor = 'pointer';
alertTab.style.display = 'block';
downloadButton.addEventListener('click', (e) => {
window.location.href = extensionUrl;
});
/* downloadButton.style.cursor = 'not-allowed';
downloadButton.addEventListener('mouseover', () => {
upcomingInfo.style.display = 'block';
});
downloadButton.addEventListener('mouseout', () => {
upcomingInfo.style.display = 'none';
}); */
}
let texts = ["Simple UI", "Auto Login", "Seamless Updates", "Low Battery Consumption", "Open Source"];
var typed = new Typed(".autotype", {
strings: texts,
typeSpeed: 145,
backSpeed: 120,
loop: true,
fadeOut: true
});
</script>
</body>
</html>