Compare commits

..

2 Commits

Author SHA1 Message Date
25cdbe2c18 clean up home page a bit 2026-01-06 18:19:16 -08:00
70272108a1 some comments 2026-01-06 18:10:40 -08:00
2 changed files with 8 additions and 2 deletions

View File

@ -5,6 +5,7 @@ const makeArtistImg = function(artistImg) {
let img = document.createElement("img");
img.src = artistImg.src;
/* handle single-line or multi-line alts */
if (typeof artistImg.alt === "string") img.alt = artistImg.alt;
else {
let fullAlt = `a ${artistImg.alt.length} image collage.`
@ -21,12 +22,14 @@ const makeArtistDesc = function(bio, contact) {
let descDiv = document.createElement("div");
descDiv.classList.add("description");
/* multi-line bio array */
for (const bioLine of bio) {
let p = document.createElement("p");
p.innerHTML = bioLine;
descDiv.append(p);
}
/* artist contact info */
let contacts = document.createElement("p");
for (let i = 0; i < contact.length; i++) {
let a = document.createElement("a");

View File

@ -34,8 +34,11 @@
<main id="main">
<h1>The Beall Greenhouses</h1>
<h2>Imbolc celebration coming soon!</h2>
<p><a href="/events/2026-imbolc">See event page for more details</a></p>
<h2>Upcoming Imbolc celebration</h2>
<p>See the <a href="/events/2026-imbolc">Imbolc event page</a> for more details.</p>
<h2>A successful Solstice</h2>
<p>Our inaugural <a href="/events/2025-solstice">Solstice Market</a> was a rousing success.</p>
</main>
</div>
<footer id="footer"><!-- auto-populated by nav.js --></footer>