From 0d7772387a18dd102b809817cf885f211f91bd37 Mon Sep 17 00:00:00 2001 From: kj1352 Date: Fri, 12 Nov 2021 17:36:11 +0530 Subject: [PATCH] Create committe UI changes --- .../create-committee.component.html | 8 +- .../create-committee.component.scss | 85 +++++----------- .../create-committee.component.ts | 96 +++++++++---------- 3 files changed, 75 insertions(+), 114 deletions(-) diff --git a/src/app/create-committee/create-committee.component.html b/src/app/create-committee/create-committee.component.html index afad9d4..155162e 100644 --- a/src/app/create-committee/create-committee.component.html +++ b/src/app/create-committee/create-committee.component.html @@ -2,17 +2,17 @@

Select committe members to investigate

-
+
+
diff --git a/src/app/create-committee/create-committee.component.scss b/src/app/create-committee/create-committee.component.scss index 23a7b46..43be9ff 100644 --- a/src/app/create-committee/create-committee.component.scss +++ b/src/app/create-committee/create-committee.component.scss @@ -1,74 +1,46 @@ -section { - margin: 2rem 0; +ul { + width: calc(100% - 4rem); + margin: 2rem auto; display: grid; - grid-template-columns: repeat(3, 1fr); + grid-template-columns: repeat(4, 1fr); list-style: none; li { display: flex; position: relative; align-items: center; - justify-content:center; - width: 35rem; - height: calc( 100% - 1.5rem) ; + justify-content: space-between; + height: 7rem; + padding: 0 1rem; border-radius: 5rem; margin: 2rem ; cursor: pointer; - background-color: var(--shadow-grey); - filter: brightness(115%); + background-color: white; + border: 1px solid var(--border-grey); &.isActive { background-color: white; - border: 1px solid var(--shadow-grey); box-shadow: 0rem 0rem 0.5rem 0.5rem var(--shadow-grey); - filter: brightness(110%); - - .check-box{ - position: relative; - display: inline-block; - width: 1.8rem; - height: 1.8rem; - background-color: var(--success); - box-shadow: none; - - &::before { - content: ""; - position: absolute; - left: -3px; - top: 45%; - height: 30%; - width: 2px; - background-color: white; - transform: translateX(10px) rotate(-45deg); - transform-origin: left bottom; - } - - &::after { - content: ""; - position: absolute; - left: -2px; - bottom: 4px; - height: 2px; - width: 54%; - background-color: white; - transform: translateX(10px) rotate(-45deg); - transform-origin: left bottom; - } - } + filter: brightness(110%); + } + + input { + position: relative; + margin-right: 1rem; } - .upfold { - width: 20rem; - padding-left: 2rem; + .user-data { + margin-right: auto; h6 { - font-size: 1.6rem; - color: var(--primary); + font-size: 1.5rem; + color: var(--dark-grey); padding: 0.3rem 0; + font-weight: 500; } span { - font-size: 1.4rem; - color: var(--primary); + font-size: 1.3rem; + color: var(--dark-grey); } } @@ -76,17 +48,8 @@ section { width: 5rem; height: 5rem; border-radius: 50%; - margin-left: 1rem; - } - - .check-box { - width: 1.8rem; - background-color: white; - height: 1.8rem; - margin: 0 auto; - border-radius: 0.4rem; - box-shadow: inset 0px 1px 4px 0px var(--dark-grey); - + margin-right: 1rem; + object-fit: cover; } } diff --git a/src/app/create-committee/create-committee.component.ts b/src/app/create-committee/create-committee.component.ts index 80530fb..4cadda0 100644 --- a/src/app/create-committee/create-committee.component.ts +++ b/src/app/create-committee/create-committee.component.ts @@ -1,58 +1,56 @@ import { Component, OnInit } from '@angular/core'; @Component({ - selector: 'app-create-committee', - templateUrl: './create-committee.component.html', - styleUrls: ['./create-committee.component.scss'] + selector: 'app-create-committee', + templateUrl: './create-committee.component.html', + styleUrls: ['./create-committee.component.scss'] }) export class CreateCommitteeComponent implements OnInit { + committees: Array<{ + name: string; + designation: string + isActive: boolean, + }> = [{ + name: "Robert Jr", + designation: 'Engineer', + isActive: false + }, { + name: "Tom Holland", + designation: 'Investigator', + isActive: false + }, { + name: "Criss Evans", + designation: 'Engineer', + isActive: false + }, { + name: "Natalie Portman", + designation: 'Engineer', + isActive: false + }, { + name: "Mark Ruffalo", + designation: 'Investigator', + isActive: false + }, { + name: "Paul Rudd", + designation: 'Engineer', + isActive: false + }, { + name: "Josh Brolin", + designation: 'Engineer', + isActive: false + }, { + name: "Criss Pratt", + designation: 'Investigator', + isActive: false + }, { + name: "Sacrlett Johansson", + designation: 'Engineer', + isActive: false + }] + constructor() { } - committees: Array<{ - name: string; - designation: string - isActive: boolean, - }> = [{ - name: "Robert Jr", - designation: 'Engineer', - isActive: false - }, { - name: "Tom Holland", - designation: 'Investigator', - isActive: false - }, { - name: "Criss Evans", - designation: 'Engineer', - isActive: false - }, { - name: "Natalie Portman", - designation: 'Engineer', - isActive: false - }, { - name: "Mark Ruffalo", - designation: 'Investigator', - isActive: false - }, { - name: "Paul Rudd", - designation: 'Engineer', - isActive: false - }, { - name: "Josh Brolin", - designation: 'Engineer', - isActive: false - }, { - name: "Criss Pratt", - designation: 'Investigator', - isActive: false - }, { - name: "Sacrlett Johansson", - designation: 'Engineer', - isActive: false - }] - - constructor() { } - - ngOnInit(): void { - } + ngOnInit(): void { + } }