Skip to content

Commit

Permalink
our team - bugfix
Browse files Browse the repository at this point in the history
add to separate files
  • Loading branch information
TetiZ committed Feb 2, 2024
1 parent b31e1a8 commit b1d0f7d
Show file tree
Hide file tree
Showing 6 changed files with 518 additions and 0 deletions.
126 changes: 126 additions & 0 deletions src/css/layout/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 2 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
<!-- SCROLL -->
<load src="./partials/scroll-btn.html" />

<!-- Team -->
<load src="./partials/team.html" />
<!-- Scripts -->
<script type="module" src="./main.js" defer></script>
</body>
Expand Down
12 changes: 12 additions & 0 deletions src/js/our-team-modal.js
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');
});
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ import('./js/exersises');
import('./js/submit-email-footer');
import('./js/quote');
import('./js/page-after-switch');
import('./js/our-team-modal');
17 changes: 17 additions & 0 deletions src/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,21 @@
</div>
</div>
</div>
<div class="our-stars">
<p class="footer-text-team">
Created with
<svg
class="footer-icon-team"
width="16"
height="16"
aria-label="icon heart"
>
<use href="./img/icons.svg#icon-heart" />
</svg>
</p>
<p class="footer-text-team">
Developed by
<button class="footer-team-link" type="button">GoIT Students</button>
</p>
</div>
</footer>
Loading

0 comments on commit b1d0f7d

Please sign in to comment.