From b74ff19f346ebda1f797e8e87f973ef4677afbad Mon Sep 17 00:00:00 2001 From: Sri Harsha D V Date: Sun, 13 Oct 2024 18:56:35 +0530 Subject: [PATCH 1/3] feat: text in the webpage are unselectable --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index ecc811a4..8c63db47 100644 --- a/index.html +++ b/index.html @@ -24,6 +24,7 @@ body { font-family: pixelifysans, monospace; font-size: 2rem; + user-select: none; } #app { From a1045cdc7a3b44a1b8732bb0ce31e0ec0f6bf1a8 Mon Sep 17 00:00:00 2001 From: Sri Harsha D V Date: Mon, 14 Oct 2024 01:09:09 +0530 Subject: [PATCH 2/3] feat: add settings menu --- index.html | 129 ++++++++++------------------ src/main.js | 111 +++++++++++++++++++++++- src/styles/screen.css | 191 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 345 insertions(+), 86 deletions(-) diff --git a/index.html b/index.html index 8c63db47..a78318e3 100644 --- a/index.html +++ b/index.html @@ -38,9 +38,7 @@ top: var(--header-height); left: 140px; width: calc(100% - 280px); - height: calc( - 100% - calc(var(--header-height) + var(--footer-height)) - ); + height: calc(100% - calc(var(--header-height) + var(--footer-height))); } .full-screen { @@ -51,87 +49,6 @@ z-index: 1000; } - #header { - color: white; - text-align: center; - font-size: 2em; - } - - .d-desktop-hide { - display: none; - } - - .d-mobile-hide { - display: none; - } - - .btn-container { - align-self: flex-end; - margin-top: 1rem; - display: flex; - gap: 0.6rem; - opacity: 0; - animation: fadeIn 1s forwards 0.6s; - } - - @keyframes fadeIn { - 0% { - opacity: 0; - } - - 100% { - opacity: 1; - } - } - - @keyframes slideIn { - 0% { - opacity: 0; - transform: translateY(20px); - } - - 100% { - opacity: 1; - transform: translateY(0); - } - } - - #energy-container { - padding: 0.5rem 1rem; - display: flex; - align-items: center; - border-radius: 15px; - opacity: 0; - animation: fadeIn 1s forwards 0.7s; - } - - #energy-title { - margin: 0; - margin-right: 5px; - color: #fff; - text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8); - font-size: 1.25rem; - line-height: 1.6; - } - - #energy-bar-total { - width: 100px; - height: 0.8rem; - background-color: red; - } - - #energy-bar-remain { - width: 100%; - height: 100%; - background-color: lightgreen; - } - - @media (min-width: 768px) { - #header { - font-size: 1.2em; - } - } - @media (max-width: 900px) { .game-window { left: 0; @@ -152,6 +69,39 @@ +
+
+

+ Do you want to start a new game? (This clears the saved + game data.) +

+
+ + +
+
+
+

+

+

+
+ +
+
+
+ + +
@@ -161,7 +111,16 @@
B
-
+
+ + + + +