forked from jgthms/bulma-start
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
207 lines (207 loc) · 8.53 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>My first Bulma website</title>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<section class="hero is-medium is-primary">
<div class="hero-body">
<div class="container">
<div class="columns">
<div class="column is-8-desktop is-offset-2-desktop">
<h1 class="title is-2 is-spaced">
Hello Bulma!
</h1>
<h2 class="subtitle is-4">
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>
</section>
<section class="section">
<div class="container">
<div class="columns">
<div class="column is-8-desktop is-offset-2-desktop">
<div class="content">
<h3>What's included</h3>
<p>
The <code>npm</code> dependencies included in <code>package.json</code> are:
</p>
<ul>
<li>
<code><a href="https://github.com/jgthms/bulma">bulma</a></code>
</li>
<li>
<code><a href="https://github.com/sass/node-sass">node-sass</a></code> to compile your own Sass file
</li>
<li>
<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>
<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>
Apart from <code>package.json</code>, the following files are included:
</p>
<ul>
<li>
<code>.babelrc</code> configuration file for <a href="https://babeljs.io/">Babel</a>
</li>
<li>
<code>.gitignore</code> common <a href="https://git-scm.com/">Git</a> ignored files
</li>
<li>
<code>index.html</code> this HTML5 file
</li>
<li>
<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>
<code>_javascript/main.js</code> an ES6 JavaScript that compiles to <code>lib/main.js</code>
</li>
</ul>
<h3>Try it out!</h3>
<p>
To see if your setup works, follow these steps:
</p>
<ol>
<li>
<p>
<strong>Install</strong> all dependencies:
<br>
<pre><code>npm install</code></pre>
</p>
</li>
<li>
<p>
<strong>Start</strong> the CSS and JS watchers:
<br>
<pre><code>npm start</code></pre>
</p>
</li>
<li>
<p>
<strong>Edit</strong> <code>_sass/main.scss</code> by adding the following rule at the <strong>end</strong> of the file:
<br>
<pre><code>html { background-color: $green;}</code></pre>
</p>
</li>
</ol>
<p>
The page background should turn <strong class="has-text-success">green</strong>!
</p>
<h3>Get started</h3>
<p>
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">
<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">
<p>
If you want to <strong>learn more</strong>, follow these links:
</p>
</div>
<div class="field is-grouped">
<p class="control">
<a class="button is-medium is-primary" href="http://bulma.io">
<strong class="has-text-weight-semibold">Bulma homepage</strong>
</a>
</p>
<p class="control">
<a class="button is-medium is-link" href="http://bulma.io/documentation/overview/start/">
<strong class="has-text-weight-semibold">Documentation</strong>
</a>
</p>
</div>
</div>
</div>
</div>
</section>
<footer class="footer has-text-centered">
<div class="container">
<div class="columns">
<div class="column is-8-desktop is-offset-2-desktop">
<p>
<strong class="has-text-weight-semibold">
<a href="https://www.npmjs.com/package/bulma-start">bulma-start@0.0.1</a>
</strong>
</p>
<p>
<small>
Source code licensed <a href="http://opensource.org/licenses/mit-license.php">MIT</a>
</small>
</p>
<p style="margin-top: 1rem;">
<a href="http://bulma.io">
<img src="made-with-bulma.png" alt="Made with Bulma" width="128" height="24">
</a>
</p>
</div>
</div>
</div>
</footer>
<script type="text/javascript" src="lib/main.js"></script>
</body>
</html>