Commit f933e538 authored by Vignesh Mohankumar's avatar Vignesh Mohankumar Committed by GitHub

feat: add background image to /about (#5623)

* feat: add background image to /about

* 100% height
parent 02b678b4
...@@ -8,10 +8,14 @@ import { BREAKPOINTS } from 'theme' ...@@ -8,10 +8,14 @@ import { BREAKPOINTS } from 'theme'
import Card from './Card' import Card from './Card'
import { CARDS, STEPS } from './constants' import { CARDS, STEPS } from './constants'
import backgroundImgSrc from './images/background.jpg'
import Step from './Step' import Step from './Step'
import { SubTitle, Title } from './Title' import { SubTitle, Title } from './Title'
const Page = styled.div<{ isDarkMode: boolean; titleHeight: number }>` const Page = styled.div<{ isDarkMode: boolean; titleHeight: number }>`
position: relative;
width: 100%;
align-self: center;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
...@@ -19,6 +23,17 @@ const Page = styled.div<{ isDarkMode: boolean; titleHeight: number }>` ...@@ -19,6 +23,17 @@ const Page = styled.div<{ isDarkMode: boolean; titleHeight: number }>`
padding-top: calc(100vh - ${({ titleHeight }) => titleHeight + 200}px); padding-top: calc(100vh - ${({ titleHeight }) => titleHeight + 200}px);
` `
const BackgroundImage = styled.img`
position: absolute;
top: 0;
left: 0;
height: calc(100vh - 72px);
`
const AboutTitle = styled(Title)`
z-index: 1;
`
const Panels = styled.div` const Panels = styled.div`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -163,10 +178,11 @@ export default function About() { ...@@ -163,10 +178,11 @@ export default function About() {
return ( return (
<Trace page={PageName.ABOUT_PAGE} shouldLogImpression> <Trace page={PageName.ABOUT_PAGE} shouldLogImpression>
<Page isDarkMode={isDarkMode} titleHeight={titleHeight}> <Page isDarkMode={isDarkMode} titleHeight={titleHeight}>
<BackgroundImage src={backgroundImgSrc} />
<Content> <Content>
<Title ref={titleRef} isDarkMode={isDarkMode}> <AboutTitle ref={titleRef} isDarkMode={isDarkMode}>
Uniswap is the leading on-chain marketplace for tokens and NFTs. Uniswap is the leading on-chain marketplace for tokens and NFTs.
</Title> </AboutTitle>
<PoweredBySection> <PoweredBySection>
<div> <div>
<SubTitle isDarkMode={isDarkMode}>Powered by the Uniswap Protocol</SubTitle> <SubTitle isDarkMode={isDarkMode}>Powered by the Uniswap Protocol</SubTitle>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment