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
Binary file added src/images/background/bg-photo-1.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/background/bg-photo-2.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/background/bg-photo-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/images/icons/icon-arrow-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/images/icons/icon-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/icons/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/icons/icon-facebook.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/icons/icon-instagram.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/icons/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/icons/logo.svg
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/paintings/painting-1.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/paintings/painting-2.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/paintings/painting-3(2).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/paintings/painting-3.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/paintings/painting-4.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/paintings/painting-5.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/paintings/painting-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions src/scripts/main.js
Original file line number Diff line number Diff line change
@@ -1 +1,44 @@
'use strict';

/* global IntersectionObserver */

document.addEventListener('DOMContentLoaded', () => {
const slider = document.getElementById('gallery-slider');
const items = document.querySelectorAll('.gallery__item');
const dots = document.querySelectorAll('.gallery__dot');

if (slider && dots.length > 0) {
const observerOptions = {
root: slider,
threshold: 0.6,
};

const observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
const index = Array.from(items).indexOf(entry.target);

dots.forEach((dot) => dot.classList.remove('gallery__dot--active'));

if (dots[index]) {
dots[index].classList.add('gallery__dot--active');
}
}
});
}, observerOptions);

items.forEach((i) => observer.observe(i));

dots.forEach((dot, index) => {
dot.addEventListener('click', () => {
if (items[index]) {
items[index].scrollIntoView({
behavior: 'smooth',
block: 'nearest',
inline: 'center',
});
}
});
});
}
});
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.

17 changes: 16 additions & 1 deletion src/styles/_utils.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
@import 'utils/vars';
@import 'utils/mixins';
@import 'utils/extends';

@import 'blocks/page';
@import 'blocks/button';
@import 'blocks/header';
@import 'blocks/icon';
@import 'blocks/nav';
@import 'blocks/schedule';
@import 'blocks/menu';
@import 'blocks/main';
@import 'blocks/actual-events';
@import 'blocks/event';
@import 'blocks/lecture';
@import 'blocks/gallery';
@import 'blocks/about-us';
@import 'blocks/contacts';
@import 'blocks/contact-info';
58 changes: 58 additions & 0 deletions src/styles/blocks/about-us.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
.about-us {
&__bg-photo {
display: block;
grid-column: 1 / -1;
grid-row: 1;

min-height: 45vh;

object-fit: cover;

@include bg-photo;
}

&__wrapper {
position: relative;
align-items: center;
width: 100%;

@include page-grid;
}

&__content {
grid-column: 1 / -1;
grid-row: 1;
color: $color-light;

@include on-tablet {
grid-column: 2 / 6;
}

@include on-desktop {
grid-column: 4 / 10;
}
}

&__description {
margin-top: 20px;
font-size: 18px;
text-align: center;

@include on-tablet {
margin-top: 16px;
}
}

&__button {
width: 100%;
margin-top: 50px;

@include on-tablet {
margin-top: 64px;
}

@include on-desktop {
margin-top: 72px;
}
}
}
28 changes: 28 additions & 0 deletions src/styles/blocks/actual-events.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.actual-events {
margin-bottom: 60px;

@include on-tablet {
margin: 88px 0 104px;
}

@include on-desktop {
margin-top: 200px;
}

&__wrapper {
display: grid;
row-gap: 60px;
width: 100%;
margin-top: 40px;

@include on-tablet {
row-gap: 64px;
margin-top: 48px;
}

@include on-desktop {
row-gap: 104px;
margin-top: 56px;
}
}
}
Loading
Loading