|
a |
|
b/templates/diabetes.html |
|
|
1 |
<!DOCTYPE html> |
|
|
2 |
<html lang="en"> |
|
|
3 |
|
|
|
4 |
<head> |
|
|
5 |
<meta charset="UTF-8"> |
|
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
|
7 |
<title>Diabetes Predictor</title> |
|
|
8 |
<!-- Bootstrap CSS link --> |
|
|
9 |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" |
|
|
10 |
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" |
|
|
11 |
crossorigin="anonymous"> |
|
|
12 |
<!-- Your custom CSS --> |
|
|
13 |
<style> |
|
|
14 |
body { |
|
|
15 |
font-family: Cambria; |
|
|
16 |
background-image: linear-gradient(#eddd61, #93bbec); |
|
|
17 |
height: 100%; |
|
|
18 |
} |
|
|
19 |
|
|
|
20 |
.container { |
|
|
21 |
max-width: 800px; |
|
|
22 |
margin: 0 auto; |
|
|
23 |
padding-top: 50px; |
|
|
24 |
} |
|
|
25 |
|
|
|
26 |
.input-box { |
|
|
27 |
margin-bottom: 15px; |
|
|
28 |
border: 2px solid #000000; |
|
|
29 |
background-color: #eae7bb; |
|
|
30 |
width: 100%; |
|
|
31 |
padding: 10px; |
|
|
32 |
font-size: 18px; |
|
|
33 |
border-radius: 5px; |
|
|
34 |
} |
|
|
35 |
|
|
|
36 |
.logo { |
|
|
37 |
display: block; |
|
|
38 |
margin: 0 auto; |
|
|
39 |
width: 200px; |
|
|
40 |
height: auto; |
|
|
41 |
margin-bottom: 20px; |
|
|
42 |
} |
|
|
43 |
|
|
|
44 |
.btn-predict { |
|
|
45 |
background-color: #f0e857; |
|
|
46 |
color: #000000; |
|
|
47 |
margin-top: 20px; |
|
|
48 |
padding: 15px 30px; |
|
|
49 |
font-size: 20px; |
|
|
50 |
border-radius: 5px; |
|
|
51 |
width: 100%; |
|
|
52 |
} |
|
|
53 |
|
|
|
54 |
.btn-predict:hover { |
|
|
55 |
background-color: #0056b3; |
|
|
56 |
} |
|
|
57 |
.btn-home { |
|
|
58 |
background-color: #000000; /* Black color */ |
|
|
59 |
color: white; |
|
|
60 |
height: 50px; |
|
|
61 |
width: 100px; |
|
|
62 |
padding: 4px 4px; /* Smaller padding */ |
|
|
63 |
font-size: 26px; /* Smaller font size */ |
|
|
64 |
border-radius: 5px; |
|
|
65 |
margin-top: 4px; |
|
|
66 |
margin-bottom: -32px; |
|
|
67 |
display: block; |
|
|
68 |
margin-left: auto; |
|
|
69 |
margin-right: auto; |
|
|
70 |
text-decoration: none; /* Remove underline */ |
|
|
71 |
text-align: center; |
|
|
72 |
} |
|
|
73 |
|
|
|
74 |
.btn-home:hover { |
|
|
75 |
background-color: #333333; /* Darker shade of black on hover */ |
|
|
76 |
color: white; /* Keep text white on hover */ |
|
|
77 |
text-decoration: none; /* Remove underline on hover */ |
|
|
78 |
} |
|
|
79 |
</style> |
|
|
80 |
</head> |
|
|
81 |
|
|
|
82 |
<body> |
|
|
83 |
<!-- Header --> |
|
|
84 |
<header> |
|
|
85 |
<img src="/static/NEWLOGO.png" alt="Logo" class="logo"> |
|
|
86 |
</header> |
|
|
87 |
<div> |
|
|
88 |
<a href="/" class="btn-home">Home</a> <!-- Link to the home page --> |
|
|
89 |
</div> |
|
|
90 |
|
|
|
91 |
<!-- Main Content --> |
|
|
92 |
<div class="container"> |
|
|
93 |
<h1 class="text-center mb-4">Diabetes Predictor</h1> |
|
|
94 |
<div class="card mb-4"> |
|
|
95 |
<div class="card-body"> |
|
|
96 |
<form action="/predictd/" method="POST"> |
|
|
97 |
{% csrf_token %} |
|
|
98 |
<div class="form-group"> |
|
|
99 |
<input class="form-control input-box" type="text" name="Pregnancies" |
|
|
100 |
placeholder="No. of Pregnancies"> |
|
|
101 |
</div> |
|
|
102 |
<div class="form-group"> |
|
|
103 |
<input class="form-control input-box" type="text" name="Glucose" placeholder="Glucose"> |
|
|
104 |
</div> |
|
|
105 |
<div class="form-group"> |
|
|
106 |
<input class="form-control input-box" type="text" name="BloodPressure" |
|
|
107 |
placeholder="Blood Pressure (in mmHg)"> |
|
|
108 |
</div> |
|
|
109 |
<div class="form-group"> |
|
|
110 |
<input class="form-control input-box" type="text" name="SkinThickness" |
|
|
111 |
placeholder="Skin Thickness (in mm)"> |
|
|
112 |
</div> |
|
|
113 |
<div class="form-group"> |
|
|
114 |
<input class="form-control input-box" type="text" name="Insulin" placeholder="Insulin (in µU/ml)"> |
|
|
115 |
</div> |
|
|
116 |
<div class="form-group"> |
|
|
117 |
<input class="form-control input-box" type="text" name="BMI" placeholder="BMI"> |
|
|
118 |
</div> |
|
|
119 |
<div class="form-group"> |
|
|
120 |
<input class="form-control input-box" type="text" name="DiabetesPedigreeFunction" |
|
|
121 |
placeholder="Diabetes Pedigree Function"> |
|
|
122 |
</div> |
|
|
123 |
<div class="form-group"> |
|
|
124 |
<input class="form-control input-box" type="text" name="Age" placeholder="Age (in years)"> |
|
|
125 |
</div> |
|
|
126 |
|
|
|
127 |
<!-- Predict button --> |
|
|
128 |
<button type="submit" class="btn btn-primary btn-predict">Predict</button> |
|
|
129 |
</form> |
|
|
130 |
</div> |
|
|
131 |
</div> |
|
|
132 |
</div> |
|
|
133 |
</body> |
|
|
134 |
|
|
|
135 |
</html> |