Commit 9fae4623 authored by Daniel Teixeira's avatar Daniel Teixeira

fixing responsive designe

parent 49356124
......@@ -59,10 +59,13 @@ a:hover {
.stores {
position: absolute;
margin-top: 30px;
width: 100%;
}
.stores img {
width: 200px;
}
#iGimg {
width: 100%;
border-radius: 14px;
......@@ -89,6 +92,18 @@ h2{
}
@media (max-width: 640px) {
#header h1 {
font-size: 3em;
}
}
#mail-form {
width: 300px;
margin: 0 auto;
float: none;
}
.fa.fa-facebook:hover{
color: #3b5998;
}
......@@ -118,3 +133,98 @@ h2{
width: 42px;
transition: color 0.5s ease;
}
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}
/* Modal Content (image) */
.modal-content {
padding: 10%;
background-color: black;
margin: auto;
display: block;
width: 80%;
}
/* Caption of Modal Image */
#caption {
margin: auto;
display: block;
width: 80%;
max-width: 700px;
text-align: center;
color: #ccc;
padding: 10px 0;
height: 150px;
}
/* Add Animation */
.modal-content, #caption {
-webkit-animation-name: zoom;
-webkit-animation-duration: 0.6s;
animation-name: zoom;
animation-duration: 0.6s;
}
@-webkit-keyframes zoom {
from {-webkit-transform:scale(0)}
to {-webkit-transform:scale(1)}
}
@keyframes zoom {
from {transform:scale(0)}
to {transform:scale(1)}
}
/* The Close Button */
.close {
position: absolute;
top: 15px;
right: 35px;
z-index: 2;
color: #ffffff;
font-size: 40px;
font-weight: bold;
transition: 0.3s;
opacity: 0.9;
margin: 10%;
}
.close:hover,
.close:focus {
color: #bbb;
text-decoration: none;
cursor: pointer;
}
/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
.modal-content {
width: 100%;
}
}
#mail-form {
z-index: 0;
}
.img-game {
cursor: pointer;
transition: 0.3s;
}
.img-game:hover {opacity: 0.7;}
......@@ -24,6 +24,7 @@
<link rel="stylesheet" href="assets/css/main.css">
<link rel="stylesheet" href="assets/css/margin_padding.css">
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
......@@ -36,25 +37,24 @@
<div class="section sectionBg" style="height: 50px;">
<div>
</div>
<div id="twentyyearsribbon" class="col-md-2 text-center">
<div id="twentyyearsribbon" style="display: inline-block">
<a target="_blank" href="https://www.sib.swiss/20years">
<img id="twentyyearsimg" src="assets/images/SIB_logo_20ans.png"></a>
</div>
<div class="col-md-8 text-center"></div>
<div class="col-md-2 text-center pt-10 pb-10">
<div class="pull-right pt-20 pb-10" style="padding-right: 20px;">
<a href="https://www.sib.swiss/about-us/media-homepage" target="_blank">Press</a> |
<a href="mailto:communication@sib.swiss">Contact</a>
</div>
</div>
<div id="header">
<div class="row mlmr-none mt-20">
<div class="col text-center">
<div class="text-center">
<h1>GENOME JUMPER</h1>
<h4>The mobile game to discover your genes !</h4>
<h2>COMING VERY SOON</h2>
<form action="register.php" class="form-inline">
<p style="font-size: 12px">Enter your email below to be the first to play!</p>
<div class="input-group">
<div class="input-group" id="mail-form">
<div class="input-group-addon"></div>
<input type="email" class="form-control" id="email" placeholder="E-mail address">
<div class="input-group-addon"></div>
......@@ -101,15 +101,15 @@
</p>
<div class="row mt-50">
<div class="col-lg-4 text-center mt-10">
<img src="assets/images/avatars/avatar1.jpg" class="img-circle" style="max-width: 300px"/>
<br><i>Start with an unkown character.</i>
<img id="img-game-1" src="assets/images/avatars/avatar1.jpg" class="img-circle img-game" style="max-width: 300px"/>
<br><i>Start with an unkown character.</i>
</div>
<div class="col-lg-4 text-center mt-10">
<img src="assets/images/avatars/avatar2.jpg" class="img-circle" style="max-width: 300px"/>
<br><i><b>Reveal the phenotype of your character by collecting its variant.</b></i>
<img id="img-game-2" src="assets/images/avatars/avatar2.jpg" class="img-circle img-game" style="max-width: 300px"/>
<br><i><b>Reveal the phenotype of your character by collecting its variant.</b></i>
</div>
<div class="col-lg-4 text-center mt-10">
<img src="assets/images/avatars/avatar3.jpg" class="img-circle" style="max-width: 300px"/>
<img id="img-game-3" src="assets/images/avatars/avatar3.jpg" class="img-circle img-game" style="max-width: 300px"/>
<br><i>Avoid secondary structures and don't fall in the introns!</i>
</div>
</div>
......@@ -226,5 +226,49 @@
</script>
<!-- The Modal -->
<div id="myModal" class="modal">
<span class="close">&times;</span>
<img class="modal-content" id="img01">
<div id="caption"></div>
</div>
<script>
// Get the modal
var modal = document.getElementById('myModal');
// Get the image and insert it inside the modal - use its "alt" text as a caption
var img1 = document.getElementById('img-game-1');
var img2 = document.getElementById('img-game-2');
var img3 = document.getElementById('img-game-3');
var modalImg = document.getElementById("img01");
var captionText = document.getElementById("caption");
img1.onclick = function(){
modal.style.display = "block";
modalImg.src = this.src;
captionText.innerHTML = this.alt;
}
img2.onclick = function(){
modal.style.display = "block";
modalImg.src = this.src;
captionText.innerHTML = this.alt;
}
img3.onclick = function(){
modal.style.display = "block";
modalImg.src = this.src;
captionText.innerHTML = this.alt;
}
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];
// When the user clicks on <span> (x), close the modal
span.onclick = function() {
modal.style.display = "none";
}
</script>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment