diff --git a/frontend/pages/whitepapers.js b/frontend/pages/whitepapers.js index 0e7db09c..4547a34d 100644 --- a/frontend/pages/whitepapers.js +++ b/frontend/pages/whitepapers.js @@ -1,23 +1,24 @@ import React from "react"; -import { VStack, Link, Heading, Icon } from "@chakra-ui/react"; +import { Flex, Heading } from "@chakra-ui/react"; import { getLayout, getLayoutProps } from "../src/layouts/InfoPageLayout"; -import { MdPictureAsPdf } from "react-icons/md"; +import WhitepaperCard from "../src/components/molecules/WhitepaperCard"; +import { AWS_ASSETS_PATH } from "../src/core/constants"; const Papers = () => { return ( - - + + Whitepapers - - An analysis of 7,020,950 NFT transactions on the Ethereum blockchain - - October 22, 2021 - - - + img={`${AWS_ASSETS_PATH}/nft_market_analysis_i.png`} + title="An analysis of 7,020,950 NFT transactions on the Ethereum blockchain" + date="October 22, 2021" + text="We present the Ethereum NFTs dataset, a representation of the activity on the Ethereum non-fungible token (NFT) market between April 1, 2021 and September 25, 2021, constructed purely from on-chain data. This dataset consists of all 7 020 950 token mints and transfers across 727 102 accounts between block 12 150 245 and block 13 296 011." + /> + ); }; diff --git a/frontend/src/components/molecules/WhitepaperCard.js b/frontend/src/components/molecules/WhitepaperCard.js new file mode 100644 index 00000000..1fbc128a --- /dev/null +++ b/frontend/src/components/molecules/WhitepaperCard.js @@ -0,0 +1,54 @@ +import React from "react"; +import { Flex, Image, Text } from "@chakra-ui/react"; + +const WhitepaperCard = ({ img, title, date = "", text, href, ...props }) => { + return ( + + { + window.open(href); + }} + /> + + + {title} + + {date && ( + + {date} + + )} + + {text} + + { + window.open(href); + }} + > + Read more + + + + ); +}; + +export default WhitepaperCard; diff --git a/frontend/src/layouts/InfoPageLayout.js b/frontend/src/layouts/InfoPageLayout.js index 2e292ad4..800960dc 100644 --- a/frontend/src/layouts/InfoPageLayout.js +++ b/frontend/src/layouts/InfoPageLayout.js @@ -1,5 +1,5 @@ import React, { useContext } from "react"; -import { Flex, Stack } from "@chakra-ui/react"; +import { Flex } from "@chakra-ui/react"; import UIContext from "../core/providers/UIProvider/context"; import { DEFAULT_METATAGS, BACKGROUND_COLOR } from "../core/constants"; import { getLayout as getSiteLayout } from "./index"; @@ -7,7 +7,6 @@ import { getLayout as getSiteLayout } from "./index"; const InfoPageLayout = ({ children }) => { const ui = useContext(UIContext); - const margin = ui.isMobileView ? "6%" : "22%"; return ( { alignItems="center" w="100%" > - - {children} - + {children} ); };