/emag-apps-ui-kit

eMAG Apps UI KIT is a collection of visual elements and guidelines for admin applications.

Primary LanguageJavaScriptMIT LicenseMIT

uikit banner

eMAG Apps UI KIT

We've launched eMAG Apps UI KIT, a collection of visual elements and guidelines for admin applications.
The purpose of this collection is to help you build amazing software easier and faster.

Summary

  1. Summary
  2. Overview
  3. Based on Bootstrap 3.3.5
  4. Working with Grunt.js
  5. Working with eMAG Apps UI KIT's folder structure
  6. Precompiled files (dist)
  7. eMAG Apps UI KIT source code (data)
  8. License
  9. Getting started

Overview

[Back to summary]
A short description about what's it like to work with eMAG Apps UI KIT:

Based on Bootstrap 3.3.5.

[Back to summary]
Our open source UI KIT is based on the Bootstrap architecture. If you're not familiarized with it, check-out their stuff from getbootstrap.com Aside from the elements provided by Bootstrap, it comes with its own set of unique components, styling and useful plugins that you can use in your project.
Features:

  1. Keeping it light with an average page weight of 500Kb
  2. W3C Compliant
  3. WCAG 2.0 Compliant
  4. Average page-load time of 1s

Working with Grunt.js

[Back to summary]
Installing Grunt:
To install Grunt, you must first download and install node.js (which includes npm). Believe it or not, npm stands for node packaged modules and is a way to manage development dependencies through node.js.
Once you've installed node.js, open up the command line in the root directory.
Install grunt-cli globally by running npm install -g grunt-cli.
Afterwards run npm install for npm to look at the package.json file and automatically install the necessary local dependencies listed there.
When completed, you'll be able to run the various Grunt commands provided from the command line.

Available Grunt commands:

grunt styles            - CSS distribution task
grunt scripts           - JS distribution task
grunt plugin_styles     - Generate plugin styles
grunt plugin_scripts    - Generate plugin scripts
grunt default           - Generate main styles and scripts

Working with eMAG Apps UI KIT's folder structure:

[Back to summary]
Once downloaded, unzip the compressed folder to find the three main folders:

uikit/  
|  
├── data/  
│   ├── scripts/  
|   |   ├── base/  
|   |   |   └── custom/  
|   |   └── lib/  
│   ├── styles/  
|   |   ├── base/  
|   |   |   └── custom/  
|   |   └── lib/  
|   └── plugins/  
|  
├── dist/  
│   ├── css/  
|   |   ├── flags/  
|   |   ├── fonts/  
|   |   ├── icons/  
|   |   ├── img/  
|   |   └── lib/  
│   ├── js/  
|   |   └── lib/  
|   └── plugins/  
|  
└── examples/  
    ├── modules/  
    └── glyphicons-halflings-regular.woff2  

Precompiled files (dist)

[Back to summary]

  • css - Main style CSS files.
    • flags - Countries flags as SVG file on 1:1 and 4:3 ratio.
    • fonts - Fonts files used in eMAG Apps UI KIT.
    • icons - Icons used in eMAG Apps UI KIT (created by eMag and from other libraries).
    • img - Images used in demo pages.
    • lib - Styles required by libraries used in eMAG Apps UI KIT.
  • js - Main JS script files.
    • lib - Libraries' JS files.
  • plugins - Plugins used in eMAG Apps UI KIT (CSS and JS files).

eMAG Apps UI KIT source code (data)

[Back to summary]

  • scripts - JS files.
    • base - Main JS files.
      • custom - Custom wrappers over certain plugins.
    • lib - Libraries' JS files.
  • styles - LESS files.
    • base - Main style LESS files
      • custom - Custom wrappers' LESS files.
    • lib - Libraries' LESS files.
  • plugins - Plugins used in eMAG Apps UI KIT (LESS and JS files).

License

[Back to summary]
eMAG Apps UI KIT is released under the MIT license, this means:

  • You can
    • Comercial Use
      You may use the work commercially.
    • Modify
      You may make changes to the work.
    • Distribute
      You may distribute the compiled code and/or source.
    • Sublicense
      You may incorporate the work into something that has a more restrictive license.
    • Private Use
      You may use the work for private use.
  • You cannot
    • Hold Liable
      The work is provided "as is". You may not hold the author liable.
  • You must
    • Include Copyright
      You must include the copyright notice in all copies or substantial uses of the work.
    • Include License
      You must include the license notice in all copies or substantial uses of the work.

The full eMAG Apps UI KIT license can be found in project repository.

Getting started

[Back to summary]
There are a couple of ways to install eMAG Apps UI KIT:
The easiest way to install is to add the following css line in the head of your webpage:

<link rel="stylesheet" type="text/css" href="examplepath/to/main_style.min.css">

And the following javascript files before the end </body> tag:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>window.jQuery || document.write("<script src=\"../dist/js/lib/jquery-1.11.3.min.js\">"+"<"+"/script>")</script>
<script src="../dist/js/main_script.min.js"></script>

You can download the latest release from GitHub.
You can also clone clone the Git repository by running the following command:

[sudo] git clone https://github.com/eMAGTechLabs/emag-apps-ui-kit.git