From 05d6d16c9cf7b9e54808ce800d7b7a0e80d2020c Mon Sep 17 00:00:00 2001 From: blake Date: Mon, 5 Oct 2026 09:18:15 -0500 Subject: [PATCH] Add event page for Benefit Brunch with announcement functionality and styling updates. Implemented event details, QR code, and responsive design in CSS. Enhanced accessibility and user experience with announcement messages and quick exit feature. --- css/queries.css | 106 +++++++++++++++++++- css/style.css | 156 +++++++++++++++++++++++++++++ events/index.html | 201 ++++++++++++++++++++++++++++++++++++++ img/benefit-brunch-qr.png | Bin 0 -> 5962 bytes script.js | 44 +++++++++ 5 files changed, 502 insertions(+), 5 deletions(-) create mode 100644 events/index.html create mode 100644 img/benefit-brunch-qr.png diff --git a/css/queries.css b/css/queries.css index 9437218..b2931c5 100644 --- a/css/queries.css +++ b/css/queries.css @@ -14,7 +14,8 @@ .who-we-are-hero-content, .get-involved-hero-content, .staying-safe-hero-content, - .shop-church-hero-content { + .shop-church-hero-content, + .event-hero-content { gap: 5rem; } @@ -300,6 +301,28 @@ margin: 0 auto; } + .event-hero-content, + .event-details-heading { + grid-template-columns: 1fr; + gap: 5rem; + } + + .event-hero-copy { + max-width: 100rem; + } + + .event-qr { + width: min(100%, 42rem); + margin: 0 auto; + } + + .event-details-heading > .description { + padding-top: 3rem; + padding-left: 0; + border-top: 1px solid var(--color-gray); + border-left: 0; + } + } @media (max-width: 59em) { @@ -399,7 +422,8 @@ padding: 8rem 0 12rem; } - .shop-church-hero { + .shop-church-hero, + .event-hero { padding: 8rem 0 12rem; } @@ -411,6 +435,46 @@ display: none; } + .announcement-bar--active { + grid-template-areas: + "emergency exit" + "message message"; + } + + .announcement-bar--active .emergency-message { + grid-area: emergency; + } + + .announcement-bar--active .quick-exit { + grid-area: exit; + } + + .announcement-bar--active .announcement-message { + display: block; + grid-area: message; + padding-top: 0.4rem; + text-align: center; + } + + .event-details-grid { + grid-template-columns: 1fr; + } + + body:has(.announcement-bar--active) .hero-section { + padding-top: 24rem; + } + + body:has(.announcement-bar--active) .get-help-main, + body:has(.announcement-bar--active) .what-we-do-main, + body:has(.announcement-bar--active) .talitha-koum-main, + body:has(.announcement-bar--active) .who-we-are-main, + body:has(.announcement-bar--active) .get-involved-main, + body:has(.announcement-bar--active) .staying-safe-main, + body:has(.announcement-bar--active) .shop-church-main, + body:has(.announcement-bar--active) .event-main { + padding-top: 20rem; + } + .immediate-help-content, .safety-guide-content { grid-template-columns: 1fr; @@ -857,10 +921,26 @@ .who-we-are-main, .get-involved-main, .staying-safe-main, - .shop-church-main { + .shop-church-main, + .event-main { padding-top: 14rem; } + body:has(.announcement-bar--active) .hero-section { + padding-top: 21rem; + } + + body:has(.announcement-bar--active) .get-help-main, + body:has(.announcement-bar--active) .what-we-do-main, + body:has(.announcement-bar--active) .talitha-koum-main, + body:has(.announcement-bar--active) .who-we-are-main, + body:has(.announcement-bar--active) .get-involved-main, + body:has(.announcement-bar--active) .staying-safe-main, + body:has(.announcement-bar--active) .shop-church-main, + body:has(.announcement-bar--active) .event-main { + padding-top: 18rem; + } + .get-help-hero { min-height: calc(100svh - 14rem); padding: 6rem 0; @@ -875,6 +955,10 @@ min-height: calc(100svh - 14rem); } + .event-hero { + min-height: 0; + } + .get-help-hero-content { grid-template-columns: minmax(0, 1fr); gap: 5rem; @@ -886,7 +970,8 @@ .who-we-are-hero-copy h1, .get-involved-hero-copy h1, .staying-safe-hero-copy h1, - .shop-church-hero-copy h1 { + .shop-church-hero-copy h1, + .event-hero-copy h1 { font-size: clamp(5rem, 15vw, 6.8rem); } @@ -896,16 +981,27 @@ .get-involved-hero-actions, .staying-safe-hero-actions, .shop-church-hero-actions, + .event-hero-actions, .what-we-do-hero-actions .btn, .talitha-koum-hero-actions .btn, .who-we-are-hero-actions .btn, .get-involved-hero-actions .btn, .staying-safe-hero-actions .btn, - .shop-church-hero-actions .btn { + .shop-church-hero-actions .btn, + .event-hero-actions .btn { width: 100%; text-align: center; } + .event-detail-card { + min-height: 0; + padding: 3rem 2.5rem; + } + + .event-detail-card h3 { + font-size: 3rem; + } + .talitha-koum-hero-image { box-shadow: 1rem 1rem 0 var(--color-green); } diff --git a/css/style.css b/css/style.css index 5ba50f0..9a22cca 100644 --- a/css/style.css +++ b/css/style.css @@ -261,6 +261,19 @@ p { text-align: center; } +.announcement-link:link, +.announcement-link:visited { + color: inherit; + text-decoration: none; + border-bottom: 1px solid currentColor; + padding-bottom: 0.15em; +} + +.announcement-link:hover, +.announcement-link:active { + color: var(--color-yellow); +} + .quick-exit { display: inline-flex; align-items: center; @@ -3223,3 +3236,146 @@ button:focus-visible { .shop-visit-details .btn { margin-top: 2rem; } + +/* EVENT PAGE */ + +.event-main { + padding-top: 16rem; +} + +.event-hero { + padding: 8rem 0 12rem; +} + +.event-hero-content { + display: grid; + grid-template-columns: minmax(0, 1.15fr) minmax(32rem, 0.7fr); + gap: 8rem; + align-items: center; +} + +.event-hero-copy h1 { + max-width: 90rem; + margin: 0; + font-size: clamp(6.4rem, 5.5vw, 9.6rem); + line-height: 0.98; +} + +.event-hero-copy .description { + max-width: 72rem; +} + +.event-hero-actions { + display: flex; + flex-wrap: wrap; + gap: 3rem; + align-items: center; + margin-top: 1rem; +} + +.event-qr { + display: flex; + flex-direction: column; + align-items: center; + gap: 2rem; + margin: 0; + padding: 3.2rem 3.2rem 2.6rem; + background-color: #fff; + border-radius: 5px; + box-shadow: 2rem 2rem 0 var(--color-yellow); +} + +.event-qr img { + display: block; + width: min(100%, 32rem); + height: auto; +} + +.event-qr figcaption { + color: var(--color-teal); + font-family: "Karla", sans-serif; + font-size: 1.4rem; + font-weight: 600; + letter-spacing: 0.04em; + text-align: center; + text-transform: uppercase; +} + +.event-details-section { + padding: 12rem 0; + background-color: rgba(172, 191, 196, 0.13); +} + +.event-details-heading { + display: grid; + grid-template-columns: minmax(0, 1.2fr) minmax(32rem, 0.8fr); + gap: 8rem; + align-items: end; + margin-bottom: 6rem; +} + +.event-details-heading h2 { + font-size: clamp(5rem, 5vw, 8rem); + line-height: 1; +} + +.event-details-heading > .description { + padding-left: 4rem; + border-left: 1px solid var(--color-gray); +} + +.event-details-grid { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 2rem; +} + +.event-detail-card { + display: flex; + min-height: 32rem; + flex-direction: column; + gap: 1.6rem; + padding: 4rem; + background-color: var(--color-white); + border-top: 6px solid var(--color-green); + border-radius: 5px; +} + +.event-detail-card--teal { + color: var(--color-white); + background-color: var(--color-teal); + border-color: var(--color-yellow); +} + +.event-detail-card--yellow { + background-color: var(--color-yellow); + border-color: var(--color-teal); +} + +.event-detail-card h3 { + color: var(--color-teal); + font-size: 3.6rem; + line-height: 1.08; +} + +.event-detail-card--teal h3, +.event-detail-card--teal a:link, +.event-detail-card--teal a:visited { + color: var(--color-white); +} + +.event-detail-card p:last-child, +.event-detail-card p:nth-of-type(2) { + line-height: 1.45; +} + +.event-detail-card a:link, +.event-detail-card a:visited { + color: inherit; + font-weight: 600; + text-underline-offset: 0.2em; +} + +.event-detail-card .link-btn { + margin-top: auto; +} diff --git a/events/index.html b/events/index.html new file mode 100644 index 0000000..0c1f0e0 --- /dev/null +++ b/events/index.html @@ -0,0 +1,201 @@ + + + + + + + + + + + + + + + + + + + + + + + + + Benefit Brunch | Whispers of Love, Hope, and Joy + + + + + +
+
+
+
+ +

Joy comes in the morning.

+

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.

+ +
+ +
+ QR code that opens the Benefit Brunch ticket page +
Scan to get tickets
+
+
+
+ +
+
+
+
+ +

A table, a story, and a way to help.

+
+

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.

+
+ +
+
+

01

+

When

+

Saturday, October 10, 2026
9:00–11:30 a.m.

+
+ +
+

03

+

Tickets

+

Scan the code above, or open the ticket page to reserve your seat.

+ Open the ticket page +
+
+
+
+
+ + + + diff --git a/img/benefit-brunch-qr.png b/img/benefit-brunch-qr.png new file mode 100644 index 0000000000000000000000000000000000000000..5165037fd8359fb223cd7f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j~F@buf}CzEY#V;RS&0GP95-_^X1Kk zVHxJJbJbD_X~5Vk0XN{K(~GD)zba7e9ISGAyVGcaU(8K0a?&l)4&RU&_dCofMzkNF z-GOh7%NLvxbUC+Z$3?&RdEBA38#!ebP!9(1BQijj43K`x*pS5s0wN}+ylNfFyF8m2 zm~tnk5M;=zt`NEFck#a6OTZng^vF;a>z%Irs+GgbvlC9@TVB zvFot#05qFrPO`Y^5t}JSs0`_DSby?2w=vEDCK_BSfCzuoMl&=Jwu0RQTFoK2SB(hQ zHpWah&wujTy}k!qgNMqHMXmDcf!)XA8mz!g|L|$dVa@-dm5PD4K^c(-TFy1{ z#yTg=S6`V6=oCCT(r>wG8}l+Vw(bCE_b8tnJ&5?9(!UGv;fCGVmIjD$hTRymVt55; zr^J?{UQ%NoR8swJW^EBQ!{q7(K_yjT02361}KGc$gcz7`yXtk9#;Q{nMjs=&W<>n zZkM(~jAmpJSq!H|GsuD6W+P)5dvP!UC%c<~JPnxc@61Mk;?HJ=-x@d610*ecfew0< zm<&H|Q;-6X-!Mo@l!)kR!13!SF=~S~5C}U=pLNgyTOlPlEF3Ub?OgutuUPTMg_#9% z&HUX^D;xyL%*&e*FjqAi?Tt;^xuha8F{z7IoKf%gz;X!IC(Qb+ zh;cjM)Ni(rn?Q{qm>3+y>;(Fap9cmR6(eP-T8$TxC9omTL9+^Of7+e6poXZw6n4sR tP^hP1H^L#W{qzYemB63=|M}`23$dvtsm(27!E!uq>n7gDv+pQA{2%qfc3=Pi literal 0 HcmV?d00001 diff --git a/script.js b/script.js index 859b749..074e6df 100644 --- a/script.js +++ b/script.js @@ -7,6 +7,14 @@ const QUICK_EXIT_KEY = "quick-exit"; const STAGING_HOST = "whispersoflhj.cosmicallycreative.com"; const MOBILE_NAV_QUERY = window.matchMedia("(max-width: 88em)"); +// Flip active to false when there is no event. That clears the +// announcement and sends anyone on the events page back home. +const eventAnnouncement = { + active: true, + label: "Benefit Brunch", + date: "Oct 10", +}; + function navigationType() { const navigation = performance.getEntriesByType("navigation")[0]; return navigation ? navigation.type : ""; @@ -50,8 +58,44 @@ document.querySelectorAll(".quick-exit").forEach((link) => { }); }); +function directoryDepth() { + const path = window.location.pathname; + const directory = path.endsWith("/") ? path : path.slice(0, path.lastIndexOf("/") + 1); + return directory.split("/").filter(Boolean).length; +} + +function isEventsPage() { + return /\/events\/(?:index\.html)?$/.test(window.location.pathname); +} + if (window.location.hostname === STAGING_HOST) { document.body.classList.add("client-preview"); +} + +if (!eventAnnouncement.active && isEventsPage()) { + document.documentElement.hidden = true; + const home = "../".repeat(directoryDepth()); + window.location.replace(home || "./"); +} else if (eventAnnouncement.active) { + const href = `${"../".repeat(directoryDepth())}events/`; + + document.querySelectorAll(".announcement-message").forEach((message) => { + const link = document.createElement("a"); + const date = document.createElement("span"); + + link.className = "announcement-link"; + link.href = href; + link.append(eventAnnouncement.label, " "); + date.className = "text-yellow"; + date.textContent = eventAnnouncement.date; + link.append(date); + + if (isEventsPage()) link.setAttribute("aria-current", "page"); + + message.replaceChildren(link); + message.closest(".announcement-bar")?.classList.add("announcement-bar--active"); + }); +} else if (window.location.hostname === STAGING_HOST) { document.querySelectorAll(".announcement-message").forEach((message) => { message.textContent = "Client Preview"; });