Spaces:
Runtime error
Runtime error
File size: 6,799 Bytes
07da06b |
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 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>SkinAI</title>
<style>
/* Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #ffffff;
color: #000;
}
/* Top Navigation with Enhanced Hover Effects */
header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 15px 5%;
background-color: #fff;
border-bottom: 1px solid #ccc;
position: relative;
z-index: 10;
}
.logo {
font-size: 1.5rem;
font-weight: bold;
color: #333;
}
nav a {
text-decoration: none;
color: #333;
margin-left: 20px;
font-weight: 500;
padding: 5px 0;
position: relative;
transition: color 0.3s ease;
}
/* Underline hover effect for nav links */
nav a:after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 0;
left: 0;
background-color: #007BFF;
transition: width 0.3s ease;
}
nav a:hover {
color: #007BFF;
text-decoration: none;
}
nav a:hover:after {
width: 100%;
}
.help-btn {
background-color: #007BFF;
color: #fff;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
margin-left: 20px;
transition: all 0.3s ease;
}
.help-btn:hover {
background-color: #0056b3;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}
/* Hero Section with Video Background */
.hero {
position: relative;
height: 60vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 0 5%;
overflow: hidden; /* Ensure video doesn't spill out */
}
/* Video Background Styling */
.video-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover; /* Cover the entire container */
z-index: 1;
}
.hero-overlay {
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
background-color: rgba(0,0,0,0.4); /* Dark overlay for readability */
z-index: 2;
}
.hero-content {
position: relative; /* So it sits on top of the overlay */
color: #fff;
max-width: 600px;
z-index: 3; /* Ensure content is above video and overlay */
}
.hero-content h1 {
font-size: 2.5rem;
margin-bottom: 15px;
font-weight: 700;
}
.hero-content p {
font-size: 1.1rem;
margin-bottom: 20px;
}
.upload-btn {
background-color: #007BFF;
color: #fff;
border: none;
padding: 12px 24px;
font-size: 1rem;
border-radius: 4px;
cursor: pointer;
transition: all 0.3s ease;
}
.upload-btn:hover {
background-color: #0056b3;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,123,255,0.4);
}
/* Benefits Section with Enhanced Card Hover Effects */
.benefits {
padding: 60px 5%;
text-align: center;
}
.benefits h2 {
font-size: 2rem;
margin-bottom: 40px;
font-weight: 700;
}
.benefit-cards {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 30px;
}
.card {
flex: 1 1 250px;
max-width: 300px;
background-color: #f9f9f9;
border-radius: 8px;
padding: 25px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
transition: all 0.3s ease;
border-bottom: 3px solid transparent;
}
/* Card hover effects */
.card:hover {
transform: translateY(-10px);
box-shadow: 0 10px 20px rgba(0,0,0,0.15);
border-bottom: 3px solid #007BFF;
background-color: #fff;
}
.card h3 {
margin-bottom: 15px;
font-size: 1.2rem;
font-weight: 600;
color: #333;
transition: color 0.3s ease;
}
.card:hover h3 {
color: #007BFF;
}
.card p {
font-size: 0.95rem;
line-height: 1.4;
color: #555;
}
/* Responsive */
@media (max-width: 768px) {
.hero {
height: 50vh;
}
.hero-content h1 {
font-size: 2rem;
}
.benefits h2 {
font-size: 1.7rem;
}
.card {
margin: 0 auto;
}
}
</style>
</head>
<body>
<!-- Top Navigation -->
<header>
<div class="logo">SkinAI</div>
<nav>
<a href="/" style="color: #007BFF;">Home</a>
<a href="/upload">Upload</a>
<a href="/result">Results</a>
<a href="#">Contact</a>
<button class="help-btn">Help</button>
</nav>
</header>
<!-- Hero Section with Video Background -->
<section class="hero">
<!-- Video Background -->
<video class="video-bg" autoplay muted loop>
<source src="{{ url_for('static', filename='videos/background-video.mp4') }}" type="video/mp4">
<!-- Add fallback sources if needed -->
<source src="{{ url_for('static', filename='videos/background-video.webm') }}" type="video/webm">
<!-- Fallback for browsers that don't support video -->
Your browser does not support the video tag.
</video>
<div class="hero-overlay"></div>
<div class="hero-content">
<h1>Identify Skin Issues Instantly</h1>
<p>Upload an image to get AI-driven skin health insights.</p>
<a href="/upload"><button class="upload-btn">Upload Image</button></a>
</div>
</section>
<!-- Benefits Section -->
<section class="benefits">
<h2>Benefits of the Service</h2>
<div class="benefit-cards">
<!-- Card 1 -->
<div class="card">
<h3>Accurate Identification</h3>
<p>Our tool analyzes skin images to provide precise detections, minimizing human error.</p>
</div>
<!-- Card 2 -->
<div class="card">
<h3>Diverse Skin Conditions</h3>
<p>Identify various issues like psoriasis, eczema, and more with our comprehensive database.</p>
</div>
<!-- Card 3 -->
<div class="card">
<h3>Speed and Efficiency</h3>
<p>Our service provides rapid results, enabling timely medical interventions.</p>
</div>
</div>
</section>
<script>
// JavaScript can be added here for additional functionality
document.querySelector('.upload-btn').addEventListener('click', function() {
window.location.href = '/upload';
});
</script>
</body>
</html> |