Skip to content

Commit 13a6116

Browse files
committed
chore: editor, v3 progress
1 parent cbee34f commit 13a6116

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

public/index.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ <h2>Custom Keywords</h2>
8484
<span>\bypass</span>
8585
</div>
8686
</div>
87+
<dialog id="editor">
88+
<div class="helper"></div>
89+
<div class="preview"></div>
90+
<div class="input"></div>
91+
</dialog>
8792
<template id="selectSoul">
8893
<h2>Change Soul</h2>
8994
<span class="selectable active">NONE</span>
@@ -154,5 +159,35 @@ <h2>Select Rarity</h2>
154159
</header>
155160
<div class="cards"></div>
156161
</template>
162+
<template id="menu">
163+
<div class="menu" popover="auto" onclick="this.hidePopover();">
164+
<button class="menu-button material-icons" commandfor="editor" command="show-modal">edit_square</button>
165+
<button class="menu-button material-icons">save_alt</button>
166+
<button class="menu-button material-icons">delete</button>
167+
</div>
168+
</template>
169+
<template id="card">
170+
<div class="card">
171+
<div class="top row">
172+
<div class="name center-v"></div>
173+
<div class="cost center-v center-h"></div>
174+
</div>
175+
<div class="image">
176+
<img class="avatar" src="" />
177+
<div class="status"></div>
178+
<div class="tribes"></div>
179+
</div>
180+
<div class="description center-v center-h"></div>
181+
<div class="bottom row">
182+
<div class="attack center-v center-h"></div>
183+
<div class="rarity center-v center-h">
184+
<img>
185+
</div>
186+
<div class="health center-v center-h"></div>
187+
</div>
188+
</div>
189+
</template>
190+
<template id="text"></template>
191+
<template id="effects"></template>
157192
</body>
158193
</html>

public/resources/style.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ input, textarea {
88
user-select: text;
99
}
1010

11+
.center-v {
12+
display: flex;
13+
align-items: center;
14+
}
15+
16+
.center-h {
17+
display: flex;
18+
justify-content: center;
19+
}
20+
1121
body > footer {
1222
position: fixed;
1323
bottom: 10px;

0 commit comments

Comments
 (0)