Skip to content

Commit

Permalink
Added css resposive designand animations to studentboard.component.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Evelculosious committed Nov 3, 2024
1 parent f47a00d commit fa8a8da
Showing 1 changed file with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ <h1 class="header">You're one step away from getting your No Dues!</h1>
color: white;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.navbar-brand {
Expand All @@ -91,6 +93,7 @@ <h1 class="header">You're one step away from getting your No Dues!</h1>
.navbar-items {
display: flex;
align-items: center;
flex-wrap: wrap; /* Wrap items in navbar */
}

.logout {
Expand Down Expand Up @@ -122,6 +125,7 @@ <h1 class="header">You're one step away from getting your No Dues!</h1>
.table {
width: 100%;
border-collapse: collapse;
overflow-x: auto; /* Allows horizontal scrolling on small screens */
}

.table th, .table td {
Expand All @@ -141,6 +145,11 @@ <h1 class="header">You're one step away from getting your No Dues!</h1>
}

/* Button Styles */
.center {
text-align: center;
margin-top: 20px;
}

.btn-download {
background-color: #4CAF50;
color: white;
Expand All @@ -149,6 +158,7 @@ <h1 class="header">You're one step away from getting your No Dues!</h1>
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
font-size: 1rem; /* Font size for better readability */
}

.btn-download:hover {
Expand Down Expand Up @@ -180,4 +190,30 @@ <h1 class="header">You're one step away from getting your No Dues!</h1>
.status-rejected {
color: #721c24;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
.navbar {
flex-direction: column; /* Stack navbar items vertically */
text-align: center;
}

.navbar-items {
margin-top: 10px;
}

.table th, .table td {
padding: 10px 5px; /* Adjust padding for smaller screens */
}

.btn-download {
padding: 8px 12px; /* Adjust button padding for smaller screens */
font-size: 0.9rem; /* Reduce font size */
}

.btn-logout, .btn-download {
width: 100%; /* Full-width buttons on small screens */
}
}

</style>

0 comments on commit fa8a8da

Please sign in to comment.