Spaces:
Running
Running
File size: 7,603 Bytes
7b46bd8 |
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 |
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
<!-- Custom Styles -->
<style type="text/css">
body {
background-image: url(static/brain.gif);
background-position: center;
background-size: cover;
font-family: 'Roboto', sans-serif;
margin-top: 40px;
color: #fff;
}
.navbar {
background-color: #212121 !important;
}
.navbar-brand {
font-weight: bold;
font-size: 1.5rem;
}
.regform {
background-color: rgba(0, 0, 0, 0.6);
padding: 20px;
text-align: center;
border-radius: 15px 15px 0 0;
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
margin-top: 20px;
}
.regform h1 {
font-size: 2rem;
font-weight: bold;
}
.main-form {
background-color: rgba(0, 0, 0, 0.7);
margin: 20px auto;
padding: 30px;
border-radius: 10px;
max-width: 900px;
}
.form-group label {
font-size: 1rem;
font-weight: 500;
}
.form-control {
border-radius: 5px;
box-shadow: none;
border: 2px solid #bbb;
margin-bottom: 15px;
}
.form-control:focus {
border-color: #5cb85c;
}
.btn-submit {
background-color: #28a745;
color: white;
font-size: 1.1rem;
padding: 15px 30px;
border-radius: 5px;
border: none;
transition: background-color 0.3s ease;
}
.btn-submit:hover {
background-color: #218838;
}
.form-text {
font-size: 0.85rem;
}
.col-md-6 {
margin-bottom: 15px;
}
.col-md-6 label,
.col-md-6 input,
.col-md-6 select {
font-size: 1rem;
}
.footer {
text-align: center;
margin-top: 30px;
font-size: 0.9rem;
color: #ccc;
}
/* Responsive design */
@media (max-width: 767px) {
.regform h1 {
font-size: 1.6rem;
}
.main-form {
padding: 20px;
}
}
</style>
<title>Brain Tumor Detection</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="/">CNN Brain Tumor Detection</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" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link" href="/dbresults">View MongoDB Results</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="regform">
<h1>Brain Tumor Detection Form</h1>
</div>
<div class="container">
<form action="resultbt" class="main-form needs-validation" method="POST" enctype="multipart/form-data" novalidate>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="firstname">First Name</label>
<input type="text" name="firstname" id="firstname" class="form-control" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="lastname">Last Name</label>
<input type="text" name="lastname" id="lastname" class="form-control" required>
</div>
</div>
</div>
<div class="form-group">
<label for="phone">Phone Number</label>
<input type="tel" name="phone" id="phone" class="form-control" required>
<small class="form-text">* Include your area code</small>
</div>
<div class="form-group">
<label for="email">Email Address</label>
<input type="email" name="email" id="email" class="form-control" required>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="gender">Gender</label>
<select name="gender" id="gender" class="form-control" required>
<option value="male">Male</option>
<option value="female">Female</option>
</select>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="age">Age</label>
<input type="number" name="age" id="age" class="form-control" required>
</div>
</div>
</div>
<div class="form-group">
<label for="file">Upload Your Brain MRI</label>
<input type="file" class="form-control" id="file" name="file" required>
</div>
<div class="text-center">
<button type="submit" class="btn-submit">Submit</button>
</div>
</form>
</div>
<div class="footer">
<p>© 2024 Brain Tumor Detection - All Rights Reserved</p>
</div>
<!-- Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf"
crossorigin="anonymous"></script>
<!-- Enable Bootstrap validation -->
<script>
(function () {
'use strict'
// Fetch all the forms we want to apply custom Bootstrap validation styles to
var forms = document.querySelectorAll('.needs-validation')
// Loop over them and prevent submission
Array.prototype.slice.call(forms)
.forEach(function (form) {
form.addEventListener('submit', function (event) {
if (!form.checkValidity()) {
event.preventDefault()
event.stopPropagation()
}
form.classList.add('was-validated')
}, false)
})
})()
</script>
</body>
</html>
|