From b6beb5f02e8c291f2b5f2bc7d0c15d0955336c32 Mon Sep 17 00:00:00 2001
From: Jan Tuomi <jans.tuomi@gmail.com>
Date: Fri, 2 Jul 2021 11:19:25 +0300
Subject: Implement research papers

---
 frontend/components/Marquees/Marquee.tsx | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 frontend/components/Marquees/Marquee.tsx

(limited to 'frontend/components/Marquees/Marquee.tsx')

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;
-- 
cgit v1.3

