Compare commits
2 Commits
6d821d6ac8
...
25cdbe2c18
| Author | SHA1 | Date | |
|---|---|---|---|
| 25cdbe2c18 | |||
| 70272108a1 |
@ -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");
|
||||
|
||||
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user