Skip to content

Instantly share code, notes, and snippets.

@kasoramaster
Created December 20, 2019 17:34
Show Gist options
  • Save kasoramaster/81560e15267612d5f5064de700f2feba to your computer and use it in GitHub Desktop.
Save kasoramaster/81560e15267612d5f5064de700f2feba to your computer and use it in GitHub Desktop.
Landing Page
<div class="container">
<div class="add"></div>
<div class="gimme-ur-info">
<h1 class="title">Be the Success you Deserve</h1>
<p>Sign up today to get inside information on how to get rich quick. Don't let your wallet dictate what you can do!</p>
<input type="text" name="name" value="" placeholder="Full Name">
<input type="text" name="address" value="" placeholder="Address">
<input type="text" name="number" value="" placeholder="Phone Number">
<input type="text" name="email" value="" placeholder="Email">
</div>
</div>
* {
box-sizing: border-box;
font-family: 'Josefin Slab', serif;
}
body, html {
background: linear-gradient(to right, #56ab2f, #a8e063); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
background-size: cover;
}
h1, p {
color: white;
text-align: justify;
}
h1 {
text-align: left;
}
input, h1, p {
padding: 10px;
}
.container {
margin: auto;
margin-top: 25px;
position: relative;
width: 900px;
height: 600px;
background-size: cover;
border-radius: 10px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
transition: box-shadow .2s linear;
text-align: center;
}
.container:hover {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.5);
}
.add {
background: url("http://images.wisegeek.com/three-men-share-a-toast.jpg");
background-position: -100px 0;
position: absolute;
left: 0;
height: 100%;
width: 100%;
z-index: 1
}
.gimme-ur-info {
position: absolute;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
right: 5%;
top: 10%;
height: 80%;
width: 20%;
background: rgba(86, 171, 47, .8);
z-index: 2;
}
input[type=text] {
background: transparent;
border: none;
color: white;
border-bottom: 1px solid white;
border-radius: 5px;
text-align: center;
}
input::placeholder {
color: white;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment