Skip to content

Commit

Permalink
training
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayronhayd committed Aug 15, 2024
1 parent a25f228 commit 9dda785
Show file tree
Hide file tree
Showing 39 changed files with 248 additions and 153 deletions.
Binary file added source/img/training/training-1.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 source/img/training/training-1.webp
Binary file not shown.
Binary file added source/img/training/[email protected]
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 source/img/training/[email protected]
Binary file not shown.
Binary file added source/img/training/training-2.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 source/img/training/training-2.webp
Binary file not shown.
Binary file added source/img/training/[email protected]
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 source/img/training/[email protected]
Binary file not shown.
Binary file added source/img/training/training-3.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 source/img/training/training-3.webp
Binary file not shown.
Binary file added source/img/training/[email protected]
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 source/img/training/[email protected]
Binary file not shown.
Binary file added source/img/training/training-4.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 source/img/training/training-4.webp
Binary file not shown.
Binary file added source/img/training/[email protected]
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 source/img/training/[email protected]
Binary file not shown.
Binary file added source/img/training/training-5.webp
Binary file not shown.
Binary file added source/img/training/[email protected]
Binary file not shown.
Binary file added source/img/training/training-desctop-1.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 source/img/training/training-desctop-1.webp
Binary file not shown.
Binary file added source/img/training/[email protected]
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 source/img/training/[email protected]
Binary file not shown.
Binary file added source/img/training/training-desctop-2.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 source/img/training/training-desctop-2.webp
Binary file not shown.
Binary file added source/img/training/[email protected]
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 source/img/training/[email protected]
Binary file not shown.
Binary file added source/img/training/training-desctop-3.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 source/img/training/training-desctop-3.webp
Binary file not shown.
Binary file added source/img/training/[email protected]
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 source/img/training/[email protected]
Binary file not shown.
Binary file added source/img/training/training-tablet-3.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 source/img/training/training-tablet-3.webp
Binary file not shown.
Binary file added source/img/training/[email protected]
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 source/img/training/[email protected]
Binary file not shown.
291 changes: 162 additions & 129 deletions source/index.html

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions source/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ magicLink.forEach((btn) => {
// swiper
const swiperHero = new Swiper('.hero__swiper', {
modules: [Pagination],
// Optional parameters
loop: true,
slidesPerView: 1,

// If we need pagination
pagination: {
el: '.hero__pagination',
clickable: true,
Expand Down
20 changes: 2 additions & 18 deletions source/sass/blocks/swiper.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,6 @@
background-color: $color-white;
}

.button-swiper {
display: none;

@media (min-width: $tablet-width) {
display: block;
position: absolute;
right: 45px;
top: 60px;
}

@media (min-width: $desktop-width) {
right: 120px;
top: 120px;
}
}

.swiper-button {
width: 37px;
height: 35px;
Expand Down Expand Up @@ -58,7 +42,7 @@
}
}

&:focus {
&:focus-visible {
border: 1px solid transparent;
background-color: $color-white;
outline: none;
Expand All @@ -78,7 +62,7 @@
}
}

.tours__button-next {
.swiper__button-next {
transform: scaleX(-1);
}

Expand Down
20 changes: 18 additions & 2 deletions source/sass/blocks/tours.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@
}
}

.tours__button-wrap {
display: none;

@media (min-width: $tablet-width) {
display: block;
position: absolute;
right: 45px;
top: 60px;
}

@media (min-width: $desktop-width) {
right: 120px;
top: 120px;
}
}

.tours__swiper.swiper {
width: 290px;
padding-bottom: 25px;
Expand Down Expand Up @@ -221,7 +237,7 @@
gap: 1px;
}

.full-star {
.tours__full-star {
mask-image: url("/__spritemap#sprite-full-star-view");
mask-repeat: no-repeat;
background-color: $color-white;
Expand All @@ -230,7 +246,7 @@
display: block;
}

.empty-star {
.tours__empty-star {
mask-image: url("/__spritemap#sprite-empty-star-view");
mask-repeat: no-repeat;
background-color: $color-white;
Expand Down
68 changes: 66 additions & 2 deletions source/sass/blocks/training.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
line-height: 24px;
margin-bottom: 30px;
}

@media (min-width: $desktop-width) {
margin-right: 335px;
margin-bottom: 62px;
}
}
}

Expand All @@ -24,8 +29,13 @@
@media (min-width: $tablet-width) {
margin: 19px 0 34px;
}

@media (min-width: $desktop-width) {
margin-bottom: 32px;
}
}


.training__instructors {
font-family: $font-800;
font-size: 22px;
Expand All @@ -44,6 +54,24 @@
@media (min-width: $desktop-width) {
font-size: 35px;
line-height: 35px;
margin-bottom: 16px;
}
}

.training__button-wrap {
display: none;

@media (min-width: $tablet-width) {
display: flex;
gap: 4px;
position: absolute;
right: 45px;
top: 197px;
}

@media (min-width: $desktop-width) {
right: 120px;
top: 212px;
}
}

Expand All @@ -52,7 +80,11 @@
padding: 14px;

@media (min-width: $tablet-width) {
min-height: 385px;
min-height: 388px;
}

@media (min-width: $desktop-width) {
min-height: 356px;
}

p {
Expand Down Expand Up @@ -80,6 +112,10 @@
@media (min-width: $tablet-width) {
width: 678px;
}

@media (min-width: $desktop-width) {
width: 1200px;
}
}

.training__content {
Expand All @@ -106,11 +142,39 @@
display: flex;
justify-content: center;
align-items: center;
color: $icon-basic;

&:hover {
border-color: $color-basic;
}

&:focus-visible {
border-color: transparent;
outline: none;
}

&:active {
color: $icon-dark-bg;
background-color: $icon-two;
border-color: transparent;
}

@media (min-width: $tablet-width) {
width: 26px;
}

@media (min-width: $desktop-width) {
width: 24px;
}
}

.training__vk-link-disabled {
color: rgba($color-basic, 0.3);
border-color: rgba($color-basic, 0.3);
pointer-events: none;
}

.training__icon {
width: 16px;
height: 9px;
color: $icon-basic;
}

0 comments on commit 9dda785

Please sign in to comment.