Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

header block #1

Merged
merged 1 commit into from
Jun 14, 2020
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.header__background-img_name_trees {
width: 400px;
bottom: 0;
left: -70px;
}

@media (min-width: 1024px) {
.header__background-img_name_trees {
width: 325px;
left: 0;
}
}

@media (min-width: 1280px) {
.header__background-img_name_trees {
width: 400px;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.header__background-img_name_window {
width: 400px;
top: 210px;
left: calc(50% - 200px);
}

@media (min-width: 1024px) {
.header__background-img_name_window {
width: 330px;
left: calc(50% - 165px);
top: 150px;
}
}

@media (min-width: 1280px) {
.header__background-img_name_window {
width: 410px;
left: calc(50% - 205px);
top: 170px;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.header__background-img_name_yellow-tree {
width: 430px;
bottom: 0;
right: -120px;
}

@media (min-width: 1024px) {
.header__background-img_name_yellow-tree {
width: 340px;
right: 0;
}
}

@media (min-width: 1280px) {
.header__background-img_name_yellow-tree {
width: 430px;
}
}
3 changes: 3 additions & 0 deletions blocks/header/__background-img/header__background-img.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.header__background-img {
position: absolute;
}
11 changes: 11 additions & 0 deletions blocks/header/__link/_border/header__link_border.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.header__link_border {
border: 2px solid #fff;
padding: 10px 16px;
border-radius: 30px;
margin-top: 30px;
transition: border ease-in-out 0.3s;
}

.header__link_border:hover {
border: 2px solid #ffc124;
}
24 changes: 24 additions & 0 deletions blocks/header/__link/header__link.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.header__link {
display: inline-block;
color: #fff;
text-decoration: none;
font-style: normal;
font-weight: 500;
font-size: 16px;
line-height: 16px;
margin: 40px 0 0 20px;
opacity: 1;
transition: color ease-in-out 0.3s;
}

.header__link:hover {
color: #ffc124;
text-decoration: underline;
}

@media (min-width: 1280px) {
.header__link {
font-size: 18px;
line-height: 18px;
}
}
6 changes: 6 additions & 0 deletions blocks/header/__links/header__links.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.header__links {
margin: 0;
padding: 0;
list-style: none;
display: flex;
}
31 changes: 31 additions & 0 deletions blocks/header/header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@import url(./__background-img/header__background-img.css);
@import url(./__background-img/_name/header__background-img_name_trees.css);
@import url(./__background-img/_name/header__background-img_name_window.css);
@import url(./__background-img/_name/header__background-img_name_yellow-tree.css);
@import url(./__links/header__links.css);
@import url(./__link/header__link.css);
@import url(./__link/_border/header__link_border.css);

.header {
background-color: #223d46;
padding: 0 30px;
position: relative;
overflow: hidden;
display: flex;
height: 750px;
border-bottom: 50px solid #429a6b;
}

@media (min-width: 1024px) {
.header {
height: 530px;
border-bottom: 40px solid #429a6b;
}
}

@media (min-width: 1280px) {
.header {
height: 650px;
border-bottom: 50px solid #429a6b;
}
}
4 changes: 4 additions & 0 deletions blocks/logo/_place/logo_place_header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.logo_place_header {
margin-right: auto;
margin-top: 10px;
}
8 changes: 8 additions & 0 deletions blocks/logo/logo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.logo {
background-image: url(../../images/logo.svg);
background-position: center;
background-size: contain;
background-repeat: no-repeat;
width: 110px;
height: 100px;
}
6 changes: 6 additions & 0 deletions images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/trees.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/window.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/yellow-tree.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 48 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,53 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./pages/index.css" />
<title>Out of Bounds</title>
</head>

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./pages/index.css" />
<title>Out of Bounds</title>
</head>

<body class="page">
<h1>Out of Bounds</h1>
</body>
<body class="page">
<header class="header">
<img
src="./images/trees.png"
alt="two trees"
class="header__background-img header__background-img_name_trees"
/>
<img
src="./images/window.png"
alt="a girl and a dog looking out a window"
class="header__background-img header__background-img_name_window"
/>
<img
src="./images/yellow-tree.png"
alt="a yellow tree"
class="header__background-img header__background-img_name_yellow-tree"
/>

<div class="logo logo_place_header"></div>
<ul class="header__links">
<li>
<a
href="https://www.instagram.com/outofboundssupport/"
target="_blank"
class="header__link"
>Instagram</a
>
</li>
<li>
<a
href="mailto:[email protected]"
class="header__link"
>E-mail</a
>
</li>
<li>
<a href="#how-to-help" class="header__link header__link_border"
>Help Us</a
>
</li>
</ul>
</header>
</body>
</html>
3 changes: 3 additions & 0 deletions pages/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@import url(../vendor/normalize.css);
@import url(../vendor/fonts/fonts.css);
@import url(../blocks/page/page.css);
@import url(../blocks/header/header.css);
@import url(../blocks/logo/logo.css);
@import url(../blocks/logo/_place/logo_place_header.css);