From f1b8e3cb04e9f274e8008881bdc2edc910123046 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 2 Jul 2021 10:02:03 +0300 Subject: Add marquees for research papers --- frontend/pages/index.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'frontend/pages') diff --git a/frontend/pages/index.tsx b/frontend/pages/index.tsx index 16d413d..58b3b56 100644 --- a/frontend/pages/index.tsx +++ b/frontend/pages/index.tsx @@ -1,11 +1,23 @@ import Head from "next/head"; import { ReactElement, useEffect, useState } from "react"; import { io } from "socket.io-client"; +import Marquees, { MarqueeLink } from "../components/Marquees/Marquees"; import * as config from "../config"; import styles from "../styles/Home.module.css"; const socket = io(config.backendUrl); +const mockData: MarqueeLink[] = [ + { title: "Foobar of Foos and Bars", url: "https://example.com" }, + { title: "Foobar of Foos and Bars", url: "https://example.com" }, + { title: "Foobar of Foos and Bars", url: "https://example.com" }, + { title: "Foobar of Foos and Bars", url: "https://example.com" }, + { title: "Foobar of Foos and Bars", url: "https://example.com" }, + { title: "Foobar of Foos and Bars", url: "https://example.com" }, + { title: "Foobar of Foos and Bars", url: "https://example.com" }, + { title: "Foobar of Foos and Bars", url: "https://example.com" }, +]; + const Home = (): ReactElement => { const [value, setValue] = useState(undefined); @@ -37,6 +49,7 @@ const Home = (): ReactElement => { + ); }; -- cgit v1.3