From def892bb6cc2688590cbc8258233c5ae1500ec5a Mon Sep 17 00:00:00 2001 From: tufgniuz Date: Wed, 7 Sep 2022 22:28:27 +0700 Subject: [PATCH 01/10] Centered text of training selection --- .../profile/training-profile.component.html | 64 +++++++------- .../profile/training-profile.component.scss | 84 +++++++++---------- Angular2/src/environments/environment.ts | 4 +- Angular2/src/styles.scss | 1 - 4 files changed, 71 insertions(+), 82 deletions(-) diff --git a/Angular2/src/app/pages/training/profile/training-profile.component.html b/Angular2/src/app/pages/training/profile/training-profile.component.html index 689209ed5..480324942 100644 --- a/Angular2/src/app/pages/training/profile/training-profile.component.html +++ b/Angular2/src/app/pages/training/profile/training-profile.component.html @@ -23,43 +23,39 @@

{{ profile.name }}

-
-
-
-

{{ course.name }}

-

Training -

-

X Chapters

-

Xmin

+
    +
  • +

    {{ course.name }}

    + + Training + +

    + + + + + + + + + + + + + + + + + - -
- - - - - - - - - - - -
-
+ + + diff --git a/Angular2/src/app/pages/training/profile/training-profile.component.scss b/Angular2/src/app/pages/training/profile/training-profile.component.scss index 20e9d581c..2c8d0bd12 100644 --- a/Angular2/src/app/pages/training/profile/training-profile.component.scss +++ b/Angular2/src/app/pages/training/profile/training-profile.component.scss @@ -1,9 +1,43 @@ -// li.clickable { -// cursor: pointer; -// } +ul { + list-style: none; +} -.shadow { - box-shadow: 0px 4px 20px 5px rgba(0, 0, 0, 0.05); +.course-list { + display: flex; + flex-direction: column; + + .course-list-item { + display: flex; + justify-content: space-between; + align-items: center; + border-radius: 10px; + box-shadow: 0px 4px 20px 5px rgba(0, 0, 0, 0.05); + margin-bottom: 1.5rem; + padding: 1.8rem 4.3rem; + font-size: 1rem; + + h1 { + font-size: 1rem; + font-weight: 600; + } + + .label { + text-align: center; + border-radius: 50px; + } + + .label-l1 { + background-color: #4cc9f0; + } + + .label-l2 { + background-color: #F72585; + } + + .label-l3 { + background-color: #7C5FF4; + } + } } .border-l1 { @@ -18,45 +52,5 @@ border-left: 3.5px solid #7C5FF4; } -.box { - border-radius: 7px; - padding: 1em 2em; - - .box-title { - font-weight: 600; - min-width: 242px; - } - - .box-level { - border-radius: 33px; - padding: .3rem 1.3rem; - text-align: center; - text-transform: uppercase; - color: #fff; - } - - .easy { - background-color: #4CC9F0; - } - .competent { - background-color: #F72585; - } - - .advanced { - background-color: #7C5FF4; - } - - .box-text { - font-weight: 400; - } -} - -.btn { - font-weight: 600; - - .btn-dark { - background: #101F39; - } -} diff --git a/Angular2/src/environments/environment.ts b/Angular2/src/environments/environment.ts index aa800c437..e486e8f27 100644 --- a/Angular2/src/environments/environment.ts +++ b/Angular2/src/environments/environment.ts @@ -8,8 +8,8 @@ export const environment = { This config is about the endpoint where your api is running that is talking to the Angular UI DO NOT CHANGE HTTP TO HTTPS MANUALLY SHOULD BE HANDLED BY DEPLOY SCRIPTS */ - API_ENDPOINT: 'http://localhost:8888', - /* API_ENDPOINT: 'https://demo.securityknowledgeframework.org', */ + /* API_ENDPOINT: 'http://localhost:8888', */ + API_ENDPOINT: 'https://demo.securityknowledgeframework.org', AUTH_METHOD: 'skiploginprovider', /* diff --git a/Angular2/src/styles.scss b/Angular2/src/styles.scss index abb95336b..411add798 100644 --- a/Angular2/src/styles.scss +++ b/Angular2/src/styles.scss @@ -3,4 +3,3 @@ /* Importing Bootstrap SCSS file. */ @import '../node_modules/bootstrap/scss/bootstrap.scss'; - From 8f952bea3c77967508419a446d034deb2b008c78 Mon Sep 17 00:00:00 2001 From: tufgniuz Date: Mon, 12 Sep 2022 18:54:02 +0700 Subject: [PATCH 02/10] stuck with margin --- .../horizontaltopbar.component.html | 315 ++++++++++++++---- .../horizontaltopbar.module.ts | 9 + .../pages/dashboard/home/home.component.html | 222 +++++++----- .../pages/dashboard/home/home.component.scss | 53 +++ Angular2/src/assets/scss/app.scss | 1 - Angular2/src/environments/environment.ts | 6 +- 6 files changed, 452 insertions(+), 154 deletions(-) create mode 100644 Angular2/src/app/layouts/horizontaltopbar/horizontaltopbar.module.ts diff --git a/Angular2/src/app/layouts/horizontaltopbar/horizontaltopbar.component.html b/Angular2/src/app/layouts/horizontaltopbar/horizontaltopbar.component.html index dc8303f5f..879d35fee 100644 --- a/Angular2/src/app/layouts/horizontaltopbar/horizontaltopbar.component.html +++ b/Angular2/src/app/layouts/horizontaltopbar/horizontaltopbar.component.html @@ -2,19 +2,22 @@