generated from goitacademy/vanilla-app-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add to separate files
- Loading branch information
Showing
6 changed files
with
518 additions
and
0 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 |
---|---|---|
|
@@ -243,3 +243,129 @@ | |
background-image: url(/img/footer/[email protected]); | ||
} | ||
} | ||
|
||
/* footer - team */ | ||
@media screen and (max-width: 1279px) { | ||
.our-stars { | ||
display: none; | ||
} | ||
} | ||
@media screen and (min-width: 1280px) { | ||
.our-stars { | ||
display: flex; | ||
gap: 8px; | ||
justify-content: center; | ||
align-items: baseline; | ||
margin-top: 0; | ||
margin-bottom: 12px; | ||
} | ||
|
||
.footer-text-team, | ||
.footer-team-link { | ||
color: var(--secondary-text-color); | ||
font-size: 12px; | ||
line-height: 0.83; | ||
letter-spacing: -0.02em; | ||
opacity: 0.9; | ||
} | ||
|
||
.footer-team-link { | ||
text-decoration: underline; | ||
border: none; | ||
background-color: transparent; | ||
} | ||
|
||
.footer-icon-team { | ||
margin-left: 8px; | ||
fill: none; | ||
stroke: var(--secondary-text-color); | ||
animation: pulse 2s infinite; | ||
} | ||
|
||
@keyframes pulse { | ||
0% { | ||
transform: scale(1); | ||
} | ||
50% { | ||
transform: scale(1.2); | ||
} | ||
100% { | ||
transform: scale(1); | ||
} | ||
} | ||
} | ||
|
||
/* modal */ | ||
.footer-modal-backdrop { | ||
position: fixed; | ||
z-index: 100; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background: rgba(27, 27, 27, 0.6); | ||
opacity: 0; | ||
visibility: hidden; | ||
pointer-events: none; | ||
} | ||
.footer-modal-backdrop.is-open { | ||
opacity: 1; | ||
visibility: visible; | ||
pointer-events: auto; | ||
transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1), | ||
visibility 250ms cubic-bezier(0.4, 0, 0.2, 1); | ||
} | ||
|
||
.our-team-footer-card { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1); | ||
background-color: var(--secondary-text-color); | ||
border-radius: 20px; | ||
padding: 32px; | ||
} | ||
|
||
.footer-team-list { | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 24px; | ||
} | ||
|
||
.footer-team-list-item { | ||
width: calc((100% - 96px) / 5); | ||
} | ||
.footer-team-member-img:hover, | ||
.footer-team-member-img:focus { | ||
transform: scale(1.05); | ||
box-shadow: 0 0 25px #0f0e0eb3; | ||
} | ||
|
||
.footer-team-member-img { | ||
border-radius: 50%; | ||
margin-bottom: 8px; | ||
} | ||
|
||
.footer-team-member-info { | ||
width: 1096px; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 4px; | ||
} | ||
|
||
.footer-team-member-name { | ||
color: var(--main-text-color); | ||
} | ||
|
||
.team-sm-icon { | ||
fill: var(--dark-grey); | ||
} | ||
|
||
.team-sm-icon:hover, | ||
.team-sm-icon:focus { | ||
fill: #5f6560; | ||
} |
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,12 @@ | ||
// MODAL | ||
const closeBtnFooter = document.querySelector('.footer-close-btn'); | ||
const backDropFooter = document.querySelector('.footer-modal-backdrop'); | ||
|
||
const openFooterModalBtn = document.querySelector('.footer-team-link'); | ||
openFooterModalBtn.addEventListener('click', function () { | ||
backDropFooter.classList.add('is-open'); | ||
}); | ||
|
||
closeBtnFooter.addEventListener('click', function () { | ||
backDropFooter.classList.remove('is-open'); | ||
}); |
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
Oops, something went wrong.