-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'swaraj-das:main' into main
- Loading branch information
Showing
7 changed files
with
158 additions
and
12 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.
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 |
---|---|---|
|
@@ -26,6 +26,9 @@ | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css" /> | ||
<link rel="stylesheet" href="./popup/popup.css" /> | ||
|
||
<!-- Manifest file for PWA --> | ||
<link rel="manifest" href="/manifest.json"> | ||
|
||
</head> | ||
|
||
<body> | ||
|
@@ -120,8 +123,8 @@ <h2 class="h2">Sign up for exclusive offers & updates</h2> | |
<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> | ||
<p class="terms">By signing up, you agree to our <a href="terms.html">Terms of Service</a> and <a | ||
href="PrivacyPolicy/PrivacyPolicy.html">Privacy Policy</a>.</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
@@ -643,9 +646,9 @@ <h2 class="logo-text">Collect your GamingTools</h2> | |
selection of controllers, VR gear, and more. | ||
</p> | ||
<div class="contact"> | ||
<span><i class="fas fa-phone"></i> 123-456-789</span> | ||
<span><i class="fas fa-envelope"></i> [email protected]</span> | ||
</div> | ||
<span><a href="tel:123-456-789" style="color: white; text-decoration: none;"><i class="fas fa-phone"></i> 123-456-789</a></span> | ||
<span><a href="mailto:[email protected]" style="color: white; text-decoration: none;"><i class="fas fa-envelope"></i> [email protected]</a></span> | ||
</div> | ||
<div class="socials"> | ||
<!-- Added classes to the <a> tags to add the Hover animations --> | ||
<a class="facebook" href="#"><i class="fab fa-facebook"></i></a> | ||
|
@@ -671,7 +674,7 @@ <h2>Quick Links</h2> | |
<h2>Legal Links</h2> | ||
<ul> | ||
<li><a href="PrivacyPolicy/PrivacyPolicy.html">Privacy Policy</a></li> | ||
<li><a href="#">Terms of Service </a></li> | ||
<li><a href="terms.html">Terms of Service </a></li> | ||
<li><a href="#">Cookie Policy</a></li> | ||
<li><a href="#">Disclaimer</a></li> | ||
<li><a href="#">Return Policy</a></li> | ||
|
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,21 @@ | ||
{ | ||
"name": "Collect your GamingTools", | ||
"short_name": "Collect your GamingTools", | ||
"description": "A responsive and dynamic website to showcase the best gaming accessories for every gamer!", | ||
"start_url": "/index.html", | ||
"display": "standalone", | ||
"background_color": "#ffffff", | ||
"theme_color": "#000000", | ||
"icons": [ | ||
{ | ||
"src": "/images/logo-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "/images/logo-512x512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
] | ||
} |
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
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,43 @@ | ||
const CACHE_NAME = 'my-pwa-cache-v1'; | ||
const urlsToCache = [ | ||
'/', | ||
'/index.html', | ||
'/styles.css', | ||
'/script.js', | ||
'/manifest.json', | ||
'/images/logo-192x192.png', | ||
'/images/logo-512x512.png' | ||
]; | ||
|
||
self.addEventListener('install', (event) => { | ||
event.waitUntil( | ||
caches.open(CACHE_NAME) | ||
.then((cache) => { | ||
return cache.addAll(urlsToCache); | ||
}) | ||
); | ||
}); | ||
|
||
self.addEventListener('fetch', (event) => { | ||
event.respondWith( | ||
caches.match(event.request) | ||
.then((response) => { | ||
return response || fetch(event.request); | ||
}) | ||
); | ||
}); | ||
|
||
self.addEventListener('activate', (event) => { | ||
const cacheWhitelist = [CACHE_NAME]; | ||
event.waitUntil( | ||
caches.keys().then((cacheNames) => { | ||
return Promise.all( | ||
cacheNames.map((cacheName) => { | ||
if (!cacheWhitelist.includes(cacheName)) { | ||
return caches.delete(cacheName); | ||
} | ||
}) | ||
); | ||
}) | ||
); | ||
}); |
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