forked from vacaramin/Virtual-Horizon
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Notifications added to teachers dashboard
- Loading branch information
Showing
3 changed files
with
136 additions
and
38 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
93 changes: 66 additions & 27 deletions
93
frontend/src/Components/TeacherDashboard/ContentArea/Notifications/Notifications.css
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 |
---|---|---|
@@ -1,28 +1,67 @@ | ||
.notifications-container { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | ||
gap: 20px; | ||
padding: 20px; | ||
width: 90%; | ||
} | ||
.home-container { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | ||
gap: 20px; | ||
padding: 20px; | ||
width: 90%; | ||
} | ||
|
||
.box { | ||
background-color: #f2f2f2; | ||
border-radius: 8px; | ||
padding: 15px; | ||
} | ||
|
||
.box-title { | ||
background-color: #243047; | ||
color: #fff; | ||
padding: 10px; | ||
border-radius: 8px 8px 0 0; | ||
margin: 0; | ||
width: 101%; | ||
position: relative; | ||
top: -15px; | ||
left: -15px; | ||
z-index: 1; | ||
} | ||
.notifications-box { | ||
grid-column: span 2; | ||
} | ||
background-color: #f2f2f2; | ||
border-radius: 8px; | ||
padding: 15px; | ||
} | ||
|
||
.box-title { | ||
background-color: #243047; | ||
color: #fff; | ||
padding: 10px; | ||
border-radius: 8px 8px 0 0; | ||
margin: 0; | ||
width: 100%; | ||
position: relative; | ||
top: -15px; | ||
left: -15px; | ||
z-index: 1; | ||
} | ||
|
||
.box-content { | ||
margin-top: 20px; | ||
text-align: left; | ||
} | ||
|
||
/* Updated styles for notifications */ | ||
.notification-row { | ||
background-color: #fff; | ||
border: 1px solid #ddd; | ||
border-radius: 8px; | ||
padding: 15px; | ||
margin-bottom: 10px; | ||
transition: background-color 0.3s ease; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
cursor: pointer; | ||
} | ||
|
||
.notification-row:hover { | ||
background-color: #f7f7f7; | ||
} | ||
|
||
.notification-text { | ||
flex: 1; | ||
margin-right: 10px; | ||
} | ||
|
||
.notification-status { | ||
font-weight: bold; | ||
margin-right: 10px; | ||
} | ||
|
||
.notification-date { | ||
color: #666; | ||
} | ||
|
||
.notifications-box { | ||
grid-column: span 2; | ||
} |
61 changes: 51 additions & 10 deletions
61
frontend/src/Components/TeacherDashboard/ContentArea/Notifications/Notifications.jsx
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