Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented new mobile footer design 2554 #3183

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions _data/navigation/getintouch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- name: Get in Touch
link: /#get-in-touch
bolded: true

- name: Contact Us
link: /#contact-us

- name: Events
link: /events
18 changes: 18 additions & 0 deletions _data/navigation/joinus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
- name: Join Us
link: /join
bolded: true

- name: Donate
link: /donate

- name: Advise Us
link: /join#advise

- name: Volunteer with Us
link: /join#volunteer

- name: Partner with Us
link: /join#partner

- name: Submit your Pitch
link: mailto:[email protected]?subject=Submitting my pitch to Hack for LA
18 changes: 18 additions & 0 deletions _data/navigation/ourwork.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
- name: Our Work
link: /#
bolded: true

- name: About Us
link: /about

- name: Program Areas
link: /program-areas

- name: Projects
link: /projects

- name: Our Wins
link: /wins

- name: Press
link: /about#news
9 changes: 9 additions & 0 deletions _data/navigation/toolkit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- name: Toolkit
link: /toolkit
bolded: true

- name: Guides
link: /toolkit#guides

- name: External Resources
link: /toolkit#external-resources
63 changes: 63 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,69 @@
<nav class="footer-nav">
<div class="header-links">
<a href="/donate/" target="_blank"><button class="btn btn-primary-on-dark btn-md-narrow btn--donate-footer">Donate</button></a>
<div class="footer-columns">
<div class="column">
{% for item in site.data.navigation.ourwork %}
<li>
{% if item.bolded == true %}
<a style="font-weight:bold" href="{{ item.link }}">
{{item.name}}
</a>
{% else %}
<a href="{{ item.link }}">
{{item.name}}
</a>
{% endif %}
</li>
{% endfor %}
</div>
<div class="column">
{% for item in site.data.navigation.joinus %}
<li>
{% if item.bolded == true %}
<a style="font-weight:bold" href="{{ item.link }}">
{{item.name}}
</a>
{% else %}
<a href="{{ item.link }}">
{{item.name}}
</a>
{% endif %}
</li>
{% endfor %}
</div>
<div class="column">
{% for item in site.data.navigation.getintouch %}
<li>
{% if item.bolded == true %}
<a style="font-weight:bold" href="{{ item.link }}">
{{item.name}}
</a>
{% else %}
<a href="{{ item.link }}">
{{item.name}}
</a>
{% endif %}
</li>
{% endfor %}
</div>
<div class="column">
{% for item in site.data.navigation.toolkit %}
<li>
{% if item.bolded == true %}
<a style="font-weight:bold" href="{{ item.link }}">
{{item.name}}
</a>
{% else %}
<a href="{{ item.link }}">
{{item.name}}
</a>
{% endif %}
</li>
{% endfor %}
</div>
</div>

<div class="footer-links">
<div class="credits-page"><a href="/credits">Credits</a>&nbsp;|&nbsp;<a href="/sitemap">Site Map</a>&nbsp;|&nbsp;<a href="/join">Join Us</a></div>
<ul class="inline-list header-list">
Expand Down
40 changes: 38 additions & 2 deletions _sass/components/_footer.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
.main-footer {
position: absolute;
position: sticky;
width: 100%;
background: $color-darkblue;
color: $color-white;
padding: 42px 25px 20px;
bottom: 0;

margin-top: -205px;
@media #{$bp-mobile-up} {
margin-top: -165px;
}

a {
color: $color-white;
text-decoration: none;
Expand All @@ -19,6 +23,37 @@
margin: 0 0 25px auto;
}
}
.footer-columns{
display: flex;
flex-wrap: wrap;
list-style-type: none;
justify-content: center;
margin-top: 20px;

.column{
margin-bottom: 10px;
flex: 0 0 50%;
padding: 10px;
@media #{$bp-mobile-up} {
flex: none;
padding-right: 150px;
}

}

li{
margin: 10px
}

@media #{$bp-mobile-up} {
align-items: flex-start;
display: flex;
justify-content: flex-start;
margin: 0;


}
}

.footer-links {
display: flex;
Expand All @@ -42,4 +77,5 @@
margin: 0;
}
}

}