Skip to content

Commit

Permalink
responsive footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagameow committed Jul 22, 2024
1 parent 21d6e26 commit 8922cf4
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 24 deletions.
5 changes: 5 additions & 0 deletions src/assets/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,8 @@ body {
background-size: cover;
}
}

button {
font-family: Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans',
'Helvetica Neue', sans-serif;
}
54 changes: 48 additions & 6 deletions src/layout/AppFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,60 @@ const hideContactSection = () => {
display: flex;
align-items: center;
justify-content: center;
gap: 5px 50px;
gap: 0 50px;
flex-wrap: wrap;
padding-top: 3rem;
padding-bottom: 1rem;
height: calc(100px + 4rem);
@media (--breakpoint-tablet-large) {
padding-top: 0;
padding-bottom: 0;
height: 100px;
}
}
.app-footer__side {
background: url('assets/footer-bg-side.svg') bottom no-repeat;
background: url('assets/footer-bg-link-mobile.svg') bottom no-repeat;
width: 145px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
transition: transform 300ms ease-out;
button {
font-size: 0.875rem;
}
a {
color: var(--color-text);
width: 100%;
text-align: center;
}
&:has(a.router-link-exact-active) {
font-weight: 900;
transform: initial !important;
}
.router-link-exact-active {
font-weight: 900;
transform: initial !important;
}
&:hover {
transform: translateY(-5px) scale(1.1);
}
@media (--breakpoint-desktop) {
background: url('assets/footer-bg-link.svg') bottom no-repeat;
width: 200px;
font-size: 0.9375rem;
button {
font-size: 0.9375rem;
}
}
}
Expand All @@ -79,12 +118,15 @@ const hideContactSection = () => {
}
.app-footer__contact-section {
background: url('assets/footer-full-bg.svg') top no-repeat;
width: 700px;
height: 80px;
background: url('assets/footer-full-bg-mobile.svg') top no-repeat;
display: flex;
align-items: center;
justify-content: space-between;
@media (--breakpoint-desktop) {
background: url('assets/footer-full-bg.svg') top no-repeat;
width: 700px;
}
}
.app-footer__contact-section-placeholder {
Expand All @@ -106,7 +148,7 @@ const hideContactSection = () => {
}
p {
font-weight: 600;
font-weight: 900;
}
a {
Expand Down
File renamed without changes
17 changes: 17 additions & 0 deletions src/layout/assets/footer-bg-link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions src/layout/assets/footer-bg-mobile.svg

This file was deleted.

9 changes: 0 additions & 9 deletions src/layout/assets/footer-bg.svg

This file was deleted.

9 changes: 9 additions & 0 deletions src/layout/assets/footer-full-bg-mobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8922cf4

Please sign in to comment.