feat: apply production QA fixes for contrast, brunch, and crawl files
Put the Benefit Brunch in the announcement and footer, add a sitemap and homepage JSON-LD, and raise text contrast, tap targets, and hero photo scrims. Compress drone.JPG and the community event photo without changing their paths. Co-authored-by: Cosmically Creative <Cosmically-Creative@users.noreply.github.com>
This commit is contained in:
1 parent
b69f91dcfe
commit
1560aeccb2
19 files changed
+200
-102
No files matched your search
@@ -82,21 +82,30 @@ if (!eventIsActive() && isEventsPage()) {
|
||||
const href = `${"../".repeat(directoryDepth())}events/`;
|
||||
|
||||
document.querySelectorAll(".announcement-message").forEach((message) => {
|
||||
const link = document.createElement("a");
|
||||
const date = document.createElement("span");
|
||||
let link = message.querySelector(".announcement-link");
|
||||
|
||||
link.className = "announcement-link";
|
||||
link.href = href;
|
||||
link.append(eventAnnouncement.label, " ");
|
||||
date.className = "text-yellow";
|
||||
date.textContent = eventAnnouncement.date;
|
||||
link.append(date);
|
||||
if (!link) {
|
||||
const date = document.createElement("span");
|
||||
|
||||
link = document.createElement("a");
|
||||
link.className = "announcement-link";
|
||||
link.href = href;
|
||||
link.append(eventAnnouncement.label, " ");
|
||||
date.className = "text-yellow";
|
||||
date.textContent = eventAnnouncement.date;
|
||||
link.append(date);
|
||||
message.replaceChildren(link);
|
||||
}
|
||||
|
||||
if (isEventsPage()) link.setAttribute("aria-current", "page");
|
||||
|
||||
message.replaceChildren(link);
|
||||
message.closest(".announcement-bar")?.classList.add("announcement-bar--active");
|
||||
});
|
||||
} else {
|
||||
document.querySelectorAll(".announcement-message").forEach((message) => {
|
||||
message.replaceChildren();
|
||||
message.closest(".announcement-bar")?.classList.remove("announcement-bar--active");
|
||||
});
|
||||
}
|
||||
|
||||
document.addEventListener("keydown", (event) => {
|
||||
|
||||
Reference in new issue
Block a user