Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
swaraj-das committed Jun 28, 2024
0 parents commit 85bbfae
Show file tree
Hide file tree
Showing 11 changed files with 405 additions and 0 deletions.
Binary file added images/add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/controller.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/fb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ig.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/tw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Collect your GamingTools</title>
<link rel="shortcut icon" href="images/logo.png" type="image/x-icon">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="navbar">
<img src="images/logo.png" class="logo" alt="Logo">
<span class="website-name">Collect your GamingTools</span>
<nav>
<ul id="menuList">
<li><a href="#">Game Controllers</a></li>
<li><a href="#">VR Accessories</a></li>
<li><a href="#">Media Remotes</a></li>
<li><a href="#">Others</a></li>
</ul>
</nav>
<img src="images/menu.png" class="menu-icon" onclick="toggleMenu()">
</div>

<div class="row">
<div class="col-1">
<h2>PS4 V2 Dualshock 4</h2>
<h3>Wireless Controllers for PlayStation 4</h3>
<p>(Compatible/Generic)</p>
<div class="price">
<span class="original-price">&#8377;5500</span>
<span class="discounted-price">&#8377;3999</span>
<span class="discount">30% off</span>
</div>
<button type="button">Buy Now<img src="images/arrow.png" alt="Arrow"></button>
</div>
<div class="col-2">
<img src="images/controller.png" class="controller" alt="Controller">
<div class="color-box"></div>
<div class="add-btn">
<img src="images/add.png" alt="Add">
<p><small>Add to cart</small></p>
</div>
</div>
</div>
</div>
<div class="social-links">
<img src="images/fb.png" alt="Facebook">
<img src="images/tw.png" alt="Twitter">
<img src="images/ig.png" alt="Instagram">
</div>
<footer>
<p>&copy; 2024 Gaming Website. All rights reserved.</p>
<p>Made by Swaraj &#128512;</p>
</footer>

<script src="/script.js"></script>

</body>
</html>
10 changes: 10 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var menuList = document.getElementById("menuList");
menuList.style.maxHeight = "0px";

function toggleMenu() {
if (menuList.style.maxHeight == "0px") {
menuList.style.maxHeight = "130px";
} else {
menuList.style.maxHeight = "0px";
}
}
Loading

0 comments on commit 85bbfae

Please sign in to comment.