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

Feature/person it #130

Merged
merged 13 commits into from
Oct 28, 2022
Binary file added .DS_Store
Binary file not shown.
6 changes: 6 additions & 0 deletions blocks/developers/__card/developers__card.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.developers__card {
display: flex;
flex-direction: column;
width: 210px;
margin-bottom: 20px;
}
10 changes: 10 additions & 0 deletions blocks/developers/__cards/developers__cards.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.developers__cards {
max-width: 800px;
list-style: none;
padding: 0;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
margin-bottom: 20px;
}
10 changes: 10 additions & 0 deletions blocks/developers/__name/developers__name.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.developers__name {
width: 64px;
font-family: 'Neue Machina';
font-style: normal;
font-weight: 400;
font-size: 28px;
line-height: 32px;
letter-spacing: -0.01em;
margin: 12px 0 0;
}
5 changes: 5 additions & 0 deletions blocks/developers/__photo/developers__photo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.developers__photo {
width: 210px;
object-fit: cover;
aspect-ratio: 42/53
}
9 changes: 9 additions & 0 deletions blocks/developers/__subtitle/developers__subtitle.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.developers__subtitle {
width: 177px;
font-style: normal;
font-weight: 300;
font-size: 16px;
line-height: 22px;
margin: 12px 0 0;
align-self: end;
}
4 changes: 4 additions & 0 deletions blocks/developers/__title/developers__title.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.developers__title {
margin-bottom: 48px;
}

8 changes: 8 additions & 0 deletions blocks/developers/developers.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.developers {
width: 100%;
display: flex;
flex-direction: column;
padding: 55.5px 0;
overflow: hidden;
}

2 changes: 1 addition & 1 deletion blocks/persons/persons.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
margin: 0 auto 0 calc(24px + (100vw - 767px)*264/(1440 - 767));
display: flex;
flex-direction: column;
padding: 55.5px 0 112px;
padding: 55.5px 0;
overflow: hidden;
}

Expand Down
1 change: 0 additions & 1 deletion blocks/play/__items/play__items.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
gap: calc(100% * 30/1320);
max-width: 1320px;
width: 100%;
overflow: hidden;
grid-template-columns: repeat(5, 1fr);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@media screen and (max-width: 767px) {
.slider__buttons-container_place_play {
display: flex;
}
}
Binary file added images/filyaev.jpg
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/peshehonova.jpg
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/proydakov.jpg
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/sveshnikova.jpg
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/tovchennikov.jpg
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/zashlyapin.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
238 changes: 148 additions & 90 deletions index.html

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions pages/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@
@import url(../blocks/play/__link/play__link.css);
@import url(../blocks/play/__link-text/play__link-text.css);
@import url(../blocks/play/__arrow/play__arrow.css);
@import url(../blocks/play/__arrow/_direction/play__arrow_direction_right.css);
@import url(../blocks/play/__arrow/_direction/play__arrow_direction_bottom.css);
@import url(../blocks/slider/__buttons-container/_place/slider__buttons-container_place_play.css);

/* persons */
@import url(../blocks/persons/persons.css);
Expand Down Expand Up @@ -173,3 +172,13 @@
@import url(../blocks/buttons/__close-icon/buttons__close-icon.css);
@import url(../blocks/buttons/__right-button/buttons__right-button.css);
@import url(../blocks/buttons/__left-arrow/buttons__left-arrow.css);


/* developers */
@import url(../blocks/developers/developers.css);
@import url(../blocks/developers/__title/developers__title.css);
@import url(../blocks/developers/__cards/developers__cards.css);
@import url(../blocks/developers/__card/developers__card.css);
@import url(../blocks/developers/__photo/developers__photo.css);
@import url(../blocks/developers/__name/developers__name.css);
@import url(../blocks/developers/__subtitle/developers__subtitle.css);
15 changes: 15 additions & 0 deletions scripts/slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,18 @@ var splide2 = new Splide( '#splide_place_gallery-popup', {
// fixedWidth : '75vw',
} );

var splidePlay = new Splide( '#splide_place_play', {
perPage: 5,
focus: 0,
autoWidth: true,
omitEnd: true,
drag: 'free',
snap: false,
mediaQuery: 'min',
breakpoints: {
1279: {
destroy: true,
},
}
} );
splidePlay.mount();