www-new/components/Footer.tsx

37 lines
980 B
TypeScript
Raw Permalink Normal View History

import Link from "next/link";
2021-06-13 19:55:25 -04:00
import React from "react";
import { Button } from "./Button";
2021-06-13 19:55:25 -04:00
import { SocialLinks } from "./SocialLinks";
import { useThemeContext } from "./Theme";
2021-06-13 19:55:25 -04:00
import styles from "./Footer.module.css";
2021-06-13 19:55:25 -04:00
export function Footer() {
const themeContext = useThemeContext();
2021-06-13 19:55:25 -04:00
return (
<footer className={styles.footer}>
<div className={styles.container}>
<div className={styles.text}>
Have questions? Email us at{" "}
<Link href="mailto:exec@csclub.uwaterloo.ca">
<a className={styles.email}>exec@csclub.uwaterloo.ca</a>
</Link>
2021-06-13 19:55:25 -04:00
</div>
<Button
size="small"
onClick={() =>
themeContext?.theme.name === "dark"
? themeContext?.setTheme("light")
: themeContext?.setTheme("dark")
}
>
Toggle Theme
</Button>
2021-06-13 19:55:25 -04:00
<SocialLinks color="white" size="small" />
</div>
</footer>
);
}