generated from goitacademy/vanilla-app-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from ElizabethBil/collection
- Loading branch information
Showing
6 changed files
with
85 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,10 @@ | |
/* OUR COLLECTION */ | ||
|
||
.collection-section { | ||
background-image: url(../img/collection/bg-ornament-mob.png); | ||
background-image: url(/img/collection/bg-ornament-mob.png); | ||
background-repeat: no-repeat; | ||
background-size: auto; | ||
background-position-y: 298px; | ||
background-size: 72px 177px; | ||
background-position-y: 327px; | ||
} | ||
|
||
.collection-list-item:not(:last-child) { | ||
|
@@ -42,7 +42,7 @@ | |
font-style: normal; | ||
font-weight: 500; | ||
line-height: 1em; | ||
letter-spacing: 0.05; | ||
letter-spacing: 0.05em; | ||
text-transform: uppercase; | ||
} | ||
|
||
|
@@ -51,15 +51,15 @@ | |
color: rgba(252, 249, 249, 0.4); | ||
font-size: 14px; | ||
line-height: 1em; | ||
letter-spacing: 0.05; | ||
letter-spacing: 0.05em; | ||
text-transform: uppercase; | ||
} | ||
|
||
@media screen and (min-width: 768px) { | ||
.collection-section { | ||
background-image: url(../img/collection/bg-ornament-tab.png); | ||
background-position-y: 72px; | ||
padding-top: 0; | ||
background-image: url(/img/collection/bg-ornament-tab.png); | ||
background-position-y: 271px; | ||
background-size: 114px 300px; | ||
} | ||
|
||
.collection-list { | ||
|
@@ -75,8 +75,9 @@ | |
|
||
@media screen and (min-width: 1280px) { | ||
.collection-section { | ||
background-image: url(../img/collection/bg-ornament.png); | ||
background-position-y: 232px; | ||
background-image: url(/img/collection/bg-ornament.png); | ||
background-size: 169px 300px; | ||
background-position-y: 231px; | ||
} | ||
|
||
.collection-list { | ||
|
@@ -90,8 +91,8 @@ | |
|
||
@media screen and (min-width: 1440px) { | ||
.collection-section { | ||
background-image: url(../img/collection/bg-ornament.png); | ||
background-position-y: 226px; | ||
background-image: url(/img/collection/bg-ornament.png); | ||
background-position-y: 301px; | ||
} | ||
|
||
.collection-list { | ||
|
@@ -108,22 +109,22 @@ | |
screen and (min-resolution: 2dppx) and (max-width: 767px), | ||
screen and (min-device-pixel-ratio: 2) and (max-width: 767px) { | ||
.collection-section { | ||
background-image: url(../img/collection/[email protected]); | ||
background-image: url(/img/collection/[email protected]); | ||
} | ||
} | ||
|
||
@media screen and (min-resolution: 192dpi) and (min-width: 768px), | ||
screen and (min-resolution: 2dppx) and (min-width: 768px), | ||
screen and (min-device-pixel-ratio: 2) and (min-width: 768px) { | ||
.collection-section { | ||
background-image: url(../img/collection/[email protected]); | ||
background-image: url(/img/collection/[email protected]); | ||
} | ||
} | ||
|
||
@media screen and (min-resolution: 192dpi) and (min-width: 1280px), | ||
screen and (min-resolution: 2dppx) and (min-width: 1280px), | ||
screen and (min-device-pixel-ratio: 2) and (min-width: 1280px) { | ||
.collection-section { | ||
background-image: url(../img/collection/[email protected]); | ||
background-image: url(/img/collection/[email protected]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
(() => { | ||
const refs = { | ||
openModalBtn: document.querySelector('[data-modal-open]'), | ||
closeModalBtn: document.querySelector('[data-modal-close]'), | ||
modal: document.querySelector('[data-modal]'), | ||
}; | ||
|
||
refs.openModalBtn.addEventListener('click', toggleModal); | ||
refs.closeModalBtn.addEventListener('click', toggleModal); | ||
|
||
function toggleModal() { | ||
refs.modal.classList.toggle('is-hidden'); | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import './js/modal'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<section class="collection-section section"> | ||
<section class="collection-section section" id="our-collection"> | ||
<div class="collection-list-container container"> | ||
<h2 class="section-title">Our collection</h2> | ||
|
||
|
@@ -7,14 +7,14 @@ <h2 class="section-title">Our collection</h2> | |
<picture> | ||
<source | ||
srcset=" | ||
../img/collection/desktop-1440/august-poltava-1440.jpg 400w, | ||
../img/collection/desktop-1440/[email protected] 800w, | ||
../img/collection/desktop-1280/august-poltava-1280.jpg 347w, | ||
../img/collection/desktop-1280/[email protected] 694w, | ||
../img/collection/tablet/august-poltava-tab.jpg 342w, | ||
../img/collection/tablet/[email protected] 684w, | ||
../img/collection/mob/august-poltava-mob.jpg 335w, | ||
../img/collection/mob/[email protected] 670w | ||
./img/collection/desktop-1440/august-poltava-1440.jpg 400w, | ||
./img/collection/desktop-1440/[email protected] 800w, | ||
./img/collection/desktop-1280/august-poltava-1280.jpg 347w, | ||
./img/collection/desktop-1280/[email protected] 694w, | ||
./img/collection/tablet/august-poltava-tab.jpg 342w, | ||
./img/collection/tablet/[email protected] 684w, | ||
./img/collection/mob/august-poltava-mob.jpg 335w, | ||
./img/collection/mob/[email protected] 670w | ||
" | ||
sizes="(min-width: 1440px) 400px, (min-width: 1280px) 347px, (min-width: 768px) 342px, (min-width: 320px) 335px" | ||
/> | ||
|
@@ -35,14 +35,14 @@ <h3 class="collection-list-item-title"> | |
<picture> | ||
<source | ||
srcset=" | ||
../img/collection/desktop-1440/gorgany-1440.jpg 400w, | ||
../img/collection/desktop-1440/[email protected] 800w, | ||
../img/collection/desktop-1280/gorgany-1280.jpg 347w, | ||
../img/collection/desktop-1280/[email protected] 694w, | ||
../img/collection/tablet/gorgany-tab.jpg 342w, | ||
../img/collection/tablet/[email protected] 684w, | ||
../img/collection/mob/gorgany-mob.jpg 335w, | ||
../img/collection/mob/[email protected] 670w | ||
./img/collection/desktop-1440/gorgany-1440.jpg 400w, | ||
./img/collection/desktop-1440/[email protected] 800w, | ||
./img/collection/desktop-1280/gorgany-1280.jpg 347w, | ||
./img/collection/desktop-1280/[email protected] 694w, | ||
./img/collection/tablet/gorgany-tab.jpg 342w, | ||
./img/collection/tablet/[email protected] 684w, | ||
./img/collection/mob/gorgany-mob.jpg 335w, | ||
./img/collection/mob/[email protected] 670w | ||
" | ||
sizes="(min-width: 1440px) 400px, (min-width: 1280px) 347px, (min-width: 768px) 342px, (min-width: 320px) 335px" | ||
/> | ||
|
@@ -61,14 +61,14 @@ <h3 class="collection-list-item-title">women's blouse gorgany</h3> | |
<picture> | ||
<source | ||
srcset=" | ||
../img/collection/desktop-1440/mountain-1440.jpg 400w, | ||
../img/collection/desktop-1440/[email protected] 800w, | ||
../img/collection/desktop-1280/mountain-1280.jpg 347w, | ||
../img/collection/desktop-1280/[email protected] 694w, | ||
../img/collection/tablet/mountain-tab.jpg 342w, | ||
../img/collection/tablet/[email protected] 684w, | ||
../img/collection/mob/mountain-mob.jpg 335w, | ||
../img/collection/mob/[email protected] 670w | ||
./img/collection/desktop-1440/mountain-1440.jpg 400w, | ||
./img/collection/desktop-1440/[email protected] 800w, | ||
./img/collection/desktop-1280/mountain-1280.jpg 347w, | ||
./img/collection/desktop-1280/[email protected] 694w, | ||
./img/collection/tablet/mountain-tab.jpg 342w, | ||
./img/collection/tablet/[email protected] 684w, | ||
./img/collection/mob/mountain-mob.jpg 335w, | ||
./img/collection/mob/[email protected] 670w | ||
" | ||
sizes="(min-width: 1440px) 400px, (min-width: 1280px) 347px, (min-width: 768px) 342px, (min-width: 320px) 335px" | ||
/> | ||
|
@@ -87,14 +87,14 @@ <h3 class="collection-list-item-title">mountain men's shirt</h3> | |
<picture> | ||
<source | ||
srcset=" | ||
../img/collection/desktop-1440/yasen-1440.jpg 400w, | ||
../img/collection/desktop-1440/[email protected] 800w, | ||
../img/collection/desktop-1280/yasen-1280.jpg 347w, | ||
../img/collection/desktop-1280/[email protected] 694w, | ||
../img/collection/tablet/yasen-tab.jpg 342w, | ||
../img/collection/tablet/[email protected] 684w, | ||
../img/collection/mob/yasen-mob.jpg 335w, | ||
../img/collection/mob/[email protected] 670w | ||
./img/collection/desktop-1440/yasen-1440.jpg 400w, | ||
./img/collection/desktop-1440/[email protected] 800w, | ||
./img/collection/desktop-1280/yasen-1280.jpg 347w, | ||
./img/collection/desktop-1280/[email protected] 694w, | ||
./img/collection/tablet/yasen-tab.jpg 342w, | ||
./img/collection/tablet/[email protected] 684w, | ||
./img/collection/mob/yasen-mob.jpg 335w, | ||
./img/collection/mob/[email protected] 670w | ||
" | ||
sizes="(min-width: 1440px) 400px, (min-width: 1280px) 347px, (min-width: 768px) 342px, (min-width: 320px) 335px" | ||
/> | ||
|
@@ -113,14 +113,14 @@ <h3 class="collection-list-item-title">men's shirt yasen</h3> | |
<picture> | ||
<source | ||
srcset=" | ||
../img/collection/desktop-1440/crimea-1440.jpg 400w, | ||
../img/collection/desktop-1440/[email protected] 800w, | ||
../img/collection/desktop-1280/crimea-1280.jpg 347w, | ||
../img/collection/desktop-1280/[email protected] 694w, | ||
../img/collection/tablet/crimea-tab.jpg 342w, | ||
../img/collection/tablet/[email protected] 684w, | ||
../img/collection/mob/crimea-mob.jpg 335w, | ||
../img/collection/mob/[email protected] 670w | ||
./img/collection/desktop-1440/crimea-1440.jpg 400w, | ||
./img/collection/desktop-1440/[email protected] 800w, | ||
./img/collection/desktop-1280/crimea-1280.jpg 347w, | ||
./img/collection/desktop-1280/[email protected] 694w, | ||
./img/collection/tablet/crimea-tab.jpg 342w, | ||
./img/collection/tablet/[email protected] 684w, | ||
./img/collection/mob/crimea-mob.jpg 335w, | ||
./img/collection/mob/[email protected] 670w | ||
" | ||
sizes="(min-width: 1440px) 400px, (min-width: 1280px) 347px, (min-width: 768px) 342px, (min-width: 320px) 335px" | ||
/> | ||
|
@@ -139,14 +139,14 @@ <h3 class="collection-list-item-title">women's blouse crimea</h3> | |
<picture> | ||
<source | ||
srcset=" | ||
../img/collection/desktop-1440/verkhovina-1440.jpg 400w, | ||
../img/collection/desktop-1440/[email protected] 800w, | ||
../img/collection/desktop-1280/verkhovina-1280.jpg 347w, | ||
../img/collection/desktop-1280/[email protected] 694w, | ||
../img/collection/tablet/verkhovina-tab.jpg 342w, | ||
../img/collection/tablet/[email protected] 684w, | ||
../img/collection/mob/verkhovina-mob.jpg 335w, | ||
../img/collection/mob/[email protected] 670w | ||
./img/collection/desktop-1440/verkhovina-1440.jpg 400w, | ||
./img/collection/desktop-1440/[email protected] 800w, | ||
./img/collection/desktop-1280/verkhovina-1280.jpg 347w, | ||
./img/collection/desktop-1280/[email protected] 694w, | ||
./img/collection/tablet/verkhovina-tab.jpg 342w, | ||
./img/collection/tablet/[email protected] 684w, | ||
./img/collection/mob/verkhovina-mob.jpg 335w, | ||
./img/collection/mob/[email protected] 670w | ||
" | ||
sizes="(min-width: 1440px) 400px, (min-width: 1280px) 347px, (min-width: 768px) 342px, (min-width: 320px) 335px" | ||
/> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters