From 8d1e37d1634a8bc7e6f841388652e23ad767d239 Mon Sep 17 00:00:00 2001 From: Simone Cuomo Date: Fri, 10 Feb 2023 09:53:57 +0000 Subject: [PATCH] fix: firefox issue fix: firefox issue --- .env.example | 2 +- src/components/Banner/index.js | 523 ++++++++++++++++----------------- 2 files changed, 254 insertions(+), 271 deletions(-) diff --git a/.env.example b/.env.example index 2485da0..818070a 100644 --- a/.env.example +++ b/.env.example @@ -32,4 +32,4 @@ API_URL=XXX REACT_APP_GITHUB_URL=https://github.com/smartcontractkit/solana-prediction-game # Google Analytics Tracking -REACT_APP_PUBLIC_GOOGLE_ANALYTICS_TRACKING=XXX \ No newline at end of file +REACT_APP_PUBLIC_GOOGLE_ANALYTICS_TRACKING=XXX diff --git a/src/components/Banner/index.js b/src/components/Banner/index.js index bc5f775..0bc4774 100644 --- a/src/components/Banner/index.js +++ b/src/components/Banner/index.js @@ -1,285 +1,268 @@ -import { Box, Flex, Heading, HStack, Image, Link, ListItem, Text, UnorderedList, VStack } from "@chakra-ui/react" +import { + Box, + Flex, + Heading, + HStack, + Image, + Link, + ListItem, + Text, + UnorderedList, + VStack, +} from "@chakra-ui/react"; import logo from "../../assets/logos/logo.svg"; import solanaLogo from "../../assets/logos/sol.png"; import GetStartedList from "./GetStartedList"; import { GithubIcon } from "./GithubIcon"; -const { - REACT_APP_GITHUB_URL:GITHUB_URL -} = process.env; +const { REACT_APP_GITHUB_URL: GITHUB_URL } = process.env; const Banner = () => { + const wallets = [ + { + name: "phantom", + extension: ".svg", + link: "https://phantom.app", + }, + { + name: "solfare", + extension: ".svg", + link: "https://solflare.com", + }, + { + name: "glow", + extension: ".svg", + link: "https://glow.app/", + }, + { + name: "slope", + extension: ".svg", + link: "https://slope.finance/", + }, + ]; - const wallets = [ - { - name: 'phantom', - extension: '.svg', - link: 'https://phantom.app' - }, - { - name: 'solfare', - extension: '.svg', - link: 'https://solflare.com' - }, - { - name: 'glow', - extension: '.svg', - link: 'https://glow.app/' - }, - { - name: 'slope', - extension: '.svg', - link: 'https://slope.finance/' - } - ]; + const faucets = [ + { + name: "sol-faucet", + extension: ".png", + link: "https://solfaucet.com/", + }, + { + name: "spl-token-faucet", + extension: ".png", + link: "https://spl-token-faucet.com/", + }, + ]; - const faucets = [ - { - name: 'sol-faucet', - extension: '.png', - link: 'https://solfaucet.com/' - }, - { - name: 'spl-token-faucet', - extension: '.png', - link: 'https://spl-token-faucet.com/' - } - ] - - const devLinks = [ - { - href: `${GITHUB_URL}/blob/main/README.md`, - text: "How to get started" - }, - { - href: "https://docs.chain.link/docs/solana/data-feeds-solana/", - text: "Solana Chainlink Docs" - }, - { - href: "https://docs.solana.com/developing/clients/javascript-api", - text: "Solana Web3.js Javascript API" - } - ] - const getStarted = [ - { - name: 'Wallets', - description: '1. Install & connect a wallet', - logos: wallets - }, - { - name: 'Faucets', - description: '2. Get some devnet SOL from the faucets', - logos: faucets - }, - { - name: null, - description: '3. Choose a prediction & make a bet', - logos: null - }, - { - name: null, - description: '4. Withdraw winnings or keep playing', - logos: null - }, - ] - return ( - + + {/* section 1 */} + + - + + Logo + + Solana +
+ Prediction Game +
+
+ + - {/* section 1 */} - - - - - Logo - - Solana
- Prediction Game -
-
- - - - - - - Live on Solana Devnet - - + bg="whiteAlpha.50" + p="4px 12px" + alignItems="center" + borderRadius="6px" + justifyContent="space-between" + > + + + Live on Solana Devnet + - solana logo - - - - Disclaimer - - - This dApp has been developed for educational purposes and it is not meant to be used for gambling - - - -
-
- {/* sectioni 2 */} - - - - How to get started? - - { - getStarted.map((list, i) => ( - - )) - } - - - {/* section 3 */} - - - - - For Developers - - - - This dApp is built on top of Solana and Chainlink. It enables users to interact with real-time markets using trustless solutions. Learn how to build a full-stack dApp with Solana and Chainlink. - + solana logo +
+ + + Disclaimer + + + This dApp has been developed for educational purposes and it + is not meant to be used for gambling + + +
+
+
+ {/* sectioni 2 */} + + + + How to get started? + + {getStarted.map((list, i) => ( + + ))} + + + {/* section 3 */} + + + + + For Developers + - - - - Go to Repository - - + + This dApp is built on top of Solana and Chainlink. It enables + users to interact with real-time markets using trustless + solutions. Learn how to build a full-stack dApp with Solana and + Chainlink. + - - - - { - devLinks.map((link, i) => ( - - - {link.text} - - - )) - } - - - - -
+ + + + Go to Repository + + + + + + {devLinks.map((link, i) => ( + + + + {link.text} + + + + ))} + + +
- ); -} + + + ); +}; -export default Banner; \ No newline at end of file +export default Banner;