-
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.
Calendar: Format for mobile, Fix events to show course number, Add Fo…
…oter info Auth: change to allow admin access again
- Loading branch information
1 parent
277963f
commit 6d215b1
Showing
8 changed files
with
123 additions
and
41 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
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
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
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,88 @@ | ||
"use client"; | ||
|
||
import FullCalendar from "@fullcalendar/react"; | ||
import timeGridPlugin from "@fullcalendar/timegrid"; // a plugin! | ||
import InfoIcon from "@mui/icons-material/Info"; | ||
import { | ||
Button, | ||
Card, | ||
Link, | ||
Modal, | ||
ModalBody, | ||
ModalContent, | ||
ModalFooter, | ||
ModalHeader, | ||
useDisclosure, | ||
} from "@nextui-org/react"; | ||
import moment from "moment"; | ||
|
||
export default function FooterInfo(props: any) { | ||
const { isOpen, onOpen, onClose } = useDisclosure(); | ||
|
||
const handleOpen = () => { | ||
onOpen(); | ||
}; | ||
return ( | ||
<> | ||
<div | ||
className="flex flex-wrap gap-3 fixed bottom-10 left-10 opacity-50 hover:opacity-80 invisible sm:visible" | ||
onClick={() => handleOpen()} | ||
> | ||
<InfoIcon /> | ||
</div> | ||
<Modal backdrop={"blur"} isOpen={isOpen} onClose={onClose}> | ||
<ModalContent> | ||
{(onClose) => ( | ||
<> | ||
<ModalHeader className="flex flex-col gap-1"> | ||
Usage & Data Policy | ||
</ModalHeader> | ||
<ModalBody> | ||
<div className="columns-1 container max-w-4xl text-center"> | ||
<span className=""> | ||
The Course Planner is a student-run service, and displays | ||
classes from the Tri-College course database. We recommend | ||
confirming your schedule with the official course listings | ||
just in case. If there are any issues, | ||
</span> | ||
<span> | ||
{" "} | ||
<Link | ||
isExternal | ||
className="text-[#f46523]" | ||
href="mailto:[email protected]" | ||
title="Sccs Staff Email" | ||
> | ||
email us. | ||
</Link> | ||
</span> | ||
<br /> | ||
<br /> | ||
|
||
<div className="space-x-5"> | ||
<Link | ||
isExternal | ||
href="https://www.sccs.swarthmore.edu/docs/policy" | ||
title="SCCS Usage & Data Policy" | ||
> | ||
<span className=" underline ">Usage & Data Policy</span> | ||
</Link> | ||
</div> | ||
<br /> | ||
<span className="text-xs mt-3 "> | ||
© 2024 Swarthmore College Computer Society | v2.0.0 | ||
</span> | ||
</div> | ||
</ModalBody> | ||
<ModalFooter> | ||
<Button color="danger" variant="light" onPress={onClose}> | ||
Close | ||
</Button> | ||
</ModalFooter> | ||
</> | ||
)} | ||
</ModalContent> | ||
</Modal> | ||
</> | ||
); | ||
} |
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