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

<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>Challenge 2</title>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ"
crossorigin="anonymous">
<link rel="stylesheet" href="css/challenge2.css">
</head>

<body>
<div class="wrapper">

<!-- header with logo and menu button -->
<header class="header">
<img src="assets2/logo.jpg" alt="code academy" class="header__logo">
<div class="header__btn">
<p class="btn__text">menu <i class="fas fa-bars fa-fw btn__icon--show"></i><i class="fas fa-times fa-fw"></i></p>
</div>

<!-- Navigation menu -->
<nav class="header__nav">
<ul class="nav__list">
<li class="nav__item nav__item-big"><a href="#" class="nav__link nav__link-big">Zaloguj</a></li>
<li class="nav__item"><a href="#" class="nav__link">Wyzwania</a></li>
<li class="nav__item"><a href="#" class="nav__link">O nas</a></li>
<li class="nav__item"><a href="#" class="nav__link">Uczestnicy</a></li>
<li class="nav__item"><a href="#" class="nav__link">FAQ</a></li>
<li class="nav__item"><a href="#" class="nav__link">Kontakt</a></li>
<li class="nav__item"><a href="#" class="nav__link">Dołącz</a></li>
</ul>
</nav>
</header>

<!-- checkbox's section -->
<section class="section">
<h1 class="section__h1">
Podejmij wyzwanie
</h1>
<p class="section__p--title">Home Page #2</p>

<form class="section__form">

<div class="form__box">
<input type="checkbox" class="section__input" id="input--left">
<label for="input--left" class="form__label">Header</label>
</div>


<div class="form__box form__box--blue">
<input type="checkbox" class="section__input section__input--white" id="input--mid">
<label for="input--mid" class="form__label form__label--white">Section</label>
</div>


<div class="form__box">
<input type="checkbox" class="section__input" id="input--right">
<label for="input--right" class="form__label">JavaScript</label>
</div>

</form>

<!-- counting script -->
<p class="section__p--bottom">Do końca zostało:</p>
</section>
<p class="footer__p-days">14 dni</p>
</div>

<script src="scripts/script.js"></script>
</body>

</html>
232 changes: 232 additions & 0 deletions css/challenge2.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,232 @@
@import url('https://fonts.googleapis.com/css?family=Open+Sans|Roboto:400,700');

.wrapper {
display: flex;
flex-direction: column;
background-color: #30C2FF;
}

/* header with logo and menu button */
.header {
display: flex;
height: 40px;
justify-content: space-between;
}

.header__logo {
margin-left: 10px;
flex-basis: 90px;
height: 40px;
}

.header__btn {
margin: 5px 10px;
border: 2px solid white;
border-radius: 5px;
cursor: pointer;
user-select: none;
}

.btn__text {
font-size: 22px;
font-style: normal;
font-weight: normal;
line-height: 24px;
color: #FAFAFA;
font-family: 'Roboto', sans-serif;
margin: 0 0 0 5px;
}

.fas {
display: none;
}

.btn__icon--show {
display: inline-block;
vertical-align: bottom;
animation: fas-spinning .5s linear both;
animation-play-state: paused;
}

@keyframes fas-spinning {

from {
transform: rotate(0deg);
}

to {
transform: rotate(180deg);
}
}

/* Navigation menu */
.header__nav {
position: fixed;
right: -180px;
top: 40px;
width: 180px;
background: #FAFAFA;
transition: .5s;
z-index: 1;
}

.header__nav--active {
transform: translateX(-180px);
}

.nav__list {
display: flex;
flex-direction: column;
justify-content: center;
list-style: none;
height: 100%;
padding: 0;
margin: 0;
}

.nav__item {
height: 30px;
border-top: 1px solid #30C2FF;
font-family: Roboto;
font-style: normal;
font-weight: normal;
font-size: 16px;
}

.nav__item-big {
height: 50px;
text-align: center;
border: none;
}

.nav__link {
display: block;
padding-left: 10px;
text-decoration: none;
font-family: Roboto;
font-style: normal;
font-weight: normal;
font-size: 16px;
color: #000;
line-height: 30px;
}

.nav__link-big {
padding: 0;
font-weight: bold;
font-size: 20px;
text-transform: uppercase;
line-height: 50px;
}

/* checkbox's section */
.section {
height: 320px;
width: 100%;
text-align: center;
color: #FAFAFA;
}

.section__h1 {
margin: 20px 0 40px 0;
font-family: Open Sans;
font-style: normal;
font-weight: 300;
line-height: 26px;
font-size: 24px;
}

.section__p--title {
font-family: Roboto;
font-style: normal;
font-weight: normal;
line-height: 20px;
font-size: 18px;
text-align: center;
}

.section__form {
display: flex;
justify-content: center;
}

.form__label {
font-family: Roboto;
font-style: normal;
font-weight: normal;
line-height: 18px;
font-size: 16px;
text-align: center;
color: black;
}

.form__label--white {
color: #FAFAFA;
}

.form__box {
flex-basis: 100px;
height: 115px;
background-color: #FAFAFA;
position: relative;
border: 1px solid #FAFAFA;
padding-top: 10px;
}

.form__box--blue {
background-color: #30C2FF;
color: #FAFAFA;
}

.section__input {
display: none;
}

.section__input+label::before {
position: absolute;
font-family: "Font Awesome 5 Free";
font-weight: regular;
content: "\f0c8";
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(2);
color: #30C2FF;
}

.section__input--white+label::before {
color: #FAFAFA;
}

.section__input:checked+label::before {
content: "\f14a";
font-weight: bold;
}

.form__label {
user-select: none;
}

/* counting script */
.section__p--bottom {
transform: translateX(-90px);
font-family: Roboto;
font-style: normal;
font-weight: normal;
line-height: 18px;
font-size: 16px;
text-decoration-line: underline;

color: #FAFAFA;

}

.footer__p-days {
font-family: Open Sans;
font-style: normal;
font-weight: 300;
line-height: 18px;
font-size: 48px;
text-align: center;
margin: 15px;
color: #000000;
}
Loading