diff --git a/scripts/zines.js b/scripts/zines.js index 7b41764..37140dd 100644 --- a/scripts/zines.js +++ b/scripts/zines.js @@ -1,10 +1,32 @@ let zines = [ { - "artist": "lee", + "name": "lee", "blurb": "something about gender or shit, who knows", "format": "physical/digital", - "website": "https://leecat.art", + "site": "https://leecat.art", "fedi": "https://flipping.rocks/@inherentlee" - } -] \ No newline at end of file +] + +function makeZine({name, blurb, format, site, fedi}) { + let zine = document.createElement("div"); + zine.className = "zine"; + + let h3 = document.createElement("h3"); + h3.innerHTML = name; + h3.className = "artist"; + zine.append(h3); + + let p = document.createElement("p"); + p.innerHTML = blurb; + p.className = "blurb"; + zine.append(p); + + return zine; +} + +let zineContainer = document.getElementById("zine-container"); + +for (let i = 0; i < zines.length; i++) { + zineContainer.append(makeZine(zines[i])); +} \ No newline at end of file diff --git a/zines/index.html b/zines/index.html index 9cce719..bf2a828 100644 --- a/zines/index.html +++ b/zines/index.html @@ -57,7 +57,9 @@

The Zines!

- +
+ +