From 5a6db1fb29c5d6d2dc4391f2a0603e1246109fee Mon Sep 17 00:00:00 2001 From: kj1352 Date: Thu, 28 Nov 2019 10:58:40 +0530 Subject: [PATCH] Orders UI --- src/app/orders/orders.component.html | 20 ++++++++- src/app/orders/orders.component.ts | 2 +- src/styles.scss | 64 ++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+), 3 deletions(-) diff --git a/src/app/orders/orders.component.html b/src/app/orders/orders.component.html index 5169832..70fb4b6 100644 --- a/src/app/orders/orders.component.html +++ b/src/app/orders/orders.component.html @@ -35,7 +35,7 @@
- +
@@ -80,8 +80,24 @@
- +
+ + diff --git a/src/app/orders/orders.component.ts b/src/app/orders/orders.component.ts index 5592d06..4fde824 100644 --- a/src/app/orders/orders.component.ts +++ b/src/app/orders/orders.component.ts @@ -9,7 +9,7 @@ import { IFilterOption } from '../models/filter-option'; export class OrdersComponent implements OnInit { statusOptions: Array; dateOptions: Array; - + showRejectionPopup: boolean = false; constructor() { } diff --git a/src/styles.scss b/src/styles.scss index 6d076e9..b129fc1 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -63,3 +63,67 @@ button { letter-spacing: 0.5px; } } + + +.popup { + position: fixed; + width: 100%; + height: 100%; + left: 0; + top: 0; + z-index: 2; + background-color: rgba(black, 0.8); + display: flex; + align-items: center; + justify-content: center; + transition: opacity 0.3s; + transform: scale(0); + opacity: 0; + + &.active { + opacity: 1; + transform: scale(1); + + .popup-box { + transform: scale(1); + } + } + + .popup-box { + background-color: white; + border-radius: 10px; + padding: 50px; + text-align: center; + transform: scale(0); + transition: transform 0.3s; + transition-delay: 0.3s; + + header { + font-size: 16px; + font-weight: 500; + letter-spacing: 1px; + } + + select { + margin: 20px 0; + width: 300px; + padding: 10px; + border-radius: 10px; + font-size: 14px; + color: var(--dark-grey); + letter-spacing: 1px; + } + + .action-buttons { + button { + margin: 0 10px; + + &:first-child { + background-color: white; + border: 1px solid var(--brand-blue); + color: var(--brand-blue); + } + } + } + } +}