-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
253 lines (238 loc) · 9.93 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400..900;1,400..900&display=swap"
rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap" rel="stylesheet">
<title>CardForge</title>
</head>
<body>
<div id="header">
<img class="logo" src="images/main-logo.svg" />
<div class="tabs">
<div id="ts-create" data-tab="create" class="tab-selector selected">CREATE DECK</div>
<div id="ts-cards" data-tab="cards" class="tab-selector">CARDS</div>
<div id="ts-help" data-tab="help" class="tab-selector">HELP</div>
</div>
</div>
<div id="content">
<div id="tab-create" class="tab">
<div id="box-create" class="box box-small">
<div class="art">
<img src="images/decks.svg" />
</div>
<div class="corner top-left">
<img src="images/corner.svg" />
</div>
<div class="corner top-right">
<img src="images/corner.svg" />
</div>
<div class="corner bottom-left">
<img src="images/corner.svg" />
</div>
<div class="corner bottom-right">
<img src="images/corner.svg" />
</div>
<div class="corner bottom">
<img src="images/marker.svg" />
</div>
<form id="create-deck-frm">
<h3>Create new deck</h3>
<div class="input-text"><label>DECK NAME</label><input id="create-deck-name" type="text" required="required"
value="Deck01" />
</div>
<div class="row-input">
<div class="input-text">
<label>CARD SIZE</label>
<select id="create-deck-size">
</select>
</div>
<div class="input-text"><label>DECK ORIENTATION</label>
<select id="create-deck-orientation">
<option value="portrait">Portrait</option>
<option value="landscape">Landscape</option>
</select>
</div>
</div>
<div class="modal-buttons">
<button class="btn-primary" type="submit">CREATE DECK</button>
</div>
</form>
</div>
<div id="box-create-error" class="box box-small hidden">
<div class="art">
<img src="images/skull.svg" />
</div>
<div class="corner top-left">
<img src="images/corner.svg" />
</div>
<div class="corner top-right">
<img src="images/corner.svg" />
</div>
<div class="corner bottom-left">
<img src="images/corner.svg" />
</div>
<div class="corner bottom-right">
<img src="images/corner.svg" />
</div>
<div class="corner bottom">
<img src="images/marker.svg" />
</div>
<h3>ERROR</h3>
<p>To create a new deck, the page must be empty</p>
<div class="modal-buttons">
<button id="box-create-error-close" class="btn-primary">OK</button>
</div>
</div>
</div>
<div id="tab-cards" class="tab">
<div id="cards-container">
<div id="cards-header" class="cards-header">
<div class="card-num">NUM</div>
<div id="cards-header-actions" class="card-num"></div>
</div>
<div id="card-list" class="cards-list">
</div>
<div id="forge-entry" class="forge-entry">
<div id="add-card" class="btn-add">
<div class="btn-add-img"></div>
ADD CARD
</div>
<button id="forge-cards" class="btn-primary">FORGE CARDS</button>
</div>
</div>
<div id="box-forge" class="box box-small hidden">
<div class="art">
<img src="images/hammer.svg" />
</div>
<div class="corner top-left">
<img src="images/corner.svg" />
</div>
<div class="corner top-right">
<img src="images/corner.svg" />
</div>
<div class="corner bottom-left">
<img src="images/corner.svg" />
</div>
<div class="corner bottom-right">
<img src="images/corner.svg" />
</div>
<div class="corner bottom">
<img src="images/marker.svg" />
</div>
<form id="create-deck-frm">
<h3>FORGE CARDS</h3>
<div class="row-input">
<div class="input-text">
<label>FORGE TYPE</label>
<select id="forge-type">
<option value="standard">Standard (print shop)</option>
<option value="printplay">Print and play</option>
<option value="tabletop">Tabletop Simulator</option>
</select>
</div>
<div class="input-text"><label>WITH CUT MARKS</label>
<select id="forge-cut-marks">
<option value="true">Yes</option>
<option value="false">No</option>
</select>
</div>
</div>
<div id="forge-explain">
<div id="forge-explain-type"></div>
<div id="forge-explain-marks"></div>
<div id="forge-explain-warning">WARNING: Old outputs will be deleted</div>
</div>
<div class="modal-buttons">
<button id="box-forge-cancel" class="btn-primary btn-cancel">Cancel</button>
<button id="box-forge-ok" class="btn-primary">Forge!</button>
</div>
</form>
</div>
</div>
<div id="tab-help" class="tab">
<div id="box-help" class="box box-small">
<div class="art">
<img src="images/help.svg" />
</div>
<div class="corner top-left">
<img src="images/corner.svg" />
</div>
<div class="corner top-right">
<img src="images/corner.svg" />
</div>
<div class="corner bottom-left">
<img src="images/corner.svg" />
</div>
<div class="corner bottom-right">
<img src="images/corner.svg" />
</div>
<div class="corner bottom">
<img src="images/marker.svg" />
</div>
<h3>HOW TO USE CARDFORGE</h3>
<div id="help-text">
<div id="help-text-0" class="help-text">
<h4>Create a new Deck</h4>
<p>Go to an empty page. Open the plugin. Choose a name for the deck, select a size and orientation, and
click "Create Deck."</p>
<p>The plugin will set the name of the page and create frames for the front and back of the card.</p>
<p>These frames have a bleed area (see further on) and a border. Feel free to modify them according to
your needs.</p>
</div>
<div id="help-text-1" class="help-text hidden">
<h4>Design a base card</h4>
<p>Design a card within the Front frame as you wish, but do not change the size or the name of the frame.
</p>
<p>Add image and text layers for the sections of the card that will differ on each card. These variable
layers must have a unique name and start with the character #. For example, #name, #background, #image,
#power...</p>
<p>Design the back of the cards within the Back frame, but do not change the size or the name of the frame
either. The back cannot have variable fields.</p>
</div>
<div id="help-text-2" class="help-text hidden">
<h4>Cards list</h4>
<p>Here you will find a list of all the cards in your deck. Click "Add Card" to create a new card.</p>
<p>For each card, you can assign values to the text or image variable fields.</p>
<p>You can also duplicate or delete a card.</p>
<p>When all the cards are ready, press "Forge Cards" to create them.</p>
</div>
<div id="help-text-3" class="help-text hidden">
<h4>Forging cards (1/2)</h4>
<p>You can create your cards in three different ways</p>
<p><b>Standard:</b> This method is for printing at a print shop. They typically require a separate file for
each card, so this option generates a list of all the cards to export each one individually.</p>
<p><b>Print and Play:</b> This method is for printing the cards on a regular printer. It will arrange your
cards on A4 pages, which you can export and print individually. It also set the front and
back of each card together, so you can fold them along the joint to assemble the physical cards.</p>
</div>
<div id="help-text-4" class="help-text hidden">
<h4>Forging cards (2/2)</h4>
<p><b>Tabletop:</b> This method creates a single frame containing all the cards arranged in a 10x7 grid,
with the back positioned in the bottom right corner. This format is used by <a
href="https://kb.tabletopsimulator.com/custom-content/custom-deck/" target="_blank">Tabletop
Simulator</a> and similar software.</p>
<p> </p>
<p>For both Standard and Print and Play, you can also choose to include cut marks to assist you (or the
print shop) in cutting the cards.</p>
</div>
<div id="help-text-5" class="help-text hidden">
<h4>Bleeding area and margins</h4>
<p><img src="images/print_info.png" /></p>
</div>
</div>
<div class="modal-buttons">
<button id="box-help-prev" class="btn-primary">< PREV</button>
<div id="help-num">1/5</div>
<button id="box-help-next" class="btn-primary">NEXT ></button>
</div>
</div>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>