Skip to content
Open
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Adapt the page to the following screens:
11. `git push origin develop` - to send you code for PR.
12. Create a Pull Request (PR) from your branch `develop` to branch `master` of original repo.
13. Replace `<your_account>` with your Github username in the
[DEMO LINK](https://<your_account>.github.io/layout_dia/).
[DEMO LINK](https://notbelievable.github.io/layout_dia/).
14. Copy `DEMO LINK` to the PR description.

> To update you PR repeat steps 7-11.
Binary file removed src/fonts/Roboto-Regular-webfont.woff
Binary file not shown.
Binary file added src/images/001.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 src/images/002.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 src/images/003.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 src/images/004.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 src/images/Air.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 src/images/Arrow.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 src/images/Group 19.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 src/images/GwVmBgpP-PQ.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 src/images/Photo1.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 src/images/Photo2.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 src/images/Photo3.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 src/images/Shapesssss.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 src/images/Vector.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 src/images/backphoto.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 src/images/branding.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 src/images/comunnication.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 src/images/f.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 src/images/hero-screen1.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 src/images/hero-screen2.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 src/images/hero-screen4.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 src/images/inst.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 src/images/left.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 src/images/qPojqUji_y4.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 src/images/right.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 src/images/strategy.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 src/images/tw.png
64 changes: 64 additions & 0 deletions src/scripts/main.js
Original file line number Diff line number Diff line change
@@ -1 +1,65 @@
'use strict';

const btnMenu = document.querySelector('#menu-btn');
const navMenu = document.querySelector('#nav-menu');
const noScroll = document.body;
const menuLinks = document.querySelectorAll('.nav__link');



const backImages = [
'../src/images/hero-screen2.png',
'../src/images/qPojqUji_y4.png',
'../src/images/GwVmBgpP-PQ.png'];

let currentIndex = 0;

const slider = document.getElementById('hero-slider');
const btnLeft = document.getElementById('btn-left');
const btnRight = document.getElementById('btn-right');

function changeBackground(index) {
slider.style.backgroundImage = `url(${backImages[index]})`;
}

btnRight.addEventListener('click', () => {
currentIndex++;

if (currentIndex >= backImages.length) {
currentIndex = 0;
}
changeBackground(currentIndex);
});

btnLeft.addEventListener('click', () => {
currentIndex--;

if (currentIndex < 0) {
currentIndex = backImages.length - 1;
}
changeBackground(currentIndex);
});



btnMenu.addEventListener('click', function() {
navMenu.classList.toggle('nav--open');
noScroll.classList.toggle('no-scroll');
});

function closeMenu() {
navMenu.classList.remove('nav--open');
noScroll.classList.remove('no-scroll');
}

window.addEventListener('resize', () => {
if (window.innerWidth >= 1024) {
closeMenu();
}
});

menuLinks.forEach(link => {
link.addEventListener('click', () => {
closeMenu();
});
});
6 changes: 0 additions & 6 deletions src/styles/_fonts.scss

This file was deleted.

3 changes: 0 additions & 3 deletions src/styles/_typography.scss

This file was deleted.

3 changes: 0 additions & 3 deletions src/styles/_utils.scss

This file was deleted.

64 changes: 64 additions & 0 deletions src/styles/contact-us.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
.contact-us {
background-color: $color-bl;

@include padd-inl;

@include desktop {
grid-column: span 6;
padding-inline: 0 140px;
padding-top: 180px;
border-radius: 0 30px 0 0;
}

@include design {
grid-column: 7 / span 5;
padding-inline: 98px 184px;
}

&__title {
margin: 0;
padding-block: 0 8px;
font-weight: 600;
font-size: 32px;
line-height: 150%;
color: $color-white;
}

&__rubric {
font-weight: 700;
font-size: 13px;
line-height: 100%;
letter-spacing: 3px;
text-transform: uppercase;
color: $color-grey;
margin-block: 40px 8px;
}

&__link {
font-family: 'Open Sans', sans-serif;
text-decoration: none;
color: $color-white;
font-weight: 600;
font-size: 24px;
line-height: 150%;
}

&__our-social {
padding-top: 8px;
display: flex;
align-items: center;
gap: 32px;

img {
display: block;
height: 32px;
width: 32px;
object-fit: contain;

&:hover {
filter: brightness(0) invert(32%) sepia(87%) saturate(3015%)
hue-rotate(213deg) brightness(98%) contrast(93%);
}
}
}
}
36 changes: 36 additions & 0 deletions src/styles/footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.footer {
box-sizing: border-box;

@include padd-inl;

padding-block: 80px;
background-color: $color-bl;

display: flex;
flex-direction: column;

.nav__list {
padding-top: 48px;
}

@include tablet {
padding-block: 139px 80px;

.nav__list {
flex-direction: row;
justify-content: space-between;
padding-top: 24px;
}
}

@include desktop {
padding-top: 94px;
flex-direction: row;
justify-content: space-between;
align-items: center;

.nav__list {
padding-top: 0;
}
}
}
69 changes: 69 additions & 0 deletions src/styles/header.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
.header {
box-sizing: border-box;
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding-block: 20px 48px;
background-color: $color-bl;

@include padd-inl;

@include tablet {
padding-block: 20px 56px;
}

@include desktop {
padding-block: 48px;
}

&__left {
display: flex;
align-items: center;
justify-content: space-between;
gap: 32px;
}

&__logo {
display: flex;
align-items: center;
width: 46px;
height: 28px;
}

&__menu {
width: 24px;
height: 24px;
background: none;
border: none;
padding: 8px 3px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;

@include desktop {
display: none;
}

img {
height: 100%;
width: 100%;
}
}

&-hire-us {
position: relative;

&::after {
content: '';
position: absolute;
left: 0;
bottom: -8px;
height: 2px;
width: 100%;
background-color: $color-blue;
border-radius: 4px;
}
}
}
94 changes: 94 additions & 0 deletions src/styles/hero-screen.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
.hero-screen {
box-sizing: border-box;
position: relative;
z-index: 2;
margin-block: -30px;
background-image: url(../images/hero-screen2.png);
background-repeat: no-repeat;
background-size: cover;
background-position: center;
min-height: 390px;
border-radius: 30px;
transition: background-image 0.3s ease;

@include desktop {
padding: 0;
margin: 0;
grid-column: span 6/13;
min-height: 680px;
border-radius: 30px 0;
}

@include design {
background-image: url(../images/backphoto.png);
grid-column: 8/13;
}

&__container {
@include padd-inl;

padding-bottom: 24px;
position: absolute;
bottom: 0;
left: 0;

gap: 16px;
display: flex;
flex-direction: column;
justify-content: center;

@include tablet {
padding-bottom: 32px;
}

@include desktop {
padding: 0 78px 48px;
flex-direction: row;
align-items: center;
}

@include desktop {
padding: 0 48px 48px;
}
}

&__buttons {
display: flex;
gap: 16px;
}

&__icon {
display: block;
padding: 11px;
height: 32px;
width: 32px;
border-radius: 50%;
background-color: $color-white;
object-fit: contain;
box-sizing: border-box;
transition: all 0.3s ease;

&:hover {
transform: scale(1.3);
}
}

&__title {
margin: 0;
color: $color-white;
font-size: 13px;
line-height: 100%;
letter-spacing: 3px;
text-transform: uppercase;
font-weight: 700;
}

&__text {
margin: 8px 0 0;
font-family: 'Open Sans', sans-serif;
font-size: 14px;
font-weight: 400;
line-height: 140%;
color: $color-white;
}
}
Loading
Loading