diff --git a/about/index.html b/about/index.html
index d4a5261..af855a9 100644
--- a/about/index.html
+++ b/about/index.html
@@ -31,7 +31,7 @@
-
+
About the Beall Greenhouses
Past
diff --git a/assets/scripts/nav.js b/assets/scripts/nav.js
index eaceeca..c4db75e 100644
--- a/assets/scripts/nav.js
+++ b/assets/scripts/nav.js
@@ -2,35 +2,51 @@
const navItems = [
{
href: "/about/",
- title: "ⓘ about"
+ title: "ⓘ about",
+ tooltip: "about the Beall Greenhouses"
},
{
href: "/events/",
- title: "🗓 events"
+ title: "🗓 events",
+ tooltip: "events at the Beall Greenhouses"
+ },
+ {
+ href: "/artists/",
+ title: "🖌 artists",
+ tooltip: "artists in residence at the Beall Greenhouses"
}
];
-const populateNav = function() {
- let nav = document.getElementById("top-nav");
+const createMenuLink = function(title, href, tooltip) {
let path = window.location.pathname;
- let home = document.createElement("a");
- home.href = "/";
- home.innerHTML = "↩ home";
- if (path === "/") home.id = "current-page";
- nav.append(home);
+ let a = document.createElement("a");
+ a.href = href;
+ a.innerHTML = title;
+ a.title = tooltip;
+ a.ariaLabel = tooltip;
+ if (path === href) a.id = "current-page";
+
+ return a;
+}
+
+const createSkipLink = function() {
+ let a = createMenuLink("skip ↷", "#main", "skip to main content");
+ a.id = "skip";
+ return a;
+}
+
+const populateNav = function() {
+ let nav = document.getElementById("top-nav");
+
+ nav.append(createSkipLink());
+ nav.append(createMenuLink("↩ home", "/", "home page for the Beall Greenhouses"));
let ul = document.createElement("ul");
for (const item of navItems) {
let li = document.createElement("li");
- let a = document.createElement("a");
- a.href = item.href;
- a.innerHTML = item.title;
-
- if (item.href === path) a.id = "current-page";
-
- li.append(a);
+ li.append(createMenuLink(item.title, item.href, item.tooltip));
ul.append(li);
}
diff --git a/assets/styles/nav.css b/assets/styles/nav.css
index cb046ab..17b0d7d 100644
--- a/assets/styles/nav.css
+++ b/assets/styles/nav.css
@@ -1,12 +1,14 @@
/* top nav */
nav {
+ position: relative;
margin: 0 auto 1.5rem;
display: flex;
justify-content: space-between;
+ align-items: flex-start;
}
nav a {
- display: block;
+ display: inline-block;
text-decoration: none;
font-size: 1.2rem;
padding: 0 .25rem;
@@ -27,10 +29,37 @@ nav a:focus-visible {
outline: solid .25rem var(--color-accent);
}
+#skip {
+ left: -999px;
+ position: absolute;
+ top: auto;
+ width: 1px;
+ height: 1px;
+ overflow: hidden;
+ z-index: -99;
+ background-color: var(--color-bg);
+}
+
+#skip:focus-visible {
+ left: 3rem;
+ top: 1.5rem;
+ width: auto;
+ height: auto;
+ overflow: auto;
+ z-index: 999;
+}
+
nav ul {
display: flex;
justify-content: flex-end;
gap: .5rem;
+ align-items: flex-end;
+}
+
+@media (max-width: 450px) {
+ nav ul {
+ flex-flow: column nowrap;
+ }
}
nav li {
diff --git a/events/2025-solstice/index.html b/events/2025-solstice/index.html
index 162ac8a..89201b9 100644
--- a/events/2025-solstice/index.html
+++ b/events/2025-solstice/index.html
@@ -33,7 +33,7 @@
-
+
Solstice 2025 Market at the Beall Greenhouses
When?
diff --git a/events/index.html b/events/index.html
index c21d935..7dca6f8 100644
--- a/events/index.html
+++ b/events/index.html
@@ -32,7 +32,7 @@
-
+
Events at the Beall Greenhouses
diff --git a/index.html b/index.html
index c9aff03..0cd0e1c 100644
--- a/index.html
+++ b/index.html
@@ -32,7 +32,7 @@
-
+
Markets at the Beall Greenhouses
Status