This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
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 #90 from 0xPolygonID/pop-up
adds pop-up
- Loading branch information
Showing
6 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
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,38 @@ | ||
.popup { | ||
display: none; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: rgba(0,0,0,0.5); | ||
z-index: 1000; | ||
} | ||
|
||
.popup-content { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
padding: 20px; | ||
background-color: #fff; | ||
box-shadow: 0px 0px 10px rgba(0,0,0,0.2); | ||
} | ||
|
||
.close-btn { | ||
position: absolute; | ||
top: 5px; | ||
right: 10px; | ||
font-size: 25px; | ||
cursor: pointer; | ||
} | ||
|
||
.visit-btn { | ||
display: inline-block; | ||
padding: 10px 20px; | ||
background-color: #007BFF; | ||
color: #fff; | ||
text-decoration: none; | ||
border-radius: 5px; | ||
margin-top: 20px; | ||
} |
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,10 @@ | ||
window.onload = function() { | ||
setTimeout(function() { | ||
document.getElementById('newVersionPopup').style.display = 'block'; | ||
}, 5000); // Show popup after 5 seconds. Adjust the time as needed. | ||
} | ||
|
||
function closePopup() { | ||
document.getElementById('newVersionPopup').style.display = 'none'; | ||
} | ||
|
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
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,7 @@ | ||
<div id="newVersionPopup" class="popup"> | ||
<div class="popup-content"> | ||
<span class="close-btn" onclick="closePopup()">×</span> | ||
<h2>New Polygon ID Documentation Website Available!</h2> | ||
<p>We've released a new version of our documention. Head to <a href="https://devs.polygonid.com/">devs.polygonid.com</a> to check it out.</p> | ||
</div> | ||
</div> |