Skip to content

Commit

Permalink
Added CSS styles and animations to student-board.component.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Evelculosious committed Nov 2, 2024
1 parent 070362b commit f47a00d
Showing 1 changed file with 118 additions and 8 deletions.
126 changes: 118 additions & 8 deletions client/src/app/components/student-board/student-board.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
<div class="navbar-items">
Welcome {{ name }}
<div class="logout">
<button (click)="logout()">Logout</button>
<button (click)="logout()" class="btn-logout">Logout</button>
</div>
</div>
</nav>

<hr>
<h1 style="text-align: center;">You're one step away from getting your No Dues!</h1>
<h1 class="header">You're one step away from getting your No Dues!</h1>
<hr>
<table>
<table class="table">
<thead>
<tr>
<th>Subject</th>
Expand All @@ -25,7 +25,11 @@ <h1 style="text-align: center;">You're one step away from getting your No Dues!<
</thead>
<tbody>
<ng-container *ngIf="subjects">
<tr *ngFor="let subject of subjects">
<tr *ngFor="let subject of subjects" [ngClass]="{
'row-pending': subject.status === 'pending',
'row-approved': subject.status === 'approved',
'row-rejected': subject.status === 'rejected'
}">
<td>{{ subject.course_name }}</td>
<td>{{subject.handlingFaculty}}</td>
<td *ngIf="!subject.handlingFaculty">N/A</td>
Expand Down Expand Up @@ -56,10 +60,8 @@ <h1 style="text-align: center;">You're one step away from getting your No Dues!<
</tr>
</ng-container>

<!-- <button class="download-btn" (click)="downloadNoDueForm()" [disabled]="!isDownloadButtonEnabled()">Download No Due Form</button> -->
<div class="center">
<button (click)="downloadNoDueForm()" [disabled]="!isDownloadButtonEnabled()">Download No Due
Form</button>
<button (click)="downloadNoDueForm()" [disabled]="!isDownloadButtonEnabled()" class="btn-download">Download No Due Form</button>
</div>

<ng-container *ngIf="!subjects || subjects.length === 0">
Expand All @@ -70,4 +72,112 @@ <h1 style="text-align: center;">You're one step away from getting your No Dues!<
</tbody>
</table>

<!-- <button (click)="requestHoDSignature()" [disabled]="!isHoDButtonEnabled()">Request HoD Signature</button> -->
<style>
/* Navbar Styles */
.navbar {
background-color: #4a90e2;
color: white;
display: flex;
justify-content: space-between;
padding: 10px 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
font-size: 24px;
font-weight: bold;
}

.navbar-items {
display: flex;
align-items: center;
}

.logout {
margin-left: 20px;
}

.btn-logout {
background-color: #e94e77;
border: none;
color: white;
padding: 8px 15px;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s ease;
}

.btn-logout:hover {
background-color: #d9436f;
}

/* Header Styles */
.header {
text-align: center;
font-size: 28px;
margin: 20px 0;
}

/* Table Styles */
.table {
width: 100%;
border-collapse: collapse;
}

.table th, .table td {
border: 1px solid #ddd;
padding: 12px;
text-align: left;
transition: background-color 0.3s ease;
}

.table th {
background-color: #4a90e2;
color: white;
}

.table tr:hover {
background-color: #f5f5f5;
}

/* Button Styles */
.btn-download {
background-color: #4CAF50;
color: white;
padding: 10px 15px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}

.btn-download:hover {
background-color: #45a049;
}

/* Row Status Styles */
.row-pending {
background-color: #fff3cd;
}

.row-approved {
background-color: #d4edda;
}

.row-rejected {
background-color: #f8d7da;
}

/* Status Styles */
.status-pending {
color: #856404;
}

.status-approved {
color: #155724;
}

.status-rejected {
color: #721c24;
}
</style>

0 comments on commit f47a00d

Please sign in to comment.