-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
95 lines (88 loc) · 4.33 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
<!DOCTYPE html>
<html>
<head>
<title>Diet and Workouts Recommendations</title>
<!-- Add Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
</head>
<body style="background: black; color: white;">
<div class="container mt-5" style="background: white; color: black; border-radius: 15px; padding: 20px;">
<h1 class="text-center">Diet and Workouts Recommendations</h1>
<form action="/recommend" method="post">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="age">Age:</label>
<input type="number" class="form-control" id="age" name="age" min="0" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="gender">Gender:</label>
<select class="form-control" id="gender" name="gender" required>
<option value="male">Male</option>
<option value="female">Female</option>
</select>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="weight">Weight (kg):</label>
<input type="number" class="form-control" id="weight" name="weight" min="0" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="height">Height (m):</label>
<input type="number" class="form-control" id="height" name="height" min="0" step="0.01" required>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="veg_or_nonveg">Veg or Non-Veg:</label>
<select class="form-control" id="veg_or_nonveg" name="veg_or_nonveg" required>
<option value="veg">Veg</option>
<option value="nonveg">Non-Veg</option>
</select>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="disease">Generic Disease:</label>
<input type="text" class="form-control" id="disease" name="disease" placeholder="e.g., Diabetes, Hypertension">
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="region">Region:</label>
<input type="text" class="form-control" id="region" name="region" placeholder="e.g., South Asia, Europe">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="allergics">Allergics:</label>
<input type="text" class="form-control" id="allergics" name="allergics" placeholder="e.g., Nuts, Lactose">
</div>
</div>
</div>
<div class="form-group">
<label for="foodtype">Food Type:</label>
<input type="text" class="form-control" id="foodtype" name="foodtype" placeholder="e.g., Spicy, Low-calorie" required>
</div>
<div class="text-center">
<button type="submit" class="btn btn-danger btn-lg" style="font-weight: bold;">Recommend Diets</button>
</div>
</form>
</div>
<!-- Add Bootstrap JS and jQuery -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>