TheVixhal's picture
Upload 4 files
d98beaa verified
raw
history blame contribute delete
No virus
2.72 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Spam Comment Detection</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f9;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
color: #333;
}
.container {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
max-width: 500px;
width: 90%;
text-align: center;
animation: fadeIn 1s ease-in-out;
}
h1 {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 10px;
font-weight: bold;
}
textarea {
width: 100%;
padding: 10px;
border-radius: 5px;
border: 1px solid #ccc;
margin-bottom: 20px;
resize: vertical;
min-height: 100px;
transition: all 0.3s ease;
}
textarea:focus {
border-color: #007BFF;
box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}
input[type="submit"] {
background-color: #007BFF;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease;
}
input[type="submit"]:hover {
background-color: #0056b3;
}
.result {
margin-top: 20px;
font-size: 18px;
animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
</style>
</head>
<body>
<div class="container">
<h1>Spam Comment Detection</h1>
<form method="POST">
<label for="comment">Enter your comment:</label>
<textarea id="comment" name="comment" rows="1" cols="1" placeholder="Type your comment here..."></textarea><br>
<input type="submit" value="Check">
</form>
{% if result %}
<div class="result">
<h2>Result: {{ result }}</h2>
</div>
{% endif %}
</div>
</body>
</html>