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
54 changes: 54 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/"
crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">

<title>Challenge #1_ Amazing LP ^^ </title>
</head>

<body>
<!--Header-->
<header id="showcase" class="grid">
<div id="picture" width="124" height="189">
<img id="img_soon" src="assets/coming-soon-ribbon.png" alt="">
</div>
<figure id="bg-image" class="grid">
<img id="img-here" src="assets/undraw_developer_activity_bv83.svg" width=185 height=153 alt="">
</figure>
<figcaption>Code Academy</figcaption>
</header>
<!--Section A-->
<main class="grid">
<section id="section-a" class="grid">
<div class="content">
<p>Leave your email</p>
<form action="">
<label>
<input type="email" requider placeholder=" " id="username" class="my_input">
<span>E-mail</span>
</label>
<button type="submit" id="btn" class="btn-primary">Get early access </button>
</label>
</form>
</div>
</div>
</section>
<!--Footer-->
<footer id="main-footer" class="grid">
<h1>User &copy 2019<br>
Made with <i class="fas fa-heart"></i> in Poland <br>
We're using cookies to improve your<br> experience.
</h1>

</footer>
</main>
</body>

</html>
155 changes: 155 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
/* Core styles */

body {
margin-left: auto;
margin-right: auto;
font-family: 'Lato', sans-serif;
background-image: linear-gradient(to bottom, #83EB94, #47D95E);
color: white;
font-size: 1.1em;
line-height: 1.5;
text-align: center;
}

h1 {
font-size: 1em;
margin: 7em 5px 10px 5px;
font-weight: 200;
}

p {
margin: 0;
padding: 1em 0;
}

/* Header */

figcaption {
text-transform: uppercase;
font-size: 300;
letter-spacing: 5px;
font-size: 1.55em;
line-height: 36px;

}

img {
display: block;
width: 100%;
height: auto;

}

/* Section A */

input,
.btn-primary {
box-sizing: border-box;
border: 1px solid rgb(180, 175, 175);
border-radius: 9px;
offset: 0px, 4px;
padding: 5px 10px;
margin: 5px;
width: 250px;
height: 48px;
}

#btn {
background-color: #0297EC;
text-transform: uppercase;
font-size: 16px;
font-weight: 900;
color: white;
padding: 15px;
display: inline-block;
transition: all .2s;
}

#btn:hover {
transform: transleteY(-3px);
box-shadow: 0 10px 20px rgba(0, 0, 0, .4);
}

#btn:active {
transform: transleteY(-1px);
box-shadow: 0 5px 20px rgba(0, 0, 0, .4);
}

/* Input */


.my_input {
box-shadow: inset 0 0 20px rgba(0, 0, 0, .4);
}

label {
margin: 20px 0;
position: relative;
display: inline-block;
}

span {
color: black;
padding: 10px;
margin: 5px;
pointer-events: none;
position: absolute;
left: 0;
top: 0;
transition: 0.2s;
transition-timing-function: ease;
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
opacity: 0.5;
}



input:focus+span,
input:not(:placeholder-shown)+span {
opacity: 1;
transform: scale(0.75) translateY(-100%) translateX(-30px);
}

/* For IE Browsers*/
input:focus+span,
input:not(:-ms-input-placeholder)+span {
opacity: 1;
transform: scale(0.75) translateY(-100%) translateX(-30px);
}

.picture {
position: relative;
}

#img_soon {
display: inline-block;
width: 124px;
height: 189px;
position: absolute;
right: 0%;
top: 0.1%;
bottom: 81.45%;
opacity: 0;
}

/* Footer */

.main-footer {
font-size: .5em;
margin: 50px 20px 0 20px;
padding: 30px;
}

/* Media */
@media (min-width: 768px) {

#img_soon {
width: 124px;
height: 189px;
position: absolute;
right: 0%;
top: 0.1%;
bottom: 81.45%;
opacity: 1;
}
}