p5.zine 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/ui.css ADDED
@@ -0,0 +1,245 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Averia+Libre&family=Bebas+Neue&family=Bungee+Shade&family=Faster+One&family=Inconsolata&family=Playfair+Display:ital@1&family=Rubik+Puddles&family=Ultra&display=swap');
2
+
3
+ html[data-theme=light] {
4
+ --color-text: #333;
5
+ --accent-color: #ed225d;
6
+ --line-color: #ddd;
7
+ --color-background: #fff;
8
+ }
9
+
10
+ html[data-theme=dark] {
11
+ --color-text: #fff;
12
+ --accent-color: #ed225d;
13
+ --line-color: #ddd;
14
+ --color-background: #000;
15
+ }
16
+
17
+ * {
18
+ box-sizing: border-box;
19
+ }
20
+
21
+ html,
22
+ body {
23
+ margin: 0;
24
+ padding: 0;
25
+ padding-top: 30px;
26
+ background: url(https://munusshih.github.io/p5.genzine/bg.png) repeat fixed var(--color-background);
27
+ scroll-behavior: smooth;
28
+ transition: cubic-bezier(0.68, -0.55, 0.27, 1.55) 420ms !important;
29
+ transition-delay: 0 !important;
30
+ }
31
+
32
+ canvas {
33
+ display: block;
34
+ }
35
+
36
+ p {
37
+ text-align: center;
38
+ font-family: "Inconsolata", monospace;
39
+ color: var(--accent-color);
40
+ font-size: 12px;
41
+ letter-spacing: -0.1px;
42
+ overflow-wrap: break-word;
43
+ }
44
+
45
+ nav {
46
+ position: fixed;
47
+ background: none;
48
+ width: 100%;
49
+ text-align: left;
50
+ top: 0px;
51
+ padding-bottom: 0.5em;
52
+ padding-left: 1em;
53
+ }
54
+
55
+ .desktop {
56
+ position: fixed;
57
+ bottom: 0em;
58
+ padding-right: 0.5em;
59
+ width: 100%;
60
+ height: 2.5em;
61
+ text-align: right;
62
+ padding-top: 0.5em;
63
+ padding-bottom: 3.25em;
64
+ border-top: 1px solid var(--accent-color);
65
+ background: var(--color-background);
66
+ color: var(--color-text);
67
+ margin-top: 0.5em;
68
+ margin-right: 0.5em;
69
+ }
70
+
71
+ nav .title {
72
+ display: inline-block;
73
+ text-align: left;
74
+ margin: 0px;
75
+ }
76
+
77
+ nav .title h1 {
78
+ display: inline-block;
79
+ color: var(--accent-color);
80
+ font-size: 1.8em;
81
+ line-height: 1;
82
+ padding-top: 20px;
83
+ margin: 0;
84
+ margin-right: 10px;
85
+ vertical-align: text-bottom;
86
+ }
87
+
88
+ nav .title h2 {
89
+ display: inline-block;
90
+ margin-right: 20px;
91
+ color: var(--color-text);
92
+ font-weight: 100;
93
+ font-family: monospace;
94
+ font-size: 1em;
95
+ }
96
+
97
+ nav .title h2 a {
98
+ color: var(--color-text);
99
+ }
100
+
101
+ nav .title h2 a:hover {
102
+ color: var(--line-color);
103
+ }
104
+
105
+ .label {
106
+ position: fixed;
107
+ background: var(--accent-color);
108
+ padding: 0.5em;
109
+ font-family: monospace;
110
+ }
111
+
112
+ .label a {
113
+ text-decoration: none;
114
+ color: white;
115
+ }
116
+
117
+ #nav-label {
118
+ position: fixed;
119
+ right: 0em;
120
+ top: 0em;
121
+ }
122
+
123
+ #myCanvas {
124
+ display: flex;
125
+ flex-direction: column;
126
+ align-items: center;
127
+ gap: 24px;
128
+ padding: 24px 0 40px;
129
+ }
130
+
131
+ #myCanvas.zine-pages {
132
+ width: 100%;
133
+ }
134
+
135
+ .zine-page {
136
+ display: flex;
137
+ flex-direction: column;
138
+ align-items: flex-start;
139
+ }
140
+
141
+ .zine-page-label {
142
+ font-family: monospace;
143
+ color: var(--accent-color);
144
+ font-size: 12px;
145
+ margin: 0 0 6px 0;
146
+ }
147
+
148
+ .zine-page-canvas {
149
+ display: block;
150
+ border: 1px solid var(--accent-color);
151
+ }
152
+
153
+ .zine-preview-hidden .zine-page-label {
154
+ display: none;
155
+ }
156
+
157
+ .zine-preview-hidden .zine-page-canvas {
158
+ border-color: transparent;
159
+ }
160
+
161
+ #footer-label {
162
+ position: relative;
163
+ text-align: left;
164
+ width: 15em;
165
+ padding-left: 0.5em;
166
+ color: white;
167
+ left: 0em;
168
+ top: -3.7em;
169
+ }
170
+
171
+ footer {
172
+ width: 100%;
173
+ text-align: center;
174
+ padding: 20px;
175
+ border-top: 1px solid var(--accent-color);
176
+ margin-bottom: 6em;
177
+ }
178
+
179
+ footer p {
180
+ margin: auto;
181
+ text-align: center;
182
+ max-width: 700px;
183
+ }
184
+
185
+ .button {
186
+ border: 0px solid var(--accent-color);
187
+ color: var(--accent-color);
188
+ text-align: center;
189
+ text-decoration: none;
190
+ vertical-align: super;
191
+ display: inline-block;
192
+ font-size: 13px;
193
+ margin: 4px 10px;
194
+ height: 40px;
195
+ min-width: 40px;
196
+ line-height: 40px;
197
+ font-family: "Inconsolata", monospace;
198
+ border: 1px solid var(--accent-color);
199
+ }
200
+
201
+ .button:hover {
202
+ color: var(--accent-color);
203
+ cursor: pointer;
204
+ border-bottom: 1px dashed var(--accent-color);
205
+ }
206
+
207
+ .alt {
208
+ background: var(--color-background);
209
+ color: var(--accent-color);
210
+ margin: 0em;
211
+ margin-top: 0.3em;
212
+ margin-left: 0.3em;
213
+ border-radius: 20px;
214
+ }
215
+
216
+ .alt:hover {
217
+ background: var(--accent-color);
218
+ color: white;
219
+ cursor: pointer;
220
+ }
221
+
222
+ hr {
223
+ margin-top: 50px;
224
+ margin-bottom: 50px;
225
+ border: 0.1px solid var(--accent-color);
226
+ }
227
+
228
+ #doc,
229
+ #doc p {
230
+ text-align: left;
231
+ }
232
+
233
+ h3 {
234
+ font-family: "Inconsolata", monospace;
235
+ }
236
+
237
+ span {
238
+ color: grey;
239
+ }
240
+
241
+ @media screen and (max-width: 500px) {
242
+ canvas {
243
+ margin-top: 4em;
244
+ }
245
+ }
package/src/ui.html ADDED
@@ -0,0 +1,33 @@
1
+ <base target="_blank">
2
+ <nav>
3
+ <div class="title">
4
+ <h1 id="genTitle">GenZ(ine)</h1>
5
+ <h2 id="author">by Munus Shih</h2>
6
+ </div>
7
+ </nav>
8
+
9
+ <div class="desktop">
10
+ <input type="button" value="*download .png*" id="download-jpg"
11
+ class="button alt" />
12
+ <input type="button" value="*download .pdf*" id="download-pdf"
13
+ class="button alt" />
14
+ </div>
15
+
16
+ <div class="label" id="nav-label">
17
+ <a href="https://github.com/munusshih/p5.zine" target="_blank"
18
+ rel="noopener noreferrer">
19
+ >made with p5.zine
20
+ </a>
21
+ </div>
22
+
23
+ <div id="myCanvas"></div>
24
+
25
+ <footer>
26
+ <div class="label" id="footer-label">
27
+ This zine is about...
28
+ </div>
29
+
30
+ <p id="des">
31
+ This zine is about...
32
+ </p>
33
+ </footer>