Skip to content
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
537 changes: 533 additions & 4 deletions index.html

Large diffs are not rendered by default.

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/events/go-and-come-back.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/events/memories-and-dreams.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/gallery/park-slide.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/gallery/slider-four.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/gallery/slider-one.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/gallery/slider-three.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/gallery/slider-two.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/gallery/subscription-desck.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/gallery/subscription-mob.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/gallery/subscription-tab.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/header-bg-mobile.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/icon/icon-black-arrow.svg
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/icon/icon-close.svg
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/icon/icon-menu.svg
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/icon/icon-ticket.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/images/logo/arrow-up-logo.svg
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/facebook-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/images/logo/instagram-logo.svg
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/logo-manu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/scripts/main.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
'use strict';
import slider from './slider';

slider();
68 changes: 68 additions & 0 deletions src/scripts/slider.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
export default function slider() {
const collectionSlides = document.querySelectorAll('.slider__slide');
const slides = Array.from(collectionSlides);
const dotContainer = document.querySelector('.slider__dots');
let currentSlide = 0;
const cloneFirsSlide = collectionSlides[0].cloneNode(true);

slides.push(cloneFirsSlide);
dotContainer.insertAdjacentElement('beforebegin', cloneFirsSlide);

const createDots = () => {
slides.forEach((_, i) => {
if (i <= 3) {
dotContainer.insertAdjacentHTML(
'beforeend',
`<button class='slider__button' data-slide='${i}'></button>`,
);
}
});
};

const activateDot = (numberSlide) => {
const collectonDots = document.querySelectorAll('.slider__button');

collectonDots.forEach((dot) => {
dot.classList.remove('slider__button--active');
});

document
.querySelector(`.slider__button[data-slide='${numberSlide}']`)
.classList.add('slider__button--active');
};

const goToSlide = (numberSlide) => {
slides.forEach((s, i) => {
s.style.transform = `translate(${100 * (i - numberSlide)}%)`;
});
};

slides.forEach((s, i) => {
s.style.transform = `translate(${100 * i}%)`;
});

dotContainer.addEventListener('click', (e) => {
const { slide } = e.target.dataset;

if (!slide) {
return;
}

activateDot(slide);
goToSlide(slide);
});

setInterval(() => {
goToSlide(currentSlide);
activateDot(currentSlide);
currentSlide = (currentSlide + 1) % 4;
}, 1500);

const init = () => {
createDots();
activateDot(0);
goToSlide(0);
};

init();
}
138 changes: 138 additions & 0 deletions src/styles/aside/aside.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
.menu {
&__content {
height: fit-content;
display: flex;
flex-direction: column;
gap: 24px;
padding-inline: 20px;
padding-block: 27px;
background-color: $dark-green;

@include on-tablet {
padding: 39px;
flex-direction: row;
gap: 39px;
}

@include on-desktop {
padding-left: 55px;
margin-inline: auto;
justify-content: space-between;
}

&--footer {
padding: 0;
background-color: $c-gray;
}
}

&__top {
display: flex;
gap: 28px;

@include on-tablet {
gap: 39px;
}

@include on-desktop {
gap: 102px;
}
}

&__close {
text-decoration: none;
display: block;
background-image: url(../images/icon/icon-close.svg);
width: 24px;
height: 24px;
background-repeat: no-repeat;

@include hover(transform, scale(1.2));
}

&__hr {
height: 1px;
background-color: rgba(255, 255, 255, 0.5);

@include on-tablet {
width: 1px;
height: auto;
}
}

&__bottom {
@include on-tablet {
display: flex;
gap: 39px;
justify-content: space-between;
}

&--footer {
display: flex;
flex-direction: column;
gap: 25px;
}
}

&__schedule {
flex-grow: 1;
}

&__schedule-title {
margin: 0;
margin-bottom: 20px;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 400;
font-size: 14px;
line-height: 141%;
letter-spacing: 0;
color: $white-color;

&--footer {
color: $dark-title;
}
}

&__hours {
margin: 0;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 600;
font-size: 14px;
line-height: 150%;
letter-spacing: 0;
color: $white-color;

&--footer {
color: $dark-title;
}
}

&__day {
font-weight: 400;
}

&__day-on-tablet {
display: none;

@include on-tablet {
display: inline;
}
}

&__info {
margin-top: 16px;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 600;
font-size: 14px;
line-height: 150%;
letter-spacing: 0;
color: $white-color;
align-self: flex-end;

&--footer {
color: $dark-title;
align-self: flex-start;
margin-top: 0;
}
}
}
28 changes: 28 additions & 0 deletions src/styles/footer/contacts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.contacts {
&__title {
margin: 0;
margin-bottom: 20px;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 400;
font-size: 14px;
line-height: 141%;
letter-spacing: 0;
}

&__address {
all: unset;
}

&__link {
text-decoration: none;
display: block;
font-family: 'IBM Plex Sans', sans-serif;
font-weight: 400;
font-size: 14px;
line-height: 150%;
letter-spacing: 0;
color: $dark-title;

@include hover(font-weight, 600);
}
}
Loading
Loading