./signup/index.html:69682263/12019 ./scripts/zines.js:69682263/1026 ./zines/index.html:69682263/153
38 lines
976 B
JavaScript
38 lines
976 B
JavaScript
let zines = [
|
|
{
|
|
"name": "Handmade Ghost",
|
|
"site": "https://handmadeghost.neocities.org/",
|
|
"blurb": "This will be either a birds-n-poetry zine, a zine on rural Oregon, or a zine on disability and birding (or, very likely, all three).",
|
|
"format": "physical"
|
|
}
|
|
]
|
|
|
|
function makeZine({name, blurb, format, site, fedi}) {
|
|
let zine = document.createElement("li");
|
|
|
|
|
|
let h2 = document.createElement("h2");
|
|
let a = document.createElement("a");
|
|
a.innerHTML = name;
|
|
a.href = site;
|
|
h2.append(a);
|
|
zine.append(h2);
|
|
|
|
let p = document.createElement("p");
|
|
p.innerHTML = " is making a " + format + " zine:";
|
|
zine.append(p);
|
|
|
|
let bq = document.createElement("blockquote");
|
|
let bqP = document.createElement("p");
|
|
bqP.innerHTML = blurb;
|
|
bq.append(bqP);
|
|
zine.append(bq);
|
|
|
|
return zine;
|
|
}
|
|
|
|
let zineContainer = document.getElementById("zine-container");
|
|
|
|
for (let i = 0; i < zines.length; i++) {
|
|
zineContainer.append(makeZine(zines[i]));
|
|
} |