-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIndex.html
More file actions
105 lines (94 loc) · 3.26 KB
/
Index.html
File metadata and controls
105 lines (94 loc) · 3.26 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CT-Scan Medical Image Detection Dashboard</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
font-family: 'Arial', sans-serif;
background: linear-gradient(135deg, red, orange, yellow, green, blue, indigo, violet);
background-size: 200% 200%;
animation: rainbowBG 10s ease infinite;
color: white;
min-height: 100vh;
padding-top: 50px;
}
@keyframes rainbowBG {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.container {
max-width: 650px;
margin: 0 auto;
}
.card {
border-radius: 20px;
background-color: rgba(255, 255, 255, 0.9);
color: black;
box-shadow: 0 0 15px rgba(0,0,0,0.3);
}
.btn {
background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet);
background-size: 300% 100%;
color: white;
font-weight: bold;
border: none;
animation: rainbowBtn 5s linear infinite;
}
.btn:hover {
filter: brightness(1.2);
}
@keyframes rainbowBtn {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
h1 {
background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-weight: bold;
}
.lead {
color: white;
font-size: 1.2rem;
margin-bottom: 40px;
}
label, input {
font-weight: bold;
}
</style>
</head>
<body>
<div class="container">
<div class="text-center">
<h1 class="display-4">CT-Scan Medical Image Dashboard</h1>
<p class="lead">Upload an image to detect the liver condition</p>
</div>
<div class="card p-4 mt-4">
<form method="POST" enctype="multipart/form-data">
<div class="mb-3">
<label for="file" class="form-label">Select CT-Scan Image</label>
<input type="file" class="form-control" name="file" accept="image/*" required>
</div>
<button type="submit" class="btn btn-lg w-100">Upload and Detect</button>
</form>
</div>
{% if result %}
<div id="results" class="mt-4">
<div class="card">
<div class="card-body text-center">
<h4 class="card-title text-success">{{ result }}</h4>
<img src="{{ file_path }}" class="img-fluid rounded" alt="Uploaded Image">
<a href="/report" class="btn btn-success mt-3">View Full Report</a>
<a href="/heat" class="btn btn-info mt-3">View Heatmap</a>
</div>
</div>
</div>
{% endif %}
</div>
</body>
</html>