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

add task solution #783

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
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
Binary file added dist/BG-footer.c5bd759a.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 dist/BG.1e51202d.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 dist/Ellipse4.1a2f46bd.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 dist/Photo.538110d5.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 dist/Roboto-Regular-webfont.1b7be813.woff
Binary file not shown.
Binary file added dist/Shapes.4fe94914.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 dist/ellipse.b822e4a5.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 dist/expertise1.9576368d.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 dist/expertise2.ff7d92b8.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 dist/expertise3.25847404.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 dist/favicon.aaeb10c9.ico
Binary file not shown.
Binary file added dist/girl.f530952a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions dist/index.html

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dist/main.2a8c351e.js

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

1 change: 1 addition & 0 deletions dist/main.2a8c351e.js.map

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

2 changes: 2 additions & 0 deletions dist/main.60726788.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/main.60726788.css.map

Large diffs are not rendered by default.

Binary file added dist/man.b39679a7.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 dist/photo2.3a7bff23.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 dist/woman.392d73dc.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/favicon/favicon.ico
Binary file not shown.
Binary file added src/images/BG-footer.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/BG.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/BGvision.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/Photo.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/Rectangle11.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/Rectangle12.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/Rectangle7.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/ellipse.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/expertise1.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/expertise2.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/expertise3.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/girl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/images/logo/Ellipse.svg
Binary file added src/images/logo/Ellipse4.png
Binary file added src/images/logo/Logo.png
Binary file added src/images/logo/Menu.png
Binary file added src/images/logo/Rectangle11.png
Binary file added src/images/logo/Rectangle12.png
Binary file added src/images/logo/photo3.png
Binary file added src/images/man.png
Binary file added src/images/photo2.png
Binary file added src/images/woman.png
787 changes: 782 additions & 5 deletions src/index.html

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions src/scripts/main.js
Original file line number Diff line number Diff line change
@@ -1 +1,39 @@
/* eslint-disable no-console */
'use strict';

const form = document.querySelector('#form');

form.addEventListener('submit', (event) => {
event.preventDefault();
form.reset();
});

const images = document.querySelectorAll('.slider .slider-line img');
const sliderLine = document.querySelector('.slider-line');
let count = 0;
let width;

function init() {
console.log('resize');
width = document.querySelector('.slider').offsetWidth;
sliderLine.style.width = width * images.length + 'px';

images.forEach(item => {
item.style.width = width + 'px';
});
}
window.addEventListener('resize', init);
init();

document.querySelector('.slider__next').addEventListener('click', function() {
count++;

if (count >= images.length) {
count = 0;
}
rollSlider();
});

function rollSlider() {
sliderLine.style.transform = 'translate(-' + count * width + 'px)';
};
3 changes: 3 additions & 0 deletions src/styles/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
font-weight: normal;
font-style: normal;
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");
27 changes: 27 additions & 0 deletions src/styles/_utils.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
@import "utils/vars";
@import "utils/mixins";
@import "utils/extends";

@import "utils/container";
@import "utils/top-bar";
@import "utils/header";
@import "utils/info";
@import "utils/main";
@import "utils/whoweare";
@import "utils/expertise";
@import "utils/store";
@import "utils/section-title";
@import "utils/navigation";
@import "utils/services";
@import "utils/creative";
@import "utils/testimonials";
@import "utils/vision";
@import "utils/footer";
@import "utils/slide";
@import "utils/form--action";
@import "utils/send";
@import "utils/input";
@import "utils/icon";
@import "utils/group";
@import "utils/menu";
@import "utils/page";
@import "utils/nav";
@import "utils/close";
@import "utils/slider";
3 changes: 2 additions & 1 deletion src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
@import "typography";

body {
background: $c-gray;
margin: 0;
min-width: 320px;
}
73 changes: 73 additions & 0 deletions src/styles/utils/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,76 @@
#{$_property}: $_toValue;
}
}

@mixin onTablet {
@media (min-width:$tablet-min-width) {
@content;
}
}

@mixin onDesktop {
@media (min-width:$desktop-min-width) {
@content;
}
}

@mixin onDesktop1600 {
@media (min-width:$desktop1600-min-width) {
@content;
}
}

@mixin onDesktop2560 {
@media (min-width:$desktop2560-min-width) {
@content;
}
}

@mixin contentPaddinginline() {
padding-inline: 20px;

@include onTablet {
padding-inline: 41px;
}

@include onDesktop() {
margin-inline: auto;
padding-inline: 54px;
}

@include onDesktop1600() {
padding-inline: 227px;
}

@include onDesktop2560() {
padding-inline: 707px;
// max-width: 2560px;
}
}

@mixin pageGrid {
--columns: 2;
display: grid;
column-gap: 30px;
grid-template-columns: repeat(var(--columns),1fr);

@include onTablet {
column-gap: 30px;
--columns: 6;
}

@include onDesktop {
--columns: 12;
column-gap: 20px;
}

@include onDesktop1600() {
--columns: 12;
column-gap: 30px;
}

@include onDesktop2560() {
--columns: 12;
column-gap: 30px;
}
}
12 changes: 12 additions & 0 deletions src/styles/utils/_vars.scss
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
$c-gray: #eee;
$tablet-min-width: 640px;
$desktop-min-width: 1024px;
$desktop1600-min-width: 1600px;
$desktop2560-min-width: 2560px;
$time-transition:1000ms;
$color-black:#2c2c2c;
$color-white: #fff;
$color-blue: #2060f6;
$color-gray: #253757;
$color-grayss: #6c788b;
$color-gr:#c0cdd7;
$color-bluesss: #144ed4;
3 changes: 3 additions & 0 deletions src/styles/utils/close.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.close path {
fill: $color-white;
}
3 changes: 3 additions & 0 deletions src/styles/utils/container.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.container {
@include contentPaddinginline();
}
188 changes: 188 additions & 0 deletions src/styles/utils/creative.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
.creative {

&__card {
border-radius: 16px;
background: #fff;
height: 264px;
box-shadow: 0 9px 18px 0 rgba(37, 41, 49, 0.03);
grid-column: span 2;
margin-bottom: 30px;
cursor: pointer;
transition: transform $time-transition;

@include onTablet {
grid-column: 1/4;

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

@include onDesktop {
margin-bottom: 20px;
grid-column: 7/10;
grid-row: 1;
transform: translateY(46%);

&:hover {
transform: translateY(46%) scale(1.07);
}
}

@include onDesktop1600 {
grid-column: 7/10;
margin-bottom: 30px;
}

&--two {

@include onTablet {
grid-column: 4/-1;
transform: translateY(-40%);

&:hover {
transform: translateY(-50%) scale(1.07);
}
}

@include onDesktop {
grid-column: 10/-1;
transform: translateY(0%);

&:hover {
transform: translateY(0%) scale(1.07);
}
}
}

&--three {
grid-column: span 2;
margin-bottom: 20px;

@include onTablet {
grid-column: 1/4;
margin-bottom: 0;

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

@include onDesktop {
grid-column: 7/10;
margin-bottom: 0;
transform: translateY(155%);

&:hover {
transform: translateY(155%) scale(1.07);
}
}
}

&--four {
grid-column: span 2;
margin-bottom: 0;

@include onTablet {
grid-column: 4/-1;
transform: translateY(-40%);

&:hover {
transform: translateY(-40%) scale(1.07);
}
}

@include onDesktop {
grid-column: 10/-1;
transform: translateY(110%);
margin: 0;

&:hover {
transform: translateY(110%) scale(1.07);
}
}
}
}

&__number {
display: flex;
margin-left: 32px;
margin-bottom: 26px;
}

&__numbers {
position: relative;
color: #2060f6;
font-size: 13px;
font-weight: 600;
line-height: normal;
text-transform: uppercase;
font-family: "Poppins", sans-serif;
margin-top: 34px;
margin-left: 12px;
margin-bottom: 2px;
}

&__top {
width: 46px;
height: 24px;
background-color: #2060f6;
border-radius: 23px;
opacity: 0.1;
position: absolute;
z-index: 1;
margin-top: 32px;
}

&__text {
color: $color-grayss;
font-family: "Open Sans", sans-serif;
font-size: 13px;
font-weight: 600;
line-height: 150%;
margin-left: 32px;
margin-bottom: 32px;
margin-right: 32px;
}

&__button {
display: flex;
background-image: url(../images/ellipse.png);
background-repeat: no-repeat;
height: 40px;
width: 40px;
background-size: contain;
margin-left: 32px;
align-items: center;
justify-content: center;
}

&__buttonlean {
cursor: pointer;
text-decoration: none;
display: flex;
gap: 16px;
align-items: center;
margin-bottom: 32px;
transition: transform $time-transition;

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

&__leanmore {
position: relative;
color: var(--text-200, #334563);
font-family: "Poppins", sans-serif;
font-size: 15px;
font-weight: 600;
line-height: normal;
margin: 0;
}
}

.buttons {
z-index: 1;
position: absolute;
}
Loading
Loading