🚏🍱 Checkpoint
./styles/zines.css:69682263/565 ./scripts/zines.js:69682263/755 ./zines/index.html:69682263/15
This commit is contained in:
@ -5,26 +5,44 @@ let zines = [
|
|||||||
"format": "physical/digital",
|
"format": "physical/digital",
|
||||||
"site": "https://leecat.art",
|
"site": "https://leecat.art",
|
||||||
"fedi": "https://flipping.rocks/@inherentlee"
|
"fedi": "https://flipping.rocks/@inherentlee"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
function makeZine({name, blurb, format, site, fedi}) {
|
/*
|
||||||
let zine = document.createElement("div");
|
<li class="artist">
|
||||||
zine.className = "zine";
|
<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>
|
||||||
|
*/
|
||||||
|
|
||||||
let h3 = document.createElement("h3");
|
function makeZine({name, blurb, format, site, fedi}) {
|
||||||
h3.className = "artist";
|
let zine = document.createElement("li");
|
||||||
h3.innerHTML = name;
|
|
||||||
zine.append(h3);
|
let h2 = document.createElement("h2");
|
||||||
|
h2.innerHTML = name;
|
||||||
|
zine.append(h2);
|
||||||
|
|
||||||
let p = document.createElement("p");
|
let p = document.createElement("p");
|
||||||
p.className = "intro";
|
p.innerHTML = " is making a " + format + " zine about...";
|
||||||
p.innerHTML = name + " is making a " + format + " zine about...";
|
|
||||||
zine.append(p);
|
zine.append(p);
|
||||||
|
|
||||||
let bq = document.createElement("blockquote");
|
let bq = document.createElement("blockquote");
|
||||||
let bqP = document.createElement("p");
|
let bqP = document.createElement("p");
|
||||||
bq.className = "blurb"
|
|
||||||
bqP.innerHTML = blurb;
|
bqP.innerHTML = blurb;
|
||||||
bq.append(bqP);
|
bq.append(bqP);
|
||||||
zine.append(bq);
|
zine.append(bq);
|
||||||
@ -35,5 +53,5 @@ function makeZine({name, blurb, format, site, fedi}) {
|
|||||||
let zineContainer = document.getElementById("zine-container");
|
let zineContainer = document.getElementById("zine-container");
|
||||||
|
|
||||||
for (let i = 0; i < zines.length; i++) {
|
for (let i = 0; i < zines.length; i++) {
|
||||||
// zineContainer.append(makeZine(zines[i]));
|
zineContainer.append(makeZine(zines[i]));
|
||||||
}
|
}
|
||||||
@ -1,8 +1,21 @@
|
|||||||
li {
|
#zine-container {
|
||||||
list-style: none;
|
padding: 0;
|
||||||
margin: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h2, p {
|
#zine-container li {
|
||||||
|
list-style: none;
|
||||||
|
border-bottom: solid;
|
||||||
|
border-left: solid;
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 0 .4rem .4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#zine-container h2,
|
||||||
|
#zine-container p {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
margin: 0;
|
||||||
|
color: light-dark(var(--color-header-light), var(--color-header-dark));
|
||||||
|
}
|
||||||
@ -60,7 +60,7 @@
|
|||||||
|
|
||||||
<ul id="zine-container">
|
<ul id="zine-container">
|
||||||
<!-- Auto populated by scripts/zines.js -->
|
<!-- Auto populated by scripts/zines.js -->
|
||||||
<li class="artist">
|
<li>
|
||||||
<h2>
|
<h2>
|
||||||
lee
|
lee
|
||||||
</h2>
|
</h2>
|
||||||
|
|||||||
Reference in New Issue
Block a user