Skip to content

Commit

Permalink
feat(nav): add join-us button for memberships
Browse files Browse the repository at this point in the history
  • Loading branch information
jhtrinh committed Jan 14, 2025
1 parent b89c010 commit ad95bbf
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 1 deletion.
4 changes: 4 additions & 0 deletions _data/nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ header:
url: "/get-involved/"
description: "Check out what Southern New Hampshire DSA is working on. Join DSA!"

join:
title: "JOIN US"
url: "https://act.dsausa.org/donate/membership/"
description: "Join DSA!"

# footer links
footer:
Expand Down
8 changes: 8 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@
>
</li>
{%- endif -%} {%- endfor -%}
<li class="nav-item btn-join">
<a
href="{{ site.data.nav.join.url | absolute_url }}"
target="_blank"
title="{{ site.data.nav.join.title }}"
>{{ site.data.nav.join.title }}</a
>
</li>
</ul>
{% if site.search == true %} {%- include search-providers/search_form.html
-%} {% endif %}
Expand Down
6 changes: 6 additions & 0 deletions _sass/fonts/alfaslabone.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@font-face {
font-family: "AlfaSlabOne";
src: url("../fonts/AlfaSlabOne/AlfaSlabOne-Regular.tff") format("tff");
font-weight: normal;
font-style: normal;
}
10 changes: 10 additions & 0 deletions _sass/snh-dsa/nav.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
.btn-join {
align-items: center;
background-color: white;
border-radius: 0.5rem;
display: flex;
font-family: Alfa Slab One;
font-size: var(--size-sm);
padding: .25rem .5rem;
}

.hover-bounce:hover {
animation-name: fa-bounce;
animation-duration: 1s;
Expand Down
6 changes: 5 additions & 1 deletion assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@
// import custom variables and mixins to extend BS4
@import "lone-wolf-theme";

// Import the ManifoldDSA Font
// Import fonts
// manifold is the official dsa font
@import "fonts/manifolddsa.scss";
// alfa slab one is used for the join button
@import "fonts/alfaslabone.scss";


// DSA Related
@import "dsa/colors.scss";
Expand Down
Binary file added assets/fonts/AlfaSlabOne/AlfaSlabOne-Regular.ttf
Binary file not shown.

0 comments on commit ad95bbf

Please sign in to comment.