Skip to content

Commit 780f1f9

Browse files
committed
10/12/2022
1 parent 72162e2 commit 780f1f9

20 files changed

+15472
-8651
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["es2015-ie"]
3+
}

.gitignore

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
/node_modules/
1+
# Files
2+
3+
.DS_Store
4+
.ruby-version
5+
npm-debug.log
6+
7+
# Folders
8+
9+
.idea/
10+
.jekyll-cache/
11+
.sass-cache
12+
_gh_pages
13+
_site
14+
node_modules

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2022 Justin Vo
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# Start package for [Bulma](http://bulma.io)
2+
3+
Tiny npm package that includes the `npm` **dependencies** you need to **build your own website** with Bulma.
4+
5+
<a href="http://bulma.io"><img src="https://raw.githubusercontent.com/jgthms/bulma-start/master/bulma-start.png" alt="Bulma: a Flexbox CSS framework" style="max-width:100%;" width="600" height="315"></a>
6+
7+
## Install
8+
9+
```sh
10+
npm install bulma-start
11+
```
12+
_or_
13+
14+
```sh
15+
yarn add bulma-start
16+
```
17+
18+
## What's included
19+
20+
The `npm` dependencies included in `package.json` are:
21+
22+
* <code>[bulma](https://github.com/jgthms/bulma)</code>
23+
* <code>[node-sass](https://github.com/sass/node-sass)</code> to compile your own Sass file
24+
* <code>[postcss-cli](https://github.com/postcss/postcss-cli)</code> and <code>[autoprefixer](https://github.com/postcss/autoprefixer)</code> to add support for older browsers
25+
* <code>[babel-cli](https://babeljs.io/docs/usage/cli/)</code>, <code>[babel-preset-env](https://github.com/babel/babel-preset-env)</code> and <code>[babel-preset-es2015-ie](https://github.com/jmcriffey/babel-preset-es2015-ie)</code> for compiling ES6 JavaScript files
26+
27+
Apart from `package.json`, the following files are included:
28+
29+
* `.babelrc` configuration file for [Babel](https://babeljs.io/)
30+
* `.gitignore` common [Git](https://git-scm.com/) ignored files
31+
* `index.html` this HTML5 file
32+
* `_sass/main.scss` a basic SCSS file that **imports Bulma** and explains how to **customize** your styles, and compiles to `css/main.css`
33+
* `_javascript/main.js` an ES6 JavaScript that compiles to `lib/main.js`
34+
35+
36+
## Get your feet wet
37+
38+
This package is meant to provide a **good starting point** for working with Bulma.
39+
40+
When installing this package with the commands above, it landed in `$HOME/node_packages/bulma-start`.
41+
In order to use it as a **template** for your **project**, you might consider copying it to a better suited location:
42+
43+
```sh
44+
cd $HOME/projects
45+
cp -a $HOME/node_modules/bulma-start my-bulma-project
46+
```
47+
48+
Alternatively, you could do something similar with a GitHub clone as well.
49+
50+
```sh
51+
cd $HOME/projects
52+
git clone https://github.com/jgthms/bulma-start
53+
mv bulma-start my-bulma-project
54+
rm -rf my-bulma-project/.git # cut its roots
55+
```
56+
57+
Now, that you prepared the groundwork for your project, set up Bulma and run the watchers:
58+
59+
```sh
60+
cd my-bulma-project
61+
npm install
62+
npm start
63+
```
64+
65+
As long as `npm start` is running, it will **watch** your changes. You can edit `_sass/main.scss` and `_javascript/main.js` at will. Changes are **immediately** compiled to their destinations, where `index.html` will pick them up upon reload in your browser.
66+
67+
Some controlling output is written to the `npm start` console in that process:
68+
69+
```sh
70+
_javascript/main.js -> lib/main.js
71+
72+
=> changed: $HOME/projects/start-with-bulma/_sass/main.scss
73+
Rendering Complete, saving .css file...
74+
Wrote CSS to $HOME/projects/start-with-bulma/css/main.css
75+
```
76+
77+
Use `npm run` to show all available commands:
78+
79+
```sh
80+
Lifecycle scripts included in bulma-start:
81+
start
82+
npm-run-all --parallel css-watch js-watch
83+
84+
available via `npm run-script`:
85+
css-build
86+
node-sass _sass/main.scss css/main.css
87+
css-deploy
88+
npm run css-build && npm run css-postcss
89+
css-postcss
90+
postcss --use autoprefixer --output css/main.css css/main.css
91+
css-watch
92+
npm run css-build -- --watch
93+
deploy
94+
npm run css-deploy && npm run js-build
95+
js-build
96+
babel _javascript --out-dir lib
97+
js-watch
98+
npm run js-build -- --watch
99+
```
100+
101+
If you want to learn more, follow these links: [Bulma homepage](http://bulma.io) and [Documentation](http://bulma.io/documentation/overview/start/).
102+
103+
104+
## Copyright and license
105+
106+
Code copyright 2017 Jeremy Thomas. Code released under [the MIT license](https://github.com/jgthms/bulma-start/blob/master/LICENSE).
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
$(document).ready(function() {
2-
// Check for click events on the navbar burger icon
3-
$(".navbar-burger").click(function() {
4-
// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
5-
$(".navbar-burger").toggleClass("is-active");
6-
$(".navbar-menu").toggleClass("is-active");
7-
});
1+
$(document).ready(function() {
2+
// Check for click events on the navbar burger icon
3+
$(".navbar-burger").click(function() {
4+
// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
5+
$(".navbar-burger").toggleClass("is-active");
6+
$(".navbar-menu").toggleClass("is-active");
7+
});
88
});
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_sass/main.scss

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
@charset "utf-8";
2+
3+
// Customization
4+
5+
// You can easily customize Bulma with your own variables.
6+
// Just uncomment the following block to see the result.
7+
8+
/*
9+
// 1. Import the initial variables
10+
@import "../node_modules/bulma/sass/utilities/initial-variables";
11+
12+
// 2. Set your own initial variables
13+
// Update the blue shade, used for links
14+
$blue: #06bcef;
15+
// Add pink and its invert
16+
$pink: #ff8080;
17+
$pink-invert: #fff;
18+
// Update the sans-serif font family
19+
$family-sans-serif: "Helvetica", "Arial", sans-serif;
20+
21+
// 3. Set the derived variables
22+
// Use the new pink as the primary color
23+
$primary: $pink;
24+
$primary-invert: $pink-invert;
25+
26+
// 4. Import the rest of Bulma
27+
*/
28+
@import url('https://fonts.googleapis.com/css?family=Nunito:400,700');
29+
$family-sans-serif: "Nunito", sans-serif;
30+
$primary: #3b3b3b;
31+
$dark: #303030;
32+
$footer-background-color: $dark;
33+
$footer-color: true;
34+
$scheme-main: $primary;
35+
$scheme-main-bis: #343434;
36+
$link: #cfcfcf;
37+
$link-hover: #ffffff;
38+
$text: white;
39+
@import "../node_modules/bulma/bulma";

bulma-start.png

38.8 KB
Loading

css/extra.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,10 @@ p, .navbar-menu a, .title {
3030
}
3131
.projects .card {
3232
margin-bottom: 1.5rem;
33+
}
34+
.avatar-img {
35+
object-fit: cover;
36+
width: 150px;
37+
height: 150px;
38+
clip-path: circle();
3339
}

0 commit comments

Comments
 (0)