Skip to content

Commit 16b1aea

Browse files
committed
Close treasure hunt completely and update completion UI to explicitly match social announcement requirements
1 parent 058db12 commit 16b1aea

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

Treasure_Hunt_Backend/src/controllers/teamController.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,16 @@ export const getCurrentQuestion = async (req, res) => {
193193
});
194194
}
195195

196+
// ── EVENT CLOSED GATE ──
197+
const EVENT_CLOSED = true; // Hard stop
198+
if (EVENT_CLOSED) {
199+
return res.json({
200+
success: true,
201+
completed: true,
202+
message: 'The hunt is over! The Treasure has been found.'
203+
});
204+
}
205+
196206
// 1. AUTO-ASSIGNMENT: If user has no questions, assign ALL questions in random order
197207
const checkAssignments = await pool.query(
198208
'SELECT COUNT(*) FROM question_assignments WHERE user_id = $1',

Treasure_Hunt_Frontend/src/pages/participant/components/CompletionScreen.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const CompletionScreen = () => {
7171
WebkitTextFillColor: 'transparent',
7272
}}
7373
>
74-
TREASURE SECURED!
74+
TREASURE HAS BEEN FOUND!
7575
</motion.h1>
7676

7777
<motion.div
@@ -98,7 +98,7 @@ const CompletionScreen = () => {
9898
lineHeight: 1.6,
9999
}}
100100
>
101-
Congratulations, Explorer! You&apos;ve conquered every clue and secured your legend in Ambiora 2026.
101+
Thank you for participating! The treasure has been found, and results will be announced on Ambiora socials.
102102
</motion.p>
103103

104104
<motion.div
@@ -114,10 +114,10 @@ const CompletionScreen = () => {
114114
}}
115115
>
116116
<div style={{ fontSize: '0.8rem', fontWeight: 800, color: 'var(--color-green)', letterSpacing: '1px', marginBottom: 4 }}>
117-
YOUR JOURNEY
117+
THE HUNT IS OVER
118118
</div>
119119
<div style={{ fontSize: '0.95rem', fontWeight: 700, color: 'var(--color-brown)' }}>
120-
All clues discovered • All answers submitted
120+
Stay tuned to @ambiora on socials!
121121
</div>
122122
</motion.div>
123123

0 commit comments

Comments
 (0)