Add the Christmas cookie platter fundraiser to the site banner and events page.

This commit is contained in:
blake committed 2026-11-09 12:14:46 -06:00
1 parent 2aea656f0b
commit a0c32c9658
5 files changed
+28 -64

No files matched your search

+6 -6
View File
@@ -14,12 +14,12 @@ ErrorDocument 404 /404.html
RewriteCond %{HTTPS} !=on RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L,NE] RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L,NE]
# Benefit brunch: after the morning of October 11, 2026 on the server clock, # Christmas cookie platters: after the morning of December 20, 2026 on the server clock,
# send /events/ home and mark that response noindex. %{TIME} follows the server # send /events/ home and mark that response noindex. %{TIME} follows the server
# timezone, so this is the morning after the brunch in US time zones. # timezone, so this is the morning after the last pickup in US time zones.
# Keep 20261011060000 in sync with endsAt in script.js (2026-10-11T05:00:00Z). # Keep 20261220070000 in sync with endsAt in script.js (2026-12-20T06:00:00Z).
RewriteCond expr "%{TIME} >= 20261011060000" RewriteCond expr "%{TIME} >= 20261220070000"
RewriteRule ^events(?:/index\.html)?/?$ / [R=302,L,E=brunch_over:1] RewriteRule ^events(?:/index\.html)?/?$ / [R=302,L,E=fundraiser_over:1]
</IfModule> </IfModule>
<IfModule mod_alias.c> <IfModule mod_alias.c>
@@ -39,7 +39,7 @@ ErrorDocument 404 /404.html
Header always set Strict-Transport-Security "max-age=31536000" Header always set Strict-Transport-Security "max-age=31536000"
Header always set X-Content-Type-Options "nosniff" Header always set X-Content-Type-Options "nosniff"
Header always set X-Frame-Options "DENY" Header always set X-Frame-Options "DENY"
Header always set X-Robots-Tag "noindex" env=brunch_over Header always set X-Robots-Tag "noindex" env=fundraiser_over
</IfModule> </IfModule>
<IfModule mod_brotli.c> <IfModule mod_brotli.c>
+4 -4
View File
@@ -65,13 +65,13 @@ The production server should support Apache `.htaccess` directives for:
- Compression and browser caching - Compression and browser caching
- Redirects from previous page URLs - Redirects from previous page URLs
## Benefit Brunch ## Christmas Cookie Platters
The October 10, 2026 brunch stays up through the end of that Saturday, US Central time. At midnight, the announcement comes down on its own. The cookie platter fundraiser stays up through Saturday, December 19, 2026, the last pickup morning, US Central time. At midnight, the announcement comes down on its own.
`/events/` then sends people home. The events page does that before it paints, and Apache redirects the URL with `noindex` so crawlers do not keep it. The date, place, and ticket copy can stay in `events/index.html`. After that night, the page is no longer served. `/events/` then sends people home. The events page does that before it paints, and Apache redirects the URL with `noindex` so crawlers do not keep it.
The cutoff is `2026-10-11T05:00:00Z` in `script.js` and `events/index.html`. `.htaccess` uses `20261011060000`, which follows the server clock and falls on the morning after the brunch in US time zones. For a later event, change those three together and replace the copy on the events page. The cutoff is `2026-12-20T06:00:00Z` in `script.js` and `events/index.html`. `.htaccess` uses `20261220070000`, which follows the server clock and falls on the morning after the last pickup in US time zones. For a later event, change those three together and replace the copy on the events page.
## Privacy ## Privacy
+12 -48
View File
@@ -14,8 +14,8 @@
} }
} catch (error) {} } catch (error) {}
var brunchEndsAt = Date.parse("2026-10-11T05:00:00Z"); var platterEndsAt = Date.parse("2026-12-20T06:00:00Z");
if (isFinite(brunchEndsAt) && Date.now() >= brunchEndsAt) { if (isFinite(platterEndsAt) && Date.now() >= platterEndsAt) {
document.documentElement.hidden = true; document.documentElement.hidden = true;
location.replace("../"); location.replace("../");
} }
@@ -23,9 +23,9 @@
</script> </script>
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="referrer" content="no-referrer" /> <meta name="referrer" content="no-referrer" />
<meta name="description" content="Join Whispers of Love, Hope, and Joy for the Benefit Brunch on October 10, 2026, at Trinity Reformed Church in Orange City, Iowa." /> <meta name="description" content="Order a $40 Christmas cookie platter baked by the women on campus. Pick up the morning of December 12 or December 19 at the Ministry Center in Sioux Center." />
<meta property="og:title" content="Benefit Brunch | Whispers of Love, Hope, and Joy" /> <meta property="og:title" content="Christmas Cookie Platters | Whispers of Love, Hope, and Joy" />
<meta property="og:description" content="A morning of brunch, auctions, and stories on October 10, 2026, at Trinity Reformed Church in Orange City." /> <meta property="og:description" content="A $40 platter of cookies, fudge, and clusters, baked on campus. Morning pickup on December 12 or December 19." />
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
<meta property="og:site_name" content="Whispers of Love, Hope, and Joy" /> <meta property="og:site_name" content="Whispers of Love, Hope, and Joy" />
<link rel="canonical" href="https://whispersoflhj.org/events/" /> <link rel="canonical" href="https://whispersoflhj.org/events/" />
@@ -46,7 +46,7 @@
<script src="../script.js" defer></script> <script src="../script.js" defer></script>
<script defer src="https://stats.cosmicallycreative.com/script.js" data-website-id="69d5dd77-8af4-4feb-833b-759111ac0679"></script> <script defer src="https://stats.cosmicallycreative.com/script.js" data-website-id="69d5dd77-8af4-4feb-833b-759111ac0679"></script>
<title>Benefit Brunch | Whispers of Love, Hope, and Joy</title> <title>Christmas Cookie Platters | Whispers of Love, Hope, and Joy</title>
</head> </head>
<body class="event-page"> <body class="event-page">
<a class="skip-link" href="#main-content">Skip to main content</a> <a class="skip-link" href="#main-content">Skip to main content</a>
@@ -88,56 +88,20 @@
<section class="event-hero"> <section class="event-hero">
<div class="event-hero-content site-container"> <div class="event-hero-content site-container">
<div class="event-hero-copy content-stack"> <div class="event-hero-copy content-stack">
<p class="section-tag text-teal">Benefit Brunch</p> <p class="section-tag text-teal">Christmas Cookie Platters</p>
<h1>Joy comes in the <em>morning.</em></h1> <h1>Baked on campus, <em>given</em> back.</h1>
<p class="description">Come share a table on Saturday, October 10. The morning includes brunch, a live and silent auction, and time together for the work of Whispers.</p> <p class="description">The women living on campus are baking Christmas platters again, as a way to give back. Each platter is $40 and holds six of each: peanut butter blossom cookies, fudge, pecan caramel clusters, Oreo truffles, and thumb print cookies.</p>
<div class="event-hero-actions"> <div class="event-hero-actions">
<a class="btn btn--large" href="https://whispersoflhj.networkforgood.com/events/104455-benefit-brunch" target="_blank" rel="noreferrer">Get Tickets</a> <a class="btn btn--large" href="https://whispersoflhj.networkforgood.com/projects/309423-christmas-cookie-platter" target="_blank" rel="noreferrer">Order a Platter</a>
<a class="link-btn uppercase text-teal" href="#the-morning"><span>See the details</span></a>
</div> </div>
</div> </div>
<figure class="event-qr"> <figure class="event-qr">
<img width="342" height="342" decoding="async" src="../img/benefit-brunch-qr.png" alt="QR code that opens the Benefit Brunch ticket page"> <img width="450" height="450" decoding="async" src="../img/cookie-platter-qr.png" alt="QR code that opens the Christmas cookie platter order page">
<figcaption>Scan to get tickets</figcaption> <figcaption>Scan to order</figcaption>
</figure> </figure>
</div> </div>
</section> </section>
<section id="the-morning" class="event-details-section" aria-labelledby="event-details-heading">
<div class="site-container">
<div class="event-details-heading animate-on-scroll">
<div class="content-stack">
<p class="section-tag text-teal">The morning</p>
<h2 id="event-details-heading">A table, a story, and a way to help.</h2>
</div>
<p class="description">Brunch is catered by Woudstra Meat Market. Iowa author Jennifer Dukes Lee will speak, and the room will hold both a live auction and a silent auction.</p>
</div>
<div class="event-details-grid">
<article class="event-detail-card animate-on-scroll">
<p class="item-number">01</p>
<h3>When</h3>
<p>Saturday, October 10, 2026<br>9:00–11:30 a.m.</p>
</article>
<article class="event-detail-card event-detail-card--teal animate-on-scroll">
<p class="item-number text-yellow">02</p>
<h3>Where</h3>
<p>
<a href="https://maps.google.com/?q=Trinity+Reformed+Church,+201+St+Paul+Ave+SE,+Orange+City,+IA+51041" target="_blank" rel="noreferrer">Trinity Reformed Church</a><br>
201 St Paul Ave SE<br>
Orange City, IA 51041
</p>
</article>
<article class="event-detail-card event-detail-card--yellow animate-on-scroll">
<p class="item-number text-teal">03</p>
<h3>Tickets</h3>
<p>Scan the code above, or open the ticket page to reserve your seat.</p>
<a class="link-btn uppercase text-teal" href="https://whispersoflhj.networkforgood.com/events/104455-benefit-brunch" target="_blank" rel="noreferrer"><span>Open the ticket page</span></a>
</article>
</div>
</div>
</section>
</main> </main>
<footer> <footer>
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

+6 -6
View File
@@ -6,14 +6,14 @@ const QUICK_EXIT_URL = "https://www.google.com/";
const QUICK_EXIT_KEY = "quick-exit"; const QUICK_EXIT_KEY = "quick-exit";
const MOBILE_NAV_QUERY = window.matchMedia("(max-width: 88em)"); const MOBILE_NAV_QUERY = window.matchMedia("(max-width: 88em)");
// Benefit Brunch stays up through Saturday, October 10, 2026, US Central time. // Cookie platters stay up through Saturday, December 19, 2026, US Central time.
// endsAt is midnight at the start of Sunday (CDT, UTC−5). // endsAt is midnight at the start of Sunday (CST, UTC−6).
// After that, the announcement comes down and /events/ sends visitors home. // After that, the announcement comes down and /events/ sends visitors home.
// Keep this instant in sync with the events page head script and the .htaccess brunch rule. // Keep this instant in sync with the events page head script and the .htaccess rule.
const eventAnnouncement = { const eventAnnouncement = {
label: "Benefit Brunch", label: "Cookie Platters",
date: "Oct 10", date: "Dec 12 & 19",
endsAt: "2026-10-11T05:00:00Z", endsAt: "2026-12-20T06:00:00Z",
}; };
function eventIsActive() { function eventIsActive() {