generated from penpot/penpot-plugin-starter-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
124 lines (114 loc) · 3.85 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Penpot Gridify Plugin</title>
<link rel="icon" type="image/png" href="content/icon.png" />
</head>
<body>
<main>
<div class="choice-selector">
<p class="choice-selected">Dots</p>
<p>Lines</p>
</div>
<label for="size">
Size
<input
min="0.1"
step="0.1"
class="input"
type="number"
placeholder="Size or width"
id="size"
value="8"
/>
</label>
<section class="rows">
<label for="columns">
Columns
<input
min="1"
class="input"
type="number"
placeholder="Columns"
id="columns"
value="4"
/>
</label>
<button id="lock-amount" class="lock-action">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="currentColor"
>
<path
d="M12 10v-4c0-3.313-2.687-6-6-6s-6 2.687-6 6v3h2v-3c0-2.206 1.794-4 4-4s4 1.794 4 4v4h-4v14h18v-14h-12z"
/>
</svg>
</button>
<label for="rows">
Rows
<input
min="1"
class="input"
type="number"
placeholder="Rows"
id="rows"
value="4"
/>
</label>
</section>
<section class="rows">
<label for="column-gap">
Column gap
<input
min="0"
class="input"
type="number"
placeholder="Column gap"
id="column-gap"
value="8"
/>
</label>
<button id="lock-gap" class="lock-action">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="currentColor"
>
<path
d="M12 10v-4c0-3.313-2.687-6-6-6s-6 2.687-6 6v3h2v-3c0-2.206 1.794-4 4-4s4 1.794 4 4v4h-4v14h18v-14h-12z"
/>
</svg>
</button>
<label for="row-gap">
Row gap
<input
min="0"
class="input"
type="number"
placeholder="Row gap"
id="row-gap"
value="8"
/>
</label>
</section>
<button
type="button"
data-appearance="primary"
data-handler="create-grid"
>
Create grid
</button>
<label>
Larger grids may take a few extra seconds to generate.
</label>
</main>
<script type="module" src="/src/main.ts"></script>
</body>
</html>