-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
366 lines (365 loc) · 16.5 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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>
<%= htmlWebpackPlugin.options.title %>
</title>
</head>
<body>
<div class="layout">
<div class="layout__header">
<div class="has-background-primary p-md">
<h1 class="title is-size-4 has-text-white">
Bulma Layout builder<span class="is-block is-size-7 has-text-white-ter">for v0.7.4</span>
</h1>
</div>
</div>
<div class="layout__template">
<input type="checkbox" id="debug" class="app-template-debug" checked />
<div id="template" class="app-template">
<nav class="navbar is-primary" data-name="Navbar" draggable="true">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item" href="#" style="font-weight:bold;">
Wax Interactive
</a>
<span class="navbar-burger burger" data-target="navMenu" aria-controls="navMenu">
<span></span>
<span></span>
<span></span>
</span>
</div>
<div id="navMenu" class="navbar-menu">
<nav class="navbar-end" aria-label="Main menu" role="navigation">
<a href="#" class="navbar-item is-active">Home</a>
<a href="#" class="navbar-item">Blog</a>
<a href="#" class="navbar-item">Forum</a>
<a href="#" class="navbar-item">Shop</a>
<a href="#" class="navbar-item">Examples</a>
</nav>
</div>
</div>
</nav>
<header class="hero is-medium is-primary" data-name="Hero" draggable="true">
<div class="hero-body" data-name="Hero Body" draggable="true">
<div class="container" data-name="Container" draggable="true">
<div class="columns" data-name="Columns" draggable="true">
<div class="column is-8-desktop is-offset-2-desktop" data-name="Column" draggable="true">
<h1 class="title is-2 is-spaced" data-name="Title" draggable="true">
Hello Bulma!
</h1>
<h2 class="subtitle is-4" data-name="Subtitle" draggable="true">
Congratulations! You're running the
<strong>Bulma start</strong>
project.
<br />
It includes everything you need to
<strong>build your own website</strong>
with Bulma.
</h2>
</div>
</div>
</div>
</div>
</header>
<section class="section" data-name="Section" draggable="true">
<div class="container" data-name="Container" draggable="true">
<div class="columns" data-name="Columns" draggable="true">
<div class="column is-8-desktop is-offset-2-desktop" data-name="Column" draggable="true">
<div class="content" data-name="Content" draggable="true">
<h3 data-name="h3" draggable="true">What's included</h3>
<p data-name="p" draggable="true">
The
<code>npm</code>
dependencies included in
<code>package.json</code>
are:
</p>
<ul data-name="ul" draggable="true">
<li data-name="li" draggable="true">
<code>
<a href="https://github.com/jgthms/bulma">bulma</a>
</code>
</li>
<li data-name="li" draggable="true">
<code>
<a href="https://github.com/sass/node-sass">node-sass</a>
</code>
to compile your own Sass file
</li>
<li data-name="li" draggable="true">
<code>
<a href="https://github.com/postcss/postcss-cli">postcss-cli</a>
</code>
and
<code>
<a href="https://github.com/postcss/autoprefixer">autoprefixer</a>
</code>
to add support for older browsers
</li>
<li data-name="li" draggable="true">
<code> <a href="https://babeljs.io/docs/usage/cli/">babel-cli</a> </code>,
<code>
<a href="https://github.com/babel/babel-preset-env">babel-preset-env</a>
</code>
and
<code>
<a href="https://github.com/jmcriffey/babel-preset-es2015-ie">babel-preset-es2015-ie</a>
</code>
for compiling ES6 JavaScript files
</li>
</ul>
<p data-name="p" draggable="true">
Apart from
<code>package.json</code>, the following files are included:
</p>
<ul data-name="ul" draggable="true">
<li data-name="li" draggable="true">
<code>.babelrc</code>
configuration file for
<a href="https://babeljs.io/">Babel</a>
</li>
<li data-name="li" draggable="true">
<code>.gitignore</code>
common
<a href="https://git-scm.com/">Git</a>
ignored files
</li>
<li data-name="li" draggable="true">
<code>index.html</code>
this HTML5 file
</li>
<li data-name="li" draggable="true">
<code>_sass/main.scss</code>
a basic SCSS file that
<strong>imports Bulma</strong>
and explains how to
<strong>customize</strong>
your styles, and compiles to
<code>css/main.css</code>
</li>
<li data-name="li" draggable="true">
<code>_javascript/main.js</code>
an ES6 JavaScript that compiles to
<code>lib/main.js</code>
</li>
</ul>
<h3 data-name="h3" draggable="true">Try it out!</h3>
<p data-name="p" draggable="true">
To see if your setup works, follow these steps:
</p>
<p data-name="p" draggable="true">
The page background should turn
<strong class="has-text-success">green</strong>!
</p>
<h3 data-name="h3" draggable="true">Get started</h3>
<p data-name="p" draggable="true">
You're
<strong>ready</strong>
to create your own designs with Bulma. Just edit or duplicate this page, or simply create a new
one!
<br />
For example, this page is
<strong>only</strong>
built with the following
<strong>Bulma elements</strong>:
</p>
</div>
<table class="table is-bordered is-fullwidth" data-name="table" draggable="true">
<thead>
<tr>
<th>Type</th>
<th>CSS class</th>
</tr>
</thead>
<tbody>
<tr>
<th>Columns</th>
<td>
<code>
<a href="http://bulma.io/documentation/columns/basics">columns</a>
</code>
<code>
<a href="http://bulma.io/documentation/columns/basics">column</a>
</code>
</td>
</tr>
<tr>
<th>Layout</th>
<td>
<code>
<a href="http://bulma.io/documentation/layout/section">section</a>
</code>
<code>
<a href="http://bulma.io/documentation/layout/container">container</a>
</code>
<code>
<a href="http://bulma.io/documentation/layout/footer">footer</a>
</code>
</td>
</tr>
<tr>
<th>Elements</th>
<td>
<code>
<a href="http://bulma.io/documentation/elements/button">button</a>
</code>
<code>
<a href="http://bulma.io/documentation/elements/content">content</a>
</code>
<code>
<a href="http://bulma.io/documentation/elements/title">title</a>
</code>
<code>
<a href="http://bulma.io/documentation/elements/title">subtitle</a>
</code>
</td>
</tr>
<tr>
<th>Form</th>
<td>
<code>
<a href="http://bulma.io/documentation/form/general">field</a>
</code>
<code>
<a href="http://bulma.io/documentation/form/general">control</a>
</code>
</td>
</tr>
<tr>
<th>Helpers</th>
<td>
<code>
<a href="http://bulma.io/documentation/modifiers/typography-helpers/">has-text-centered</a>
</code>
<code>
<a href="http://bulma.io/documentation/modifiers/typography-helpers/"
>has-text-weight-semibold</a
>
</code>
</td>
</tr>
</tbody>
</table>
<div class="content" data-name="COntent" draggable="true">
<p>
If you want to
<strong>learn more</strong>, follow these links:
</p>
</div>
<div class="field is-grouped" data-name="Field" draggable="true">
<p class="control" data-name="p" draggable="true">
<a class="button is-medium is-primary" href="http://bulma.io" data-name="button" draggable="true">
<strong class="has-text-weight-semibold">Bulma homepage</strong>
</a>
</p>
<p class="control" data-name="Control" draggable="true">
<a
class="button is-medium is-link"
href="http://bulma.io/documentation/overview/start/"
data-name="Media"
draggable="true"
>
<strong class="has-text-weight-semibold">Documentation</strong>
</a>
</p>
</div>
</div>
</div>
</div>
</section>
<footer class="footer has-text-centered" data-name="Footer" draggable="true">
<div class="container" data-name="Container" draggable="true">
<div class="columns" data-name="Columns" draggable="true">
<div class="column is-8-desktop is-offset-2-desktop" data-name="Column" draggable="true">
<p data-name="p" draggable="true">
<strong class="has-text-weight-semibold">
<a href="https://www.npmjs.com/package/bulma-start">bulma-start@0.0.1</a>
</strong>
</p>
<p data-name="p" draggable="true">
<small>
Source code licensed
<a href="http://opensource.org/licenses/mit-license.php">MIT</a>
</small>
</p>
</div>
</div>
</div>
</footer>
</div>
</div>
<div class="layout__sidebar p-sm">
<div class="content">
<p>
This is a tool designed to prototype html templates with drag 'n drop. The template is based on
<a href="https://bulma.io" target="_blank">Bulma.css</a>.
</p>
<p>How does this work:</p>
<ul class="is-size-7">
<li>Choose from elements in the sidebar and drag them into the template.</li>
<li>
When you hover an element, you'll see an overlay. Depending on the position of the mouse, it'll be at the
left of at the right of the element. This specifies the position of the added element (insert at the
beginning of the element of at the end).
</li>
<li>
While dragging you can press "<strong>Shift</strong>". This tells the app to append or prepend
to the displayed element.
</li>
<li>
Click on element in the template to select it. Clicking backspace removes this element. Selecting it
updates the classList in the sidebar. Use it to add and/or remove classes on that element.
</li>
</ul>
</div>
<hr />
<h2 class="is-size-4 m-t-sm m-b-xs">Debug</h2>
<label for="debug" class="button is-link is-block">Toggle debug layout</label>
<hr />
<h2 class="is-size-4 m-t-sm m-b-xs">Classes</h2>
<div class="field">
<div class="control select is-multiple is-small is-fullwidth">
<select id="classes" class="bulma-classes is-block" multiple></select>
</div>
</div>
<hr />
<h2 class="is-size-4 m-t-sm m-b-xs">Grid</h2>
<div id="blocks" class="app-blocks">
<div class="app-blocks__template">
<h2 class="is-size-5 has-text-weight-bold">Basic Div</h2>
<div data-name="Div" draggable="true">Div</div>
</div>
<div class="app-blocks__template">
<h2 class="is-size-5 has-text-weight-bold">Container</h2>
<div class="container" data-name="Container" draggable="true"></div>
</div>
<div class="app-blocks__template">
<h2 class="is-size-5 has-text-weight-bold">Columns</h2>
<div class="columns" data-name="Columns" draggable="true"></div>
</div>
<div class="app-blocks__template">
<h2 class="is-size-5 has-text-weight-bold">Column</h2>
<div class="column" data-name="Column" draggable="true"></div>
</div>
<div class="app-blocks__template">
<h2 class="is-size-5 has-text-weight-bold">Hero</h2>
<section class="hero" data-name="Hero" draggable="true">
<div class="hero-body" data-name="Hero body" draggable="true">
<div class="container" data-name="Container" draggable="true">
<h1 class="title" data-name="Title" draggable="true">
Hero title
</h1>
<h2 class="subtitle" data-name="Subtitle" draggable="true">
Hero subtitle
</h2>
</div>
</div>
</section>
</div>
</div>
</div>
</div>
</body>
</html>