(20241128) Serving HTML on redirect.

This commit is contained in:
2024-11-28 19:27:56 +05:30
parent de78d58e2c
commit 7241bd977f
5 changed files with 187 additions and 53 deletions
+77
View File
@@ -0,0 +1,77 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Authorization Failed</title>
<style>
/* General reset and basic styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background-color: #f4f7fc; /* Light grayish-blue */
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
padding: 20px;
}
.message-container {
background-color: #fff; /* White background */
border-radius: 16px;
padding: 35px;
max-width: 400px;
text-align: center;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
color: #333; /* Dark text color */
}
h1 {
font-size: 24px;
color: #F44336; /* Red color for failure */
margin-bottom: 10px;
}
p {
font-size: 16px;
color: #666; /* Light gray text */
margin-bottom: 20px;
}
.icon {
font-size: 48px;
color: #F44336; /* Red for the error icon */
margin-bottom: 20px;
}
/* Responsive styles */
@media (max-width: 600px) {
.message-container {
padding: 20px;
}
h1 {
font-size: 20px;
}
p {
font-size: 14px;
}
}
</style>
</head>
<body>
<div class="message-container">
<div class="icon"></div> <!-- Cross icon for failure -->
<h1>Authorization Failed</h1>
<p>Something went wrong in getting authorization from your {{ mail_client }} account. Please feel free to try the same steps again. You can close this tab at any time.</p>
</div>
</body>
</html>