Skip to content

The Free Admin UI Kit based on Bootstrap. Restyled and enhanced by eMAG Techlabs.

License

Notifications You must be signed in to change notification settings

cminovici/PhotonPowerUIKit

 
 

Repository files navigation

PhotonPowerUIKit

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

Summary

  1. [Summary] summary_link
  2. [Getting started] getting_started_link
  3. [Overview] overview_link
  4. [Based on Bootstrap 3.3.5] based_on_bootstrap_link
  5. [Working with Grunt.js] working_with_gruntjs_link
  6. [Working with Photon's folder structure] working_with_photons_folder_structure_link
  7. [Precompiled files (dist)] precompiled_files_dist_link
  8. [Photon source code (data)] photon_source_code_data_link
  9. [License] license_link

Getting started

[[Back to summary] summary_link]
There are a couple of ways to install PHOTON:

  1. The easiest is to install the following css 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>  
  1. If you really want to get a hold of the source code, you can [download the latest release] photon_github from GitHub.
  2. Or clone the [Git repository] photon_github by running the following command:

Overview

[[Back to summary] summary_link]
A short description about what's it like to work with PHOTON:

Based on Bootstrap 3.3.5.

[[Back to summary] summary_link]
PHOTON is based on the Twitter Bootstrap architecture [GetBootstrap] bootstrap_getstarted. If you're not familiarized with Twitter Bootstrap, head on over to their website and check-out their stuff. It's great!
Aside from the elements provided by bootstrap, PHOTON comes with its own set of unique components, styling and useful plugins that you can use in your project.
The fun part about PHOTON is that you can configure it however you want. Whether if it's for speed, mobile devices, lots of features or a usability unicorn.
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] summary_link]
Installing Grunt:
To install Grunt, you must first download and install [node.js] nodejs_download (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 Photon's folder structure:

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

photon/  
|  
├── 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] summary_link]

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

Photon source code (data)

[[Back to summary] summary_link]

  • 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 Photon (LESS and JS files).

License

[[Back to summary] summary_link]
Photon is released under the [MIT license] photon_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 Photon license can be found in [project repository] photon_license.

About

The Free Admin UI Kit based on Bootstrap. Restyled and enhanced by eMAG Techlabs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 77.9%
  • CSS 22.1%