-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththank_you.html
More file actions
104 lines (100 loc) · 3.41 KB
/
thank_you.html
File metadata and controls
104 lines (100 loc) · 3.41 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap" rel="stylesheet">
<title>Thank You</title>
<style>
body {
font-family: 'Lato', sans-serif; /* Updated to Lato for consistency */
margin: 0;
padding: 40px;
background: #e9f3f7; /* Light blue background for consistency */
color: #333;
text-align: center;
}
.logo-header {
position: absolute;
top: 0;
left: 0;
margin: 10px;
display: flex;
align-items: center;
}
.logo-header img {
width: 50px; /* Adjust logo size as needed */
margin-right: 10px; /* Space between logo and text */
}
.logo-header .logo-text {
font-size: 24px; /* Adjust text size as needed */
font-weight: bold;
color: #333; /* Adjust text color as needed */
}
h1, h2 {
color: #333; /* More neutral color for text */
margin-bottom: 0.5em;
}
h1 {
font-weight: 700;
}
h2 {
font-weight: 400;
margin-bottom: 1em;
}
ul {
list-style: none;
padding: 0;
display: inline-block;
text-align: left;
}
li {
background-color: #fff;
margin-bottom: 10px;
padding: 10px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
font-weight: 400; /* Lighter font for readability */
}
.button {
display: inline-block;
margin-top: 20px;
padding: 10px 20px;
background-color: #007bff; /* Updated to match the instructions button color */
color: white;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s;
}
.button:hover {
background-color: #0056b3; /* Darker shade on hover */
}
</style>
</head>
<body>
<div class="logo-header">
<img src="img/doodle.png" alt="Dog Logo">
<div class="logo-text">Doodle Dogs</div>
</div>
<h1>Thank you so much!</h1>
<h2>Your most preferred times are:</h2>
<ul id="preferredTimesList"></ul>
<a href="/" class="button">Return Home</a>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Retrieve the preferred time slots from localStorage
var preferredSlots = JSON.parse(localStorage.getItem('preferredTimeSlots')) || [];
// Generate list items for each preferred time slot
var listHtml = preferredSlots.map(function(slot) {
var startTime = new Date(slot.start).toLocaleString();
var endTime = new Date(slot.end).toLocaleString();
return '<li>' + startTime + ' to ' + endTime + '</li>';
}).join('');
// Display the preferred times
document.getElementById('preferredTimesList').innerHTML = listHtml;
// Optionally clear localStorage if it's no longer needed
localStorage.removeItem('preferredTimeSlots');
});
</script>
</body>
</html>