-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
382 lines (352 loc) · 10.5 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
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Diabetes Diagnosis</title>
<link rel="stylesheet" href="./public/css/icon.css" />
<link rel="stylesheet" href="./public/css/icon2.css" />
<link rel="stylesheet" href="./public/css/styles.css" />
</head>
<body>
<!-- Overall grid system for the site -->
<div class="container-grid">
<!-- header including navigation and hero -->
<header class="site__header">
<!-- site navigation -->
<nav class="navigation">
<div class="navigation__brand">
<a href="index.html">
<img
src="./public/images/logo-nav.svg"
alt="Brand Logo"
class="navigation__brand--image"
/>
</a>
</div>
<!-- Links -->
<ul class="navigation__list">
<li class="navigation__list-items">
<a
href="index.html"
class="navigation__link navigation__link--active"
>Home</a
>
</li>
<li class="navigation__list-items">
<a href="about.html" class="navigation__link">About</a>
</li>
<li class="navigation__list-items">
<a href="#footer" class="navigation__link">Contact Us</a>
</li>
</ul>
<a href="#" class="cta navigation__btn">Take a test</a>
<!-- TODO TOGGLE NAVIGATION -->
<!-- <div class="nav__toggler">
<span class="toggle-nav">☰</span>
</div> -->
</nav>
<!-- end of navigation -->
<!-- Hero session -->
<div class="hero">
<div class="hero__message">
<h1 class="hero__message--heading">
<span>Smart</span> Diabetes Diagnosis
</h1>
<p class="hero__message--body">
Our expert system has been designed in such a way that patients
can be diagnosed remotely based on carefully selected symptoms
from our diagnosis system
</p>
<a href="#" class="cta hero__btn">
Signup as a New patient
</a>
</div>
<div class="hero__image">
<img
src="./public/images/undraw_doctor_kw5l.svg"
alt="Doctor patient"
/>
</div>
</div>
<!-- End of Hero -->
</header>
<!-- End of header -->
<!-- info section -->
<section class="section__info">
<h2 class="info__heading">
What we Offer
</h2>
<div class="info__body">
<div class="info__card">
<!-- picture -->
<div class="info__card--top info__card--top-1">
<h3 class="info__card--header">
<span class="info__card--header-1">Accuracy in diagnosis</span>
</h3>
</div>
<!-- h3 -->
<!-- paragrapgh -->
<p class="info__card--body">
The use of <span>Machine learning algorithms</span> ensure that
our system keeps improving on it's already precise diagnosis of
diabetes and get better results
</p>
</div>
<div class="info__card">
<!-- picture -->
<div class="info__card--top info__card--top-2">
<h3 class="info__card--header">
<span class="info__card--header-2">Ease in testing</span>
</h3>
</div>
<!-- h3 -->
<!-- paragrapgh -->
<p class="info__card--body">
Our system makes use of an
<span>online testing platform</span> which takes in input from
users by just filling forms and gives results back in a short time
</p>
</div>
<div class="info__card">
<!-- picture -->
<div class="info__card--top info__card--top-3">
<h3 class="info__card--header">
<span class="info__card--header-3">Record tracking</span>
</h3>
</div>
<!-- h3 -->
<!-- paragrapgh -->
<p class="info__card--body">
As a result of the <span>use of databases</span> in our system we
have a record of each patient that is made available on demand by
a registered patient
</p>
</div>
<div class="info__card">
<!-- picture -->
<div class="info__card--top info__card--top-4">
<h3 class="info__card--header">
<span class="info__card--header-4">Health suggestions</span>
</h3>
</div>
<!-- h3 -->
<!-- paragrapgh -->
<p class="info__card--body">
After the testing is done and the results are in,
<span>we give suggestions</span> as to how to go forward with
regards to the individual test results
</p>
</div>
</div>
</section>
<!-- End of info section -->
<!-- Signup section -->
<section class="section__signup">
<h2 class="signup__heading">
Want to find out <span>How it works?</span>
</h2>
<h3 class="signup__subheading">
Take a test Now and Find out <span>.</span>
</h3>
<button class="signup__button">Sign up →</button>
</section>
<!-- End of sign up section -->
<footer id="footer" class="site__footer">
<div class="footer__brand">
<img
src="./public/images/logo-nav.svg"
class="footer__brand--image"
alt=""
/>
<p class="footer__brand--text">
We offer a quick and smart system. Patients can trust a 100%
efficient system with their health needs, diagnosis and prescription
without meeting the doctor physically
</p>
</div>
<div class="footer__contact">
<h3 class="footer__contact--head">
Contact Us
</h3>
<ul class="footer__contact--list">
<li class="footer__contact--list-item">
<span>Address:</span> Babcock University
</li>
<li class="footer__contact--list-item">
<span>Phone:</span> 08042534428
</li>
<li class="footer__contact--list-item">
<!-- icon -->
<span>Email:</span> name@email.com
</li>
</ul>
</div>
<div class="footer__links">
<h3 class="footer__links--head">
Useful Links
</h3>
<ul>
<li><a href="">Home</a></li>
<li><a href="positive.html">About us</a></li>
<li><a href="">Take Test</a></li>
</ul>
</div>
</footer>
</div>
<!-- Modal form -->
<div class="modal">
<form action="/" id="regForm" class="form__register" method="POST">
<h2 class="form--heading">Signup</h2>
<div class="form__item form__item--signup-first">
<input
class="form__item--input"
autocomplete="off"
type="text"
id="firstName"
name="firstName"
required
/>
<label class="form__item--label" for="firstName">
<span class="form__item--label--span">First Name</span>
</label>
</div>
<div class="form__item form__item---signup-last">
<input
class="form__item--input"
autocomplete="off"
type="text"
id="lastName"
name="lastName"
required
/>
<label class="form__item--label" for="lastName">
<span class="form__item--label--span">Last Name</span>
</label>
</div>
<div class="form__item form__item--signup-dob">
<input
class="form__item--input"
autocomplete="off"
type="date"
id="dob"
name="dob"
required
/>
<label class="form__item--label" for="dob">
<span class="form__item--label--span date">dd/mm/yyyy</span>
</label>
</div>
<div class="form__item form__item--signup-mail">
<input
class="form__item--input"
autocomplete="off"
type="email"
id="email"
name="email"
required
/>
<label class="form__item--label" for="email">
<span class="form__item--label--span">Email address</span>
</label>
</div>
<div class="form__item form__item--signup-password">
<input
class="form__item--input"
autocomplete="off"
type="password"
id="pwd"
name="password"
pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}"
title="Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters"
required
/>
<label class="form__item--label" for="pwd">
<span class="form__item--label--span">Password</span>
</label>
</div>
<div class="form__item form__item--signup--confpass">
<input
class="form__item--input"
autocomplete="off"
type="password"
id="Cpwd"
name="confirm_password"
required
/>
<label class="form__item--label" for="Cpwd">
<span class="form__item--label--span">Confirm Password</span>
</label>
</div>
<button type="submit" class="form__btn" name="register">
Register
</button>
</form>
<!-- separating line -->
<div class="modal__line"></div>
<form action="/" id="loginForm" class="form__login">
<h2 class="form--heading">Login</h2>
<div class="form__item form__item--login-name">
<input
class="form__item--input"
autocomplete="off"
type="text"
id="userName"
name="firstName"
required
/>
<label class="form__item--label" for="userName">
<span class="form__item--label--span">First Name</span>
</label>
</div>
<div class="form__item form__item--login-pass">
<input
class="form__item--input"
autocomplete="off"
type="password"
id="userPwd"
name="firstName"
pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}"
title="Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters"
required
/>
<label class="form__item--label" for="userPwd">
<span class="form__item--label--span">password</span>
</label>
</div>
<button type="submit" class="form__btn" name="register">
Login
</button>
</form>
<button class="modal__clear">✖</button>
</div>
<!-- End of overall grid system -->
<script>
// buttons
const heroBtn = document.querySelector('.hero__btn');
const signupBtn = document.querySelector('.signup__button');
const clearModal = document.querySelector('modal__clear');
const modal = document.querySelector('.modal');
const container = document.querySelector('.container-grid');
[heroBtn, signupBtn].forEach(button => {
button.addEventListener('click', openModal);
});
function openModal(e) {
// This is to prevent the window location from changing
e.preventDefault();
// open the modal
modal.classList.toggle('open');
// take focus away from the background
container.classList.toggle('close');
}
// Using event delegation
modal.addEventListener('click', closeModal);
function closeModal(e) {
if (e.target.classList.contains('modal__clear')) {
modal.classList.toggle('open');
container.classList.toggle('close');
}
}
</script>
</body>
</html>