Copyright (c) 2023 with{' '} @@ -22,6 +34,7 @@ export default function Attribution(): React.ReactElement { .
+); } diff --git a/src/components/Attribution/stylesheet.scss b/src/components/Attribution/stylesheet.scss index c031a548..efb83f5d 100644 --- a/src/components/Attribution/stylesheet.scss +++ b/src/components/Attribution/stylesheet.scss @@ -7,7 +7,7 @@ box-sizing: border-box; display: flex; align-items: center; - justify-content: center; + justify-content: space-between; text-align: center; color: inherit; border-top: 1px solid $color-border; @@ -20,4 +20,8 @@ flex-wrap: wrap; justify-content: center; } + + .githubText { + margin-left: 5px; + } } \ No newline at end of file diff --git a/src/components/DonateBanner/index.tsx b/src/components/DonateBanner/index.tsx new file mode 100644 index 00000000..32c76f53 --- /dev/null +++ b/src/components/DonateBanner/index.tsx @@ -0,0 +1,53 @@ +import React from 'react'; +import useLocalStorageState from 'use-local-storage-state'; +import { faX } from '@fortawesome/free-solid-svg-icons'; +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; + +import Button from '../Button'; +import { DESKTOP_BREAKPOINT } from '../../constants'; +import useScreenWidth from '../../hooks/useScreenWidth'; + +import './stylesheet.scss'; + +const BANNER_LOCAL_STORAGE_KEY = '2024-04-01-spr2024-donate-banner'; + +export default function DonateBanner(): React.ReactElement { + const [hasSeen, setHasSeen] = useLocalStorageState(BANNER_LOCAL_STORAGE_KEY, { + defaultValue: false, + storageSync: true, + }); + const mobile = !useScreenWidth(DESKTOP_BREAKPOINT); + + return ( +
Hello Yellow Jackets! We are
excited to announce a new feature for GT Scheduler.
- Use Compare Schedules to share and compare your schedules with your
- friends!
+ Share your schedule with other students and they can share theirs
+ back. Then toggle "Compare Schedules" and click on the other
+ students' schedules to compare.
- Add your friends' schedules to yours and view them using the
- panel on the right side of the page below your profile icon.
+ However, to keep GT Scheduler and its amazing features, we need to
+ maintain our costs. Please consider donating to help keep GT Scheduler
+ running!