From 3b939ca61279df0a989528e71c3347fdc1ddb64c Mon Sep 17 00:00:00 2001 From: MrEidam Date: Tue, 20 Aug 2024 22:48:32 +0200 Subject: [PATCH] Home buttons and RPS hotfix --- Games/2048/index.html | 1 + Games/2048/style.css | 10 ++++++++++ Games/DiceWar/index.html | 1 + Games/DiceWar/style.css | 11 +++++++++++ Games/NumberQuess6/index.html | 1 + Games/NumberQuess6/style.css | 10 ++++++++++ Games/RockPaperScissors/index.html | 1 + Games/RockPaperScissors/style.css | 25 +++++++++++++++++++++++-- Games/style.css | 2 +- 9 files changed, 59 insertions(+), 3 deletions(-) diff --git a/Games/2048/index.html b/Games/2048/index.html index af169de..671c159 100644 --- a/Games/2048/index.html +++ b/Games/2048/index.html @@ -11,5 +11,6 @@

2048

Score: 0

+ \ No newline at end of file diff --git a/Games/2048/style.css b/Games/2048/style.css index c9cb2f2..c245568 100644 --- a/Games/2048/style.css +++ b/Games/2048/style.css @@ -19,6 +19,16 @@ body{ background-size: cover; } +#home{ + position: fixed; + right: 0; + bottom: 0; + height: 50px; + width: 50px; + border-radius: 25px 0 0 0; + background: #555; +} + #board{ width: 372px; height: 372px; diff --git a/Games/DiceWar/index.html b/Games/DiceWar/index.html index a5d1360..136f66b 100644 --- a/Games/DiceWar/index.html +++ b/Games/DiceWar/index.html @@ -37,5 +37,6 @@ + \ No newline at end of file diff --git a/Games/DiceWar/style.css b/Games/DiceWar/style.css index bdbc8ae..33a4677 100644 --- a/Games/DiceWar/style.css +++ b/Games/DiceWar/style.css @@ -13,6 +13,17 @@ body{ color: #fff; text-align: center; } + +#home{ + position: fixed; + right: 0; + bottom: 0; + height: 50px; + width: 50px; + border-radius: 25px 0 0 0; + background: #555; +} + img{ width: 100px; height: 100px; diff --git a/Games/NumberQuess6/index.html b/Games/NumberQuess6/index.html index 921ab56..68aeca9 100644 --- a/Games/NumberQuess6/index.html +++ b/Games/NumberQuess6/index.html @@ -27,5 +27,6 @@ + \ No newline at end of file diff --git a/Games/NumberQuess6/style.css b/Games/NumberQuess6/style.css index d0a84b8..1733b58 100644 --- a/Games/NumberQuess6/style.css +++ b/Games/NumberQuess6/style.css @@ -18,6 +18,16 @@ body{ text-align: center; } +#home{ + position: fixed; + right: 0; + bottom: 0; + height: 50px; + width: 50px; + border-radius: 25px 0 0 0; + background: #555; +} + img{ width: 100px; height: 100px; diff --git a/Games/RockPaperScissors/index.html b/Games/RockPaperScissors/index.html index a7d06c7..d7028d7 100644 --- a/Games/RockPaperScissors/index.html +++ b/Games/RockPaperScissors/index.html @@ -18,5 +18,6 @@

0

+ \ No newline at end of file diff --git a/Games/RockPaperScissors/style.css b/Games/RockPaperScissors/style.css index a341b7b..6b2e6f0 100644 --- a/Games/RockPaperScissors/style.css +++ b/Games/RockPaperScissors/style.css @@ -23,6 +23,16 @@ body{ transition: 0s; } +#home{ + position: fixed; + right: 0; + bottom: 0; + height: 50px; + width: 50px; + border-radius: 25px 0 0 0; + background: #555; +} + img{ aspect-ratio: 1/1; object-fit: contain; @@ -88,7 +98,18 @@ section{ background-image: url("./mobile.jpg"); } .choices{ - width: 180px; - height: 180px; + width: 169px; + height: 159px; + } + #choices{ + width: 233px; + height: 79px; + } + #your-choice{ + margin-top: 10px; + } + #choices img{ + width: 69px; + aspect-ratio: 1; } } \ No newline at end of file diff --git a/Games/style.css b/Games/style.css index 25fd64d..6450559 100644 --- a/Games/style.css +++ b/Games/style.css @@ -14,7 +14,7 @@ body{ } #home{ - position: absolute; + position: fixed; right: 0; bottom: 0; height: 50px;