-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
251 lines (242 loc) · 8.18 KB
/
index.html
File metadata and controls
251 lines (242 loc) · 8.18 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>Relate Marrieds Dinner 2025</title>
<link href="https://fonts.googleapis.com/css2?family=Pacifico&family=Quicksand:wght@500&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Quicksand', 'Segoe UI', Roboto, Arial, sans-serif;
background: radial-gradient(circle at 60% 40%, #ffe4e9 60%, #faf9d3 100%);
color: #5d2a42;
margin: 0;
padding: 0;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.container, .welcome-container {
background: rgba(255, 251, 231, 0.95);
border-radius: 32px;
box-shadow: 0 8px 32px rgba(93,42,66,0.23), 0 1.5px 0 0 #fb7c7a;
padding: 2.3em 1.2em 2em 1.2em;
max-width: 400px;
width: 92vw;
text-align: center;
margin: 2em auto;
position: relative;
overflow: hidden;
}
.hidden {
display: none;
}
h1 {
font-family: 'Pacifico', cursive;
font-size: 2.1em;
margin-top: 0;
margin-bottom: 0.8em;
letter-spacing: 1px;
color: #d64e91;
text-shadow: 0 4px 17px #fee6ed, 0 1px 0 #e7a6ca;
}
#counter {
font-size: 1.1em;
color: #b087a5;
margin-bottom: 1.6em;
border-bottom: 1px dashed #f6c4d5;
padding-bottom: 0.5em;
font-family: 'Quicksand', sans-serif;
}
#question {
font-family: 'Quicksand', sans-serif;
font-size: 1.32em;
min-height: 83px;
margin-bottom: 1.8em;
margin-top: 0.5em;
color: #6e3c60;
transition: all 0.2s;
padding: 0.7em;
border-radius: 18px;
background: linear-gradient(90deg, #ffeaf6 80%, #fcf6df 100%);
box-shadow: 0 4px 16px #f6dee933, 0 1px 0 #fef6ee;
}
.btn-row {
display: flex;
flex-direction: row;
justify-content: center;
gap: 1em;
margin-bottom: 0.8em;
}
button {
background: linear-gradient(90deg, #fb7c7a 60%, #d64e91 100%);
color: #fff;
border: none;
padding: 1em 2em;
border-radius: 999px;
font-size: 1.08em;
cursor: pointer;
font-weight: bold;
box-shadow: 0 2px 10px rgba(93,42,66,0.13);
letter-spacing: 0.5px;
transition: background 0.2s, box-shadow 0.15s;
outline: none;
}
button:hover:enabled {
background: linear-gradient(90deg, #ff4179 60%, #e44a8c 100%);
box-shadow: 0 3px 16px #e44a8c77;
}
button:disabled {
opacity: 0.6;
cursor: not-allowed;
background: #d1bccf;
box-shadow: none;
}
small {
display: block;
margin-top: 2.4em;
margin-bottom: 0.9em;
color: #c79cbb;
font-size: 1em;
}
.heart {
position: absolute;
width: 32px;
height: 32px;
background: #fb7c7a;
clip-path: path('M16 29s-13-8.13-13-15.76A7.28 7.28 0 0 1 16 5a7.28 7.28 0 0 1 13 8.24C29 20.87 16 29 16 29z');
opacity: 0.18;
animation: float 7s infinite linear;
}
.heart:nth-child(1) { top: 18px; left: 10px; animation-delay: 0s;}
.heart:nth-child(2) { top: 70px; right: 24px; background: #d64e91; animation-delay: 2s;}
.heart:nth-child(3) { bottom: 40px; left: 28px; background: #fb7c7a; animation-delay: 3.5s;}
.heart:nth-child(4) { bottom: 20px; right: 25px; background: #e7a6ca; animation-delay: 5s;}
@keyframes float {
0% {transform: translateY(0) scale(1);}
50% {transform: translateY(-18px) scale(1.08);}
100% {transform: translateY(0) scale(1);}
}
.welcome-header {
font-family: 'Pacifico', cursive;
color: #d64e91;
font-size: 2em;
margin: 0.6em 0 1.4em 0;
}
.welcome-text {
font-size: 1.23em;
color: #6e3c60;
margin: 1.7em 0 2em 0;
line-height: 1.6;
font-family: 'Quicksand', sans-serif;
}
.welcome-go-btn {
padding: 1em 2.4em;
font-size: 1.1em;
margin-top: 2em;
margin-bottom: 1em;
background: linear-gradient(90deg, #e66dae 30%, #fb7c7a 100%);
font-family: 'Quicksand', sans-serif;
}
.welcome-go-btn:hover {
background: linear-gradient(90deg, #fb7c7a 70%, #d64e91 100%);
}
</style>
</head>
<body>
<div class="container welcome-container" id="welcomePage">
<div class="heart"></div>
<div class="heart"></div>
<div class="heart"></div>
<div class="heart"></div>
<div class="welcome-header">Relate Marrieds Dinner 2025</div>
<div class="welcome-text">Welcome to this edition of the dinner.<br>As you wait let's play a game.
</div>
<button class="welcome-go-btn" onclick="startGame()">Start Game</button>
</div>
<div class="container hidden" id="mainPage">
<div class="heart"></div>
<div class="heart"></div>
<div class="heart"></div>
<div class="heart"></div>
<h2>Relate Marrieds Dinner 2025</h2>
<div id="counter"></div>
<div id="question">Tap "Next Question" to begin your date night!</div>
<div class="btn-row">
<button id="prevBtn" onclick="showPreviousQuestion()" disabled>← Previous</button>
<button id="nextBtn" onclick="showNextQuestion()">Next →</button>
</div>
<!-- <small>
Created by Manzi Kagina...<br>
For couples to grow in love and romance in their marriage.
</small> -->
</div>
<script>
const questions = [
// All 75+ questions as before...
"In what ways would you desire us to grow together spiritually next year?",
"What are some things God has taught you about love from our marriage?",
"How can we pray for our marriage this week?",
"What are your dreams for our family and our future as a couple? What do we need to do to achieve them?",
"What times have you felt truly loved by me? What do i need to do more of?",
"How can I honour you better in our marriage?",
"How do you feel about our sexual intimacy? What can we do to enjoy each other more?",
"In what ways has our marriage reflected the love of Christ?",
"What can we do to build our emotional connection over the next year?",
"What are you most thankful to God for this year?",
"How can we start, revive or improve our date nights?",
"Tell me something you have desired to tell me but haven't had the opportunity."
];
function shuffle(arr) {
for (let i = arr.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[arr[i], arr[j]] = [arr[j], arr[i]];
}
return arr;
}
// Shuffle questions at start
let shuffled = shuffle(questions.slice());
let index = 0;
function startGame() {
document.getElementById('welcomePage').classList.add('hidden');
document.getElementById('mainPage').classList.remove('hidden');
updateDisplay();
document.getElementById('prevBtn').disabled = true;
document.getElementById('nextBtn').textContent = "Next →";
}
function showNextQuestion() {
if (index < shuffled.length - 1) {
index++;
updateDisplay();
} else if (index === shuffled.length - 1) {
index++;
document.getElementById('question').textContent =
"All questions have been covered! Tap 'Next' to reshuffle and start again.";
document.getElementById('counter').textContent =
`You've seen all ${questions.length} questions!`;
document.getElementById('prevBtn').disabled = false;
document.getElementById('nextBtn').textContent = "Restart & Shuffle";
} else {
shuffled = shuffle(questions.slice());
index = 0;
updateDisplay();
document.getElementById('nextBtn').textContent = "Next →";
}
}
function showPreviousQuestion() {
if (index > 0) {
index--;
updateDisplay();
document.getElementById('nextBtn').textContent = "Next →";
}
}
function updateDisplay() {
document.getElementById('question').textContent = shuffled[index];
document.getElementById('counter').textContent =
`Question ${index + 1} of ${questions.length}`;
document.getElementById('prevBtn').disabled = index === 0;
}
</script>
</body>
</html>