-
Notifications
You must be signed in to change notification settings - Fork 0
/
success.html
99 lines (82 loc) · 2.32 KB
/
success.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Lakhindar Pal">
<title>Contact Lakhindar Pal- Success</title>
<meta name="robots" content="noindex, nofollow">
<style>
:root {
--color-background: #f8f8f8;
--theme-primary: #1e5799;
--theme-secondary: #2989d8;
--color-distinct: #fff;
--color-text: #333;
}
html[data-theme="dark"] {
--color-background: #1a1a1a;
--theme-primary: #0c324c;
--theme-secondary: #165b8c;
--color-distinct: #fff;
--color-text: #ddd;
}
body {
font-family: system-ui, -apple-system, 'Segoe UI', Ubuntu, Roboto, sans-serif;
background-color: var(--color-background);
color: var(--color-text);
}
#success {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 20px;
padding: 20px;
}
img {
width: 300px;
margin: 20px;
}
button {
padding: 12px 20px;
background-color: var(--theme-secondary);
color: var(--color-distinct);
border: 1px solid var(--theme-primary);
cursor: pointer;
border-radius: 6px;
transition: background-color 0.3s ease-in-out;
}
button:hover {
background-color: var(--theme-primary);
border: 1px solid var(--theme-secondary);
}
</style>
</head>
<body>
<div id="success">
<img src="https://i.giphy.com/YlSR3n9yZrxfgVzagm.webp" alt="Checkmark">
<h3>Message sent successfully!</h3>
<p>Thank you! I will reply to you soon!
</p>
<p>Redirecting back to the main page.....</p>
<button onclick="gobackManually()">Go Back Now</button>
</div>
<script>
//auto redirect
setTimeout(function() {
window.location.href = "/";
}, 3000);
// Function for manual back
function gobackManually() {
window.location.href = "/";
}
document.addEventListener('DOMContentLoaded', function() {
//theme
const htmlEl = document.querySelector("html");
const currentTheme = localStorage.getItem("theme") || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
htmlEl.dataset.theme = currentTheme;
});
</script>
</body>
</html>