-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
70 lines (70 loc) · 2.11 KB
/
Copy pathindex.html
File metadata and controls
70 lines (70 loc) · 2.11 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grayscale Image Colourisation</title>
<style>
body {
font-family: 'Arial', sans-serif;
background: linear-gradient(to bottom right, #f7c1ff, #8e2de2);
color: #fff;
text-align: center;
padding: 50px 20px;
animation: fadeIn 1s ease-in-out;
}
h1 {
font-size: 3em;
margin-bottom: 30px;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
form {
background: rgba(255, 255, 255, 0.1);
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
display: inline-block;
animation: slideIn 0.8s ease-in-out;
backdrop-filter: blur(10px);
}
input[type="file"] {
margin: 20px 0;
padding: 10px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 5px;
width: 100%;
box-sizing: border-box;
}
button {
padding: 12px 24px;
font-size: 18px;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
}
button:hover {
background-color: #0056b3;
transform: scale(1.05);
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideIn {
from { transform: translateY(-20px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
</style>
</head>
<body>
<h1>Greyscale Image Colorisation</h1>
<form action="/upload" method="POST" enctype="multipart/form-data">
<input type="file" name="file" accept="image/*" required>
<button type="submit">Colorize Image</button>
</form>
</body>
</html>