Skip to content

Commit

Permalink
Разметка и начальная стилизация секции hero
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav committed Mar 9, 2022
1 parent 2d941cc commit 325b375
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 2 deletions.
Binary file added src/img/hero-bg-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions src/modules/sections/hero.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!-- hero -->
<section class="hero">
<div class="hero__wrapper">
<div class="hero__slider">
<div class="swiper-slider">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="hero__slide">
<div class="hero__banner">
<img src="img/hero-bg-1.jpg" alt="">
</div>
<div class="hero__info">
.<div class="container">
<h1 class="hero__title h1">Туристический комплекс «Белая река Даховская»</h1>
<p class="hero__descr">Увлекательный отдых в красочных горах Адыгеи</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section> <!-- ./ End of hero -->
43 changes: 43 additions & 0 deletions src/scss/sections/hero.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
.hero {
position: relative;
height: 100vh;

&__wrapper {
}

&__slider {
}

&__slide {
display: flex;
align-items: center;
}

&__banner {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;

img {
object-fit: cover;
width: 100%;
height: 100%;
}
}

&__info {
position: relative;
max-width: 721px;
color: var(--white);
}

&__title {
margin-bottom: 24px;
}

&__descr {
font: 300 1.5rem / 1.5rem $second-font;
}
}
1 change: 1 addition & 0 deletions src/scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
// Sections - Секции
@import 'sections/header';
@import 'sections/footer';
@import 'sections/hero';
@import 'sections/offers';
@import 'sections/about';
@import 'sections/services';
Expand Down
4 changes: 2 additions & 2 deletions src/views/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@


<main>

{{> sections/hero }}
{{> sections/offers }}
<hr>
{{> sections/about }}

{{> sections/services }}

</main>
Expand Down

0 comments on commit 325b375

Please sign in to comment.