-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
126 lines (114 loc) · 4.37 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Neel Care</title>
<style>
</style>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<script> //For Smooth Scrolling while clicking internal links
document.addEventListener("DOMContentLoaded", function() {
const links = document.querySelectorAll('a[href^="#"]');
links.forEach(link => {
link.addEventListener("click", function(e) {
e.preventDefault();
const targetId = this.getAttribute("href").substring(1);
const targetElement = document.getElementById(targetId);
if (targetElement) {
const offsetTop = targetElement.offsetTop;
window.scrollTo({
top: offsetTop,
behavior: "smooth" // Smooth scroll behavior
});
}
});
});
});
</script>
</head>
<body>
<header>
<img class="logo" src="{{ url_for('static', filename='images/logo_hk.png') }}" alt="">
<nav>
<ul class="nav__links">
<li><a href="#">Home</a></li>
<li><a href="#symptom-checker">Symptom Checker</a></li>
<li><a href="#">Find a Doctor</a></li>
<li><a href="#">Health Information Library</a></li>
</ul>
</nav>
<a href="#" class="cta"><button>About Me</button></a>
</header>
<main>
<section class="hero">
<h1 class="title">
<span class="gradient-text">Get the care you deserve.</span>
</h1>
<p>Your Health, Our Priority: Reliable Medical Guidance at Your Fingertips.</p>
</section>
<section class="services" id="services-section">
<h2 >Our Services</h2>
<ul>
<li><a href="#symptom-checker">Symptom Checker</a></li>
<li><a href="#">Find a Doctor</a></li>
<li><a href="#">Health Information Library</a></li>
</ul>
<section id="symptom-checker"></section>
<div class="form-container">
<form id="symptomsForm" action="/" method="POST">
<h2 >Symptom Checker</h2>
<input type="text" placeholder="Enter symptoms" id="symptoms" name="symptoms" required>
<div class="form-row">
<input type="number" placeholder="Enter age (Optional)" id="age" name="age" min="0" max="120">
<select id="gender" name="gender">
<option class="selgen" value="" disabled selected>Select Gender(Optional)</option>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">Other</option>
</select>
<input type="number" placeholder="Enter weight (Optional)" id="weight" name="weight" min="0" max="200">
</div>
<button Class="form-button type="submit"><a href="#symres"> Proceed</button></a>
</form>
<br><br>
<section id="symres"></section>
{% if diagnosis %}
<div id="resultContainer" class="symptom-result">
<h2 >Report</h2>
<h3>Symptoms:</h3>
<p class="placeholder" id="diseasePlaceholder">
{% for i in symptoms %}
<li>{{ i }}</li>
{% endfor %}
</p>
<h3>Diagnosis:</h3>
<p class="placeholder" id="diseasePlaceholder"><b>{{ diagnosis }}</b></p>
<br>
<button type="doctor">Recommend Doctor</button>
</div>
{% endif %}
</div>
</section>
</main>
<footer class="footer">
<div class="footer-section made-by">
<p>Made by Shyamli Rupam</p>
</div>
<div class="footer-section company">
<p>© Neel Care, 2024</p>
</div>
<div class="footer-section social-links">
<a href="https://codeforces.com/profile/Shyamli_29" target="_blank">
<img src="{{ url_for('static', filename='images/codeforces.webp') }}" alt="Codeforces">
</a>
<a href="https://leetcode.com/shyamli_29/" target="_blank">
<img class="leetcode" src="{{ url_for('static', filename='images/leetcode.png') }}" alt="LeetCode">
</a>
<a href="https://www.linkedin.com/in/shyamli-rupam-479422235" target="_blank">
<img src="{{ url_for('static', filename='images/linkedin.png') }}" alt="LinkedIn">
</a>
</div>
</footer>
</body>
</html>