added more clue buttons and positioned them correctly

This commit is contained in:
bobbert committed 2025-03-17 12:54:39 +00:00
1 parent d659002e6d
commit c325680d90
2 files changed
+42 -2

No files matched your search

+42 -2
View File
@@ -376,13 +376,53 @@ export default function MapPage() {
)
}
style={{
left: "150px",
top: "200px",
left: "230px", // Moved from 150px to 160px (10px right)
top: "212px", // Moved from 200px to 203px (3px down)
}}
>
Clue {firstClue.id}
</button>
)}
{/* Add Clue 2 button - positioned 50px more to the right and 30px more down than current position */}
{clues.length > 1 && (
<button
className={getClueButtonClass(clues[1])}
onClick={() =>
handleClueClick(
clues[1].id,
clues[1].available,
clues[1].found
)
}
style={{
left: "320px", // 168px + 50px = 218px
top: "290px", // 208px + 30px = 238px
}}
>
Clue {clues[1].id}
</button>
)}
{/* Add Clue 3 button - positioned 50px more to the right and 30px more down than current position */}
{clues.length > 1 && (
<button
className={getClueButtonClass(clues[2])}
onClick={() =>
handleClueClick(
clues[2].id,
clues[2].available,
clues[2].found
)
}
style={{
left: "265px", // 168px + 50px = 218px
top: "400px", // 208px + 30px = 238px
}}
>
Clue {clues[2].id}
</button>
)}
</div>
</div>
</div>
BIN
View File
Binary file not shown.