From f09fc31edd096fe24b9dd6b9d672974892b4774a Mon Sep 17 00:00:00 2001 From: Ian Lapham Date: Thu, 14 Mar 2024 23:05:46 -0400 Subject: [PATCH] add explore banner (#318) --- src/pages/App.tsx | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/src/pages/App.tsx b/src/pages/App.tsx index 3b5fb9af..eed53910 100644 --- a/src/pages/App.tsx +++ b/src/pages/App.tsx @@ -16,6 +16,7 @@ import { ExternalLink, TYPE } from 'theme' import { useActiveNetworkVersion, useSubgraphStatus } from 'state/application/hooks' import { DarkGreyCard } from 'components/Card' import { SUPPORTED_NETWORK_VERSIONS, EthereumNetworkInfo, OptimismNetworkInfo } from 'constants/networks' +import { Link } from 'rebass' const AppWrapper = styled.div` display: flex; @@ -65,7 +66,7 @@ const Hide1080 = styled.div` } ` -const WarningWrapper = styled.div` +const BannerWrapper = styled.div` width: 100%; display: flex; justify-content: center; @@ -81,6 +82,21 @@ const WarningBanner = styled.div` font-weight: 500; ` +const UrlBanner = styled.div` + background-color: ${({ theme }) => theme.pink1}; + padding: 1rem 0.75rem; + color: white; + font-size: 14px; + width: 100%; + text-align: center; + font-weight: 500; +` + +const Decorator = styled.span` + text-decoration: underline; + color: white; +` + const BLOCK_DIFFERENCE_THRESHOLD = 30 export default function App() { @@ -124,13 +140,21 @@ export default function App() { {showNotSyncedWarning && ( - + {`Warning: Data has only synced to block ${subgraphStatus.syncedBlock} (out of ${subgraphStatus.headBlock}). Please check back soon.`} - + )} + + + {`Explore the new combined V2 and V3 analytics at `} + + app.uniswap.org + + +