-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
152 lines (137 loc) · 3.81 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Nutribite</title>
</head>
<style>
body {
font-family: Arial, sans-serif ;
/* background-color: rgb(167, 255, 255); */
padding: 2rem;
/* background-image: url("Bg\ \ \(1\).jpg"); */
/* background-image: url("Bg\ \ \(2\).jpg");
background-size: 1300px 750px; */
background-image: linear-gradient(#3b93f1 , #ffffff);
/*background-repeat: no-repeat; */
/* background-image: url(images\ \(1\).jpeg); */
}
h1 {
text-align: center;
padding: 10px;
margin-top: 80px;
color: hsl(117, 100%, 29%);
font-style: italic;
font-family: cursive;
font-size: 80px;
background-color: hsl(123, 34%, 88%);
border-radius: 20px;
}
h2 {
text-align: center;
margin-bottom: 3rem;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
sans-serif;
/* background-color: hsl(122, 66%, 57%); */
border-radius: 10px;
color: #fbfbfb;
}
form {
background-color: #fff;
padding: 2rem;
box-shadow: 0 2px 4px hsl(122, 88%, 35%);
border-radius: 10px;
max-width: 400px;
margin: 0 auto;
animation: fadeIn 1s ease-in-out;
}
label {
display: block;
margin-bottom: 0.2rem;
font-family: cursive;
font-weight: bold;
font-size: 18px;
color: #666666;
}
input[type="number"] {
width: 100%;
padding: 0.5rem;
margin-bottom: 1rem;
border: 1px solid black;
border-radius: 10px;
box-sizing: border-box;
}
input[type="text"] {
width: 100%;
padding: 0.5rem;
margin-bottom: 1rem;
border: 1px solid rgb(0, 0, 0);
border-radius: 10px;
}
input[type="submit"] {
background-color: hsl(122, 66%, 57%);
color: rgb(0, 0, 0);
padding: 0.5rem 12rem;
border: 50px;
border-radius: 10px;
cursor: pointer;
transition: background-color 0.3s ease-in-out;
}
input[type="submit"]:hover {
background-color: #3e8e41;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 600px) {
form {
padding: 1rem;
}
}
</style>
<body>
<h1>NutriBite</h1>
<h2>Your Personalized food recommendation app</h2>
<form method="post" action="/predict">
<label>Cost</label><br />
<input type="number" name="Cost" /><br /><br />
<label>Calories</label><br />
<input type="number" name="Calories" /><br /><br />
<label>Disease</label><br>
<input type="text" name="Disease"><br><br>
<input type="submit" value="Predict" /><br /><br />
</form>
{% if result %}
<p>{{ result }}</p>
{% endif %}
</body>
</html>
<!-- <html lang="en">
<head>
<title>Nutribite</title>
</head>
<body>
<h1>NutriBite</h1>
<h2>Your Personalized food recommendation app</h2>
<form method="post" action="/predict">
<label>Cost</label><br>
<input type="number" name="Cost"><br><br>
<label>Calories</label><br>
<input type="number" name="Calories"><br><br>
<label>Disease</label><br>
<input type="text" name="Disease"><br><br>
<p>Enter the disease number as per the list: <br>
1. Diabetes <br>
2. Heart Disease <br>
3. High Blood Pressure</p>
<input type="submit" value="Predict"><br><br>
</form>
</body>
</html> -->