Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
) * feat(overview): add overview and project tile components * update css * feat(overview): add additional css and click events * feat(overview): add view for unknown user, add create new project button for sysadmins, add logic to redirect user to project dashboard if only member of one project * feat(project): add sidenav item to go to the projects overview * test(overview, project-tile): fix test for overview. fix and add tests for project-tile * test(overview): add tests for overview component * refactor(overview): simplify logic to use two arrays instead of three * fix(users-list): get shortcode from grandchild route in the case user is in the beta view * chore(project): adjust comment
- Loading branch information
Showing
20 changed files
with
981 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<div class="project-tile"> | ||
<div class="project-tile-content"> | ||
<div class="top-bar"> | ||
<div class="status"> | ||
<div *ngIf="project.status === true" class="status-badge active"> | ||
<span>Active</span> | ||
</div> | ||
<div *ngIf="project.status === false" class="status-badge deactivated"> | ||
<span>Deactivated</span> | ||
</div> | ||
</div> | ||
<div *ngIf="sysAdmin" class="settings"> | ||
<button class="settings-button" mat-icon-button (click)="navigateTo(project.shortcode, 'settings')"> | ||
<mat-icon>settings</mat-icon> | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<div class="icon"> | ||
<mat-icon>redeem</mat-icon> | ||
</div> | ||
|
||
<div class="title"> | ||
<p>{{project.longname}}</p> | ||
</div> | ||
|
||
<div class="dashboard-button-container"> | ||
<button class="dashboard-button" mat-flat-button [color]="'primary'" | ||
(click)="navigateTo(project.shortcode, 'dashboard')"> | ||
Go to dashboard | ||
</button> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
.project-tile { | ||
border: 1px solid #d1d5db; | ||
border-radius: 6px; | ||
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); | ||
|
||
.project-tile-content { | ||
padding: 10px 5px 10px 10px; | ||
|
||
.top-bar { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
|
||
.status, | ||
.settings { | ||
display: inline-block; | ||
} | ||
|
||
.status { | ||
|
||
.status-badge { | ||
border-radius: 10px; | ||
padding: 2px 10px 4px 10px; | ||
|
||
span { | ||
font-size: 12px; | ||
} | ||
} | ||
|
||
.status-badge.active { | ||
background-color: #99F6E4; | ||
|
||
span { | ||
color: #0F766E; | ||
} | ||
} | ||
|
||
.status-badge.deactivated { | ||
background-color: #E5E7EB; | ||
|
||
span { | ||
color: #6B7280; | ||
} | ||
} | ||
|
||
} | ||
|
||
.settings { | ||
mat-icon-button { | ||
width: 28px; | ||
height: 28px; | ||
line-height: 28px; | ||
mat-icon { | ||
height: 28px; | ||
width: 28px; | ||
font-size: 28px; | ||
line-height: 28px; | ||
} | ||
} | ||
|
||
} | ||
} | ||
|
||
.icon { | ||
padding-top: 23px; | ||
|
||
mat-icon { | ||
font-size: 40px; | ||
} | ||
} | ||
|
||
.title { | ||
font-weight: 700; | ||
font-size: 24px; | ||
color: #3b4856; | ||
display: -webkit-box; | ||
-webkit-line-clamp: 2; | ||
-webkit-box-orient: vertical; | ||
overflow: hidden; | ||
line-height: 28px; | ||
padding: 0px 20px; | ||
height: 80px; | ||
} | ||
|
||
.dashboard-button-container { | ||
margin: 14% 0%; | ||
|
||
button { | ||
font-size: 16px; | ||
line-height: 24px; | ||
font-weight: 400; | ||
padding: 13px 21px; | ||
} | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.