Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 37 additions & 22 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

<!-- bootstrap -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">

<!-- jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>

<!-- javascript -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>

<!-- mapbox -->
Expand All @@ -13,9 +18,6 @@
/>
<script src="https://api.mapbox.com/mapbox-gl-js/v1.8.1/mapbox-gl.js"></script>

<!-- jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>

<!-- popper.js -->
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>

Expand All @@ -31,47 +33,57 @@
<div class="ct" id="t2">
<div class="ct" id="t3">
<div class="ct" id="t4">

<!-- Side menu -->
<ul id="menu">
<a href="#t1"
><li id="one">
<a href="#t1">
<li id="one">
<img
class="nav-icon"
src="assets/nav-icons/world.png"
height="50px"
width="50px"
/></li
></a>
<a href="#t2"
><li id="two">
/>
</li>
</a>
<a href="#t2">
<li id="two">
<img
class="nav-icon"
src="assets/nav-icons/information.png"
height="50px"
width="50px"
/></li
></a>
<a href="#t3"
><li id="three">
/>
</li>
</a>
<a href="#t3">
<li id="three">
<img
class="nav-icon"
src="assets/nav-icons/rules.png"
height="50px"
width="50px"
/></li
></a>
<a href="#t4"
><li id="four">
/>
</li>
</a>
<a href="#t4">
<li id="four">
<img
class="nav-icon"
src="assets/nav-icons/person.png"
height="50px"
width="50px"
/></li
></a>
/>
</li>
</a>
</ul>

<!-- Map -->
<div class="page" id="map"></div>

<!-- Cases Worldwide -->
<div class="page" id="p2">
<div class="contain">
<div class="cover">
<div class="table-responsive info-page">
<br>
<h1 style="text-align: center;">Cases Worldwide</h1>
Expand Down Expand Up @@ -117,11 +129,12 @@ <h1 class="grid" id="total_deaths"></h1>

</div>
</div>

</div>

<!-- Do's & Don'ts -->
<div class="page" id="p3">
<br>
<span style="color: black; text-align: center; max-width: 90%;" class="title">Follow these Do's & Don'ts</span>
<span class="title">Follow these Do's & Don'ts</span>
<br>
<div class="table-responsive">
<table class="rules-table table table-bordered">
Expand Down Expand Up @@ -160,6 +173,8 @@ <h1 class="grid" id="total_deaths"></h1>
</table>
</div>
</div>

<!-- Made with 🤍 by Vipul Sinha -->
<div class="page" id="p4">
<section class="icon">
<img src="assets/page-icon/about.png" height="100px" width="100px">
Expand Down
52 changes: 36 additions & 16 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
html,
body,
.page {
width: 100%;
height: 100%;
width: 100vw;
height: 100vh;
margin: 0;
padding: 0;
transition: all .6s cubic-bezier(.5, .2, .2, 1.1);
Expand All @@ -26,12 +26,18 @@ body,

#map {
left: 0;
height: 100vh;
width: 100vw;
}

#p2,
#p3,
#p4 {
overflow: scroll;
left: 200%;
height: 100vh;
width: 100vw;
display: none;
}

#p2 {
Expand All @@ -55,17 +61,19 @@ body,
-moz-transform: translateX(-190%);
-o-transform: translateX(-190%);
transition-delay: .4s !important;
display: block;
}

#t2:target #map,
#t3:target #map,
#t4:target #map {
background: white;
background: #fff;
}

#t2:target #p1 .icon,
#t3:target #p1 .icon,
#t4:target #p1 .icon {
filter: blur(3px);
-webkit-filter: blur(3px);
}

Expand Down Expand Up @@ -103,15 +111,11 @@ ul .icon:hover {
-o-transform: scale(1.2) !important;
}

ul {
position: fixed;
#menu {
position: absolute;
z-index: 1;
top: 0;
bottom: 0;
left: 0;
margin: 0 auto;
height: 100vh;
width: 10%;
width: 11vw;
padding: 0%;
display: flex;
text-align: center;
Expand Down Expand Up @@ -213,11 +217,17 @@ a {

}

.title{
color: black;
text-align: center;
max-width: 100%;
}

.table {
margin-left: 5%;
width: 100%;
color: #fff;
max-width: 80%;
color: #fff;
margin-left: 50%;
transform: translateX(-50%);
}

.table td {
Expand Down Expand Up @@ -251,9 +261,10 @@ a {
margin: 0 auto;
}

.contain {
width: 90%;
margin-left: 0;
.cover {
width: 90vw;
height: 100vh;
right: 0;
text-align: center;
}

Expand Down Expand Up @@ -293,3 +304,12 @@ a {
}
}

/* for Page 3 table */
@media (min-width: 1025px){
.table {
transform: translateX(-56%);
}
.title{
max-width: 90%;
}
}