File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 </script >
2828
2929<template >
30- <canvas ref =" canvasRef" width =" 100 " height =" 100 " ></canvas >
30+ <canvas ref =" canvasRef" width =" 75 " height =" 75 " ></canvas >
3131</template >
3232
3333<style scoped></style >
Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ function resetZoom() {
455455<template >
456456 <div class =" wrapper" >
457457 <div ref =" mapContainer" id =" map-container" >
458- <button class =" reset-btn" type =" button" @click =" resetZoom" >Reset</button >
458+ <button class =" reset-btn" type =" button" @click =" resetZoom" >Reset zoom </button >
459459 <div id =" tooltip" class =" tooltip" ></div >
460460 </div >
461461 </div >
Original file line number Diff line number Diff line change @@ -14,6 +14,18 @@ async function start() {
1414 </script >
1515
1616<template >
17+ <dialog id =" helpModal" class =" modal" >
18+ <div class =" modal-box" >
19+ <h3 class =" text-lg font-bold" >How to play?</h3 >
20+ <p class =" py-4" >Here, you will find explanation on how to play the game</p >
21+ <div class =" modal-action" >
22+ <form method =" dialog" >
23+ <button class =" btn btn-soft btn-primary" >Close</button >
24+ </form >
25+ </div >
26+ </div >
27+ </dialog >
28+
1729 <div
1830 class =" flex flex-col lg:flex-row items-center lg:justify-between w-full bg-base-100 p-4 lg:p-6 border-b border-b-base-200 gap-4 lg:gap-0 max-w-[1400px] mx-auto"
1931 >
@@ -45,10 +57,22 @@ async function start() {
4557 </div >
4658 </div >
4759
48- <div class =" w-full lg:w-auto flex justify-center lg:justify-end" >
49- <button class =" btn btn-success w-full lg:w-auto font-bold px-8" @click =" start()" >
50- <span class =" loading loading-spinner loading-sm" v-show =" loading" ></span >
51- Start
60+ <div
61+ class =" w-full lg:w-auto flex flex-row gap-2 justify-center lg:justify-end max-w-md lg:max-w-none mx-auto lg:mx-0 shrink-0"
62+ >
63+ <button
64+ class =" btn btn-secondary btn-soft flex-1 lg:flex-initial font-bold lg:px-6"
65+ onclick =" helpModal.showModal()"
66+ >
67+ How to play?
68+ </button >
69+ <button
70+ class =" btn btn-primary btn-soft flex-1 lg:flex-initial font-bold lg:px-6"
71+ @click =" start()"
72+ :disabled =" loading"
73+ >
74+ <span v-if =" loading" class =" loading loading-spinner loading-xs" ></span >
75+ Restart
5276 </button >
5377 </div >
5478 </div >
You can’t perform that action at this time.
0 commit comments