Motherboard Documentation

Getting started

Ready-to-use layouts and separate components easy to combine and create your own design project.

Getting Started#

  • Unzip project folder

  • Open code editor

  • Navigate to the project

File structure

Motherboard
├── components.html
├── sidebar.html
├── widgets.html
├── css
│   └── library
        └── (included 5 files)
│   ├── login.css
│   ├── style.css
│   └── style.css.map
├── Fonts
│   └── (included 14 files)
├── img
    ├── *.png
    ├── *.svg
    └── *.jpg
├── js
│   └── libs
        └── (included 17 files)
    └── (included 11 files)
├── templates
│   └── (included 11 files)

                  

In the templatesfolder for clarity, all blocks are assembled into ready-made templates

Introduction

To build your template, you need components.html, sidebar.html and widgets.html files. You just need to copy the block you want. An example of one page in html:


                        
<!--Sidebar -->
<aside id="sidebar" class="sidebar-wrapper">
<....>
</aside>
<!--Sidebar -End -->
    
<!--Header/ Topbar --> <div id="navbar-wrapper"> <....> </div> <!--Header/ Topbar -End -->
<!--Main section --> <section id="content-wrapper"> <....> </section> <!--Main section -End -->

Alerts

There are two types of alerts. First one is standart alert with green background, other one is toast notification alert.
To start to use alert you can import it from components.html


                        
<!--Green alert -->
<div class="profile__alert">
<....>
</div>
<!--Green alert -->
    
<!--Toast notification --> <div class="toast-notification" id="openToast"> <....> </div> <!--Toast notification -->

Examples

How to do this?
We made step-by-step guide “How to create users”
Read tutorial

Toast notification title
This is toast notification example. Why you still reading this?
Alerts

Two types of alert

Buttons

There are different types of buttons, with icon, without icon, with icon and text etc.
To start to use button you can import it from components.html


                        
<!--Buttons / Controls -->
<!--Button / Light blue Bg / With icon -->
<a href="#" class="btn btn__blue btn__blue_40 btn__withIcon">
<svg>
<...>
</svg>
</a>
<!--Button / Light blue Bg / With icon -->

<!--Button / Light blue Bg  -->
<a href="#" class="btn btn__blue btn__blue_40">
Button Text
</a>
<!--Button / Light blue Bg  -->
<!--Buttons / Controls -->

etc 
                    

Examples

Charts

There are 16 types of charts with different sizes.
To start to use it you can import from widgets.html


                        
<!--Bar chart -->
<div class="col-xl-3 col-md-6">
<div class="card">
<...>
</div>
</div>
<!--Bar chart -->

etc 
                    

Examples

Left to goal

$4 463

Revenue

-12.2%
$21 434
vs last week

Server errors

0%
46
vs last week
Last errors Error code
4:20 / Mar 18 Out of Service - 408
3:41 / Mar 18 Temp Suspended - 512
2:13 / Mar 17 Not Found - 404

Active users

4.2%
2 345
vs last week

Visits

4.2%
$12 563
vs last week

Visits

4.2%
2 345
vs last week
Mobile
28%
1 422
VS
Desktop
72%
2 422

Today

21 aug

Today productivity

0%
5 hr 24 m
vs last week
  • Mon
  • Tue
  • Wed
  • Thu
  • Fri
  • Sat
  • Sun
Design
Development
Communication

Avg. salary

Sales top

Employee
Revenue
Users image 1
Darlene Robertson
Sales @ ls.store
+12.3%
$3 463
Users image 1
Ralph Edwards
Sales manager @ Craftwork
-3.3%
$2 481
Users image 1
Esther Howard
Lead of Sales @ Storytale
-1.34%
$1 513
Users image 1
Savannah Nguyen
Sales @ salo.design
+5.3%
$3 463

Daily visits

Add widget
Add your first widget
Customize your dashboard as you need

Revenue

Sales heatmap

Revenue

Funnel summary

Charts

Two types of JS libraries were used.
Chart.js library were used for the "Radial", "Doughnut" and "Radar" charts.
Zingchart.js library were used for "Bar", "Area", "Visit", "Line", "Heatmap" and 'Funnel' charts.
In "Table", "Compare", "Task", "Gant", "Sales top" and "Add widget" widgets no libraries were used.

Chart

Detailed documentation and examples of charts use you can find by the following links:
1. Chart.js
2. Zingchart.js

Below you can see the code of Bar chart


                        
<!--HTML -->
<div class="col-xl-3 col-md-6">
<div class="card">
<...>
<div id="barChart"></div>
</div>
</div>
<!--HTML -->

To show the chart just put id name in html file to library in .js file

<!--JS --> //Bar chart var chartData = { type: "bar", gui:{ contextMenu:{ button:{ visible: false } } }, scaleX: { labels: [20.22, 21.22, 22.22, 23.22, 24.22, 25.22], visible: false, }, scaleY: { visible: false, }, legend: { visible: false, }, title: { visible: false, }, plotarea: { margin: "25% 0 4% 0", }, plot: { tooltip: { backgroundColor: "#000", padding: "6 8 8 8", borderColor: "#000", borderWidth: 0, borderRadius: 4, lineHeight: 17, fontFamily: "Inter", text: "%v$ %kl", shadow: false, }, animation: { effect: "4", speed: "1000", method: "4", }, }, series: [ { values: [3500, 4200, 1670, 2774, 3000, 1500], backgroundColor: "rgba(32, 201, 51, .25)", borderWidth: 0, borderColor: "rgba(32, 201, 51, .25)", borderRadius: 2, }, { values: [2800, 4000, 1390, 3600, 1000, 2500], backgroundColor: "#20C933", borderWidth: 0, borderColor: "#20C933", borderRadius: 2, }, ], }; zingchart.render({ id: "barChart", data: chartData, height: 125, width: "100%", }); //Bar chart end <!--JS -->

Controls

There are different types of controls like tabs, pagination, checkbox, switchbox, links and breadcrumb.
To start to use it you can import from components.html


                        
<!--Controls -->
<!--Tabs -->
<div class="refferal__tabs m-0">
<ul class="nav nav-pills mb-3 new-profile__tabs header-two_tab" id="pills-tab" role="tablist">
<...>
</ul>
<div class="custom-selectpicker" name="selValue">
<...>
</div>
</div>
<!--Tabs -->
<!--Controls -->

etc 
                    

Examples


Controls

There are 8 types of controls in bundle

Field

7 types of fields for your template.
To start to use it you can import from components.html


                        
<!--Field / Standart -->
<div lass="form-group">
<input ...>
</div>
<!--Field / Standart -->

etc 
                    

Examples

Fields

There are 7 types of controls in bundle

Headers

You can choose one of the four ready headers
To start to use header you can import it from components.html


                        
<!--Header top bar -->
<div id="navbar-wrapper">
<....>
</div>
<!--Header top bar -->
    
<!--Header 1 --> <!--Header top bar --> <div id="navbar-wrapper"> <....> </div> <!--Header top bar --> <div class="page-breadcrumb"> <....> </div> <div class="title_one d-flex justify-content-between"> <....> </div> <div class="section-line"></div > <!--Header 1 -->
<!--Header 2 --> <!--Header top bar --> <div id="navbar-wrapper"> <....> </div> <!--Header top bar --> <div class="title_two d-flex justify-content-between"> <ul class="nav nav-pills mb-3 new-profile__tabs header-two_tab" id="pills-tab" role="tablist"> <....> </ul> </div> <div class="section-line mt-0"></div > <!--Header 2 -->
<!--Header 3 --> <!--Header top bar --> <div id="navbar-wrapper"> <....> </div> <!--Header top bar --> <div class="d-flex align-items-center justify-content-between header-three"> <....> </div> <div class="section-lineThin"></div > <!--Header 3 -->

Examples



Workspace

1 Filter
Countries
Type


Workspace



Headers

Four types of headers

Inputs

4 types of fields for your template.
To start to use it you can import from components.html


                        
<!--Input with dropdown -->
<div lass="form-group">
< ...>
</div>
<!--Input with dropdown -->

etc 
                    

Examples

Inputs

There are 4 types of controls in bundle

Popovers

3 kinds of popovers
To start to use it you can import from components.html


                        
<!--Search tooltip -->
<div class="search-tooltip myD-block" id="search-tooltip">
< ...>
</div>
<!--Search tooltip -->

etc 
                    

Examples

Recent notifications
1 new message from Storytale
Hello there, i just wanted to ask if there are...
2 hr ago
Your subscription ending soon
Don’t forget to renew Craftwork subscription
3 days ago
Data export finished
Your data_24/12/2020 is ready to download
1 week ago
Popovers

There are 3 kinds of popovers in template

Tables

Different type of tables for your template.
To start to use it you can import from components.html


                        
<!--Table 1 -->
<table class="table-one first-table table_sort">
< ...>
</table>
<!--Table 1  -->

etc 
                    

Examples

Header title Header title Header title Header title Header title
Cell text Cell text Cell text Cell text Cell text
Table

Sortable tables