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
42 changes: 42 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!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">
<title>Academy Challenge#1</title>
<link href="https://fonts.googleapis.com/css?family=Lato:300,400&amp;subset=latin-ext" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>

<body>

<div class="flex-container">
<header class="logo">

<img class="logo__img-corner" src="assets/coming-soon-ribbon.png" alt="">
<img class="logo__img" src="assets/undraw_developer_activity_bv83.svg" alt="Logo Code Academy">
<h1 class="logo__title">code academy</h1>
</header>
<section class="forms">
<form action="" method="post" class="form">
<label for="email" class="form__label" pattern="/^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*{2,8}$/"
required>leave
your email</label>
<input type="email" name="email" class="form__input form__input-email" placeholder="E-mail">
<button type="submit" class="form__btn">get early access</button>
</form>
</section>
<footer class="footer">
<p class="footer__desc">user &copy; 2019.</p>
<p class="footer__desc">made with <img class="footer__img-love" src="/assets/love.png" alt="little heart in footer">
in Poland</p>
<p class="footer__desc">we're using cookies to improve your experience.</p>
</footer>
</div>


</body>

</html>
221 changes: 221 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
/* font-family: 'Lato', sans-serif; */

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-size: 10px;
font-family: 'Lato', sans-serif;
}


body {
height: 100vh;
color: white;
background:
linear-gradient(180deg, #83EB94 0%, #47D95E 100%);
text-align: center;
}


.flex-container {
max-width: 1280px;
margin: 0 auto;
height: 100vh;
display: flex;
flex-direction: column;
}

/***** HEADER ****/

.logo__img {
max-width: 100%;
}

.logo__img-corner {
position: absolute;
top: 0;
right: 0;
display: none;
}

.logo__title {
text-transform: uppercase;
font-weight: 300;
letter-spacing: 6px;
font-size: 3rem;
}

/***** SECTION - FORM ****/

.form {
margin: 0 auto;
width: 80%;
display: flex;
flex-direction: column;
}

.form__label {
padding: 30px;
font-size: 1.6rem;
}

.form__label::first-letter {
text-transform: uppercase;
}


.form__input,
.form__btn {
margin-bottom: 20px;
padding: 15px;
border-radius: 10px;
border-style: none;
font-size: 1.6rem;
}

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

.form__input:focus {
box-shadow: inset 0 0 5px 2px #44844c;
outline: none;
}

.form__btn {
position: relative;
background-color: #0297ec;
color: white;
text-transform: uppercase;
cursor: pointer;
}

.form__btn:hover {
box-shadow: 0 5px 10px rgba(0, 0, 0, .5);
top: -3px;
}

::placeholder {
color: rgba(0, 0, 0, .3)
}



/**** FOOTER ****/

.footer {
margin-top: auto;
padding: 20px;
}

.footer__desc,
.big-letter {
font-size: 1.6rem;
line-height: 2.2rem
}

.footer__image-love {
width: 1.6rem;
}

.footer__desc::first-letter {
text-transform: uppercase;
}


@media(min-width: 540px) {
/**** HEADER ****/

.logo__img {
width: 70%;
}
}

@media(min-width: 768px) and (orientation: portrait) {

/**** HEADER ****/
.logo__title {
font-size: 6rem;
}

/**** FORM ****/
.form {
width: 80%;
justify-content: space-around;
flex-flow: row wrap;
}

.form__label {
font-size: 3.2rem;
flex-basis: 100%;
}

.form__input,
.form__btn {
flex-basis: 45%;
padding: 20px;
font-size: 2.6rem;
}

/**** FOOTER ****/
.footer__desc {
font-size: 3rem;
line-height: 3.6rem;
}

.footer__img-love {
width: 3rem;
}
}


@media (min-width:800px) and (orientation: landscape) {

body {
background:
linear-gradient(90deg, #83EB94 0%, #47D95E 100%);
}

/**** HEADER ****/
.logo__img {
width: 50%;
}

.logo__img-corner {
display: block;
}

.logo__title {
font-size: 5rem;
}

/**** FORM ****/
.form {
width: 60%;
justify-content: space-around;
flex-flow: row wrap;
}

.form__label {
font-size: 2.2rem;
flex-basis: 100%;
}

.form__input,
.form__btn {
font-size: 1.6rem;
flex-basis: 45%;
}

/**** FOOTER ****/
.footer__desc {
font-size: 2.2rem;
line-height: 2.8rem;
}

.footer__img-love {
width: 2.2rem;
}

}