mirror of
https://github.com/mudabbir-ahmad/peworkshop.git
synced 2026-10-07 19:50:20 +00:00
added more clue buttons and positioned them correctly
This commit is contained in:
1 parent
d659002e6d
commit
c325680d90
2 files changed
+42
-2
No files matched your search
+42
-2
@@ -376,13 +376,53 @@ export default function MapPage() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
style={{
|
style={{
|
||||||
left: "150px",
|
left: "230px", // Moved from 150px to 160px (10px right)
|
||||||
top: "200px",
|
top: "212px", // Moved from 200px to 203px (3px down)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Clue {firstClue.id}
|
Clue {firstClue.id}
|
||||||
</button>
|
</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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Binary file not shown.
Reference in new issue
Block a user