-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
235 lines (220 loc) · 11.1 KB
/
index.php
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
<?php
// Initialize the session
session_start();
$isLoggedIn = isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>NutriHelp</title>
<link rel="stylesheet" href="css/styles.css">
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap" rel="stylesheet">
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet">
</head>
<body>
<div class="wrapper">
<div class="nav">
<div class="logo">
<h4>NutriHelp.</h4>
</div>
<div class="links">
<a href="#" class="mainlink">HOME</a>
<?php
if ($isLoggedIn) {
echo '<a href="php/profile.php">PROFILE</a>';
} else {
echo '<a href="php/login.php">PROFILE</a>';
}
?>
<a href="#explore">FEATURES</a>
<?php
if ($isLoggedIn) {
echo '<a href="php/logout.php">LOG OUT</a>';
} else {
echo '<a href="php/register.php">SIGN UP</a><a href="php/login.php">LOGIN</a>';
}
?>
</div>
</div>
<!-- LANDING PAGE -->
<div class="landing">
<div class="landingText" data-aos="fade-up" data-aos-duration="1000">
<h1>Be Healthy.<span style="color:#e0501b;font-size: 4vw"> Be Happy.</span> </h1>
<h3>“The doctors of the future will no longer treat the human frame with drugs, but rather will cure and prevent disease with nutrition.” – Thomas Edison</h3>
<div class="btn">
<a href="#about">Learn More</a>
</div>
</div>
<div class="landingImage" data-aos="fade-down" data-aos-duration="2000">
<img src="img/doctors.png" alt="">
</div>
</div>
<!-- ABOUT SECTION -->
<div class="about" id ="about">
<div class="aboutText" data-aos="fade-up" data-aos-duration="1000">
<h1 style="font-size: 2.5vw;text-align:center; color:#EEEEEE">About Us <br> <span style="color:#2f8be0;font-size:2.5vw; text-align: center;">Why Healthy Lifestyle Important?</span> </h1>
<br>
<img src="img/diet-plan.png" alt="" style="width:800px;height:400px;margin:75px;">
</div>
<div style="background-color: #EEEEEE;"></div>
<div class="aboutSection" data-aos="fade-left" data-aos-duration="1000">
<p style="color:#EEEEEE; font-size: 19px;">Healthcare Technologies are undergoing major reformation and adjustments to meet current healthcare requirements. The main focus is to make the healthcare system more accessible and efficient through technology. NutriHelp presents a Web-based application that simulates the process of diet suggestions according to the standard practice employed by doctors.
</p>
</div>
</div>
<!-- EXPLORE -->
<div class="explore" id = "explore">
<div class="cards">
<div class="expHeader" data-aos="fade-up" data-aos-duration="1000">
<h1 style="color:#EEEEEE;padding:10px;">Explore By</h1>
</div>
<ul class="expcards" style="list-style-type:none;" data-aos="fade-up" data-aos-duration="1000">
<li class="cards">
<div class="expimg">
<a href = "bmi.html"><img src = "img/BMI.jpg" alt="" class="expimg"></a>
</div>
<div class="expheading">
<h3 style="color:#EEEEEE;padding:10px;">  Check Your BMI</h3>
</div>
</li>
<li class="cards">
<div class="expimg">
<?php if ($isLoggedIn) {
echo '<a href = "diet.html"><img src = "img/Consult_doctor.jpg" alt="" class="expimg"></a>';
} else {
echo '<a href="php/login.php"><img src = "img/Consult_doctor.jpg" alt="" class="expimg"></a>';
}?>
</div>
<div class="expheading">
<h3 style="color:#EEEEEE;padding:10px;">   My Diet Plan</h3>
</div>
</li>
<li class="cards">
<div class="expimg">
<a href = "php/doctordetails.php"><img src = "img/online-doctor.jpg" alt="" class="expimg"></a>
</div>
<div class="expheading">
<h3 style="color:#EEEEEE;padding:10px;">  Consult A Doctor</h3>
</div>
</li>
<li class="cards">
<div class="expimg">
<a href = "Health.html"><img src = "img/healthy-vs-unhealthy.jpg" alt="" class="expimg"></a>
</div>
<div class="expheading">
<h3 style="color:#EEEEEE;padding:10px;">  Healthy Vs Unhealthy</h3>
</div>
</li>
</ul>
</div>
</div>
<!-- INFO SECTION -->
<div class="infoSection">
<div class="infoHeader" data-aos="fade-up" data-aos-duration="1000">
<h1>Things you can Read About <br> <span style="color:#e0501b">Healthy LifeStyle.</span> </h1>
</div>
<div class="infoCards">
<div class="card one" data-aos="fade-up" data-aos-duration="1000">
<img src="img/Blog.png" class="cardoneImg" alt="" data-aos="fade-up" data-aos-duration="1100" style="width:200px;height:200px;">
<div class="cardbgone"></div>
<div class="cardContent">
<h2>NutriHelp.Blog</h2>
<p>Healthcare Blogs</p>
<a href="blog2.html">
<div class="cardBtn">
<img src="img/next.png" alt="" class="cardIcon" >
</div>
</a>
</div>
</div>
<div class="card two" data-aos="fade-up" data-aos-duration="1300">
<img src="img/learn.png" class="cardtwoImg" alt="" data-aos="fade-up" data-aos-duration="1200">
<div class="cardbgtwo"></div>
<div class="cardContent">
<h2>Learn about Healthy Eating</h2>
<p>Try a new recipes!!</p>
<a href="recipe.html">
<div class="cardBtn">
<img src="img/next.png" alt="" class="cardIcon">
</div>
</a>
</div>
</div>
<div class="card three" data-aos="fade-up" data-aos-duration="1600">
<img src="img/Exercising.png" class="cardthreeImg" alt="" data-aos="fade-up" data-aos-duration="1300">
<div class="cardbgone"></div>
<div class="cardContent">
<h2>Learn About Exercises</h2>
<p>Want Help?</p>
<a href="Exercise.html">
<div class="cardBtn">
<img src="img/next.png" alt="" class="cardIcon">
</div>
</a>
</div>
</div>
</div>
</div>
<!-- CONTACTUS AND FOOTER -->
<div class="contact">
<div class="contactText" data-aos="fade-right" data-aos-duration="1000">
<h1>Contact Us<br> <span style="font-size:1.6vw;font-weight:normal" class="contactInnerText">
Stay Updated and get all your medical needs taken care of!
</span> </h1>
<div class="contactform" data-aos="fade-right" data-aos-duration="1000">
<form id="contact_form" action="#" method="POST">
<div class="row">
<label class="required" for="name">Your name:</label><br />
<input id="name" class="input" name="name" type="text" value="" size="50" style="margin-top: 10px; margin-bottom: 10px;" /><br />
<span id="name_validation" class="error_message"></span>
</div>
<div class="row">
<label class="required" for="email">Your email:</label><br />
<input id="email" class="input" name="email" type="text" value="" size="50" style="margin-top: 10px; margin-bottom: 10px;" /><br />
<span id="email_validation" class="error_message"></span>
</div>
<div class="row">
<label class="required" for="message">Your message:</label><br />
<textarea id="message" class="input" name="message" rows="7" cols="30"></textarea><br />
<span id="message_validation" class="error_message"></span>
</div>
<input id="submit_button" type="submit" value="Send email" style="color:#EEEEEE; background-color:black; border-radius : 20px; height:40px; width:200px; border:transparent;"/>
</form>
</div>
</div>
<div class="contactImg" data-aos="fade-up" data-aos-duration="1000">
<img src="img/MobileApp.png" alt="">
</div>
</div>
<div class="footer">
<h2>HealthCare.</h2>
<div class="footerlinks">
<a href="#" class="mainlink">Home</a>
<?php
if ($isLoggedIn) {
echo '<a href="php/profile.php">Profile</a>';
} else {
echo '<a href="php/login.php">Profile</a>';
}
?>
<a href="#explore">Features</a>
<?php
if ($isLoggedIn) {
echo '<a href="php/logout.php">Log Out</a>';
} else {
echo '<a href="php/register.php">Sign Up</a>';
echo '<a href="php/login.php">Login</a>';
}
?>
</div>
</div>
</div>
<script src="https://unpkg.com/[email protected]/dist/aos.js"></script>
<script>
AOS.init();
</script>
</body>
</html>