From e6c8deb7e4956a115662d7b07de444939bbf2c9b Mon Sep 17 00:00:00 2001 From: nixa <4dmitr@gmail.com> Date: Wed, 25 May 2016 13:42:47 +0300 Subject: [PATCH] Updates --- articles/001-getting-started/index.html | 86 ++ .../002-installation-guidelines/index.html | 110 ++ articles/011-changing-color-scheme/index.html | 150 +++ .../new-color-scheme.png | Bin 0 -> 290514 bytes articles/012-project-structure/index.html | 111 ++ articles/013-create-new-page/index.html | 109 ++ articles/014-switch-to-blur-theme/index.html | 125 +++ articles/015-sidebar/index.html | 101 ++ articles/016-spinner/index.html | 96 ++ css/main.css | 987 ++++++++++++++++++ images/favicon.png | Bin 0 -> 1467 bytes images/logo.png | Bin 0 -> 1336 bytes images/sky-preview.png | Bin 0 -> 1754060 bytes images/why-design.svg | 1 + images/why-practices.svg | 1 + images/why-structure.svg | 1 + index.html | 88 ++ 17 files changed, 1966 insertions(+) create mode 100644 articles/001-getting-started/index.html create mode 100644 articles/002-installation-guidelines/index.html create mode 100644 articles/011-changing-color-scheme/index.html create mode 100644 articles/011-changing-color-scheme/new-color-scheme.png create mode 100644 articles/012-project-structure/index.html create mode 100644 articles/013-create-new-page/index.html create mode 100644 articles/014-switch-to-blur-theme/index.html create mode 100644 articles/015-sidebar/index.html create mode 100644 articles/016-spinner/index.html create mode 100644 css/main.css create mode 100644 images/favicon.png create mode 100644 images/logo.png create mode 100644 images/sky-preview.png create mode 100644 images/why-design.svg create mode 100644 images/why-practices.svg create mode 100644 images/why-structure.svg create mode 100644 index.html 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 @@ + + +
+ + + + +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.
+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.
+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!
+ +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.
+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
+
+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.
+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
+ +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
+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 changed1Vy^FB``-5eI>! +u>#=i|i*W!-rj5&`9UQe~J?Z
zw?z0+fHYcS%}5va!tRJx|MW7jL1{M$`|KPvDN=J<{*!$ZV_eERBjglXxGu&BVNyI#
zW93GYW?{9@K28+dL1+KsSg`{J