Skip to content

Commit

Permalink
Feature/39 scroll up (#57)
Browse files Browse the repository at this point in the history
* Added mobile navigation

* Add scroll down link

* Closes #40 fix class name

* Add scroll up link Closes #39

* Change opacity and position of close icon

* add outline for virto-logo

* Add accessibility attributes Closes #42

* Feature/40 scroll down (#51)
  • Loading branch information
ail3ngrimaldi authored Aug 25, 2023
1 parent 9c392de commit 58bf723
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
5 changes: 5 additions & 0 deletions _includes/footer.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@
<li><a href="#">Contacto</a></li>
</ul>
</nav>
<a href="#home" class="scroll-up-link lightest-lavender-text center-arrow">Volver arriba
<figure class="link-arrow">
{% include "up.svg" %}
</figure>
</a>
</footer>
11 changes: 11 additions & 0 deletions _includes/up.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: 9 additions & 0 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ figure.logo svg {
.dark-olive-text { color: var(--clr-olive-darker); }
.light-green-text { color: var(--clr-green-lighter); }
.light-lavender-text { color: var(--clr-lavender-lighter); }
.lightest-lavender-text { color: var(--clr-lavender-lightest); }

a, button, p, .subtitle {
font-family: var(--font-secondary);
Expand All @@ -77,6 +78,11 @@ a, button, p, .subtitle {
left: 90%;
}

.scroll-up-link {
position: relative;
bottom: 20%;
}

/*Home*/
#home, .top-nav { background-color: var(--clr-green-lighter); }
#home button { background-color: var(--clr-green-darker); }
Expand Down Expand Up @@ -119,6 +125,9 @@ a, button, p, .subtitle {
top: auto;
transform: none;
}
.scroll-up-link {
display: none;
}
}

#home .max, #presentacion .max {
Expand Down
2 changes: 1 addition & 1 deletion css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ footer {
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: space-between;
justify-content: end;
flex-wrap: wrap;
margin: 3rem;
gap: 3rem;
Expand Down

0 comments on commit 58bf723

Please sign in to comment.