-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccepted.html
71 lines (65 loc) · 1.58 KB
/
accepted.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Form Accepted</title>
<style>
:root {
--primary-color: #4caf50;
--background-color: #ffffff;
--text-color: #333333;
}
body {
margin: 0;
font-family: Arial, sans-serif;
background-color: var(--background-color);
color: var(--text-color);
transition: background-color 0.3s, color 0.3s;
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 20px;
}
h1 {
margin: 0;
font-size: 2em;
color: var(--primary-color);
}
.theme-toggle {
position: absolute;
top: 20px;
right: 20px;
background: none;
border: none;
font-size: 1.5em;
cursor: pointer;
}
body.dark-mode {
--background-color: #333333;
--text-color: #ffffff;
--primary-color: #00c853;
}
body.dark-mode h1 {
color: var(--primary-color);
}
</style>
</head>
<body>
<div class="container">
<button id="themeToggle" class="theme-toggle">🌙</button>
<h1>Your form is accepted, thank you!</h1>
</div>
<script>
const themeToggle = document.getElementById('themeToggle');
themeToggle.addEventListener('click', () => {
document.body.classList.toggle('dark-mode');
themeToggle.textContent = document.body.classList.contains('dark-mode') ? '☀️' : '🌙';
});
</script>
</body>
</html>