From f47a00de6a3c071264274f8524385ed324baf84f Mon Sep 17 00:00:00 2001 From: ayush prasad Date: Sun, 3 Nov 2024 03:23:59 +0530 Subject: [PATCH 1/2] Added CSS styles and animations to student-board.component.html --- .../student-board.component.html | 126 ++++++++++++++++-- 1 file changed, 118 insertions(+), 8 deletions(-) diff --git a/client/src/app/components/student-board/student-board.component.html b/client/src/app/components/student-board/student-board.component.html index c1be661..b98157b 100644 --- a/client/src/app/components/student-board/student-board.component.html +++ b/client/src/app/components/student-board/student-board.component.html @@ -5,15 +5,15 @@
-

You're one step away from getting your No Dues!

+

You're one step away from getting your No Dues!


- +
@@ -25,7 +25,11 @@

You're one step away from getting your No Dues!<

- + @@ -56,10 +60,8 @@

You're one step away from getting your No Dues!<

-
- +
@@ -70,4 +72,112 @@

You're one step away from getting your No Dues!<

Subject
{{ subject.course_name }} {{subject.handlingFaculty}} N/A
- \ No newline at end of file + From fa8a8dacd341d6375015fa44ce3bf0b400271bc4 Mon Sep 17 00:00:00 2001 From: ayush prasad Date: Sun, 3 Nov 2024 18:09:27 +0530 Subject: [PATCH 2/2] Added css resposive designand animations to studentboard.component.html --- .../student-board.component.html | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/client/src/app/components/student-board/student-board.component.html b/client/src/app/components/student-board/student-board.component.html index b98157b..2eba6bd 100644 --- a/client/src/app/components/student-board/student-board.component.html +++ b/client/src/app/components/student-board/student-board.component.html @@ -79,8 +79,10 @@

You're one step away from getting your No Dues!

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 { @@ -91,6 +93,7 @@

You're one step away from getting your No Dues!

.navbar-items { display: flex; align-items: center; + flex-wrap: wrap; /* Wrap items in navbar */ } .logout { @@ -122,6 +125,7 @@

You're one step away from getting your No Dues!

.table { width: 100%; border-collapse: collapse; + overflow-x: auto; /* Allows horizontal scrolling on small screens */ } .table th, .table td { @@ -141,6 +145,11 @@

You're one step away from getting your No Dues!

} /* Button Styles */ +.center { + text-align: center; + margin-top: 20px; +} + .btn-download { background-color: #4CAF50; color: white; @@ -149,6 +158,7 @@

You're one step away from getting your No Dues!

border-radius: 5px; cursor: pointer; transition: background-color 0.3s ease; + font-size: 1rem; /* Font size for better readability */ } .btn-download:hover { @@ -180,4 +190,30 @@

You're one step away from getting your No Dues!

.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 */ + } +} +