diff options
Diffstat (limited to 'frontend/components/Marquees/Marquee.tsx')
| -rw-r--r-- | frontend/components/Marquees/Marquee.tsx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/frontend/components/Marquees/Marquee.tsx b/frontend/components/Marquees/Marquee.tsx new file mode 100644 index 0000000..4cc41a2 --- /dev/null +++ b/frontend/components/Marquees/Marquee.tsx @@ -0,0 +1,20 @@ +import React, { ReactElement } from "react"; +import styles from "./Marquee.module.css"; + +interface Props { + delayShorthand: string; + topShorthand: string; + url: string; + text: string; + direction: "left" | "right"; +} + +const Marquee = ({ delayShorthand, url, text, topShorthand, direction }: Props): ReactElement => ( + <a className={styles.marquee} href={url} style={{ + animationDelay: delayShorthand, + top: topShorthand, + animationDirection: direction === "left" ? "normal" : "reverse", + }}>{text}</a> +); + +export default Marquee; |
