|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>WhiteCell.AI – Upload</title>
|
|
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@600&display=swap" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
font-family: 'Orbitron', sans-serif;
|
|
background: radial-gradient(ellipse at center, #050b14 0%, #000000 100%);
|
|
color: #e0f2ff;
|
|
height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.background-animation {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background: radial-gradient(circle at 30% 30%, #0a1628 0%, #020611 100%);
|
|
z-index: -1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#stars div {
|
|
position: absolute;
|
|
width: 2px;
|
|
height: 2px;
|
|
background-color: rgba(255, 255, 255, 0.8);
|
|
border-radius: 50%;
|
|
animation: twinkle 4s infinite ease-in-out;
|
|
}
|
|
|
|
@keyframes twinkle {
|
|
0%, 100% { opacity: 0.2; transform: scale(1); }
|
|
50% { opacity: 1; transform: scale(1.4); }
|
|
}
|
|
|
|
.upload-panel {
|
|
background: rgba(0, 255, 255, 0.05);
|
|
padding: 2.5rem;
|
|
border-radius: 1.5rem;
|
|
border: 1px solid rgba(0, 255, 255, 0.2);
|
|
box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
|
|
text-align: center;
|
|
max-width: 420px;
|
|
width: 100%;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.6rem;
|
|
color: #00ffff;
|
|
text-shadow: 0 0 10px #00ffff;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
label {
|
|
font-size: 0.9rem;
|
|
color: #8eefff;
|
|
}
|
|
|
|
select, input[type="number"] {
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 0.7rem;
|
|
border: 1px solid #00eaff;
|
|
background: #06131f;
|
|
color: #e0f2ff;
|
|
width: 200px;
|
|
margin-top: 0.3rem;
|
|
margin-bottom: 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.drop-zone {
|
|
border: 2px dashed #00eaff;
|
|
padding: 1.5rem;
|
|
border-radius: 1rem;
|
|
width: 90%;
|
|
cursor: pointer;
|
|
position: relative;
|
|
background: rgba(0, 255, 255, 0.03);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.drop-zone input[type="file"] {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 0;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
.file-name {
|
|
margin-top: 0.6rem;
|
|
font-size: 0.85rem;
|
|
color: #8eefff;
|
|
}
|
|
|
|
.start-button {
|
|
background: #00bfff;
|
|
border: none;
|
|
color: white;
|
|
padding: 0.9rem 2rem;
|
|
border-radius: 1rem;
|
|
font-size: 1.1rem;
|
|
box-shadow: 0 0 20px #00eaff;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.start-button:hover {
|
|
box-shadow: 0 0 30px #00ffff;
|
|
transform: scale(1.05);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="background-animation">
|
|
<div id="stars"></div>
|
|
</div>
|
|
|
|
|
|
<div class="upload-panel">
|
|
<h2>🧬 Upload Microscopic Image</h2>
|
|
<form method="POST" enctype="multipart/form-data" action="/upload">
|
|
<label>เพศ:</label><br>
|
|
<select name="sex" required>
|
|
<option value="">เลือกเพศ</option>
|
|
<option value="male">ชาย</option>
|
|
<option value="female">หญิง</option>
|
|
</select><br>
|
|
|
|
<label>อายุ:</label><br>
|
|
<input type="number" name="age" min="1" max="120" required><br>
|
|
|
|
<div class="drop-zone">
|
|
<label for="fileInput" class="start-button">📂 Choose Image</label>
|
|
<input type="file" name="file" id="fileInput" required style="display: none;" onchange="updateFileName()">
|
|
<p id="file-name">No file selected...</p>
|
|
</div>
|
|
|
|
|
|
<button type="submit" class="start-button">🚀 Begin AI Scan</button>
|
|
</form>
|
|
</div>
|
|
|
|
|
|
<script>
|
|
const starsContainer = document.getElementById('stars');
|
|
for (let i = 0; i < 100; i++) {
|
|
const star = document.createElement('div');
|
|
star.style.top = Math.random() * 100 + 'vh';
|
|
star.style.left = Math.random() * 100 + 'vw';
|
|
const size = Math.random() * 1.5 + 1;
|
|
star.style.width = size + 'px';
|
|
star.style.height = size + 'px';
|
|
star.style.animationDuration = (Math.random() * 4 + 3) + 's';
|
|
starsContainer.appendChild(star);
|
|
}
|
|
|
|
function updateFileName() {
|
|
const input = document.getElementById('fileInput');
|
|
const nameDisplay = document.getElementById('file-name');
|
|
nameDisplay.textContent = input.files.length > 0 ? input.files[0].name : "No file selected...";
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|