diff --git a/public/static/bank-rasa-logo.png b/public/static/bank-rasa-logo.png new file mode 100644 index 0000000000..23607cffb6 Binary files /dev/null and b/public/static/bank-rasa-logo.png differ diff --git a/ui/banner/BlankRasaBanner.tsx b/ui/banner/BlankRasaBanner.tsx new file mode 100644 index 0000000000..73fbb83c54 --- /dev/null +++ b/ui/banner/BlankRasaBanner.tsx @@ -0,0 +1,87 @@ +import { + Box, + Flex, + Image, + Text, + Button, + useColorModeValue, + Heading, + Link, +} from '@chakra-ui/react'; +import React from 'react'; + +type BlankRasaBannerProps = { + block?: boolean; +}; + +const BlankRasaBanner = ({ block }: BlankRasaBannerProps) => { + const bgColor = useColorModeValue('light', '#171717'); + const btnColor = useColorModeValue('white', '#171717'); + const bgBoxShadowDesktop = useColorModeValue( + '0px 8px 16px -5px rgba(0, 0, 0, 0.10)', + '0px 8px 16px -5px rgba(6, 252, 153, 0.10)', + ); + const imgInvertFilter = useColorModeValue('invert(0)', 'invert(1)'); + + return ( + + + blank-rasa-logo-loading... + + + Blank Rasa + + + A platform for discovering and trading NFTs on Canto. + + + Features collections such as Canto Longnecks, Shnoises, and more. + + + + + + + + ); +}; + +export default BlankRasaBanner; diff --git a/ui/home/indicators/ChainIndicators.tsx b/ui/home/indicators/ChainIndicators.tsx index ce1261f71f..99bef58fbc 100644 --- a/ui/home/indicators/ChainIndicators.tsx +++ b/ui/home/indicators/ChainIndicators.tsx @@ -69,7 +69,6 @@ const ChainIndicators = () => { flexDir={{ base: 'column', lg: 'row' }} w="100%" alignItems="stretch" - mt={ 8 } > diff --git a/ui/pages/Home.tsx b/ui/pages/Home.tsx index d1849a22ad..932f548ebf 100644 --- a/ui/pages/Home.tsx +++ b/ui/pages/Home.tsx @@ -2,6 +2,7 @@ import { Box, Heading, Flex, LightMode } from '@chakra-ui/react'; import React from 'react'; import config from 'configs/app'; +import BlankRasaBanner from 'ui/banner/BlankRasaBanner'; import ChainIndicators from 'ui/home/indicators/ChainIndicators'; import LatestBlocks from 'ui/home/LatestBlocks'; import Stats from 'ui/home/Stats'; @@ -40,7 +41,10 @@ const Home = () => { - + + + + diff --git a/ui/shared/Page/PageTitle.tsx b/ui/shared/Page/PageTitle.tsx index 5e9dee6198..20917ce73b 100644 --- a/ui/shared/Page/PageTitle.tsx +++ b/ui/shared/Page/PageTitle.tsx @@ -4,6 +4,7 @@ import React from 'react'; import eastArrowIcon from 'icons/arrows/east.svg'; import useIsMobile from 'lib/hooks/useIsMobile'; +import BlankRasaBanner from 'ui/banner/BlankRasaBanner'; import TextAd from 'ui/shared/ad/TextAd'; import LinkInternal from 'ui/shared/LinkInternal'; @@ -16,6 +17,7 @@ type Props = { beforeTitle?: React.ReactNode; afterTitle?: React.ReactNode; contentAfter?: React.ReactNode; + secondRow?: React.ReactNode; isLoading?: boolean; withTextAd?: boolean; } @@ -31,11 +33,11 @@ const BackLink = (props: BackLinkProp & { isLoading?: boolean }) => { return ; } - const icon = ; + const icon = ; if ('url' in props) { return ( - + { icon } @@ -44,7 +46,7 @@ const BackLink = (props: BackLinkProp & { isLoading?: boolean }) => { } return ( - + { icon } @@ -52,7 +54,7 @@ const BackLink = (props: BackLinkProp & { isLoading?: boolean }) => { ); }; -const PageTitle = ({ title, contentAfter, withTextAd, backLink, className, isLoading, afterTitle, beforeTitle }: Props) => { +const PageTitle = ({ title, contentAfter, withTextAd, backLink, className, isLoading, afterTitle, beforeTitle, secondRow }: Props) => { const tooltip = useDisclosure(); const isMobile = useIsMobile(); const [ isTextTruncated, setIsTextTruncated ] = React.useState(false); @@ -90,59 +92,67 @@ const PageTitle = ({ title, contentAfter, withTextAd, backLink, className, isLoa }, [ updatedTruncateState ]); return ( - - - { backLink && } - { beforeTitle } - + + + - - + { backLink && } + { beforeTitle } + - - { title } - - - - - { afterTitle } + + + + { title } + + + + + { afterTitle } + + { contentAfter } + { withTextAd && } + + { secondRow && ( + + { secondRow } + + ) } - { contentAfter } - { withTextAd && } - + + ); }; diff --git a/ui/shared/layout/components/Content.tsx b/ui/shared/layout/components/Content.tsx index 85f8d497ec..462ac98047 100644 --- a/ui/shared/layout/components/Content.tsx +++ b/ui/shared/layout/components/Content.tsx @@ -7,7 +7,7 @@ interface Props { const Content = ({ children }: Props) => { return ( - + { children } ); diff --git a/ui/snippets/searchBar/SearchBarInput.tsx b/ui/snippets/searchBar/SearchBarInput.tsx index d9bd54dad4..e17233f319 100644 --- a/ui/snippets/searchBar/SearchBarInput.tsx +++ b/ui/snippets/searchBar/SearchBarInput.tsx @@ -83,7 +83,7 @@ const SearchBarInput = ({ onChange, onSubmit, isHomepage, onFocus, onBlur, onHid transitionDuration="normal" transitionTimingFunction="ease" > - +