Skip to content
This repository has been archived by the owner on Sep 5, 2021. It is now read-only.

Commit

Permalink
Merge branch 'header'
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadhprp committed Aug 17, 2021
2 parents d0fa2bf + ddce65e commit e6acc7f
Show file tree
Hide file tree
Showing 8 changed files with 118 additions and 10 deletions.
1 change: 1 addition & 0 deletions app/assets/styles/modules/_large-hero.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
}

&__text-content {
padding-top: 60px;
position: absolute;
top: 50%;
transform: translateY(-50%);
Expand Down
24 changes: 24 additions & 0 deletions app/assets/styles/modules/_primary-nav.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.primary-nav {

&--pull-right {
float: right;
}
ul {
margin: 0;
padding: 0;
@mixin clearfix;
}
li {
list-style: none;
float: left;
padding-right: 20px;
}

a {
color: #FFF;
font-weight: 300;
text-decoration: none;
display: block;
padding: 12px 0;
}
}
49 changes: 49 additions & 0 deletions app/assets/styles/modules/_site-header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
.site-header {
padding: 10px 0;
position: absolute;
width: 100%;
z-index: 2;

@mixin atMedium {
background-color: rgba($mainBlue, 0.3);
}

&__btn-container {
float: right;
}
&__logo {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
background-color: $mainBlue;
padding: 13px 29px;

@mixin atMedium {
left: auto;
transform: translateX(0);
padding: 25px 36px;
}
}

&__menu-icon {
width: 20px;
height: 20px;
background-color: #FFF;
position: absolute;
top: 10px;
right: 10px;

@mixin atMedium {
display: none;
}
}

&__menu-content {
display: none;

@mixin atMedium {
display: block;
}
}
}
2 changes: 2 additions & 0 deletions app/assets/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@
@import "modules/_feature-item";
@import "modules/_testimonial";
@import "modules/_site-footer";
@import "modules/_site-header";
@import "modules/_primary-nav";
29 changes: 19 additions & 10 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,25 @@
<meta name="description" content="Your clarify. One trip away. We create soul restoring journeys that inspire you to be you.">
</head>
<body>
<header>
<img src="assets/images/icons/clear-view-escapes.svg">
<a href="#" class="btn">Get in Touch</a>
<nav>
<ul>
<li><a href="#our-beginning">Our Beginning</a></li>
<li><a href="#features">Features</a></li>
<li><a href="#testimonials">Testimonials</a></li>
</ul>
</nav>
<header class="site-header">
<div class="wrapper">
<div class="site-header__logo">
<img src="assets/images/icons/clear-view-escapes.svg">
</div>
<div class="site-header__menu-icon"></div>
<div class="site-header__menu-content">
<div class="site-header__btn-container">
<a href="#" class="btn">Get in Touch</a>
</div>
<nav class="primary-nav primary-nav--pull-right">
<ul>
<li><a href="#our-beginning">Our Beginning</a></li>
<li><a href="#features">Features</a></li>
<li><a href="#testimonials">Testimonials</a></li>
</ul>
</nav>
</div>
</div>
</header>

<div class="large-hero">
Expand Down
21 changes: 21 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"devDependencies": {
"autoprefixer": "^9.6.5",
"css-loader": "^3.2.0",
"postcss-hexrgba": "^2.0.0",
"postcss-import": "^12.0.1",
"postcss-loader": "^3.0.0",
"postcss-mixins": "^6.2.2",
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const postCSSPlugins = [
require('postcss-mixins'),
require('postcss-simple-vars'),
require('postcss-nested'),
require('postcss-hexrgba'),
require('autoprefixer')
]

Expand Down

0 comments on commit e6acc7f

Please sign in to comment.