From cbd44557a84386c1a87fea4000f014b27a86fab2 Mon Sep 17 00:00:00 2001 From: kj1352 Date: Fri, 22 Nov 2019 18:20:37 +0530 Subject: [PATCH] Partial commit - Dashboard component --- src/app/dashboard/dashboard.component.html | 55 ++++++++++++++++- src/app/dashboard/dashboard.component.scss | 61 +++++++++++++++++++ src/app/dashboard/dashboard.component.ts | 12 ++-- .../widgets-holder.component.html | 6 +- .../widgets-holder.component.scss | 8 ++- src/styles.scss | 15 ++++- 6 files changed, 146 insertions(+), 11 deletions(-) diff --git a/src/app/dashboard/dashboard.component.html b/src/app/dashboard/dashboard.component.html index 9c5fce9..528cb31 100644 --- a/src/app/dashboard/dashboard.component.html +++ b/src/app/dashboard/dashboard.component.html @@ -1 +1,54 @@ -

dashboard works!

+
+
+
+
Dashboard
+
+ +
    +
  • +
    +
    Pending
    +

    Waiting for confirmation

    +
    + +
    +
    2
    Nos +
    + +
    + +
    +
  • + +
  • +
    +
    Confirmed
    +

    To be Packed

    +
    + +
    +
    5
    Nos +
    + +
    + +
    +
  • + +
  • +
    +
    Ready to Pick
    +

    Waiting for the Customer

    +
    + +
    +
    10
    Nos +
    + +
    + +
    +
  • +
+
+
diff --git a/src/app/dashboard/dashboard.component.scss b/src/app/dashboard/dashboard.component.scss index e69de29..ab6e7a3 100644 --- a/src/app/dashboard/dashboard.component.scss +++ b/src/app/dashboard/dashboard.component.scss @@ -0,0 +1,61 @@ +.container { + display: flex; + width: 100%; + align-items: stretch; +} + +.order-stats { + width: 70%; + + ul { + list-style: none; + } + + li { + display: flex; + width: 90%; + margin: 30px auto; + background-color: white; + border-radius: 10px; + padding: 15px; + justify-content: space-between; + align-items: center; + + .column { + letter-spacing: 0.5px; + + header { + font-weight: 500; + color: var(--dark-grey); + font-size: 16px; + } + + p { + font-size: 14px; + color: var(--grey); + margin-top: 10px; + } + + &:nth-child(1) { + width: 40%; + } + + &:nth-child(2) { + width: 100px; + color: var(--grey); + font-size: 14px; + + .count { + font-size: 36px; + font-weight: 700; + color: var(--dark-grey); + display: inline-block; + } + } + + button { + width: 100px; + } + } + } +} diff --git a/src/app/dashboard/dashboard.component.ts b/src/app/dashboard/dashboard.component.ts index 0824577..f104d63 100644 --- a/src/app/dashboard/dashboard.component.ts +++ b/src/app/dashboard/dashboard.component.ts @@ -1,15 +1,15 @@ import { Component, OnInit } from '@angular/core'; @Component({ - selector: 'app-dashboard', - templateUrl: './dashboard.component.html', - styleUrls: ['./dashboard.component.scss'] + selector: 'app-dashboard', + templateUrl: './dashboard.component.html', + styleUrls: ['./dashboard.component.scss'] }) export class DashboardComponent implements OnInit { - constructor() { } + constructor() { } - ngOnInit() { - } + ngOnInit() { + } } diff --git a/src/app/widgets-holder/widgets-holder.component.html b/src/app/widgets-holder/widgets-holder.component.html index 0e21356..e5a22e2 100644 --- a/src/app/widgets-holder/widgets-holder.component.html +++ b/src/app/widgets-holder/widgets-holder.component.html @@ -9,7 +9,7 @@ -
+
+ +
+ +
diff --git a/src/app/widgets-holder/widgets-holder.component.scss b/src/app/widgets-holder/widgets-holder.component.scss index df2e7be..54a79b6 100644 --- a/src/app/widgets-holder/widgets-holder.component.scss +++ b/src/app/widgets-holder/widgets-holder.component.scss @@ -36,11 +36,11 @@ } } -.widgets-holder { +.container { display: flex; align-items: stretch; width: 100%; - background-color: #efefef; + background-color: #f5f6fa; } .side-navigation { @@ -146,3 +146,7 @@ } } } + +.widgets { + width: 80%; +} diff --git a/src/styles.scss b/src/styles.scss index c9e6d03..47a57cb 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -32,8 +32,21 @@ button { background-color: var(--brand-blue); color: white; border: 0px; - height: 50px; + height: 40px; font-size: 16px; padding: 0 15px; letter-spacing: 0.5px; } + + +.widget-heading-holder { + width: 90%; + margin: 30px auto 0; + + header { + font-size: 20px; + color: var(--dark-grey); + font-weight: 500; + letter-spacing: 0.5px; + } +}