git ssb

0+

Zach! / dat-zine-library



Commit 84e7089dcecb5f534a64c17d398045e5425f2550

update styling so zines are not so huge

Zach committed on 6/27/2018, 12:17:37 PM
Parent: 623ff906a993e064e9317ffbb5d9040bb68b975e

Files changed

building/aesthetic/stylesheets/main.csschanged
building/components/shelving.jschanged
zines/read-me-zine.txtdeleted
zines/read-me.txtadded
building/aesthetic/stylesheets/main.cssView
@@ -12,8 +12,9 @@
1212 display: grid;
1313 width: 80%;
1414 margin: auto;
1515 grid-template-columns: 1fr 1fr;
16 + grid-template-rows: repeat(auto-fill, minmax(max-content, 1fr));
1617 grid-gap: 2em;
1718 }
1819
1920 #branch-placard{
@@ -34,8 +35,9 @@
3435 margin: none;
3536 }
3637
3738 #zine-shelves li {
39 + grid-row: auto / span 3;
3840 max-width: 100%;
3941 list-style-type: none;
4042 margin-left: none;
4143 }
@@ -54,13 +56,23 @@
5456
5557 }
5658
5759 .zine-card img{
58- width: 90%;
60 + max-height: 550px;
61 + max-width: 90%;
5962 margin: auto;
6063 height: auto;
6164 }
6265
66 +#zine-info {
67 + width: 100%;
68 + padding: 1em;
69 +}
70 +
71 +#zine-info h1{
72 + padding: 0.25em;
73 +}
74 +
6375 .title{
6476 width: 100%;
6577 background: var(--title-bg);
6678 }
building/components/shelving.jsView
@@ -33,17 +33,19 @@
3333 }
3434
3535 function renderInfo (zine, state) {
3636 var trimmedUrl = _.trimEnd(zine.url, '/')
37- var info = state.info[trimmedUrl]
37 + var info = _.entries(state.info[trimmedUrl])
3838 if (info) {
3939 return html`
40- <div>
41- <h2>Info From this Zine!</p>
42- <p><strong>Creation Date:</strong>${info['creation date']}</p>
43- <p><strong>Sharing Notes:</strong> ${info.sharing}</p>
44- <p><strong>Other Notes:</strong> ${info.notes}</p>
45- </div>
46- `
40 + <div id='zine-info'>
41 + <h1>Info From Zine</h1>
42 + ${info.map(pair => {
43 + return html`<p><strong>${pair[0]}:</strong> ${pair[1]}</p>`
44 + })
45 + }
46 + </div>
47 + `
48 +
4749 }
4850 }
4951 }
zines/read-me-zine.txtView
@@ -1,7 +1,0 @@
1-title: read me zine
2-----
3-url: dat://read-me-zine.hashbase.io/
4-----
5-notes:
6-
7-a lil piece I wrote a while back, but re-did for art~hack winter expo, 2018.
zines/read-me.txtView
@@ -1,0 +1,5 @@
1 +title: read me
2 +----
3 +url: dat://d0222b1bcf7833e0708aa65ba8376aadba3f13e3025a113b10f755342b4c14d1/
4 +----
5 +notes: Found it on Scuttlebutt, looks to be good sci fi.

Built with git-ssb-web