diff --git a/advertisements/BannerText.tsx b/advertisements/BannerText.tsx new file mode 100644 index 0000000..06c1dbd --- /dev/null +++ b/advertisements/BannerText.tsx @@ -0,0 +1,18 @@ +import Image from "next/image"; +import Link from "next/link"; +import styles from "../styles/Advertisement.module.css"; + +const BannerText = (props: { text: string; url: string; }) => { + + return ( + +
+

{props.text}

+
+ + ); +}; + +export default BannerText; diff --git a/pages/index.tsx b/pages/index.tsx index 5bd51fe..1132163 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -4,6 +4,7 @@ import { get_articles_by_query } from "../db"; import { ReceivedArticle } from "../ts_types/db_types"; import MixedArticleDisplay from "../components/MixedArticleDisplay"; +import BannerText from "../advertisements/BannerText"; interface Props { articles: [ReceivedArticle]; } @@ -24,6 +25,7 @@ async function fetch_addtional_articles(skip?: number, max?: number) { function Home(props: Props) { return (
+