Skip to content

Commit

Permalink
button css (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-tspencer committed Apr 1, 2024
1 parent 6f74c33 commit cf04a85
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 22 deletions.
54 changes: 33 additions & 21 deletions src/app/components/landing/dashboard/dashboard.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,50 @@

<mat-card
*ngIf="joinMselList.length > 0"
class="base-card"
tabindex="0"
[ngClass]="joinClass"
tabindex="1"
role="button"
(click)="gotoUrl('join')"
(mouseover)="joinClass='base-card outline'"
(mouseout)="joinClass='base-card'"
>
<mat-card-header>
<mat-card-title>Join an Event</mat-card-title>
<mat-card-subtitle>Access In-Progress Events</mat-card-subtitle>
</mat-card-header>
<img class="card-image" (click)="gotoUrl('join')" src="assets/img/join.png" alt="Join image">
<mat-card-header>
<mat-card-title>Join an Event</mat-card-title>
<mat-card-subtitle>Access In-Progress Events</mat-card-subtitle>
</mat-card-header>
<img class="card-image" src="assets/img/join.png" alt="Join image">
</mat-card>

<mat-card
*ngIf="launchMselList.length > 0"
class="base-card"
tabindex="0"
[ngClass]="launchClass"
tabindex="2"
role="button"
(click)="gotoUrl('launch')"
(mouseover)="launchClass='base-card outline'"
(mouseout)="launchClass='base-card'"
>
<mat-card-header>
<mat-card-title>Start an Event</mat-card-title>
<mat-card-subtitle>Launch New events</mat-card-subtitle>
</mat-card-header>
<img class="card-image" (click)="gotoUrl('launch')" src="assets/img/start.png" alt="Start image">
<mat-card-header>
<mat-card-title>Start an Event</mat-card-title>
<mat-card-subtitle>Launch New events</mat-card-subtitle>
</mat-card-header>
<img class="card-image" src="assets/img/start.png" alt="Start image">
</mat-card>

<mat-card
*ngIf="buildMselList.length > 0"
class="base-card"
tabindex="0"
[ngClass]="buildClass"
tabindex="3"
role="button"
(click)="gotoUrl('build')"
(mouseover)="buildClass='base-card outline'"
(mouseout)="buildClass='base-card'"
>
<mat-card-header>
<mat-card-title>Manage an Event</mat-card-title>
<mat-card-subtitle>Design and Plan Events</mat-card-subtitle>
</mat-card-header>
<img class="card-image" (click)="gotoUrl('build')" src="assets/img/build.png" alt="Build image">
<mat-card-header>
<mat-card-title>Manage an Event</mat-card-title>
<mat-card-subtitle>Design and Plan Events</mat-card-subtitle>
</mat-card-header>
<img class="card-image" src="assets/img/build.png" alt="Build image">
</mat-card>

</div>
Expand Down
6 changes: 6 additions & 0 deletions src/app/components/landing/dashboard/dashboard.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
min-width: 200px;
max-width: 300px;
max-height: 350px;
cursor: pointer;
}

.card-image {
Expand All @@ -40,3 +41,8 @@
margin-top: 40px;
margin-bottom: 40px;
}

.outline {
border-width: 1px;
border-style: solid;
}
5 changes: 4 additions & 1 deletion src/app/components/landing/dashboard/dashboard.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2024 Carnegie Mellon University. All Rights Reserved.
// Released under a MIT (SEI)-style license. See LICENSE.md in the
// project root for license information.
import { Component, OnDestroy } from '@angular/core';
import { Component, OnDestroy, ElementRef, ViewChild } from '@angular/core';
import { Router } from '@angular/router';
import { Subject, Observable } from 'rxjs';
import { take, takeUntil } from 'rxjs/operators';
Expand Down Expand Up @@ -35,6 +35,9 @@ export class DashboardComponent implements OnDestroy {
topbarImage = this.settingsService.settings.AppTopBarImage;
TopbarView = TopbarView;
appTitle = 'Event Dashboard';
joinClass = 'base-card';
launchClass = 'base-card';
buildClass = 'base-card';
private unsubscribe$ = new Subject();

constructor(
Expand Down

0 comments on commit cf04a85

Please sign in to comment.