Skip to content

Commit 9630d79

Browse files
authored
Merge pull request #127 from flatlogic/pr/angular/new-design
feat: new design (light version)
2 parents 75bd13a + 93236fc commit 9630d79

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+354
-181
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"jquery-ui": "git://github.com/jquery/jquery-ui.git#1.11.4",
5151
"jquery.animate-number": "0.0.14",
5252
"jvectormap": "2.0.4",
53+
"line-awesome": "icons8/line-awesome",
5354
"magnific-popup": "1.1.0",
5455
"markdown": "0.5.0",
5556
"messenger": "git+https://github.com/HubSpot/messenger.git#v1.4.2",

src/app/dashboard/dashboard.template.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ <h1 class="page-title">Dashboard <small><small>The Lucky One</small></small></h1
99
<!-- for this particular example we also need to preload us map, as this is mapael's extension -->
1010
<div class="mapael" geo-locations-widget>
1111
<div class="stats">
12-
<h6 class="text-white mt-1">GEO-LOCATIONS</h6>
13-
<p class="h3 text-warning m-0">
12+
<h6 class="mt-1">GEO-LOCATIONS</h6>
13+
<p class="h3 m-0">
1414
<span class="fw-normal" number-animate>1 656 843</span>
1515
<i class="fa fa-map-marker mb-2"></i>
1616
</p>
@@ -38,7 +38,7 @@ <h5>
3838
<div class="widget-body">
3939
<p>Status: <strong>Live</strong></p>
4040
<p>
41-
<span class="circle bg-warning"><i class="fa fa-map-marker"></i></span>
41+
<span class="circle bg-warning"><i class="fa fa-map-marker text-white"></i></span>
4242
146 Countries, 2759 Cities
4343
</p>
4444
<div class="row progress-stats">
@@ -86,7 +86,7 @@ <h6 class="name">Sound Frequencies</h6>
8686
<h6 class="fw-semi-bold mt">Map Distributions</h6>
8787
<p>Tracking: <strong>Active</strong></p>
8888
<p>
89-
<span class="circle bg-warning"><i class="fa fa-cog"></i></span>
89+
<span class="circle bg-warning"><i class="fa fa-cog text-white"></i></span>
9090
391 elements installed, 84 sets
9191
</p>
9292
<div class="input-group mt">
@@ -133,7 +133,7 @@ <h6 class="name">24h</h6>
133133
<div class="progress-bar bg-success" style="width: 60%"></div>
134134
</div>
135135
<p>
136-
<small><span class="circle bg-warning"><i class="fa fa-chevron-up"></i></span></small>
136+
<small><span class="circle bg-warning"><i class="fa fa-chevron-up text-white"></i></span></small>
137137
<span class="fw-semi-bold">17% higher</span>
138138
than last month</p>
139139
</div>
@@ -169,7 +169,7 @@ <h6 class="name">24h</h6>
169169
<div class="progress-bar bg-danger" style="width: 60%"></div>
170170
</div>
171171
<p>
172-
<small><span class="circle bg-warning"><i class="fa fa-chevron-down"></i></span></small>
172+
<small><span class="circle bg-warning"><i class="fa fa-chevron-down text-white"></i></span></small>
173173
<span class="fw-semi-bold">8% lower</span>
174174
than last month
175175
</p>
@@ -206,7 +206,7 @@ <h6 class="name fs-sm">World Pop.</h6>
206206
<div class="progress-bar progress-xs bg-primary" style="width: 60%"></div>
207207
</div>
208208
<p>
209-
<small><span class="circle bg-warning"><i class="fa fa-plus"></i></span></small>
209+
<small><span class="circle bg-warning"><i class="fa fa-plus text-white"></i></span></small>
210210
<span class="fw-semi-bold">8 734 higher</span>
211211
than last month
212212
</p>
@@ -342,7 +342,7 @@ <h6>Calendar</h6>
342342
</div>
343343
</header>
344344
<div class="widget-body p-0">
345-
<div class="bg-primary-light" bootstrap-calendar [events]="[
345+
<div class="bg-gray-light" bootstrap-calendar [events]="[
346346
[
347347
'2/'+month+'/'+year,
348348
'The flower bed',

src/app/dashboard/geo-locations-widget/geo-locations-widget.directive.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ export class GeoLocationsWidgetDirective implements OnInit {
1919
map: {
2020
name : 'usa_states',
2121
defaultArea : {
22-
attrsHover : {
23-
fill : '#242424',
24-
animDuration : 100
22+
attrs: {
23+
fill: '#e5e7f1',
24+
stroke: '#fafbff',
25+
},
26+
attrsHover: {
27+
fill: '#e9ebf6',
28+
animDuration: 50,
2529
},
2630
tooltip: {
2731
content: function(): string {

src/app/ecommerce/product-grid/products.mock.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const products = [{
22
id: 0,
33
starred: true,
4-
image: 'assets/products/product1.jpg',
4+
image: 'assets/img/products/img1.jpg',
55
title: 'TRAINERS',
66
subtitle: 'Trainers In White',
77
price: 76,
@@ -12,7 +12,7 @@ const products = [{
1212
id: 1,
1313
starred: false,
1414
label: 'Sale',
15-
image: 'assets/products/product5.jpeg',
15+
image: 'assets/img/products/img2.jpg',
1616
title: 'BOOTS',
1717
subtitle: 'Trainers In Blue',
1818
price: {
@@ -27,7 +27,7 @@ const products = [{
2727
id: 2,
2828
starred: false,
2929
label: 'New',
30-
image: 'assets/products/product4.jpeg',
30+
image: 'assets/img/products/img3.jpg',
3131
title: 'FLAT SANDALS',
3232
subtitle: 'Trainers In Black',
3333
price: 55,
@@ -37,7 +37,7 @@ const products = [{
3737
{
3838
id: 3,
3939
starred: false,
40-
image: 'assets/products/product7.jpg',
40+
image: 'assets/img/products/img4.jpg',
4141
title: 'TRAINERS',
4242
subtitle: 'Trainers In White',
4343
price: {
@@ -51,7 +51,7 @@ const products = [{
5151
{
5252
id: 4,
5353
starred: false,
54-
image: 'assets/products/product6.jpg',
54+
image: 'assets/img/products/img5.jpeg',
5555
title: 'TRAINERS',
5656
subtitle: 'Trainers In White',
5757
price: 76,
@@ -62,7 +62,7 @@ const products = [{
6262
id: 5,
6363
starred: true,
6464
label: 'New',
65-
image: 'assets/products/product3.jpg',
65+
image: 'assets/img/products/img6.jpg',
6666
title: 'BOOTS',
6767
subtitle: 'Trainers In Orange',
6868
price: {
@@ -77,7 +77,7 @@ const products = [{
7777
id: 6,
7878
starred: false,
7979
label: 'Sale',
80-
image: 'assets/products/product8.jpg',
80+
image: 'assets/img/products/img7.jpg',
8181
title: 'TRAINERS',
8282
subtitle: 'Trainers In White',
8383
price: {
@@ -92,7 +92,7 @@ const products = [{
9292
id: 7,
9393
starred: false,
9494
label: 'New',
95-
image: 'assets/products/product2.jpg',
95+
image: 'assets/img/products/img8.jpg',
9696
title: 'TRAINERS',
9797
subtitle: 'Trainers In White',
9898
price: 55,

src/app/inbox/inbox.style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
&,
2727
&:hover,
2828
&:focus {
29-
background-color: $gray-light;
29+
background-color: $white;
3030
color: $text-color;
3131
font-weight: $font-weight-semi-bold;
3232

src/app/inbox/inbox.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h1 class="page-title">Email - <span class="fw-semi-bold">Inbox</span></h1>
1313
<ul class="nav nav-pills flex-column nav-stacked nav-email-folders mt" id="folders-list">
1414
<li class="nav-item active">
1515
<a class="nav-link" (click)="setFolderName('Inbox')">
16-
<span class="badge badge-pill badge-white float-right">2</span>
16+
<span class="badge badge-pill badge-gray float-right">2</span>
1717
Inbox
1818
</a>
1919
</li>

src/app/layout/chat-sidebar/chat-message/chat-message.template.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ <h6 class="title">
55
{{conversation.name}}
66
</a>
77
</h6>
8-
<ul class="message-list">
8+
<ul class="message-list bg-gray-light">
99
<li *ngFor="let message of conversation.messages | SearchPipe : searchMessage" class="message" [ngClass]="{'from-me': message.fromMe}">
1010
<span class="thumb-sm">
1111
<img class="rounded-circle" src="{{message.fromMe ? 'assets/img/avatar.png' : conversation.image}}" alt="...">
@@ -14,7 +14,7 @@ <h6 class="title">
1414
</li>
1515
</ul>
1616
<footer class="chat-sidebar-footer">
17-
<input class="form-control input-dark fs-mini"
17+
<input class="form-control fs-mini"
1818
[(ngModel)]="newMessage" (keyup.enter)="addMessage()"
1919
type="text" placeholder="Type your message">
2020
</footer>

src/app/layout/chat-sidebar/chat-sidebar.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<header class="chat-sidebar-header">
33
<h4 class="chat-sidebar-title">Contacts</h4>
44
<div class="form-group m-0">
5-
<div class="input-group input-group-dark">
5+
<div class="input-group">
66
<input class="form-control fs-mini" [(ngModel)]="searchText" type="text" placeholder="Search...">
77
<span class="input-group-append">
88
<span class="input-group-text">

src/app/layout/navbar/navbar.template.html

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
<ul class="navbar-nav flex-row" (click)="$event.preventDefault()">
1+
<ul class="navbar-nav flex-row" (click)="$event.preventDelault()">
22
<li class="nav-item">
33
<ng-template #sidebarToggleTooltip>
44
Turn on/off <br> sidebar <br>collapsing
55
</ng-template>
66
<!-- whether to automatically collapse sidebar on mouseleave. If activated acts more like usual admin templates -->
77
<a (click)="toggleSidebar('static')" class="nav-link d-none ml-3 d-lg-flex" [tooltip]="sidebarToggleTooltip"
88
placement="bottom">
9-
<i class="fa fa-bars fa-lg"></i>
9+
<i class="la la-bars la-lg"></i>
1010
</a>
1111
<!-- shown on xs & sm screen. collapses and expands navigation -->
1212
<a (click)="toggleSidebar('collapse')" class="d-lg-none nav-link" href="#" data-html="true" title="Show/hide<br>sidebar" data-placement="bottom">
13-
<span class="rounded rounded-lg bg-gray text-white d-md-none"><i class="fa fa-bars fa-lg"></i></span>
14-
<i class="ml-3 fa fa-bars fa-lg d-none d-md-block d-lg-none"></i>
13+
<span class="rounded rounded-lg bg-gray text-white d-md-none"><i class="la la-bars la-lg"></i></span>
14+
<i class="ml-3 la la-bars la-lg d-none d-md-block d-lg-none"></i>
1515
</a>
1616
</li>
17-
<li class="nav-item d-none d-md-block"><a class="nav-link" href="#"><i class="fa fa-refresh fa-lg"></i></a></li>
18-
<li class="nav-item d-none d-md-block"><a class="nav-link pl-1" href="#"><i class="fa fa-times fa-lg"></i></a></li>
17+
<li class="nav-item d-none d-md-block"><a class="nav-link pl-2" href="#"><i class="la la-refresh la-lg"></i></a></li>
18+
<li class="nav-item d-none d-md-block"><a class="nav-link pl-2" href="#"><i class="la la-times la-lg"></i></a></li>
1919
</ul>
2020
<ul class="navbar-nav flex-row d-md-none">
2121
<li class="nav-item">
2222
<!-- toggles chat -->
2323
<a class="nav-link" href="#" (click)="toggleChat()">
24-
<span class="rounded rounded-lg bg-gray text-white"><i class="fa fa-globe fa-lg"></i></span>
24+
<span class="rounded rounded-lg bg-gray text-white"><i class="la la-globe la-lg"></i></span>
2525
</a>
2626
</li>
2727
</ul>
2828
<a class="navbar-brand d-md-none" [routerLink]=" ['/app/dashboard'] ">
29-
<i class="fa fa-circle fa-sm text-gray mr-n-sm"></i>
30-
<i class="fa fa-circle fa-sm text-warning"></i>
29+
<i class="la la-circle la-sm text-gray mr-n-sm"></i>
30+
<i class="la la-circle la-sm text-warning"></i>
3131
&nbsp;
3232
{{config.name}}
3333
&nbsp;
34-
<i class="fa fa-circle fa-sm text-warning mr-n-sm"></i>
35-
<i class="fa fa-circle fa-sm text-gray"></i>
34+
<i class="la la-circle la-sm text-warning mr-n-sm"></i>
35+
<i class="la la-circle la-sm text-gray"></i>
3636
</a>
3737
<!-- this part is hidden for xs screens -->
3838
<!-- search form! link it to your search server -->
@@ -42,48 +42,45 @@
4242
<input class="form-control" type="text" placeholder="Search Dashboard">
4343
<span class="input-group-append">
4444
<span class="input-group-text">
45-
<i class="fa fa-search"></i>
45+
<i class="la la-search"></i>
4646
</span>
4747
</span>
4848
</div>
4949
</div>
5050
</form>
51-
<ul class="navbar-nav mr-3 d-none d-md-flex flex-row" (click)="$event.preventDefault()">
52-
<li class="nav-item dropdown" dropdown placement="bottom right" [autoClose]="false">
51+
<ul class="navbar-nav mr-3 d-none d-md-flex flex-row" (click)="$event.preventDelault()">
52+
<li class="nav-item dropdown" dropdown placement="bottom right" [autoClose]="lalse">
5353
<a href="#" dropdownToggle class="nav-link dropdown-toggle dropdown-toggle-notifications"
5454
id="notifications-dropdown-toggle">
55-
<span class="thumb-sm avatar float-left">
56-
<img class="rounded-circle" src="assets/img/people/a5.jpg" alt="...">
57-
</span>
58-
&nbsp;
59-
Philip&nbsp;<strong>Smith</strong>&nbsp;
60-
<span class="fw-bold badge badge-pill badge-warning p-1 text-gray">
61-
13
62-
</span>
55+
<span class="avatar thumb-sm float-left mr-2">
56+
<img class="rounded-circle" src="assets/img/people/a5.jpg" alt="..." />
57+
</span>
58+
<span class="small">Philip <span class="fw-semi-bold">Smith</span></span>
59+
<span class="ml-1 circle bg-warning text-white fw-bold">13</span>
6360
<b class="caret"></b>
6461
</a>
6562
<!-- ready to use notifications dropdown. inspired by smartadmin template.
6663
consists of three components:
6764
notifications, messages, progress. leave or add what's important for you.
6865
uses Sing's ajax-load plugin for async content loading. See #load-notifications-btn -->
69-
<app-notifications *dropdownMenu class="dropdown-menu dropdown-menu-right animated animated-fast fadeInUp"></app-notifications>
66+
<app-notifications *dropdownMenu class="dropdown-menu dropdown-menu-right animated animated-last ladeInUp"></app-notifications>
7067
</li>
7168
<li class="nav-item dropdown" dropdown placement="bottom right">
7269
<a href="#" class="nav-link dropdown-toggle" dropdownToggle>
73-
<i class="fa fa-cog fa-lg"></i>
70+
<i class="la la-cog la-lg"></i>
7471
</a>
7572
<ul *dropdownMenu class="dropdown-menu dropdown-menu-right">
7673
<li><a class="dropdown-item" href="#"><i class="glyphicon glyphicon-user"></i> &nbsp; My Account</a></li>
7774
<li class="dropdown-divider"></li>
7875
<li><a class="dropdown-item" [routerLink]=" ['/error'] ">Calendar</a></li>
7976
<li><a class="dropdown-item" [routerLink]=" ['/error'] ">Inbox &nbsp;&nbsp;<span class="badge badge-pill badge-danger animated bounceIn">9</span></a></li>
8077
<li class="dropdown-divider"></li>
81-
<li><a class="dropdown-item" [routerLink]=" ['/login'] "><i class="fa fa-sign-out"></i> &nbsp; Log Out</a></li>
78+
<li><a class="dropdown-item" [routerLink]=" ['/login'] "><i class="la la-sign-out"></i> &nbsp; Log Out</a></li>
8279
</ul>
8380
</li>
8481
<li class="nav-item">
8582
<a class="nav-link" href="#" (click)="toggleChat()" id="toggle-chat">
86-
<i class="fa fa-globe fa-lg"></i>
83+
<i class="la la-globe la-lg"></i>
8784
</a>
8885
<div id="chat-notification" class="chat-notification hide" (click)="toggleChat()">
8986
<div class="chat-notification-inner">

src/app/layout/sidebar/sidebar.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ export class SidebarComponent implements OnInit, AfterViewInit {
3333
}
3434
$sidebarContent.slimscroll({
3535
height: window.innerHeight,
36-
size: '4px'
36+
size: '4px',
37+
color: '#e5e7f1',
3738
});
3839
}
3940

0 commit comments

Comments
 (0)