From 60011b80da470f37bd1512b3fbd05b8243ed42b6 Mon Sep 17 00:00:00 2001 From: cyuamber Date: Wed, 4 Dec 2019 12:15:41 +0800 Subject: style: change the style of homepage layout Change-Id: I79fba465a810a263877d796fa83544856c90f9b1 Issue-ID: USECASEUI-352 Signed-off-by: cyuamber --- .../src/app/views/home/home.component.html | 42 +++---- .../src/app/views/home/home.component.less | 139 +++++++++++++-------- .../src/app/views/home/home.component.ts | 20 +-- .../slicing-task-model.component.html | 30 ++--- 4 files changed, 136 insertions(+), 95 deletions(-) diff --git a/usecaseui-portal/src/app/views/home/home.component.html b/usecaseui-portal/src/app/views/home/home.component.html index faa5dcd4..13307927 100644 --- a/usecaseui-portal/src/app/views/home/home.component.html +++ b/usecaseui-portal/src/app/views/home/home.component.html @@ -26,7 +26,7 @@ {{"i18nTextDefine_service_instance" | translate}}

- {{"i18nTextDefine_ViewDetails" | translate}} + {{"i18nTextDefine_ViewDetails" | translate}}

@@ -42,26 +42,26 @@
  • -
    -
    VNF
    -
    - -
    -
    {{Vnfdata}}
    +
    +
    VNF
    +
    +
    -
  • -
  • -
    -
    PNF
    -
    - -
    -
    {{PnfData}}
    -
    -
  • +
    {{Vnfdata}}
    + + +
  • +
    +
    PNF
    +
    + +
    +
    {{PnfData}}
    +
    +
  • - {{"i18nTextDefine_ViewDetails" | translate}} + {{"i18nTextDefine_ViewDetails" | translate}}

    @@ -76,9 +76,9 @@

    {{"i18nTextDefine_VM_Alarm" | translate}}

    -

    +

    @@ -94,4 +94,4 @@
    - + \ No newline at end of file diff --git a/usecaseui-portal/src/app/views/home/home.component.less b/usecaseui-portal/src/app/views/home/home.component.less index cb0d877e..68c1367e 100644 --- a/usecaseui-portal/src/app/views/home/home.component.less +++ b/usecaseui-portal/src/app/views/home/home.component.less @@ -18,26 +18,32 @@ padding: 20px; min-height: 937px; height: 100vh; - .left-content{ + + .left-content { height: 100%; float: left; - width:30%; - .services,.PACKAGE{ - display:flex; + width: 40%; + + .services, + .PACKAGE { + display: flex; flex-direction: column; justify-content: space-between; width: 100%; - background:rgba(255,255,255,1); - box-shadow:0px 10px 10px 2px rgba(222,222,222,0.5); - border-radius:6px; + background: rgba(255, 255, 255, 1); + box-shadow: 0px 10px 10px 2px rgba(222, 222, 222, 0.5); + border-radius: 6px; padding: 28px 22px; - h4{ + + h4 { font: 600 16px/16px "Arial Bold"; - color: #0DA9E2; + color: #0DA9E2; } + p { font: 400 14px/14px "Arial"; } + .tip { align-self: flex-end; width: 110px; @@ -48,92 +54,108 @@ color: #3C4F8C; text-align: center; cursor: pointer; - span{ + + span { color: #3C4F8C; } } } - .services{ - min-height:467px; + + .services { + min-height: 467px; height: 49vh; flex-wrap: wrap; + h5 { position: relative; z-index: 3; font: 500 18px/18px "ArialMT"; - color:#0DA9E2; - margin: -2em 0 1em 0 ; + color: #0DA9E2; + margin: -2em 0 1em 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; + span { font-size: 14px; font-family: "Arial"; - color:#3C4F8C; + color: #3C4F8C; } + span:first-child { font-size: 18px; - padding: 0 4PX 0 4px; + padding: 0 4PX 0 4px; } + span:last-child { padding-left: 4px; } - + } } - .PACKAGE{ - min-height:410px; + + .PACKAGE { + min-height: 410px; height: 43vh; margin-top: 20px; + .details { - .detailstoplinContent{ - border-bottom:0.5px solid rgba(237,237,237,1); - border-radius:4px; + .detailstoplinContent { + border-bottom: 0.5px solid rgba(237, 237, 237, 1); + border-radius: 4px; line-height: 58px; font-size: 14px; color: #3C4F8C; - font-family:"ArialMT"; + font-family: "ArialMT"; + .detailstoplin { width: 100%; height: 58px; border-radius: 4px; - div:first-child{ + + div:first-child { width: 20%; float: left; } - div:nth-child(2){ + + div:nth-child(2) { width: 65%; float: left; } + div:last-child { width: 13%; float: right; - font-size:12px; + font-size: 12px; font-weight: 500; - color:rgba(60,79,140,0.5); + color: rgba(60, 79, 140, 0.5); } } - &:first-child{ - border-top: 0.5px solid rgba(237,237,237,1); - } + + &:first-child { + border-top: 0.5px solid rgba(237, 237, 237, 1); + } } } - - } + + } } + .right-content { height: 100%; float: left; - width: 70%; + width: 60%; padding-left: 15px; + .rt-content { min-height: 327px; height: 34vh; margin-bottom: 18px; - background:rgba(255,255,255,1); - box-shadow:0px 10px 10px 2px rgba(222,222,222,0.5); - border-radius:6px; + background: rgba(255, 255, 255, 1); + box-shadow: 0px 10px 10px 2px rgba(222, 222, 222, 0.5); + border-radius: 6px; + .alarm { float: left; background-color: #fff; @@ -142,12 +164,14 @@ border-radius: 5px; position: relative; padding: 28px 26px; + h4 { position: absolute; font: 600 16px/16px "Arial Bold"; color: #0DA9E2; } } + .poerformance { float: left; background-color: #fff; @@ -155,78 +179,90 @@ width: 50%; border-radius: 5px; padding: 28px 26px; + .pfVmPm { h3 { - color:#BD57E5; + color: #BD57E5; } - } + } + div { height: 57px; position: relative; margin-bottom: 10px; + h3 { font: 600 25px/25px "Arial"; color: #2F6AEF; margin-bottom: 10px; padding-left: 50%; } + p { - font: 400 12px/12px "Arial"; - color:rgba(60,79,140,0.5); + font: 400 12px/12px "Arial"; + color: rgba(60, 79, 140, 0.5); padding-left: 50%; - + } + img { position: absolute; top: 0; left: 0; } } - .tip{ + + .tip { width: 110px; background-color: #eceff4; color: #3C4F8C; font-size: 16px; float: right; margin-top: 20px; - margin-bottom: 0!important; + margin-bottom: 0 !important; line-height: 35px; border-radius: 5px; text-align: center; - a{ - color:#3C4F8C; + + a { + color: #3C4F8C; } } } - - .alarm-name{ + + .alarm-name { text-align: center; margin-top: 15px; } - + } + .rb-content { position: relative; min-height: 550px; height: 58vh; background-color: #fff; padding: 24px 30px; - box-shadow:0px 10px 15px 2px rgba(222,222,222,0.5); - border-radius:6px; + box-shadow: 0px 10px 15px 2px rgba(222, 222, 222, 0.5); + border-radius: 6px; + h4 { font: 600 16px/16px "Arial Bold"; color: #0DA9E2; } + nz-dropdown { position: absolute; top: 24px; right: 30px; + button { width: 170px; height: 35px; background-color: #eceff4; text-align: left; border-color: #cad3df; + span { display: inline-block; width: 120px; @@ -234,14 +270,17 @@ text-overflow: ellipsis; font-size: 14px; } + i { position: absolute; top: 12px; right: 12px; } } + //The style in the drop-down box is in style.less, and the drop-down box is extra temporary generated in the body. } + #pfVmChartLine { width: 100%; height: 318px; diff --git a/usecaseui-portal/src/app/views/home/home.component.ts b/usecaseui-portal/src/app/views/home/home.component.ts index a7f312e6..75ebb183 100644 --- a/usecaseui-portal/src/app/views/home/home.component.ts +++ b/usecaseui-portal/src/app/views/home/home.component.ts @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import { Component, OnInit, HostBinding, ViewChild, ElementRef } from '@angular/core'; +import { Component, OnInit, HostBinding, ViewChild, ElementRef } from '@angular/core'; import { HomesService } from '../../core/services/homes.service'; import { slideToRight } from '../../shared/utils/animates'; import { Util } from '../../shared/utils/utils'; @@ -31,13 +31,13 @@ export class HomeComponent implements OnInit { @HostBinding('@routerAnimate') routerAnimateState; @ViewChild('seriverChart') seriverChart; @ViewChild('services') services: ElementRef; - resizeMark + resizeMark constructor( private myhttp: HomesService, private router: Router, private Util: Util - ) { + ) { } ngOnInit() { @@ -49,17 +49,17 @@ export class HomeComponent implements OnInit { this.getHomeServiceBarNsData(); this.getHomeServiceBarVnfData(); this.getHomeServiceBarPnfData(); - this.resizeMark = Observable.fromEvent(window,'resize') + this.resizeMark = Observable.fromEvent(window, 'resize') .subscribe((event) => { - this.seriverChart.resize(this.services.nativeElement.offsetHeight,250) + this.seriverChart.resize(this.services.nativeElement.offsetHeight, 250) }) } - - ngAfterViewInit(){ - this.seriverChart.resize(this.services.nativeElement.offsetHeight,250) + + ngAfterViewInit() { + this.seriverChart.resize(this.services.nativeElement.offsetHeight, 250) } - ngOnDestroy(){ + ngOnDestroy() { this.resizeMark.unsubscribe() } @@ -540,7 +540,7 @@ export class HomeComponent implements OnInit { this.router.navigateByUrl('/services/services-list'); } goback_onboard() { - this.router.navigateByUrl('/services/onboard-vnf-vm'); + this.router.navigateByUrl('/onboard-vnf-vm'); } } diff --git a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.html b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.html index 23548aad..5e6914ab 100644 --- a/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.html +++ b/usecaseui-portal/src/app/views/services/slicing-management/slicing-task-management/slicing-task-model/slicing-task-model.component.html @@ -48,19 +48,17 @@ - +
    切片实例 ID: - - + +
    @@ -68,7 +66,7 @@
    @@ -78,18 +76,21 @@
    切片子网实例 ID: - - + +
    切片子网实例名称:{{item.slicingName}}
    - -
    @@ -98,6 +99,7 @@
    - + \ No newline at end of file -- cgit 1.2.3-korg