commit e6c8deb7e4956a115662d7b07de444939bbf2c9b Author: nixa <4dmitr@gmail.com> Date: Wed May 25 13:42:47 2016 +0300 Updates diff --git a/articles/001-getting-started/index.html b/articles/001-getting-started/index.html new file mode 100644 index 00000000..fc1fed04 --- /dev/null +++ b/articles/001-getting-started/index.html @@ -0,0 +1,86 @@ + + + + + + + + BlurAdmin documentation - Getting Started + + + + + + + +
+ +
+ +
+

Getting Started

+

What is ng2-admin?

+

ng2-admin is a front-end Admin Dashboard template based on Angular 2, Bootstrap 4 and Webpack. That means all data you can see on graphs, charts tables is mocked in Javascript so you can use backend of your choice with no limitations.

+

How can it help me?

+

We believe that at the moment a lot of business applications have administration/management interfaces inside of them. Sometimes it’s not that obvious, but a lot of web applications have dashboards with panels, charts analytics, etc.

+

ng2-admin aims to bootstrap the development of your product and provide ecosystem for building production-ready application or prototypes.

+

Frameworks like Bootstrap provide a number of components, but usually it’s not enough to build a real-world app. This template comes with lots of popular UI components with unified color scheme, plus it based on a modern Angular 2 framework and has a flexible components-based structure.

+

As well you can use ng2-admin for learning purposes of Angular 2.

+

List of features

+
    +
  • Responsive layout
  • +
  • High resolution
  • +
  • Bootstrap 4 CSS Framework
  • +
  • SASS
  • +
  • Webpack
  • +
  • Angular 2
  • +
  • jQuery
  • +
  • Charts (amChart, Chartist, Chart.js, Morris)
  • +
  • Maps (Google, Leaflet, amMap)
  • +
  • and many more!
  • +
+

I want to start developing with ng2-admin

+

Welcome abroad!

+

You can start with Installation Guidelines. There we describe how you can download and run the template on you local machine.

+

Good luck and have fun!

+ +
+
+ +
+ + \ No newline at end of file diff --git a/articles/002-installation-guidelines/index.html b/articles/002-installation-guidelines/index.html new file mode 100644 index 00000000..42f012c2 --- /dev/null +++ b/articles/002-installation-guidelines/index.html @@ -0,0 +1,110 @@ + + + + + + + + BlurAdmin documentation - Installation Guidelines + + + + + + + +
+ +
+ +
+

Installation Guidelines

+

Prerequisites

+

Despite BlurAdmin can be run without any development experience, it would be much easier if you already have some development experience. In general following instructions allow you to run a local copy on your machine.

+

Install tools

+

If you don’t have any of these tools installed already, you will need to:

+ +

Note: Make sure you have Node version >= 4.0 and NPM >= 3

+

Once you have those, you should install these globals with npm install --global:

+
    +
  • webpack

    +
    npm install --global webpack
    +
    +
  • +
  • webpack-dev-server

    +
    npm install --global webpack-dev-server
    +
    +
  • +
  • typings

    +
    npm install --global typings
    +
    +
  • +
  • typescript

    +
    npm install --global typescript
    +
    +
  • +
+

Clone repository and install dependencies

+

You will need to clone the source code of ng2-admin GitHub repository:

+
git clone https://github.com/akveo/ng2-admin.git
+
+

After repository is cloned, go inside of the repository directory and install dependencies:

+
cd ng2-admin
+npm install
+
+

This will setup a working copy of ng2-admin on your local machine.

+

Running local copy

+

To run a local copy in development mode, execute:

+
npm start
+
+

Go to http://0.0.0.0:3000 or http://localhost:3000 in your browser.

+

To run the local copy in production mode and build the sources, execute:

+
npm run prebuild:prod && npm run build:prod && npm run server:prod
+
+

This will clear up your dist folder (where release files are located), generate release build and start built-in server. +Now you can copy the sources from a dist folder and use it with any backend framework or simple put in under some web server.

+

For addition information about build, please check out Angular2 Webpack Starter documentation

+ +
+
+ +
+ + \ No newline at end of file diff --git a/articles/011-changing-color-scheme/index.html b/articles/011-changing-color-scheme/index.html new file mode 100644 index 00000000..62e688a3 --- /dev/null +++ b/articles/011-changing-color-scheme/index.html @@ -0,0 +1,150 @@ + + + + + + + + BlurAdmin documentation - Changing Color Scheme + + + + + + + +
+ +
+ +
+

Changing Color Scheme

+

We tried to make the process of color scheme customization as easy as possible.

+

By default ng2-admin has three built-in color profiles: ng2 (default blue sheme), mint and blur. +This article will help you to create your own color profile. +Let’s say you want to make ng2-admin dark theme.

+

First we advice you to take some colorscheme file as a basis. +For light themes we suggest taking src/app/theme/sass/conf/colorScheme/_mint.scss one and for dark src/app/theme/sass/conf/colorScheme/_blue.scss one. +As we want a dark theme, we’re taking ng2.

+

1) Copy src/app/theme/sass/conf/colorScheme/_mint.scss to src/app/theme/sass/conf/colorScheme/_dark.scss.

+

2) Include your colorscheme file in src/app/theme/sass/conf/conf.scss.

+

To do this, replace

+
@import 'colorSchemes/ng2';
+
+

to

+
@import 'colorSchemes/dark';
+
+

3) Rename the color scheme enabled

+

Open src/app/theme/theme.config.ts. +Uncomment the following line

+
  //this._baConfig.changeTheme({name: 'my-theme'});
+
+

and put you theme name, in our case it is dark

+
  this._baConfig.changeTheme({name: 'dark'});
+
+

Beside this notifies the system which scheme currently enabled, it also puts a css class to a main element of the page. Thus you can freely create theme-specific css selectors in you code without braking other themes’ styles.

+

For example like this:

+
. dark .card-body {
+  background-color: white;
+}
+
+

4) Change the colors

+

Now your can start changing the colors. +For example, after playing a bit with different colors, we changed 5 first main variables in _dark.scss file:

+
$body-bg: #636363;
+$bootstrap-panel-bg: rgba(#000000, 0.2);
+
+

After this is done, you need to setup javascript to use same colors. These color are used for javascript charts and other components (maps, etc); +Let’s completely change the JS colors to a new set. +To do this, add the following code to the configuration block inside src/app/theme/theme.config.ts:

+
  let colorScheme = {
+    primary: '#209e91',
+    info: '#2dacd1',
+    success: '#90b900',
+    warning: '#dfb81c',
+    danger: '#e85656',
+  };
+  this._baConfig.changeColors({
+    default: '#4e4e55',
+    defaultText: '#e2e2e2',
+    border: '#dddddd',
+    borderDark: '#aaaaaa',
+
+    primary: colorScheme.primary,
+    info: colorScheme.info,
+    success: colorScheme.success,
+    warning: colorScheme.warning,
+    danger: colorScheme.danger,
+
+    primaryLight: colorHelper.tint(colorScheme.primary, 30),
+    infoLight: colorHelper.tint(colorScheme.info, 30),
+    successLight: colorHelper.tint(colorScheme.success, 30),
+    warningLight: colorHelper.tint(colorScheme.warning, 30),
+    dangerLight: colorHelper.tint(colorScheme.danger, 30),
+
+    primaryDark: colorHelper.shade(colorScheme.primary, 15),
+    infoDark: colorHelper.shade(colorScheme.info, 15),
+    successDark: colorHelper.shade(colorScheme.success, 15),
+    warningDark: colorHelper.shade(colorScheme.warning, 15),
+    dangerDark: colorHelper.shade(colorScheme.danger, 15),
+
+    dashboard: {
+      blueStone: '#005562',
+      surfieGreen: '#0e8174',
+      silverTree: '#6eba8c',
+      gossip: '#b9f2a1',
+      white: '#10c4b5',
+    },
+  });
+
+

Here we defined a list of main colors colorScheme and then made light and dark version of those using colorHelper methods. +We also defined a couple of custom colors for dashboard charts.

+

That’s basically it! Right now your admin application should look like this:

+

+

For further reference, please look in

+
    +
  • Colorscheme scss file (src/app/theme/sass/conf/colorScheme/_ng2.scss, src/app/theme/sass/conf/colorScheme/_mint.scss and src/app/theme/sass/conf/colorScheme/_blur.scss)
  • +
  • src/app/theme/theme.configProvider.js to understand which javascript colors can be changed
  • +
  • If you want to know how to change theme to blur, read following article
  • +
+ +
+
+ +
+ + \ No newline at end of file diff --git a/articles/011-changing-color-scheme/new-color-scheme.png b/articles/011-changing-color-scheme/new-color-scheme.png new file mode 100644 index 00000000..5133645d Binary files /dev/null and b/articles/011-changing-color-scheme/new-color-scheme.png differ diff --git a/articles/012-project-structure/index.html b/articles/012-project-structure/index.html new file mode 100644 index 00000000..653bf279 --- /dev/null +++ b/articles/012-project-structure/index.html @@ -0,0 +1,111 @@ + + + + + + + + BlurAdmin documentation - Project Structure + + + + + + + +
+ +
+ +
+

Project Structure

+

Project structure was originally based on Angular2 Webpack Starter. We made some changes we thought would be better in our particular case.

+

The directory structure of this template is as follows:

+
ng2-admin/
+   ├──config/                    * build configuration
+   │   ├──helpers.js             * helper functions for our configuration files
+   │   ├──webpack.dev.js         * development webpack config
+   │   ├──webpack.prod.js        * production webpack config
+   │   └──webpack.test.js        * testing webpack config
+   │
+   ├──src/                       * source files that will be compiled to javascript
+   │   ├──main.browser.ts        * entry file for our browser environment
+   │   │
+   │   ├──index.html             * application layout
+   │   │
+   │   ├──polyfills.ts           * polyfills file
+   │   │
+   │   ├──vendor.ts              * vendors file
+   │   │
+   │   ├──custom-typings.d.ts    * custom typings for third-party modules
+   │   │
+   │   ├──platform/              * platform dependent imports
+   │   │
+   │   ├──app/                   * application code - our working directory
+   │   │   │
+   │   │   ├──app.component.ts   * main application component
+   │   │   │
+   │   │   ├──app.loader.ts      * requires initial css styles (most important for application loading stage)
+   │   │   │
+   │   │   ├──app.menu.ts        * sidebar menu configuration
+   │   │   │
+   │   │   ├──app.state.ts       * global application state for data exchange between components
+   │   │   │
+   │   │   ├──app.scss           * application styles 
+   │   │   │
+   │   │   ├──pages/             * application pages components, place where you can create pages and fill them with components
+   │   │   │
+   │   │   └──theme/             * template global components/directives/pipes and styles
+   │   │
+   │   └──assets/                * static assets are served here
+   │
+   │
+   ├──tslint.json                * typescript lint config
+   ├──typedoc.json               * typescript documentation generator
+   ├──tsconfig.json              * config that webpack uses for typescript
+   ├──typings.json               * our typings manager
+   ├──package.json               * what npm uses to manage it's dependencies
+   ├──bower.json                 * DEPRECATED - moving to npm as primary package manager for all dependenties
+   └──.bowerrc                   * DEPRECARD - temporary bower configuration
+

In our template we tried to separate theme layer and presentation layer. We believe most of other templates have them combined. That’s why when you start developing using them, it gets very hard for you to remove things you don’t need.

+ +
+
+ +
+ + \ No newline at end of file diff --git a/articles/013-create-new-page/index.html b/articles/013-create-new-page/index.html new file mode 100644 index 00000000..e0d6decc --- /dev/null +++ b/articles/013-create-new-page/index.html @@ -0,0 +1,109 @@ + + + + + + + + BlurAdmin documentation - Create New Page + + + + + + + +
+ +
+ +
+

Create New Page

+

Blur admin uses Angular UI router for navigation. +That means to create new page you need to basically configure ui-router state.

+

We strongly recommend to follow pages structure in your application. +If it doesn’t fit your needs please create a GitHub issue and tell us why. We would be glad to discuss.

+

Also we recommend to put pages to separate modules. +This will allow you to easily switch off some pages in the future if needed.

+

Page creation example

+

0) Let’s assume we want to create a blank page with title ‘My New Page’

+

1) Let’s Create a new directory to contain our new page inside of src/app/pages. Let’s call this directory myNewPage.

+

2) Then let’s create blank angular module to contain our page called ‘myNewPage.module.js’ inside of src/app/pages/myNewPage:

+
(function () {
+  'use strict';
+
+  angular.module('BlurAdmin.pages.myNewPage', [])
+      .config(routeConfig);
+
+  /** @ngInject */
+  function routeConfig() {
+
+  }
+
+})();
+
+

3) Then let’s create empty html file called my-new-page.html inside of src/app/pages/myNewPage.

+

4) Lastly let’s create ui router state for this page. To do this we need to modify module.js file we created on step 2:

+
(function () {
+  'use strict';
+
+  angular.module('BlurAdmin.pages.myNewPage', [])
+      .config(routeConfig);
+
+  /** @ngInject */
+  function routeConfig($stateProvider) {
+    $stateProvider
+        .state('myNewPage', {
+          url: '/myNewPage',
+          templateUrl: 'app/pages/myNewPage/my-new-page.html',
+          title: 'My New Page',
+          sidebarMeta: {
+            order: 800,
+          },
+        });
+  }
+
+})();
+
+

That’s it! Your can now open your new page either from sidebar or through hash URL.

+ +
+
+ +
+ + \ No newline at end of file diff --git a/articles/014-switch-to-blur-theme/index.html b/articles/014-switch-to-blur-theme/index.html new file mode 100644 index 00000000..78013bb4 --- /dev/null +++ b/articles/014-switch-to-blur-theme/index.html @@ -0,0 +1,125 @@ + + + + + + + + BlurAdmin documentation - Enabling blur theme + + + + + + + +
+ +
+ +
+

Enabling blur theme

+

If you want to switch theme to the blur, you need to follow 3 simple steps:

+

1) Blur color scheme needs some javascript to calculate initial background offsets for panels. +That’s why we need to tell the system that we want to use blur theme by specifying this in src/app/theme/theme.config.ts:

+
  this._baConfig.changeTheme({name: 'blur'});
+
+

2) Also you need to change some colors. +For our blur theme we use following configuration:

+
  let colorScheme = {
+    primary: '#209e91',
+    info: '#2dacd1',
+    success: '#90b900',
+    warning: '#dfb81c',
+    danger: '#e85656',
+  };
+  this._baConfig.changeColors({
+    default: '#4e4e55',
+    defaultText: '#e2e2e2',
+    border: '#dddddd',
+    borderDark: '#aaaaaa',
+
+    primary: colorScheme.primary,
+    info: colorScheme.info,
+    success: colorScheme.success,
+    warning: colorScheme.warning,
+    danger: colorScheme.danger,
+
+    primaryLight: colorHelper.tint(colorScheme.primary, 30),
+    infoLight: colorHelper.tint(colorScheme.info, 30),
+    successLight: colorHelper.tint(colorScheme.success, 30),
+    warningLight: colorHelper.tint(colorScheme.warning, 30),
+    dangerLight: colorHelper.tint(colorScheme.danger, 30),
+
+    primaryDark: colorHelper.shade(colorScheme.primary, 15),
+    infoDark: colorHelper.shade(colorScheme.info, 15),
+    successDark: colorHelper.shade(colorScheme.success, 15),
+    warningDark: colorHelper.shade(colorScheme.warning, 15),
+    dangerDark: colorHelper.shade(colorScheme.danger, 15),
+
+    dashboard: {
+      blueStone: '#005562',
+      surfieGreen: '#0e8174',
+      silverTree: '#6eba8c',
+      gossip: '#b9f2a1',
+      white: '#10c4b5',
+    },
+  });
+
+

3) CSS should also be recompiled. +Before running build command, switch to blur color profile. +To do so replace theme in src/app/theme/sass/conf/conf.scss:

+
@import 'colorScheme/ng2';
+
+

to

+
@import 'colorScheme/blur';
+
+

Additionaly, if you would like to use some different background, replace the following images:

+
    +
  • src/assets/img/blur-bg.jpg (main background image)
  • +
  • src/assets/img/blur-bg-blurred.jpg (blurred background image used on panels)
  • +
+

We suggest using 10px Gaussian blur to blur an original image.

+
+

That’s it! You have successfully blurred your theme! Run npm start and check it out.

+ +
+
+ +
+ + \ No newline at end of file diff --git a/articles/015-sidebar/index.html b/articles/015-sidebar/index.html new file mode 100644 index 00000000..796e033c --- /dev/null +++ b/articles/015-sidebar/index.html @@ -0,0 +1,101 @@ + + + + + + + + BlurAdmin documentation - Sidebar + + + + + + + +
+ +
+ +
+

Sidebar

+

Sidebar is used to provide convenient way of navigation in the application. +Application support only one sidebar per angular application. +That means sidebar is basically a singletone object. +Currently sidebar supports level 1 and 2 sub menus.

+

Sidebar can be added to the page using BaSidebar component:

+
<ba-sidebar></ba-sidebar>
+
+

At the moment sidebar menu items configuration and Angular 2 Router should be configured independently. We probably will come up with a better solution once new Angular Router is released and stable.

+ +

All menu items are located inside src/app/app.menu.ts file. The file contain a list of Menu Item objects with the following fields:

+
  {
+    title: 'Dashboard', // menu item title
+    component: 'Dashboard', // component where the menu should lead, has a priority over url property
+    url: 'http://google.com' // manual url address (used only when component is not specified)
+    icon: 'ion-android-home', // icon class
+    target: '_blank', // link target attribute (used only when url is specified)
+    selected: false,  // is item selected
+    expanded: false, // is item expanded (used only when subItems list specified)
+    order: 0 // order in a list
+  }
+
+

You also can define a list of sub-menu items like this:

+
  {
+    title: 'Charts',
+    component: 'Charts',
+    icon: 'ion-stats-bars',
+    selected: false,
+    expanded: false,
+    order: 200,
+    subMenu: [  // list of sub-menu items
+      {
+        title: 'Chartist.Js', // sub-item title
+        component: 'ChartistJs'  // sum-item component 
+      },
+    ]
+  }
+
+

Routes configuration

+

Routes configuration is specified in the Page Components according to Angular 2 Router specification. More information you can find here.

+ +
+
+ +
+ + \ No newline at end of file diff --git a/articles/016-spinner/index.html b/articles/016-spinner/index.html new file mode 100644 index 00000000..cb6da0cb --- /dev/null +++ b/articles/016-spinner/index.html @@ -0,0 +1,96 @@ + + + + + + + + BlurAdmin documentation - Theme Spinner + + + + + + + +
+ +
+ +
+

Theme Spinner

+

Theme Spinner BaThemeSpinner is a small service helper allowing you to show a preloader spinner while executing some long-running tasks. +Same spinner you can see after reloading a page - it is shown while application is initializing Anuglar 2 and loading charts and images.

+

The usage interface in quite simple, there are two public methods: show and hide.

+

Theme Spinner comes with another small helper called BaThemePreloader. +This service globally integrated into the application and connected to the spinner.

+

You can register any promise in any part of the application so that the spinner will be hidden only after your promise is completed (resolved).

+

You can find an example of usage inside of the app.component.ts file. +Here we registering a loader (this._imageLoader.load just returns a Promise) which loads a background image:

+
  BaThemePreloader.registerLoader(this._imageLoader.load(layoutPaths.images.root + 'blur-bg-mobile.jpg'));
+
+

Then we are starting all the registered promises and once they all are done - hiding the spinner.

+
  BaThemePreloader.load().then((values) => {
+       this._spinner.hide();
+  });
+
+

Example

+

You also can register a loader on any page you want. +Say you have a long-running task on the Charts page (you need to receive some data from a web service) and you want the spinner to be shown while the data is loading.

+

First thing you need to do is to import BaThemePreloader service:

+
  import {BaThemePreloader} from '../../../../theme/services';
+
+

Then, say you have a method loading some data called _loadData, in our case we just mocked this method with setTimeout to emulate the loading process:

+
  private _loadData():Promise<any> {
+    return new Promise((resolve, reject) => {
+      setTimeout(() => {
+        resolve();
+      }, 4000);
+    });
+  }
+
+

Last thing you need to do is to register your loader:

+
  BaThemePreloader.registerLoader(this._loadData());
+
+

That’s basically it! Once your data is loaded and all other registered loaders are completed - the spinner will be hidden.

+ +
+
+ +
+ + \ No newline at end of file diff --git a/css/main.css b/css/main.css new file mode 100644 index 00000000..8af46ac4 --- /dev/null +++ b/css/main.css @@ -0,0 +1,987 @@ +html { + font-family: 'Source Sans Pro', sans-serif; + color: #484848; + line-height: 1.28 +} + +p { + margin: 0 0 10px +} + +.subHeader { + font-size: 21px; + font-weight: 200; + line-height: 30px; + margin-bottom: 10px +} + +em { + font-style: italic +} + +h1, h2, h3, h4, h5, h6 { + margin: 10px 0; + font-family: inherit; + font-weight: bold; + line-height: 20px; + color: inherit; + text-rendering: optimizelegibility +} + +h1 small, h2 small, h3 small, h4 small, h5 small, h6 small { + font-weight: normal; + color: #7b7b7b +} + +h1, h2, h3 { + line-height: 40px +} + +h1 { + font-size: 39px +} + +h2 { + font-size: 31px +} + +h3 { + font-size: 23px +} + +h4 { + font-size: 16px +} + +h5 { + font-size: 14px +} + +h6 { + font-size: 11px +} + +h1 small { + font-size: 24px +} + +h2 small { + font-size: 18px +} + +h3 small { + font-size: 16px +} + +h4 small { + font-size: 14px +} + +ul, ol { + margin: 0 0 10px 25px; + padding: 0 +} + +ul ul, ul ol, ol ol, ol ul { + margin-bottom: 0 +} + +li { + line-height: 20px +} + +a { + color: #285eb8; + text-decoration: none +} + +a:hover, a:focus { + color: #234fb8; + text-decoration: underline +} + +a:focus { + outline: thin dotted #333; + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px +} + +.center { + text-align: center +} + +html * { + color-profile: sRGB; + rendering-intent: auto +} + +* { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + border: none; + margin: 0; + padding: 0 +} + +html { + background: #f9f9f9 +} + +.browser-mockup { + border-top: 2em solid #F3F3F3; + position: relative; + border-radius: 3px 3px 0 0 +} + +.browser-mockup:before { + display: block; + position: absolute; + content: ''; + top: -1.25em; + left: 1em; + width: 0.5em; + height: 0.5em; + border-radius: 50%; + background-color: #f44; + box-shadow: 0 0 0 2px #f44, 1.5em 0 0 2px #9b3, 3em 0 0 2px #fb5; +} + +.browser-mockup > * { + display: block; + border: 1px solid #ddd; + width: 100%; +} + +.left { + float: left +} + +.right { + float: right +} + +.container { + padding-top: 50px; + min-width: 1060px +} + +.wrap { + width: 1060px; + margin-left: auto; + margin-right: auto; + padding-left: 20px; + padding-right: 20px +} + +.skinnyWrap { + width: 690px; + margin-left: auto; + margin-right: auto; + padding-left: 20px; + padding-right: 20px +} + +hr { + height: 0; + border-top: 1px solid #ccc; + border-bottom: 1px solid #eee +} + +ul, li { + margin-left: 20px +} + +li + li { + margin-top: 10px +} + +h1 .anchor, h2 .anchor, h3 .anchor, h4 .anchor, h5 .anchor, h6 .anchor { + margin-top: -50px; + position: absolute +} + +h1:hover .hash-link, h2:hover .hash-link, h3:hover .hash-link, h4:hover .hash-link, h5:hover .hash-link, h6:hover .hash-link { + display: inline +} + +.hash-link { + color: #aaa; + display: none +} + +.nav-main { + background: #222; + color: #fafafa; + position: fixed; + top: 0; + height: 50px; + box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); + width: 100%; + z-index: 100 +} + +.nav-main:after { + content: ""; + display: table; + clear: both +} + +.nav-main a { + color: #e9e9e9; + text-decoration: none +} + +.nav-main .nav-site-internal { + margin: 0 0 0 20px +} + +.nav-main .nav-site-external { + float: right; + margin: 0 +} + +.nav-main .nav-site li { + margin: 0 +} + +.nav-main .nav-site li > a { + box-sizing: content-box; + padding: 0 10px; + line-height: 50px; + display: inline-block; + height: 50px; + color: #ddd +} + +.nav-main .nav-site li > a:hover { + color: #fff +} + +.nav-main .nav-site li > a.active { + color: #fafafa; + border-bottom: 3px solid #00abff; + background: #333 +} + +.nav-main .nav-home { + color: #ffffff; + font-size: 24px; + line-height: 50px; + height: 50px; + display: inline-block +} + +.nav-main .nav-home .blur-label { + color: #00abff; +} + +.nav-main .nav-logo { + vertical-align: middle; + display: inline-block; + margin-bottom: 9px; +} + +.nav-main ul { + display: inline-block; + vertical-align: top +} + +.nav-main li { + display: inline +} + +.hero { + padding-bottom: 75px; +} + +.hero .hero-content { + color: #e9e9e9; + font-weight: 300; + background: #313131; + padding-top: 50px; +} + +.hero .text { + font-size: 64px; + text-align: center +} + +.hero .minitext { + font-size: 16px; + text-align: center; + text-transform: uppercase +} + +.hero strong { + color: #00abff; + font-weight: 400 +} + +.white-text { + color: rgb(249, 249, 249); +} + +.hero .admin-screenshots { + margin-top: 40px; + display: flex; + flex-direction: row; +} + +.hero .admin-screenshot { + width: 100%; + padding: 0 15px; + text-align: center; +} + +.admin-screenshot img { + width: 100%; +} + +.demo-link { + display: block; + position: relative; + line-height: 0; +} + +.demo-link:before { + content: ''; + position: absolute; + width: 100%; + bottom: 0; + left: 0; + height: 52px; + background-image: linear-gradient(to bottom, transparent, rgb(249, 259, 249)); +} + +.demo-link .demo-link-label { + display: flex; + align-items: center; + justify-content: center; + content: 'Demo'; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(0, 0, 0, 0.5); + color: rgb(249, 249, 249); + font-size: 32px; + opacity: 0; + transition: opacity 0.3s ease-out; +} + +.demo-link:hover .demo-link-label { + opacity: 1; +} + +.buttons-unit { + margin-top: 60px; + text-align: center +} + +.buttons-unit a { + color: #61dafb +} + +.buttons-unit .button { + font-size: 24px; + background: #00abff; + color: #fafafa; +} + +.buttons-unit .button:active, .buttons-unit .button:focus { + background: #00abff; + text-decoration: none; +} + +.buttons-unit.downloads { + margin: 30px 0 +} + +.index-block { + padding: 40px 0; +} + +.index-block h1 { + text-align: center; +} + +.index-block.black { + background: #f2f2f2; +} + +.why-items { + display: flex; + flex-direction: row; + align-items: baseline; + margin-top: 15px; + padding-top: 15px; +} + +.why-item { + flex: 33%; + text-align: center; + padding: 0 15px; +} + +.why-item img { + width: 110px; +} + +.nav-docs { + color: #2d2d2d; + font-size: 14px; + float: left; + width: 210px +} + +.nav-docs ul { + list-style: none; + margin: 0 +} + +.nav-docs ul ul { + margin: 6px 0 0 20px +} + +.nav-docs li { + line-height: 16px; + margin: 0 0 6px +} + +.nav-docs h3 { + text-transform: uppercase; + font-size: 14px +} + +.nav-docs a { + color: #666; + display: block +} + +.nav-docs a:hover { + text-decoration: none; + color: #285eb8 +} + +.nav-docs a.active { + color: #285eb8 +} + +.nav-docs a.external:after { + content: ""; + display: inline-block; + width: 10px; + height: 10px; + padding-left: 5px; + background-image: url("../img/external.png"); + background-position: 100% 0; + background-repeat: no-repeat; + font-size: 10px; + line-height: 1em; + opacity: 0.5 +} + +@media only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen and (min--moz-device-pixel-ratio: 1.3), only screen and (-o-min-device-pixel-ratio: 1.3 / 1), only screen and (min-resolution: 125dpi), only screen and (min-resolution: 1.3dppx) { + .nav-docs a.external:after { + background-image: url("../img/external_2x.png"); + background-size: 10px 10px + } +} + +.nav-docs .nav-docs-section { + border-bottom: 1px solid #ccc; + border-top: 1px solid #eee; + padding: 12px 0 +} + +.nav-docs .nav-docs-section:first-child { + padding-top: 0; + border-top: 0 +} + +.nav-docs .nav-docs-section:last-child { + padding-bottom: 0; + border-bottom: 0 +} + +.nav-blog li { + margin-bottom: 5px +} + +.nav-docs-right { + display: block; + float: right; + line-height: 50px; +} + +.nav-docs-right a { + color: #00abff; + text-decoration: none; +} + +.nav-docs-right a:hover { + text-decoration: underline; +} + +.home-section { + margin: 50px 0 +} + +.home-divider { + border-top-color: #bbb; + margin: 0 auto; + width: 400px +} + +.skinny-row:after { + content: ""; + display: table; + clear: both +} + +.skinny-col { + float: left; + margin-left: 40px; + width: 305px +} + +.skinny-col:first-child { + margin-left: 0 +} + +.marketing-row { + margin: 50px 0 +} + +.marketing-row:after { + content: ""; + display: table; + clear: both +} + +.marketing-col { + float: left; + margin-left: 40px; + width: 280px +} + +.marketing-col h3 { + color: #2d2d2d; + font-size: 24px; + font-weight: normal; + text-transform: uppercase +} + +.marketing-col p { + font-size: 16px +} + +.marketing-col:first-child { + margin-left: 0 +} + +#examples h3, .home-presentation h3 { + color: #2d2d2d; + font-size: 24px; + font-weight: normal; + margin-bottom: 5px +} + +#examples p { + margin: 0 0 25px 0; + max-width: 600px +} + +#examples .example { + margin-top: 60px +} + +#examples #todoExample { + font-size: 14px +} + +#examples #todoExample ul { + list-style-type: square; + margin: 0 0 10px 0 +} + +#examples #todoExample input { + border: 1px solid #ccc; + font: 14px proxima-nova, "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; + padding: 3px; + width: 150px +} + +#examples #todoExample button { + font: 14px proxima-nova, "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; + margin-left: 5px; + padding: 4px 10px +} + +#examples #markdownExample textarea { + border: 1px solid #ccc; + font: 14px proxima-nova, "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; + margin-bottom: 10px; + padding: 5px +} + +.home-bottom-section { + margin-bottom: 100px +} + +.docs-nextprev:after { + content: ""; + display: table; + clear: both +} + +.jsxCompiler { + margin: 0 auto; + padding-top: 20px; + width: 1220px +} + +.jsxCompiler label.compiler-option { + display: block; + margin-top: 5px +} + +.jsxCompiler #jsxCompiler { + margin-top: 20px +} + +.jsxCompiler .playgroundPreview { + padding: 0; + width: 600px; + word-wrap: break-word +} + +.jsxCompiler .playgroundPreview pre { + font-family: 'source-code-pro', Menlo, Consolas, 'Courier New', monospace; + font-size: 13px; + line-height: 1.5 +} + +.jsxCompiler .playgroundError { + padding: 15px 20px +} + +.docs-prev { + float: left +} + +.docs-next { + float: right +} + +footer { + font-size: 13px; + font-weight: 600; + margin-top: 66px; + margin-bottom: 18px; + overflow: auto +} + +section.black content { + padding-bottom: 18px +} + +.blogContent { + padding-top: 20px +} + +.blogContent:after { + content: ""; + display: table; + clear: both +} + +.blogContent blockquote { + padding: 5px 15px; + margin: 20px 0; + background-color: #f8f5ec; + border-left: 5px solid #f7ebc6 +} + +.blogContent h2 > code { + font-size: inherit; + line-height: inherit; + color: #555; + background-color: rgba(0, 0, 0, 0.04) +} + +.documentationContent { + padding-top: 20px +} + +.documentationContent:after { + content: ""; + display: table; + clear: both +} + +.documentationContent .subHeader { + font-size: 24px +} + +.documentationContent h2 { + margin-top: 30px +} + +.documentationContent blockquote { + padding: 15px 30px 15px 15px; + margin: 20px 0; + background-color: rgba(204, 122, 111, 0.1); + border-left: 5px solid rgba(191, 87, 73, 0.2) +} + +.documentationContent blockquote h4 { + margin-top: 0 +} + +.documentationContent blockquote p { + margin-bottom: 0 +} + +.documentationContent blockquote p:first-child { + font-weight: bold; + font-size: 17.5px; + line-height: 20px; + margin-top: 0; + text-rendering: optimizelegibility +} + +.docs-prevnext { + padding-top: 40px; + padding-bottom: 40px +} + +.button { + background: -webkit-linear-gradient(#9a9a9a, #646464); + background: linear-gradient(#9a9a9a, #646464); + border-radius: 4px; + padding: 8px 16px; + font-size: 18px; + font-weight: 400; + margin: 0 12px; + display: inline-block; + color: #fafafa; + text-decoration: none; + text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); + text-decoration: none +} + +.button:hover { + text-decoration: none +} + +.button:active { + box-shadow: none +} + +.hero .button { + box-shadow: 1px 3px 3px rgba(0, 0, 0, 0.3) +} + +.button.blue { + background: -webkit-linear-gradient(#77a3d2, #4783c2); + background: linear-gradient(#77a3d2, #4783c2) +} + +.row { + padding-bottom: 4px +} + +.row .span4 { + width: 33.33%; + display: table-cell +} + +.row .span8 { + width: 66.66%; + display: table-cell +} + +.row .span6 { + width: 50%; + display: table-cell +} + +p { + margin: 10px 0 +} + +.highlight { + padding: 10px; + margin-bottom: 20px +} + +figure { + text-align: center +} + +.inner-content { + float: right; + width: 650px +} + +.nosidebar .inner-content { + float: none; + margin: 0 auto +} + +.inner-content img { + max-width: 100%; +} + +.inner-content table { + border-collapse: collapse; + width: 100%; +} + +.inner-content th, .inner-content td { + padding: 0.25rem; + text-align: left; + border: 1px solid #ccc; +} + +.inner-content tbody tr:nth-child(odd) { + background: #eee; +} + +h1:after { + content: ""; + display: table; + clear: both +} + +.edit-page-link { + float: right; + font-size: 16px; + font-weight: normal; + line-height: 20px; + margin-top: 17px +} + +.post-list-item + .post-list-item { + margin-top: 60px +} + +/* code styling */ + +code { + font-family: 'Anonymous Pro', sans-serif; + font-size: 0.85em; + color: #000; +} + +pre code { + display: block; + line-height: 1.1; + color: #333333; + background: #f8f5ec; + padding: 30px 14px 14px; + position: relative; + overflow-x: auto; +} + +pre code:before { + position: absolute; + top: 0; + right: 0; + left: 0; + padding: 3px 7px; + font-size: 12px; + font-weight: bold; + color: #c2c0bc; + background-color: #f1ede4; + content: "Code"; +} + +p code { + padding: 0.1em 0.3em 0.2em; + border-radius: 0.3em; + position: relative; + background: #fffff3; + + white-space: nowrap; +} + +/* syntax hl stuff */ + +code.lang-markdown { + color: #424242; +} + +code.lang-markdown .header, +code.lang-markdown .strong { + font-weight: bold; +} + +code.lang-markdown .emphasis { + font-style: italic; +} + +code.lang-markdown .horizontal_rule, +code.lang-markdown .link_label, +code.lang-markdown .code, +code.lang-markdown .header, +code.lang-markdown .link_url { + color: #555; +} + +code.lang-markdown .blockquote, +code.lang-markdown .bullet { + color: #bbb; +} + +/* Tomorrow Theme */ +/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ +.tomorrow-comment, pre .comment, pre .title { + color: #8e908c; +} + +.tomorrow-red, pre .variable, pre .attribute, pre .tag, pre .regexp, pre .ruby .constant, pre .xml .tag .title, pre .xml .pi, pre .xml .doctype, pre .html .doctype, pre .css .id, pre .css .class, pre .css .pseudo { + color: #c82829; +} + +.tomorrow-orange, pre .number, pre .preprocessor, pre .built_in, pre .literal, pre .params, pre .constant { + color: #f5871f; +} + +.tomorrow-yellow, pre .class, pre .ruby .class .title, pre .css .rules .attribute { + color: #eab700; +} + +.tomorrow-green, pre .string, pre .value, pre .inheritance, pre .header, pre .ruby .symbol, pre .xml .cdata { + color: #718c00; +} + +.tomorrow-aqua, pre .css .hexcolor { + color: #3e999f; +} + +.tomorrow-blue, pre .function, pre .python .decorator, pre .python .title, pre .ruby .function .title, pre .ruby .title .keyword, pre .perl .sub, pre .javascript .title, pre .coffeescript .title { + color: #4271ae; +} + +.tomorrow-purple, pre .keyword, pre .javascript .function { + color: #8959a8; +} + +/* media queries */ + +@media screen and (max-width: 960px) { + .nav-main { + position: static + } + + .container { + padding-top: 0 + } +} diff --git a/images/favicon.png b/images/favicon.png new file mode 100644 index 00000000..42861238 Binary files /dev/null and b/images/favicon.png differ diff --git a/images/logo.png b/images/logo.png new file mode 100644 index 00000000..07a59adf Binary files /dev/null and b/images/logo.png differ diff --git a/images/sky-preview.png b/images/sky-preview.png new file mode 100644 index 00000000..6b34db69 Binary files /dev/null and b/images/sky-preview.png differ diff --git a/images/why-design.svg b/images/why-design.svg new file mode 100644 index 00000000..0c3c68b4 --- /dev/null +++ b/images/why-design.svg @@ -0,0 +1 @@ + diff --git a/images/why-practices.svg b/images/why-practices.svg new file mode 100644 index 00000000..2e48d9f4 --- /dev/null +++ b/images/why-practices.svg @@ -0,0 +1 @@ + diff --git a/images/why-structure.svg b/images/why-structure.svg new file mode 100644 index 00000000..cd2ee7fe --- /dev/null +++ b/images/why-structure.svg @@ -0,0 +1 @@ + diff --git a/index.html b/index.html new file mode 100644 index 00000000..04e5ce73 --- /dev/null +++ b/index.html @@ -0,0 +1,88 @@ + + + + + + + + Admin HTML template based on Angular 2, Bootstrap 4 and Webpack + + + + + + + +
+ +
+
+
+
ng2-admin
+
Angular 2 admin panel front-end framework
+ +
+
+ +
+
+
+
+
+
+
+

Why ng2-admin?

+
+
+

Awesome structure

+

Component-based structure is the best choice for large Angular 2 applications.

+
+
+

Neat design

+

We have put a lot of efforts and carefully selected each color and font for this template!

+
+
+

Ease for customization

+

Check out our article, where we describe how you can create different look in just 2 minutes!

+
+
+
+
+
+
+

Is it free?

+

Yes, ng2-admin is completely free and MIT licensed. That means you can do with it whatever you want.

+
+
+
+
+

How can I support you guys?

+

Here's what you can do:

+ +
+
+
+
+

Can I hire you?

+

Yes! We are available for hire. Visit our homepage or simply leave us a note at contact@akveo.com. We will be happy to work with you!

+
+
+ +
+ + \ No newline at end of file