File size: 6,116 Bytes
0ee0725 |
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 |
<!DOCTYPE html>
<html>
<head>
<title>Iris Predictor</title>
<link rel="stylesheet" href="{{ url_for('static', filename='flower-animation.css') }}">
<style>
body {
font-family: Arial, sans-serif;
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #f5f5f5;
position: relative;
min-height: 100vh;
}
.video-background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
overflow: hidden;
}
.video-background video {
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.3;
}
.video-background::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.7);
}
h2 {
color: #4CAF50;
text-align: center;
}
form {
background-color: rgba(255, 255, 255, 0.95);
padding: 20px;
border-radius: 10px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
input[type="text"] {
width: 100%;
padding: 10px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type="submit"] {
width: 100%;
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #45a049;
}
.note {
margin-top: 20px;
font-size: 0.9em;
color: #666;
background-color: rgba(255, 255, 255, 0.9);
padding: 15px;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.flower-animation {
position: absolute;
top: 20px;
right: 20px;
width: 60px;
height: 60px;
background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMzAiIGN5PSIzMCIgcj0iOCIgZmlsbD0iI0ZGRjIwMCIvPgo8cGF0aCBkPSJNMjIgMzBDMjIgMzQuNDE4IDI1LjU4MiAzOCAzMCAzOEMzNC40MTggMzggMzggMzQuNDE4IDM4IDMwIiBzdHJva2U9IiNGRjY5QjQiIHN0cm9rZS13aWR0aD0iNCIvPgo8cGF0aCBkPSJNMzAgMjJDMjUuNTgyIDIyIDIyIDI1LjU4MiAyMiAzMCIgc3Ryb2tlPSIjRkY2OUI0IiBzdHJva2Utd2lkdGg9IjQiLz4KPHBhdGggZD0iTTM4IDMwQzM4IDI1LjU4MiAzNC40MTggMjIgMzAgMjIiIHN0cm9rZT0iI0ZGNjlCNCIgc3Ryb2tlLXdpZHRoPSI0Ii8+CjxwYXRoIGQ9Ik0zMCAzOEMzNCA0MiAzNyA0MiAzOSA0MiIgc3Ryb2tlPSIjNENBRjUwIiBzdHJva2Utd2lkdGg9IjMiLz4KPC9zdmc+') no-repeat center center;
background-size: contain;
animation: rotate 3s linear infinite;
}
@keyframes rotate {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.floating-flowers {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1;
}
.floating-flowers::before {
content: '🌸';
position: absolute;
top: 20%;
left: 10%;
font-size: 2em;
animation: float 6s ease-in-out infinite;
}
.floating-flowers::after {
content: '🌺';
position: absolute;
top: 60%;
right: 15%;
font-size: 1.5em;
animation: float 4s ease-in-out infinite reverse;
}
@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
}
</style>
</head>
<body>
<!-- Background video -->
<div class="video-background">
<video autoplay muted loop>
<source src="{{ url_for('static', filename='videos/flowers.mp4') }}" type="video/mp4">
<source src="https://cdn.pixabay.com/video/2019/06/10/24170-342584456_large.mp4" type="video/mp4">
<!-- Fallback for browsers that don't support video -->
<source src="https://media.giphy.com/media/3o7TKQkJJj8PJMJJhK/giphy.gif" type="video/gif">
</video>
</div>
<!-- Flower background -->
<div class="flower-background"></div>
<!-- Floating flowers animation -->
<div class="floating-flowers"></div>
<div class="flower-extra"></div>
<div class="flower-extra2"></div>
<!-- Animated flower icon -->
<div class="flower-animation"></div>
<h2>🌸 Iris Flower Prediction 🌸</h2>
<form action="/predict" method="POST">
<input type="text" name="sepal_length" placeholder="Sepal Length (cm)" required><br>
<input type="text" name="sepal_width" placeholder="Sepal Width (cm)" required><br>
<input type="text" name="petal_length" placeholder="Petal Length (cm)" required><br>
<input type="text" name="petal_width" placeholder="Petal Width (cm)" required><br>
<input type="submit" value="Predict Flower Species">
</form>
<div class="note">
<p><strong>Example values:</strong></p>
<p>Setosa: Sepal Length=5.1, Sepal Width=3.5, Petal Length=1.4, Petal Width=0.2</p>
<p>Versicolor: Sepal Length=6.0, Sepal Width=2.7, Petal Length=4.2, Petal Width=1.3</p>
<p>Virginica: Sepal Length=6.8, Sepal Width=3.0, Petal Length=5.5, Petal Width=2.1</p>
</div>
</body>
</html>
|