-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #436 from PrAyAg9/prayag_game
Issue :- #383 Solved :- Added Registration Pop up Succesfully
- Loading branch information
Showing
4 changed files
with
212 additions
and
10 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,15 +8,17 @@ | |
<title>Collect your GamingTools</title> | ||
|
||
<!--adding meta keywords and description --> | ||
<meta name= "keywords" content="gaming tools, game accessories, gaming gear, gaming equipment, gaming setup, game controller, gaming mouse, gaming keyboard, gaming headset, gaming software, eSports tools, gaming community, gaming chair, VR gaming tools, game streaming equipment, console gaming, PC gaming, mobile gaming, gaming tips, game reviews, gaming news"> | ||
<meta name= "description" content="Collect and discover the ultimate gaming tools and accessories to enhance your gaming experience. From high-performance controllers and mice to immersive headsets and VR gaming equipment, we have everything you need for console, PC, and mobile gaming. Join our gaming community for tips and reviews to stay ahead in the game!"> | ||
|
||
<link rel= "shortcut icon" href="images/logo.png" type="image/x-icon"> | ||
<link rel= "stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> | ||
<link href= "https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet"> | ||
<link rel= "stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" /> | ||
<link rel= "stylesheet" href="style.css"> | ||
<link rel= "stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css" /> | ||
<meta name="keywords" content="gaming tools, game accessories, gaming gear, gaming equipment, gaming setup, game controller, gaming mouse, gaming keyboard, gaming headset, gaming software, eSports tools, gaming community, gaming chair, VR gaming tools, game streaming equipment, console gaming, PC gaming, mobile gaming, gaming tips, game reviews, gaming news"> | ||
<meta name="description" content="Collect and discover the ultimate gaming tools and accessories to enhance your gaming experience. From high-performance controllers and mice to immersive headsets and VR gaming equipment, we have everything you need for console, PC, and mobile gaming. Join our gaming community for tips and reviews to stay ahead in the game!"> | ||
|
||
<link rel="shortcut icon" href="images/logo.png" type="image/x-icon"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> | ||
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" /> | ||
<link rel="stylesheet" href="style.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css" /> | ||
<link rel="stylesheet" href="./popup/popup.css"/> | ||
|
||
</head> | ||
|
||
<body> | ||
|
@@ -80,7 +82,7 @@ | |
<section class="hero"> | ||
<div class="overlay"></div> | ||
<div class="hero-content"> | ||
<!-- Search Bar (initially hidden) --> | ||
<!-- Search Bar (initially hidden) --> | ||
|
||
<div class="searchbar-outer"> | ||
<div class="search-bar hidden" id="searchBar"> | ||
|
@@ -94,6 +96,33 @@ <h1 data-aos="fade-down">Welcome to GamingTools</h1> | |
</div> | ||
</section> | ||
|
||
<!-- Pop-up for email registration HTML Goes Here --> | ||
|
||
|
||
<div id="popup" class="popup"> | ||
<div class="popup-content"> | ||
<div class="popup-left"> | ||
<img src="images/popup.png" alt="Gaming Tools Image"> | ||
</div> | ||
|
||
<div class="popup-right"> | ||
<a href="# " class="close1-btn"> <img src="images/logo.png" class="logo1" alt="Logo"></a> | ||
<h1 >Unlock the Ultimate Gaming Experience!</h1> | ||
<h2 class="h2">Sign up for exclusive offers & updates</h2> | ||
<p>Join our community and get upto <strong>30% off</strong> on your first deal</p> | ||
<form id="emailForm"> | ||
<input type="email" id="email" placeholder="Enter your email" required> | ||
<button type="submit" class="signup-btn1">Get 30% Off Now</button> | ||
</form> | ||
<a href="#" class="no-thanks close1-btn">No thanks</a> | ||
<p class="terms">By signing up, you agree to our <a href="#">Terms of Service</a> and <a href="#">Privacy Policy</a>.</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- Pop up HTML Ends here --> | ||
|
||
|
||
<!-- PS4 Controller Section --> | ||
|
||
<div class="row" id="controller" > | ||
|
@@ -700,6 +729,7 @@ <h2>Feedback Form</h2> | |
<script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script> | ||
|
||
<script src="script.js"></script> | ||
<script src="popup/popup.js"></script> | ||
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script> | ||
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
/* Styling for the pop-up */ | ||
.popup { | ||
display: none; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: rgba(0, 0, 0, 0.7); | ||
justify-content: center; | ||
align-items: center; | ||
z-index: 1000; | ||
} | ||
|
||
.popup-content { | ||
display: flex; | ||
background-color: white; | ||
border-radius: 10px; | ||
max-width: 800px; | ||
height: 450px; | ||
overflow: hidden; | ||
position: relative; | ||
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); | ||
} | ||
|
||
/* .popuplogo{ | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
height: 50px; | ||
width: 38.6px; | ||
} */ | ||
|
||
.logo1 { | ||
width: 50px; | ||
cursor: pointer; | ||
margin: 18px 10px; | ||
position: absolute; | ||
top: -4px; | ||
left: 722px; | ||
} | ||
|
||
#logo-pop{ | ||
left: 20px; | ||
} | ||
|
||
.popup-left img { | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
} | ||
|
||
.popup-right { | ||
padding: 20px; | ||
width: 50%; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.popup h1 { | ||
font-size: 28px; | ||
font-family: Arial, Helvetica, sans-serif; | ||
background: linear-gradient(to right, #ff3527, #fb5283, #ffd700); | ||
-webkit-text-fill-color: transparent; | ||
-webkit-background-clip: text; | ||
text-align: center; | ||
margin-bottom: 15px; | ||
margin-top: 45px; | ||
} | ||
|
||
.h2{ | ||
font-size: 20px; | ||
margin-bottom: 10px; | ||
text-align: center; | ||
} | ||
|
||
h2 { | ||
font-size: 24px; | ||
margin-bottom: 10px; | ||
color: #333; | ||
} | ||
|
||
p { | ||
margin-bottom: 26px; | ||
color: #555; | ||
font-size: 13px; | ||
} | ||
|
||
input[type="email"] { | ||
width: 100%; | ||
padding: 10px; | ||
margin-bottom: 16px; | ||
border: 1px solid #000000; | ||
border-radius: 5px; | ||
font-size: 14px; | ||
} | ||
|
||
.signup-btn1 { | ||
width: 100%; | ||
padding: 10px 0; | ||
background-color: linear-gradient(to right, #ff3527, #fb5283, #ffd700);; | ||
color: white; | ||
border: none; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
font-size: 16px; | ||
} | ||
|
||
.signup-btn1:hover { | ||
background-color: #4682B4; | ||
} | ||
|
||
.no-thanks { | ||
display: block; | ||
margin-top: 15px; | ||
color: #888; | ||
text-decoration: none; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.no-thanks:hover { | ||
color: #000000; | ||
font-size: 15px; | ||
} | ||
|
||
.terms { | ||
margin-top: 15px; | ||
font-size: 10px; | ||
color: #888; | ||
} | ||
|
||
.terms a { | ||
background: linear-gradient(to right, #ff3527, #fb5283, #ffd700); | ||
-webkit-text-fill-color: transparent; | ||
-webkit-background-clip: text; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Show the pop-up automatically when the page loads | ||
window.onload = function() { | ||
document.getElementById('popup').style.display = 'flex'; | ||
}; | ||
|
||
// Close the pop-up when the user clicks the close button | ||
document.querySelector('.close1-btn').addEventListener('click', function() { | ||
document.getElementById('popup').style.display = 'none'; | ||
}); | ||
|
||
// Close the pop-up when clicking outside the pop-up content | ||
window.addEventListener('click', function(event) { | ||
const popupContent = document.querySelector('.popup-content'); // Select the popup content | ||
if (event.target === document.getElementById('popup')) { | ||
document.getElementById('popup').style.display = 'none'; | ||
} | ||
}); | ||
|
||
// Handle form submission | ||
document.getElementById('emailForm').addEventListener('submit', function(event) { | ||
event.preventDefault(); | ||
|
||
const email = document.getElementById('email').value; | ||
if (email) { | ||
alert(`Thank you! A 20% discount code has been sent to ${email}`); | ||
document.getElementById('popup').style.display = 'none'; | ||
} | ||
}); | ||
|
||
// Handle "No thanks" link | ||
document.querySelector('.no-thanks').addEventListener('click', function(event) { | ||
event.preventDefault(); | ||
document.getElementById('popup').style.display = 'none'; | ||
}); |