Compare commits
2 Commits
6d821d6ac8
...
25cdbe2c18
| Author | SHA1 | Date | |
|---|---|---|---|
| 25cdbe2c18 | |||
| 70272108a1 |
@ -5,6 +5,7 @@ const makeArtistImg = function(artistImg) {
|
|||||||
let img = document.createElement("img");
|
let img = document.createElement("img");
|
||||||
img.src = artistImg.src;
|
img.src = artistImg.src;
|
||||||
|
|
||||||
|
/* handle single-line or multi-line alts */
|
||||||
if (typeof artistImg.alt === "string") img.alt = artistImg.alt;
|
if (typeof artistImg.alt === "string") img.alt = artistImg.alt;
|
||||||
else {
|
else {
|
||||||
let fullAlt = `a ${artistImg.alt.length} image collage.`
|
let fullAlt = `a ${artistImg.alt.length} image collage.`
|
||||||
@ -21,12 +22,14 @@ const makeArtistDesc = function(bio, contact) {
|
|||||||
let descDiv = document.createElement("div");
|
let descDiv = document.createElement("div");
|
||||||
descDiv.classList.add("description");
|
descDiv.classList.add("description");
|
||||||
|
|
||||||
|
/* multi-line bio array */
|
||||||
for (const bioLine of bio) {
|
for (const bioLine of bio) {
|
||||||
let p = document.createElement("p");
|
let p = document.createElement("p");
|
||||||
p.innerHTML = bioLine;
|
p.innerHTML = bioLine;
|
||||||
descDiv.append(p);
|
descDiv.append(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* artist contact info */
|
||||||
let contacts = document.createElement("p");
|
let contacts = document.createElement("p");
|
||||||
for (let i = 0; i < contact.length; i++) {
|
for (let i = 0; i < contact.length; i++) {
|
||||||
let a = document.createElement("a");
|
let a = document.createElement("a");
|
||||||
|
|||||||
@ -34,8 +34,11 @@
|
|||||||
<main id="main">
|
<main id="main">
|
||||||
<h1>The Beall Greenhouses</h1>
|
<h1>The Beall Greenhouses</h1>
|
||||||
|
|
||||||
<h2>Imbolc celebration coming soon!</h2>
|
<h2>Upcoming Imbolc celebration</h2>
|
||||||
<p><a href="/events/2026-imbolc">See event page for more details</a></p>
|
<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>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
<footer id="footer"><!-- auto-populated by nav.js --></footer>
|
<footer id="footer"><!-- auto-populated by nav.js --></footer>
|
||||||
|
|||||||
Reference in New Issue
Block a user