From c756d73e338eb6d83a6a9574347aa403f69d4f15 Mon Sep 17 00:00:00 2001 From: Luccas Mateus de Medeiros Gomes Date: Mon, 15 May 2023 10:22:47 -0300 Subject: [PATCH] [examples/538][xs] - change banner position + text + change README --- examples/fivethirtyeight/README.md | 8 +++++++- examples/fivethirtyeight/pages/_document.tsx | 9 +++++++++ examples/fivethirtyeight/pages/index.tsx | 13 ------------- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/examples/fivethirtyeight/README.md b/examples/fivethirtyeight/README.md index 965a1228..559d8682 100644 --- a/examples/fivethirtyeight/README.md +++ b/examples/fivethirtyeight/README.md @@ -1,4 +1,10 @@ -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). +This is a replica of the awesome data.fivethirtyeight.com using PortalJS. + +You might be asking why we did that, there are three main reasons: + +- The website has a great UI, with multiple datasets being displayed elegantly and with simplicity. +- PortalJS allows us to add more functionality to it e.g dataset previews and search functionality. +- The project follows our same principles of open sourcing and free data, with every dataset being publicly available on Github. ## Getting Started diff --git a/examples/fivethirtyeight/pages/_document.tsx b/examples/fivethirtyeight/pages/_document.tsx index 9866c67b..da8d1efe 100644 --- a/examples/fivethirtyeight/pages/_document.tsx +++ b/examples/fivethirtyeight/pages/_document.tsx @@ -13,6 +13,15 @@ export default function Document() { +
+
+ This is a replica to the awesome{' '} + + data.fivethirtyeight.com + {' '} + website. {' '} + Read more here
+

diff --git a/examples/fivethirtyeight/pages/index.tsx b/examples/fivethirtyeight/pages/index.tsx index fd01424d..375a30fa 100644 --- a/examples/fivethirtyeight/pages/index.tsx +++ b/examples/fivethirtyeight/pages/index.tsx @@ -143,19 +143,6 @@ export default function Home({ datasets }: { datasets: Dataset[] }) { return ( <> -
-
- This page is a tribute to the{' '} - - data.fivethirtyeight.com - {' '} - website made by the amazing 538 team. All content is credited to the original creators, intended for - educational purposes only. Visit their{' '} - website for in-depth analyses - on politics, sports, culture, and more. No copyright infringement - intended. -
-