From ffc47d56359ee44edce86bf01c5bd14534ff728f Mon Sep 17 00:00:00 2001 From: The-User-Python <97610126+The-User-Python@users.noreply.github.com> Date: Sun, 28 Jan 2024 23:01:17 +0530 Subject: [PATCH 1/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3821bda..93b1fd3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# [DinoGame](https://github.com/DakshCodess/DinoGame) +# [DinoGame](https://the-user-python.github.io/DinoGame/) [![test](https://img.shields.io/badge/test-passing-lightdarkgreen.svg)](https://dakshcodess.github.io/DinoGame/) [![GitHub issues](https://img.shields.io/github/issues/DakshCodess/DinoGame)](https://github.com/DakshCodess/DinoGame/issues) [![Github pull](https://img.shields.io/github/issues-pr/DakshCodess/DinoGame)](https://github.com/DakshCodess/DinoGame/pull) [![CodeQL](https://github.com/DakshCodess/DinoGame/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/DakshCodess/DinoGame/actions/workflows/codeql-analysis.yml) From 194e755b737c9f9340d926bb41f2fed7ed433676 Mon Sep 17 00:00:00 2001 From: ScriptDeveloper2004 <150360179+ScriptDeveloper2004@users.noreply.github.com> Date: Sun, 28 Jan 2024 23:05:41 +0530 Subject: [PATCH 2/6] Update index.css --- index.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.css b/index.css index 5748d16..0255f8d 100644 --- a/index.css +++ b/index.css @@ -10,9 +10,9 @@ html, body { margin: 0; width: 100%; height: 100%; - font-family: 'Roboto', sans-serif; /* Use a modern font */ - background-color: #f4f4f4; /* Set a neutral background color */ - color: #333; /* Set a default text color */ + font-family: 'Roboto', sans-serif; + background-color: #f4f4f4; + color: #333; } /* Styling for reusable icon class */ @@ -90,7 +90,7 @@ html, body { /* Additional styles for larger screens */ @media (min-width: 768px) { body { - background-color: #fff; /* Set a white background for larger screens */ + background-color: #fff; } /* Add more styles for larger screens as needed */ From 5d27fe6a7bad5c0721428e68202fbc46c2f83d76 Mon Sep 17 00:00:00 2001 From: The-User-Python <97610126+The-User-Python@users.noreply.github.com> Date: Sun, 20 Oct 2024 22:18:49 +0530 Subject: [PATCH 3/6] Update index.css --- index.css | 69 ++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 46 insertions(+), 23 deletions(-) diff --git a/index.css b/index.css index 0255f8d..3d65326 100644 --- a/index.css +++ b/index.css @@ -4,21 +4,22 @@ found in the LICENSE file. */ -/* Resetting default styles for HTML and body */ +/* General reset for HTML and body */ html, body { - padding: 0; margin: 0; + padding: 0; width: 100%; height: 100%; font-family: 'Roboto', sans-serif; background-color: #f4f4f4; color: #333; + overflow-x: hidden; /* Prevent horizontal scrolling */ } -/* Styling for reusable icon class */ +/* Reusable icon class */ .icon { - user-select: none; display: inline-block; + user-select: none; } /* Utility class to hide elements */ @@ -32,36 +33,39 @@ html, body { font-size: 1.2em; line-height: 1.5; margin: 0 auto; - max-width: 800px; padding-top: 100px; width: 90%; + max-width: 800px; + text-align: center; } -.offline .runner-container, -.offline .runner-canvas { +.offline .runner-container { + position: relative; height: 120px; + width: 100%; max-width: 800px; + margin: 30px auto 0; overflow: hidden; - position: absolute; - top: 30px; - width: 40px; } .offline .runner-canvas { opacity: 0.9; - overflow: hidden; + height: 100%; + width: 40px; position: absolute; top: 0; + left: 50%; + transform: translateX(-50%); /* Centering the canvas */ z-index: 2; } .offline .controller { - background: rgba(247, 247, 247, 0.2); - height: 100vh; - left: 0; position: absolute; top: 0; + left: 0; width: 100vw; + height: 100vh; + background: rgba(247, 247, 247, 0.2); z-index: 1; } @@ -70,28 +74,47 @@ html, body { display: block; } -/* Responsive styles for small screens */ +/* Snackbar styling for mobile view */ +.snackbar { + position: fixed; + left: 0; + bottom: 10px; + width: 100%; + border-radius: 5px; + background-color: #333; + color: #fff; + padding: 10px; + text-align: center; +} + +/* Responsive styles for mobile screens */ @media (max-width: 480px) { .suggested-left > #control-buttons, .suggested-right > #control-buttons { float: left; } + + .offline .interstitial-wrapper { + padding-top: 50px; + font-size: 1.1em; + } - /* Snackbar styling for mobile view */ - .snackbar { - position: fixed; - left: 0; - bottom: 10px; - width: 100%; - border-radius: 5px; + /* Reducing height for mobile */ + .offline .runner-container { + height: 100px; } } -/* Additional styles for larger screens */ +/* Responsive styles for larger screens */ @media (min-width: 768px) { body { background-color: #fff; } + /* Make interstitial-wrapper text larger for larger screens */ + .offline .interstitial-wrapper { + font-size: 1.4em; + } + /* Add more styles for larger screens as needed */ } From ddda5fb3db9ec7adb1d400cffbdbe421cdec0a6a Mon Sep 17 00:00:00 2001 From: The-User-Python <97610126+The-User-Python@users.noreply.github.com> Date: Sun, 23 Mar 2025 13:31:02 +0530 Subject: [PATCH 4/6] Update index.css --- index.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.css b/index.css index 3d65326..6d1debb 100644 --- a/index.css +++ b/index.css @@ -118,3 +118,10 @@ html, body { /* Add more styles for larger screens as needed */ } + +/* New hover effect for buttons */ +button:hover { + background-color: #555; /* Darker shade for hover effect */ + color: #fff; /* White text on hover */ + cursor: pointer; /* Pointer cursor on hover */ +} From 420e2a104a8b58395face7689e1683676e62d795 Mon Sep 17 00:00:00 2001 From: The-User-Python <97610126+The-User-Python@users.noreply.github.com> Date: Sun, 23 Mar 2025 13:37:48 +0530 Subject: [PATCH 5/6] Update static.yml From 8c3ff1b1263f6087332c301548b1b52bf1c7464b Mon Sep 17 00:00:00 2001 From: The-User-Python <97610126+The-User-Python@users.noreply.github.com> Date: Sun, 23 Mar 2025 13:40:04 +0530 Subject: [PATCH 6/6] Update static.yml --- .github/workflows/static.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 5828616..582a8a9 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -33,7 +33,7 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v2 - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-artifact@v3 with: # Upload entire repository path: '.'