Skip to content

Commit

Permalink
Add a simple banner with Paypal link for our fundraiser (#569)
Browse files Browse the repository at this point in the history
Co-authored-by: Devin Ulibarri <[email protected]>
  • Loading branch information
pikurasa and Devin Ulibarri authored Dec 3, 2024
1 parent 7dbca4a commit b32b666
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
4 changes: 4 additions & 0 deletions _includes/banner-mobile.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<body title="Donation ask.">
<div class="d-flex">
<p style="padding:10px 5% 0 5%;">Our goal is $25k this fall, and every contribution counts! Whether you give $3 or more, your tax-deductible donation will help us continue to provide a unique learning environment where youth can solve authentic tasks and learn by doing. <a href="https://www.paypal.com/donate?campaign_id=NEAV3YL4H6B5S">Donate today!</a></p>
</div>
21 changes: 21 additions & 0 deletions _includes/banner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<body title="Donation ask.">
<div class="d-flex">
<p style="padding:10px 5% 0 5%;">Our goal is $25k this fall, and every contribution counts! Whether you give $3 or more, your tax-deductible donation will help us continue to provide a unique learning environment where youth can solve authentic tasks and learn by doing. <a href="https://www.paypal.com/donate?campaign_id=NEAV3YL4H6B5S">Donate today!</a></p>
<!-- Paypal Start -->
<div id="donate-button-container">
<div id="donate-button"></div>
<script src="https://www.paypalobjects.com/donate/sdk/donate-sdk.js" charset="UTF-8"></script>
<script>
PayPal.Donation.Button({
env:'production',
hosted_button_id:'PTEFYZE5PUWNL',
image: {
src:'https://www.paypalobjects.com/images/Debit_Credit_APM.svg',
alt:'Donate with PayPal button',
title:'Donate to Sugar Labs today!',
}
}).render('#donate-button');
</script>
</div>
<!-- Paypal End -->
</div>
6 changes: 5 additions & 1 deletion _includes/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<a class="navbar-brand" href="{{ site.baseurl }}/">
<img src="{{ site.baseurl }}/assets/logoOpt.png" alt="Sugar Labs logo" height="90" width="270">
</a>
<div>
{% include banner.html %}
</div>
<div class="d-flex justify-content-center">
<div class="zeroMarPadBtm ">
<ul class="mr-5 navbar-nav" id="menuBar">
Expand All @@ -17,7 +20,7 @@
role="button"
aria-haspopup="true"
aria-expanded="false"
>About us<span class="caret"></span
>About<span class="caret"></span
></a>
<div class="dropdown-menu">
<a class="dropdown-item" href="{{ site.baseurl }}/about-us"
Expand Down Expand Up @@ -96,6 +99,7 @@
>
<span class="navbar-toggler-icon"></span>
</button>
{% include banner-mobile.html %}
<div class="collapse navbar-collapse" id="mainNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown">
Expand Down

0 comments on commit b32b666

Please sign in to comment.