Skip to content

Commit

Permalink
footer all done
Browse files Browse the repository at this point in the history
  • Loading branch information
TetiZ committed Feb 1, 2024
1 parent 2c5ba83 commit 481ad79
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 7 deletions.
15 changes: 14 additions & 1 deletion src/css/layout/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@
margin-bottom: 12px;
}

.footer-text-team {
.footer-text-team,
.footer-team-link {
color: var(--secondary-text-color);
font-size: 12px;
line-height: 0.83;
Expand All @@ -256,6 +257,8 @@

.footer-team-link {
text-decoration: underline;
border: none;
background-color: transparent;
}

.footer-icon-team {
Expand Down Expand Up @@ -286,6 +289,16 @@
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 {
Expand Down
3 changes: 2 additions & 1 deletion src/css/layout/pop-ups.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@
visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.pop-ex-close-btn {
.pop-ex-close-btn,
.footer-close-btn {
position: absolute;
display: flex;
justify-content: center;
Expand Down
Binary file added src/img/our-team/Anastasiia.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/js/submit-email-footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,16 @@ form.addEventListener('submit', async e => {
console.log('Електронна пошта не введена.');
}
});

// 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');
});
10 changes: 5 additions & 5 deletions src/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@
</p>
<p class="footer-text-team">
Developed by
<a class="footer-team-link" href="">GoIT Students</a>
<button class="footer-team-link" type="button">GoIT Students</button>
</p>
</div>

<!-- Modal -->
<!-- <div class="footer-modal-backdrop visually-hidden">
<div class="footer-modal-backdrop">
<div class="our-team-footer-card">
<button class="pop-ex-close-btn">
<button class="footer-close-btn">
<svg
class="pop-ex-close-btn-icon"
width="24"
Expand Down Expand Up @@ -241,7 +241,7 @@ <h3 class="footer-team-member-name">Iryna</h3>
<li class="footer-team-list-item">
<img
class="footer-team-member-img"
src=""
src="./img/our-team/Anastasiia.jpg"
width="164"
alt="photo of team member"
/>
Expand Down Expand Up @@ -442,5 +442,5 @@ <h3 class="footer-team-member-name">Tetiana</h3>
</li>
</ul>
</div>
</div> -->
</div>
</footer>

0 comments on commit 481ad79

Please sign in to comment.