Files
fedizinefest-deprecated/scripts/zines.js
T

57 lines
1.4 KiB
JavaScript
Raw Normal View History

2024-12-13 01:03:15 +00:00
let zines = [
{
2024-12-13 01:14:39 +00:00
"name": "lee",
2024-12-13 01:03:15 +00:00
"blurb": "something about gender or shit, who knows",
"format": "physical/digital",
2024-12-13 01:14:39 +00:00
"site": "https://leecat.art",
2024-12-13 01:03:15 +00:00
"fedi": "https://flipping.rocks/@inherentlee"
2024-12-13 02:01:49 +00:00
},
{
"name": "testy mc testerson",
"blurb": "something dreadfully long, like all the world's a stage, and all the men and women merely players, they have their entrance",
"format": "digital"
2024-12-13 01:03:15 +00:00
}
2024-12-13 01:14:39 +00:00
]
2024-12-13 02:01:49 +00:00
/*
<li class="artist">
<h2>
lee
</h2>
<p>
is making a physical/digital zine about...
</p>
<blockquote>
<p>
something about gender or shit idk let this wrap onto a new line
</p>
</blockquote>
</li>
</ul>
*/
2024-12-13 01:14:39 +00:00
function makeZine({name, blurb, format, site, fedi}) {
2024-12-13 02:01:49 +00:00
let zine = document.createElement("li");
2024-12-13 01:14:39 +00:00
2024-12-13 02:01:49 +00:00
let h2 = document.createElement("h2");
h2.innerHTML = name;
zine.append(h2);
2024-12-13 01:14:39 +00:00
let p = document.createElement("p");
2024-12-13 02:01:49 +00:00
p.innerHTML = " is making a " + format + " zine about...";
2024-12-13 01:14:39 +00:00
zine.append(p);
2024-12-13 01:26:43 +00:00
let bq = document.createElement("blockquote");
let bqP = document.createElement("p");
bqP.innerHTML = blurb;
bq.append(bqP);
zine.append(bq);
2024-12-13 01:14:39 +00:00
return zine;
}
let zineContainer = document.getElementById("zine-container");
for (let i = 0; i < zines.length; i++) {
2024-12-13 02:01:49 +00:00
zineContainer.append(makeZine(zines[i]));
2024-12-13 01:14:39 +00:00
}