diff --git a/css/global.css b/css/global.css index f662194..8ac2d47 100644 --- a/css/global.css +++ b/css/global.css @@ -62,11 +62,11 @@ body { background-color: #22406e; border: 1px solid #213d67; - padding: 10px; + padding: 5px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); position: fixed; - top: 650px; + bottom: 10px; left: 20px; z-index: 1000; @@ -95,16 +95,3 @@ body { scrollbar-color: #888 #234271; } -#google_translate_element { - - background-color: #22406e; - border: 1px solid #213d67; - padding: 10px; - border-radius: 5px; - box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); - position: fixed; - top: 650px; - left: 20px; - z-index: 1000; - -} \ No newline at end of file diff --git a/css/index.css b/css/index.css index 5e4ea7d..9b5ea27 100644 --- a/css/index.css +++ b/css/index.css @@ -520,34 +520,77 @@ box-sizing: border-box; } } -.kids-icon { +.icon-toggle-button { + display: none; +} + +.icon-toggle-label { + display: inline-block; + padding: 10px; + background-color: #333; + cursor: pointer; + border-radius: 5px; position: fixed; - top: 120px; - left: 30px; - width: 45px; /* Adjust size as needed */ - height: 45px; /* Adjust size as needed */ - cursor: pointer; - z-index: 1000; /* Ensure it is on top of other elements */ + top: 50px; + left: 30px; + width: 20px; + height: 20px; + z-index: 1001; + background: url('/public/menu.png') no-repeat center center; + background-size: contain; +} + +.icon-container { + display: none; + position: fixed; + top: 95px; + left: 20px; + z-index: 1000; + background-color: #1a273c; + height: 260px; + width:45px ; + padding: 10px; + border-radius: 20px; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); + user-select: none; +} +.icon-toggle-button:checked + .icon-toggle-label + .icon-container { + display: block; +} + +.icon-container img { + display: block; + margin-bottom: 10px; } .multiplayer-icon { position: fixed; - top: 50px; + top: 100px; left: 30px; width: 45px; /* Adjust size as needed */ height: 45px; /* Adjust size as needed */ cursor: pointer; z-index: 1000; /* Ensure it is on top of other elements */ +} +.kids-icon { + position: fixed; + top: 170px; + left: 30px; + width: 45px; /* Adjust size as needed */ + height: 45px; /* Adjust size as needed */ + cursor: pointer; + z-index: 1000; /* Ensure it is on top of other elements */ } + .reward-icon { position: fixed; - top: 200px; + top: 250px; left: 30px; width: 40px; /* Adjust size as needed */ height: 40px; /* Adjust size as needed */ @@ -559,7 +602,7 @@ .video-icon { position: fixed; - top: 270px; + top: 320px; left: 30px; width: 40px; /* Adjust size as needed */ height: 40px; /* Adjust size as needed */ @@ -595,19 +638,27 @@ .scroll_top { position: fixed; - right: 90px; + right: 80px; bottom: 20px; cursor: pointer; border-radius: 50%; - width: 50px; + width: 45px; /* Define a fixed size for the button */ - height: 50px; + height: 45px; /* Ensure it's square */ overflow: hidden; /* Ensure the image doesn't overflow */ - display: flex; + display: none; justify-content: center; align-items: center; + outline: none; + border: none; + transition: 0.2s ease-in-out; + +} + +.scroll_top:hover{ + transform: scale(1.08); } #to_top { diff --git a/index.html b/index.html index 1d04322..96ae2f7 100644 --- a/index.html +++ b/index.html @@ -15,6 +15,7 @@ gtag('js', new Date()); gtag('config', 'G-PMJMSDJVFT'); + @@ -24,16 +25,11 @@ - - Reward Icon - - - - Video Icon - - - - + + +
+ Multiplayer Icon @@ -42,182 +38,220 @@ Kids Icon - Music Icon -
-
-
-
-

CyberBear

-
-
-
-
-

Phishing Attack ⭐

-

- Learn how to spot sneaky emails and keep your personal info safe from scammers. Are you ready for the - cyber challenge? -

-
+ + Reward Icon + + + + Video Icon + +
+ + Music Icon +
+
+
+
+

CyberBear

+
+
+
+
+

Phishing Attack ⭐

+

+ Learn how to spot sneaky emails and keep your personal info safe from scammers. Are you ready for the + cyber challenge? +

-
-
-

LEVEL- 1

- -
- - play - -
+
+
+
+

LEVEL- 1

+ +
-
+
-
-
-
-
- -
-
-

LEVEL- 2

-
- - play - -
-
-
-
-
-

Malware Mayhem ⭐⭐

-

- Your mission: Find and defeat the sneaky malware trying to mess up your computer... Let's go! -

+
+
+
+
+
+ +
+
+

LEVEL- 2

+
-
-
-
-
-

Weak Password Worries ⭐⭐⭐

-

- Create strong passwords and use two-step security to keep hackers and force attacks out. You’ve got - this! +

+
+

Malware Mayhem ⭐⭐

+

+ Your mission: Find and defeat the sneaky malware trying to mess up your computer... Let's go!

-
-
-
-

LEVEL- 3

-
- - play - -
-
-
- -
-
-
-
-
- +
+
+
+
+

Weak Password Worries ⭐⭐⭐

+

+ Create strong passwords and use two-step security to keep hackers and force attacks out. You’ve got + this! +

-
-
-

LEVEL- 4

- -
- - play +
+ -
-

Cyber Shield Master ⭐⭐⭐⭐

-

- Learn how to stay safe online by being smart, informed, and always one step ahead of cyber threats. Get - ready to build the ultimate defense! -

+ +
+
+
+
+
+
+ +
+
+
+

LEVEL- 4

+ +
+ + play + +
-
-
- - - - - - - -
- - + // When the button is clicked, scroll to the top smoothly + scrollButton?.addEventListener("click", () => { + requestAnimationFrame(smoothScrollToTop); + }); + + + + + +
+ + diff --git a/public/menu.png b/public/menu.png new file mode 100644 index 0000000..eb906da Binary files /dev/null and b/public/menu.png differ