Skip to content

Commit 4ac0979

Browse files
committed
feat(footer): add new footer markup and logo
1 parent 98a5294 commit 4ac0979

File tree

3 files changed

+59
-23
lines changed

3 files changed

+59
-23
lines changed

assets/images/full-logo.png

44.1 KB
Loading

default.hbs

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,23 @@
2828
{{{body}}}
2929
</main>
3030

31-
<div class="grid">
32-
{{!-- Navbar partial --}}
33-
{{> "footer"}}
34-
</div>
31+
{{> "footer"}}
3532

36-
<script>
37-
let sections = document.querySelectorAll('.section-header');
38-
function handleClick(event) {
39-
const isActive = event.currentTarget.parentNode.classList.contains("active");
40-
if (!isActive) {
41-
event.currentTarget.parentNode.classList.add("active");
42-
} else {
43-
event.currentTarget.parentNode.classList.remove("active");
44-
}
33+
<script>
34+
let sections = document.querySelectorAll('.section-header');
35+
function handleClick(event) {
36+
const isActive = event.currentTarget.parentNode.classList.contains("active");
37+
if (!isActive) {
38+
event.currentTarget.parentNode.classList.add("active");
39+
} else {
40+
event.currentTarget.parentNode.classList.remove("active");
4541
}
46-
sections.forEach(function(section) {
47-
section.addEventListener("click", handleClick);
48-
});
49-
</script>
50-
{{!-- Outputs important scripts - should always be included before closing body tag --}}
51-
{{ghost_foot}}
52-
</body>
42+
}
43+
sections.forEach(function(section) {
44+
section.addEventListener("click", handleClick);
45+
});
46+
</script>
47+
{{!-- Outputs important scripts - should always be included before closing body tag --}}
48+
{{ghost_foot}}
49+
</body>
5350
</html>

partials/footer.hbs

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1-
<footer>
2-
{{navigation type="secondary"}}
3-
</footer>
1+
<footer class='footer'>
2+
<div class='footer__inner'>
3+
<section class='footer__top'>
4+
<img class='footer__logo' src={{asset 'images/full-logo.png'}} />
5+
<div class='kg-button-card'>
6+
<a class='kg-btn' href='#/portal/signup'>Membership</a>
7+
</div>
8+
</section>
9+
<section class='footer__links'>
10+
{{navigation type='secondary'}}
11+
</section>
12+
<section class='footer__bottom'>
13+
<form class='footer__form' data-members-form='subscribe'>
14+
<div class='footer__form__row'>
15+
<input
16+
data-members-email
17+
name='email'
18+
id='get-involved-email'
19+
placeholder='Enter your email...'
20+
required='true'
21+
type='email'
22+
/>
23+
<div class='kg-button-card'>
24+
<button class='kg-btn' type='submit'>Sign Up</button>
25+
</div>
26+
</div>
27+
<span data-members-error></span>
28+
<span data-members-success></span>
29+
</form>
30+
<div class='footer__bottom__socials'>
31+
<div class='footer__bottom__socials__links'>
32+
{{#get 'pages' filter="title:'Footer - Socials'" limit='1'}}
33+
{{#foreach pages}}
34+
{{content}}
35+
{{/foreach}}
36+
{{/get}}
37+
</div>
38+
<small{{date format='YYYY'}} Ruby Central. All Rights Reserved.</small>
39+
</div>
40+
</section>
41+
</div>
42+
</footer>

0 commit comments

Comments
 (0)