Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
cb2e459
Create Bridger component
MichaelT372 Feb 27, 2025
b25933d
merge main and rebuild
MichaelT372 Jul 28, 2025
0e20497
update bridger config
MichaelT372 Jul 28, 2025
e43001b
quiz progress
MichaelT372 Aug 27, 2025
8e639e8
quiz updates
MichaelT372 Aug 28, 2025
52410c7
quiz progress
MichaelT372 Aug 28, 2025
f493d1b
finish quiz initial dev
MichaelT372 Sep 1, 2025
1f8fdca
QA feedback
MichaelT372 Sep 4, 2025
2b7d1a1
merge main and rebuild
MichaelT372 Sep 8, 2025
279fdef
add customisable amount threshold
MichaelT372 Sep 8, 2025
7da6898
quiz styling updates
MichaelT372 Sep 10, 2025
bdfeddf
quiz edits
MichaelT372 Sep 15, 2025
a24df0d
ENgrid Update
fernanDOTdo Oct 8, 2025
8a51555
Browserlist Update
fernanDOTdo Oct 8, 2025
08d2839
Deploying Header & Footer
fernanDOTdo Oct 15, 2025
bb8140d
Implementing Minimal Header Feature
fernanDOTdo Oct 15, 2025
b1131a3
add 1 column quiz layout
MichaelT372 Oct 20, 2025
8ba0f8e
remove header margin on mobile on 1 column quiz
MichaelT372 Oct 20, 2025
0e69652
quiz styling edits
MichaelT372 Oct 29, 2025
3d005dc
merge main and rebuild
MichaelT372 Oct 29, 2025
fcfa011
dont show page contents until we know they will be viewing the form o…
MichaelT372 Nov 3, 2025
498aba6
ENgrid Update
fernanDOTdo Nov 4, 2025
a5bd9e4
Browserlist Update
fernanDOTdo Nov 4, 2025
e6207db
ENgrid Update
fernanDOTdo Nov 6, 2025
5d39e24
Fix Header Logo for Layout = None
fernanDOTdo Nov 7, 2025
6f6fb04
Add top margin to WWF theme h1 elements
fernanDOTdo Nov 13, 2025
5495554
merge main and rebuild
MichaelT372 Nov 13, 2025
200a71f
change bridger threshold to 500
MichaelT372 Nov 13, 2025
4bb14fa
Merge pull request #80 from 4site-interactive-studios/bridger
MichaelT372 Nov 13, 2025
2bac7b2
Fix Venmo detection logic using MutationObserver and height check
fernanDOTdo Dec 1, 2025
4ba5c9a
ENgrid Version Adjust
fernanDOTdo Dec 1, 2025
eb05232
Merge pull request #81 from 4site-interactive-studios/venmo-fix
fernanDOTdo Dec 1, 2025
254e38e
Add ACH submit button padding for WWF multistep theme
fernanDOTdo Dec 5, 2025
8019f5f
Merge branch 'main' into quiz
fernanDOTdo Dec 15, 2025
7294330
Merge pull request #82 from 4site-interactive-studios/quiz
fernanDOTdo Dec 15, 2025
894fe2e
Add payment type visibility (paypal, card, and ach) classes
fernanDOTdo Dec 16, 2025
9cc8cb7
Tweak for showif-* payment types ACH, Card, Paypal
fernanDOTdo Dec 16, 2025
d63e0fd
ENgrid Update
fernanDOTdo Jan 11, 2026
83698f7
Browserlist Update
fernanDOTdo Jan 11, 2026
581384b
show background image section on pagebuilder for 1 column quiz
MichaelT372 Jan 14, 2026
71b5e86
ENgrid Update
fernanDOTdo Jan 17, 2026
3aafcd3
Deploying "Block jcb and diner's club payment types"
fernanDOTdo Jan 17, 2026
90b2417
Merge branch 'main' into january-2026
fernanDOTdo Jan 17, 2026
ba4952b
Merge pull request #83 from 4site-interactive-studios/january-2026
fernanDOTdo Jan 17, 2026
56e13e0
replace disabled state with a semantic disabled effect
MichaelT372 Jan 21, 2026
8656260
Only permit visa, mastercard, amex, and discover.
StoneMoney Feb 2, 2026
14e277f
top align radio buttons to label
MichaelT372 Feb 4, 2026
014954e
ENgrid Update
fernanDOTdo Feb 9, 2026
2053c22
Update bank account donation tooltip
MichaelT372 Feb 9, 2026
5ac36d8
Styling 2026 Header
fernanDOTdo Oct 3, 2025
7e12f54
Styling 2026 Footer
StoneMoney Oct 3, 2025
1504906
Header QA Fixes
StoneMoney Oct 8, 2025
fb0fdb1
Static Assets
fernanDOTdo Oct 8, 2025
e0e68d9
Header Hover Tweaks
fernanDOTdo Oct 8, 2025
c8a18df
2026 Body Styles first pass
StoneMoney Oct 9, 2025
e9c6bcd
Header padding size adjustments
StoneMoney Oct 9, 2025
15c421a
QA Feedback Response
StoneMoney Oct 10, 2025
a07cd83
ENgrid Update
fernanDOTdo Oct 10, 2025
4dc655b
Client Feedback Pass 3
StoneMoney Oct 21, 2025
31d6750
Line height
StoneMoney Oct 24, 2025
61abd41
Client Feedback Pass 4
StoneMoney Oct 27, 2025
158b2b8
Full Width donation summary
StoneMoney Oct 28, 2025
4916f9f
Mobile Padding Adjustment
fernanDOTdo Nov 17, 2025
dd647c1
2026 Layout fixes for full image bgs and minimal header mode
StoneMoney Feb 11, 2026
2bea696
Fix logo position and button alignments
StoneMoney Feb 11, 2026
886e9d7
Reduce body-top padding for image bg pages
StoneMoney Feb 18, 2026
a124f6d
Reduced Page Title H1 Size on Noheader Pages
StoneMoney Feb 19, 2026
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
3,282 changes: 1,417 additions & 1,865 deletions dist/engrid.css

Large diffs are not rendered by default.

11,145 changes: 5,755 additions & 5,390 deletions dist/engrid.js

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions dist/engrid.min.css

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions dist/engrid.min.js

Large diffs are not rendered by default.

4,665 changes: 2,956 additions & 1,709 deletions package-lock.json

Large diffs are not rendered by default.

23 changes: 19 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@ import {

import "./sass/main.scss";
import { customScript } from "./scripts/main";
import { pageHeaderFooter } from "./scripts/page-header-footer";
// import { pageHeaderFooter } from "./scripts/page-header-footer";
import DonationLightboxForm from "./scripts/donation-lightbox-form";
import TweetToTarget from "./scripts/tweet-to-target";
import { AnnualLimit } from "./scripts/annual-limit";
import { OnLoadModal } from "./scripts/on-load-modal";
import MultistepForm from "./scripts/multistep-form";
import { AddDAF } from "./scripts/add-daf";
import { Bridger } from "./scripts/Bridger";

import { Quiz } from "./scripts/quiz";

const options: Options = {
AutoYear: true,
Expand Down Expand Up @@ -85,6 +88,17 @@ const options: Options = {
placement: "beforebegin",
},
},
VGS: {
"transaction.ccnumber": {
validCardBrands: [
{ type: "visa" },
{ type: "visaelectron" },
{ type: "mastercard" },
{ type: "amex" },
{ type: "discover" },
],
},
},
onLoad: () => {
// Send a GTM event is the Page Type is SUBSCRIBEFORM
if (App.getPageType() === "SUBSCRIBEFORM") {
Expand All @@ -108,7 +122,7 @@ const options: Options = {
(<any>window).DonationLightboxForm = DonationLightboxForm;
new DonationLightboxForm(DonationAmount, DonationFrequency, App);
customScript(App, DonationFrequency);
pageHeaderFooter(App); // Added this line to trigger pageHeaderFooter
// pageHeaderFooter(App); // Added this line to trigger pageHeaderFooter
new TweetToTarget(App, EnForm);
// Expand all contact sections on EMAILTOTARGET pages
if (App.getPageType() === "EMAILTOTARGET") {
Expand All @@ -128,8 +142,7 @@ const options: Options = {
submitButton.setAttribute(
"data-balloon",
`When you click the button below, a new window will appear.
Follow the steps to securely donate from your bank account to WWF
(through Engaging Networks and Plaid).`
Follow the steps to securely donate from your bank account to WWF.`
);
submitButton.setAttribute("data-balloon-pos", "up");
}
Expand Down Expand Up @@ -217,6 +230,8 @@ const options: Options = {
// Hide the unsubscribe all radio button
unsubscribeAllRadio.closest(".en__field")?.classList.add("hide");
}
new Quiz();
new Bridger();
},
onResize: () => console.log("Starter Theme Window Resized"),

Expand Down
3 changes: 2 additions & 1 deletion src/sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
/* CLIENT THEME FONTS AND STYLES */
@import "./page-template-fonts";
@import "./page-template-styles";
@import "./page-header-footer";
// @import "./page-header-footer";
@import "./page-header-footer-2026";
@import "./non-embed-multistep";

/* ENGRID PAGE TEMPLATES MAKES THE BODY INVISIBLE SO THE USER NEVER SEE'S AN UNSTYLED PAGE*/
Expand Down
167 changes: 167 additions & 0 deletions src/sass/page-header-footer-2026.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
#header {
background: #fff;
border-bottom: 1px solid #f3f3f3;
padding: 12px 24px;

@media (min-width: 40rem) {
padding: 12px 48px;
}

@media (min-width: 64rem) {
padding: 12px 80px;
}

.container {
max-width: 1440px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}



.logo img {
width: 41px;
height: 60px;
display: block;
}

.cta {
display: flex;
gap: 16px;

.btn {
min-width: 120px;
border-radius: 32px;
color: #ffffff;
text-align: center;
font-family: "Open Sans", sans-serif;
font-size: 18px;
font-weight: 600;
line-height: 1;
letter-spacing: 0.18px;
padding: 16px 20px;
text-decoration: none;
transition: background 0.2s ease;

&.gifts {
background: #6f190b;
&:hover,
&:active {
background: #B02F1A;
}
}

&.donate {
background: #cb4328;
&:hover,
&:active {
background: #B02F1A;
}
}
}
}

@media (max-width: 800px) {
.cta {
display: none;
}
}
}

#footer {
background: #fefcf9;
padding: 64px 0;

.container {
max-width: 1200px;
width: 100%;
padding: 0 80px;
margin: 0 auto;
display: grid;
grid-template-columns: 62px auto 168px;
gap: 24px 40px;
.footer-copy,
.footer-links {
grid-column: 1 / -1;
max-width: 1063px;
}
}

.footer-logo {
img {
width: 62px;
height: 91px;
}
}

.footer-address {
font-size: 16px;
line-height: 146%;
margin: auto 0;
address {
font-style: normal;
}
}

.footer-social {
display: flex;
gap: 24px;
align-items: center;
}

.footer-copy {
margin-top: 4px;
p {
font-weight: 400;
font-size: 16px;
line-height: 146%;
letter-spacing: 1%;
margin: 0 0 24px 0;
&:last-child {
margin-bottom: 0;
}
}
}

.footer-links > ul {
margin: 0;
display: flex;
gap: 16px;
li > a {
color: var(--label_color);
font-size: 18px;
font-weight: 600;
text-decoration: underline;
text-decoration-thickness: 2px;
text-underline-offset: 8px;
}
}

@media screen and (max-width: 1200px) {
.footer-links > ul {
display: flex;
flex-direction: column;
}
}

@media screen and (max-width: 767px) {
.container {
padding: 0 24px;
max-width: unset;
grid-template-columns: 62px auto;
gap: 32px;
.footer-social,
.footer-copy,
.footer-links {
grid-column: 1 / -1;
max-width: 100%;
}
}

.footer-copy {
margin-top: 0px;
}
}
}
Loading