-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from ChangePlusPlusVandy/notifications-page
Notifications page
- Loading branch information
Showing
4 changed files
with
170 additions
and
12 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
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
110 changes: 110 additions & 0 deletions
110
src/pages/NotificationsPage/NotificationsPage.module.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 |
---|---|---|
@@ -0,0 +1,110 @@ | ||
.container { | ||
background-color: #ffffff; | ||
height: 90%; | ||
font-family: Arial, sans-serif; | ||
border-radius: 15px; | ||
margin-top: 20px; | ||
margin-left: 20px; | ||
margin-right: 20px; | ||
padding: 2.5rem; | ||
padding-top: 3rem; | ||
box-sizing: border-box; | ||
} | ||
|
||
.headerSection { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
gap: 1rem; | ||
margin-bottom: 1.5rem; | ||
position: relative; | ||
} | ||
|
||
.toggleSection { | ||
position: absolute; | ||
top: -20px; | ||
right: 0; | ||
display: flex; | ||
align-items: center; | ||
gap: 0.75rem; | ||
margin-top: 6px; | ||
} | ||
|
||
.toggleSection span { | ||
font-family: "Inter", sans-serif; | ||
font-size: 16px; | ||
font-weight: 300; | ||
line-height: 24px; | ||
} | ||
|
||
.header { | ||
font-family: "Inter", sans-serif; | ||
font-size: 30px; | ||
font-weight: 600; | ||
line-height: 36.31px; | ||
text-align: left; | ||
text-underline-position: from-font; | ||
text-decoration-skip-ink: none; | ||
margin-left: 10px; | ||
margin-top: 10px; | ||
} | ||
|
||
.subHeader { | ||
font-family: "Inter", sans-serif; | ||
font-size: 15px; | ||
font-weight: 300; | ||
line-height: 18.15px; | ||
text-align: left; | ||
text-underline-position: from-font; | ||
text-decoration-skip-ink: none; | ||
margin-top: 16px; | ||
margin-left: 10px; | ||
} | ||
|
||
.toggleSwitch { | ||
position: relative; | ||
display: inline-block; | ||
width: 82px; | ||
height: 43px; | ||
} | ||
|
||
.toggleSwitch input { | ||
opacity: 0; | ||
width: 0; | ||
height: 0; | ||
} | ||
|
||
.toggleSwitch label { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
background-color: #ccc; | ||
border-radius: 30px; | ||
cursor: pointer; | ||
} | ||
|
||
.toggleSwitch label::before { | ||
position: absolute; | ||
content: ""; | ||
height: 37px; | ||
width: 37px; | ||
left: 3px; | ||
bottom: 3px; | ||
background-color: white; | ||
border-radius: 50%; | ||
transition: transform 0.4s ease; | ||
} | ||
|
||
.toggleSwitch input:checked + label { | ||
background-color: #7096d0; | ||
} | ||
|
||
.toggleSwitch input:checked + label::before { | ||
transform: translateX(40px); | ||
} | ||
|
||
.notificationSection { | ||
margin-top: 2rem; | ||
} |
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,3 +1,36 @@ | ||
export default function NotificationsPage() { | ||
return <div>NotificationsPage</div>; | ||
} | ||
import styles from "./NotificationsPage.module.css"; | ||
import { useNavigationContext } from "../../context/Navigation.context"; | ||
import { Tabs } from "../../layout/SideBar/SideBar.definitions"; | ||
import React, { useEffect } from "react"; | ||
|
||
const NotificationsPage = () => { | ||
const { setCurrentTab } = useNavigationContext(); | ||
|
||
useEffect(() => { | ||
setCurrentTab(Tabs.NOTIFICATIONS); | ||
}, []); | ||
|
||
return ( | ||
<div className={styles.container}> | ||
<div className={styles.headerSection}> | ||
<div className={styles.toggleSection}> | ||
<span>Enable real-time notifications</span> | ||
<div className={styles.toggleSwitch}> | ||
<input type="checkbox" id="realTimeToggle" /> | ||
<label htmlFor="realTimeToggle" /> | ||
</div> | ||
</div> | ||
|
||
<h1 className={styles.header}>Notifications</h1> | ||
|
||
<p className={styles.subHeader}> | ||
Stay updated with your latest notifications. | ||
</p> | ||
</div> | ||
|
||
<div className={styles.notificationsContent} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NotificationsPage; |