-
Notifications
You must be signed in to change notification settings - Fork 2
/
service.php
295 lines (253 loc) · 7.8 KB
/
service.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
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
<?php
session_start();
$isLoggedIn = false;
if (isset($_SESSION['id'])) {
$isLoggedIn = true;
}
// Logout logic
if (isset($_POST['logout'])) {
session_destroy();
header("Location: index.php");
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Health Dashboard</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<style>
body {
font-family: 'Arial', sans-serif;
position: relative;
background-size: cover;
background-repeat: no-repeat;
background-position: center;
animation: changeBackground 35s linear infinite;
}
@keyframes changeBackground {
0% {
background-image: url('img/1.png');
}
33% {
background-image: url('img/2.png');
}
66% {
background-image: url('img/3.png');
}
100% {
background-image: url('img/4.png');
}
}
.dashboard {
padding: 40px;
margin-top: 80px;
}
.dashboard h2 {
margin-bottom: 30px;
font-family: 'Montserrat', sans-serif;
text-align: center;
font-size: 3rem;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 2px;
color: #9c723b;
border-bottom: 2px solid #007bff;
padding-bottom: 10px;
}
.feature-item {
text-align: center;
padding: 40px;
background-color: #141414;
border-radius: 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: transform 0.3s, box-shadow 0.3s;
}
.feature-item i {
font-size: 4rem;
margin-bottom: 20px;
color: #e7d77e;
}
.feature-item h4 {
font-size: 1.8rem;
margin-bottom: 15px;
color: #e9e4e4;
}
.feature-item p {
font-size: 1.2rem;
color: #666;
}
.feature-item .btn-primary {
background: linear-gradient(135deg, #d8d065, #d47070);
border: none;
color: #fff;
font-size: 1.1rem;
border-radius: 30px;
padding: 10px 25px;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
}
.feature-item .btn-primary:hover {
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.feature-item .btn-primary:focus {
outline: none;
}
.feature-item:hover {
transform: translateY(-5px);
}
.more-features h2 {
margin-bottom: 30px;
color: #444;
text-align: center;
font-size: 2rem;
font-weight: bold;
}
.navbar {
padding: 1rem;
backdrop-filter: blur(10px);
/* Add blur effect */
margin-bottom: 20px;
/* Add space at the bottom */
}
.navbar .navbar-brand {
color: #d46b25;
font-size: 1.5rem;
font-weight: bold;
transition: color 0.3s;
}
.navbar .navbar-nav .nav-link {
color: rgb(255, 255, 255);
font-size: 1.2rem;
margin-right: 20px;
transition: color 0.3s;
}
.navbar .navbar-nav .nav-link:hover {
color: rgb(238, 234, 234);
transform: scale(1.1);
}
footer {
color: #fff;
text-align: center;
padding: 10px 0;
font-size: 0.9rem;
margin-top: 30px;
}
.btn-outline-success {
background-color: #007bff;
color: #fff;
}
.btn-outline-success:hover {
background-color: #163de7;
color: #fff;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-md navbar-light fixed-top">
<div class="container">
<a class="navbar-brand fun-animation" href="landingpage.php">
<i class="fa fa-male"></i> precisionHealth.com
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="landingpage.php">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="about.php">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="service.php">Services</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Contact</a>
</li>
</ul>
<?php if ($isLoggedIn): ?>
<!-- If logged in, display logout button -->
<form method="post" class="d-flex">
<button type="submit" name="logout" class="btn btn-outline-danger">Logout</button>
</form>
<?php else: ?>
<!-- If not logged in, display login button -->
<form class="d-flex">
<button class="btn btn-outline-success" type="button" onclick="redirectToIndex()">Login</button>
</form>
<?php endif; ?>
</div>
</div>
</nav>
<div class="container dashboard">
<div class="row justify-content-center">
<div class="col-lg-4 col-md-6 mb-4">
<div class="feature-item">
<i class="fas fa-weight"></i>
<h4>Personalized Exercise</h4>
<p>Get personalized health advice based on your BMI data and individual health condition</p>
<?php if ($isLoggedIn): ?>
<!-- If logged in, enable the button -->
<a href="UI\UI.html" class="btn btn-primary btn-block">Get Advice</a>
<?php else: ?>
<!-- If not logged in, disable the button -->
<button class="btn btn-primary btn-block" disabled>Login to Get Advice</button>
<?php endif; ?>
</div>
</div>
<div class="col-lg-4 col-md-6 mb-4">
<div class="feature-item">
<i class="fas fa-tasks"></i>
<h4>PrecisionHealth.AI</h4>
<p>Elevate your health journey with PrecisionHealth.AI, your AI-powered wellness advisor.</p>
<?php if ($isLoggedIn): ?>
<!-- If logged in, enable the button -->
<a href="healthAi/index.html" class="btn btn-primary btn-block">Set Goals</a>
<?php else: ?>
<!-- If not logged in, disable the button -->
<button class="btn btn-primary btn-block" disabled>Login to Set Goals</button>
<?php endif; ?>
</div>
</div>
<div class="col-lg-4 col-md-6 mb-4">
<div class="feature-item">
<i class="fas fa-user-md"></i>
<h4>News-Letter</h4>
<p>Stay informed with our exclusive health newsletter, delivering the latest updates, tips.</p>
<a href="newsletterPage.php" class="btn btn-primary btn-block">READ MORE</a>
</div>
</div>
<div class="col-lg-4 col-md-6 mb-4">
<div class="feature-item">
<i class="fas fa-heartbeat"></i>
<h4>BMI Measurement</h4>
<p>Easily determine your BMI with our convenient BMI measurement tool, ensuring you stay on track with your health goals.</p>
<a href="bmi.html" class="btn btn-primary btn-block">Measure Now</a>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer>
<div class="container">
<p>© 2023 PrecisionHealth.Com. All rights reserved.</p>
<p>Leading University, Sylhet, Bangladesh</p>
</div>
</footer>
<script>
// JavaScript content
function redirectToIndex() {
window.location.href = "index.php";
}
</script>
<!-- Bootstrap JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/js/bootstrap.bundle.min.js"></script>
</body>
</html>