├── .gitignore ├── LICENSE ├── README.md ├── gulpfile.js ├── package.json └── src ├── images ├── bulma-logo.png └── user-image.jpg ├── javascript └── main.js ├── pages ├── blank.html ├── index.html ├── partials │ ├── footer.html │ ├── header.html │ ├── hero.html │ ├── page-top.html │ └── sidebar.html └── tables.html ├── sass ├── bulma.sass └── style.scss └── screenshots └── dashboard.png /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /build 3 | package-lock.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Samer Moustafa 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 all 13 | 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 THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Bulma-Dashboard 2 | Free Dashboard Template using Bulma Framework 3 | 4 | ![alt text][logo] 5 | 6 | [logo]: https://github.com/SamZCoder/Bulma-Dashboard/raw/master/src/screenshots/dashboard.png "Bulma Dashboard" 7 | 8 | ## How to install 9 | First you have to make sure you have git installed on your machine then clone this repository locally by running this command 10 | ``` 11 | git clone https://github.com/SamZCoder/Bulma-Dashboard.git 12 | ``` 13 | Now you have all source code localy so it's time to build the project but you must have NodeJs install and then run this command to install required packages 14 | ``` 15 | npm install 16 | ``` 17 | Once finished installing required packages just run gulp to build your project into a directory called "build" 18 | ``` 19 | gulp 20 | ``` -------------------------------------------------------------------------------- /gulpfile.js: -------------------------------------------------------------------------------- 1 | const gulp = require('gulp'); 2 | const sass = require('gulp-sass'); 3 | const rename = require('gulp-rename'); 4 | const htmlInclude = require('gulp-file-include'); 5 | const terser = require('gulp-terser'); 6 | 7 | gulp.task('build_js', function(){ 8 | return gulp.src('./src/javascript/*.js') 9 | .pipe(terser()) 10 | .pipe(rename({suffix : '.min'})) 11 | .pipe(gulp.dest('./build/javascript', {overwrite : true})); 12 | }); 13 | 14 | gulp.task('build_sass', function(){ 15 | return gulp.src('./src/sass/*.sass') 16 | .pipe(gulp.src('./src/sass/*.scss')) 17 | .pipe(sass({ includePaths : ['./node_modules'], outputStyle : 'compressed'})) 18 | .pipe(rename({ suffix : '.min'})) 19 | .pipe(gulp.dest('./build/css', {overwrite : true})); 20 | }); 21 | 22 | 23 | gulp.task('build_html', function(){ 24 | return gulp.src('./src/pages/*.html') 25 | .pipe(htmlInclude({ 26 | 'prefix' : '@@', 27 | basepath : './src/pages/partials/' 28 | })) 29 | .pipe(gulp.dest('./build', {overwrite:true})); 30 | }); 31 | 32 | gulp.task('images', function(){ 33 | return gulp.src('./src/images/*.*') 34 | .pipe(gulp.dest('./build/images', {overwrite:true})); 35 | }); 36 | 37 | 38 | //Watch Task 39 | gulp.task('watch', function(){ 40 | 41 | gulp.watch('./src/sass/*.sass', gulp.series('build_sass')); 42 | gulp.watch('./src/sass/*.scss', gulp.series('build_sass')); 43 | gulp.watch('./src/javascript/*.js', gulp.series('build_js')); 44 | gulp.watch('./src/pages/partials/*.html', gulp.series('build_html')); 45 | gulp.watch('./src/pages/*.html', gulp.series('build_html')); 46 | gulp.watch('./src/images/*.*', gulp.series('images')); 47 | }); 48 | 49 | //Single Run as Default 50 | gulp.task('default', gulp.series('build_html', 'build_sass', 'build_js', 'images')); -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bulma-dashboard", 3 | "version": "1.0.0", 4 | "description": "Bulma Based Dashboard Template to Spread love of Bulma", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/SamZCoder/Bulma-Dashboard.git" 12 | }, 13 | "keywords": [ 14 | "bulma", 15 | "html", 16 | "css", 17 | "sass", 18 | "template" 19 | ], 20 | "author": "SamZCoder", 21 | "license": "MIT", 22 | "bugs": { 23 | "url": "https://github.com/SamZCoder/Bulma-Dashboard/issues" 24 | }, 25 | "homepage": "https://github.com/SamZCoder/Bulma-Dashboard#readme", 26 | "devDependencies": { 27 | "gulp": "^4.0.2", 28 | "gulp-file-include": "^2.1.1", 29 | "gulp-rename": "^2.0.0", 30 | "gulp-sass": "^4.0.2", 31 | "gulp-terser": "^1.2.0" 32 | }, 33 | "dependencies": { 34 | "bulma": "^0.8.1" 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/images/bulma-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codersamer/Bulma-Dashboard/1e4145735833b9160775491ab7a42c7933a0ab5d/src/images/bulma-logo.png -------------------------------------------------------------------------------- /src/images/user-image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codersamer/Bulma-Dashboard/1e4145735833b9160775491ab7a42c7933a0ab5d/src/images/user-image.jpg -------------------------------------------------------------------------------- /src/javascript/main.js: -------------------------------------------------------------------------------- 1 | console.log('Bulma Dashboard'); 2 | //Sidebar Collapse 3 | Array.from(document.getElementById('sidebar').getElementsByClassName('has-dropdown')).forEach(element => { 4 | element.addEventListener('click', function(e) { 5 | if(!e.target.parentNode.className.includes("has-dropdown")){return;} 6 | const submenu = element.getElementsByTagName('ul')[0]; 7 | if(submenu != undefined) 8 | { submenu.style.display = submenu.style.display == "block" ? "none" : "block";} 9 | event.preventDefault(); 10 | }, element); 11 | }) -------------------------------------------------------------------------------- /src/pages/blank.html: -------------------------------------------------------------------------------- 1 | @@include('header.html') 2 | @@include('sidebar.html') 3 | @@include('page-top.html') 4 |
Categories
15 |Pages
28 |Published Posts
41 |Active Users
54 |Create Quick Post
64 |Server Status
93 |Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut quam eos reprehenderit quos, ipsam magni. Dignissimos similique obcaecati quas repellat libero facere.
95 |Adminstration
99 |Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut quam eos reprehenderit quos, ipsam magni.
101 |Id | 113 |Name | 114 |Role | 116 ||
---|---|---|---|
1 | 121 |
122 |
123 |
129 | ![]()
125 |
128 | Sam ZCoder 126 |Administrator 127 | |
130 | coder.sam@outlook.com | 131 |Administrator | 132 |
2 | 135 |
136 |
137 |
143 | ![]()
139 |
142 | Sarah Beachoup 140 |Moderator 141 | |
144 | sarah.beachoup@gmail.com | 145 |Moderator | 146 |
3 | 149 |
150 |
151 |
157 | ![]()
153 |
156 | John Doe 154 |Author 155 | |
158 | john.doe@outlook.com | 159 |Author | 160 |
4 | 163 |
164 |
165 |
171 | ![]()
167 |
170 | John Doe 168 |User 169 | |
172 | coder.sam@outlook.com | 173 |User | 174 |