Difference between revisions of "Team:Montpellier"

Line 28: Line 28:
 
   }
 
   }
  
*{padding: 0; margin: 0; box-sizing: border-box;}
+
 
body{height: 900px;}
+
.webmadewell {
header {
+
  background-color: white;
background: url('http://www.autodatz.com/wp-content/uploads/2017/05/Old-Car-Wallpapers-Hd-36-with-Old-Car-Wallpapers-Hd.jpg');
+
text-align: center;
+
width: 100%;
+
height: auto;
+
background-size: cover;
+
background-attachment: fixed;
+
position: relative;
+
overflow: hidden;
+
border-radius: 0 0 85% 85% / 30%;
+
 
}
 
}
header .overlay{
+
body {
width: 100%;
+
  margin: 0;
height: 100%;
+
}
padding: 50px;
+
.sample-header {
color: #FFF;
+
  position: fixed;
text-shadow: 1px 1px 1px #333;
+
  left: 0;
   background-image: linear-gradient( 135deg, #9f05ff69 10%, #fd5e086b 100%);
+
  top: 0;
+
  width: 100%;
 +
  background-image: url("http://webmadewell.com/wp-content/uploads/2018/01/img-bg-sample-parallax-header.jpg");
 +
  background-position: center;
 +
  background-size: cover;
 +
  background-repeat: no-repeat;
 +
}
 +
.sample-header::before {
 +
  content: "";
 +
  position: absolute;
 +
  top: 0;
 +
  right: 0;
 +
  bottom: 0;
 +
  left: 0;
 +
   background-color: MidnightBlue;
 +
  opacity: 0.3;
 +
}
 +
.sample-header-section {
 +
  position: relative;
 +
  padding: 15% 0 10%;
 +
  max-width: 640px;
 +
  margin-left: auto;
 +
  margin-right: auto;
 +
  color: white;
 +
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
 +
  font-family: "Montserrat", sans-serif;
 
}
 
}
 
 
h1 {
 
h1 {
font-family: 'Dancing Script', cursive;
+
  font-weight: 500;
font-size: 80px;
+
margin-bottom: 30px;
+
 
}
 
}
 
+
h2 {
h3, p {
+
  font-weight: 400;
font-family: 'Open Sans', sans-serif;
+
margin-bottom: 30px;
+
 
}
 
}
 
+
.sample-section-wrap {
button {
+
  position: relative;
border: none;
+
  background-color: white;
outline: none;
+
padding: 10px 20px;
+
border-radius: 50px;
+
color: #333;
+
background: #fff;
+
margin-bottom: 50px;
+
box-shadow: 0 3px 20px 0 #0000003b;
+
 
}
 
}
button:hover{
+
.sample-section {
cursor: pointer;
+
  position: relative;
 +
  max-width: 640px;
 +
  margin-left: auto;
 +
  margin-right: auto;
 +
  padding: 40px;
 
}
 
}
 +
 +
 +
  
 
</style>
 
</style>
 
</head>
 
</head>
 
<body>
 
<body>
<header>
 
<div class="overlay">
 
<h1>Vagineering</h1>
 
<h3>A new hormonal contraception</h3>
 
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Vero nostrum quis, odio veniam itaque ullam debitis qui magnam consequatur ab. Vero nostrum quis, odio veniam itaque ullam debitis qui magnam consequatur ab.</p>
 
<br>
 
<button>READ MORE</button>
 
</div>
 
</header>
 
 
  
 +
<div class="sample-header">
 +
  <div class="sample-header-section">
 +
    <h1>Scroll down to see the parallax effect</h1>
 +
    <h2>Background landcape scrolls with its own depth </h2>
 +
  </div>
 +
</div>
 +
<div class="sample-section-wrap">
 +
  <div class="sample-section">
  
 
   <p class = "spz"><img class="accueil" src = "https://static.igem.org/mediawiki/2018/c/c7/T--Montpellier--page_acceuil_nouveau_montpellier.png"/> </p>
 
   <p class = "spz"><img class="accueil" src = "https://static.igem.org/mediawiki/2018/c/c7/T--Montpellier--page_acceuil_nouveau_montpellier.png"/> </p>
Line 102: Line 110:
  
 
        
 
        
 
+
<button>READ MORE</button>
 +
</div>
 +
</header>
  
 
</body>
 
</body>

Revision as of 18:01, 7 October 2018

home

Scroll down to see the parallax effect

Background landcape scrolls with its own depth