diff options
author | Wei-Ning Huang <w@byzantine-lab.io> | 2019-09-29 11:48:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-29 11:48:55 +0800 |
commit | 2559bdaf65cbeee286db8ebd618c4a415fd500e2 (patch) | |
tree | 2df1e921aed0e0712df99b2514f5946057981347 | |
parent | c50a08bfa67a544e1b58705a67c215e91c14f89a (diff) | |
parent | c67f873204bde0fc916c31a0db61895c238c8f9f (diff) | |
download | tangerine-official-website-2559bdaf65cbeee286db8ebd618c4a415fd500e2.tar.gz tangerine-official-website-2559bdaf65cbeee286db8ebd618c4a415fd500e2.tar.zst tangerine-official-website-2559bdaf65cbeee286db8ebd618c4a415fd500e2.zip |
Merge pull request #1 from tangerine-network/mainnet-launch
Update landing image
-rw-r--r-- | src/images/mainnet-launch-landing-image.png | bin | 0 -> 574255 bytes | |||
-rw-r--r-- | src/pages/index.js | 81 |
2 files changed, 68 insertions, 13 deletions
diff --git a/src/images/mainnet-launch-landing-image.png b/src/images/mainnet-launch-landing-image.png Binary files differnew file mode 100644 index 0000000..a74a787 --- /dev/null +++ b/src/images/mainnet-launch-landing-image.png diff --git a/src/pages/index.js b/src/pages/index.js index d43a2e7..ecd19e9 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -19,6 +19,8 @@ import Tech from 'src/components/LandingPage/Tech'; import Wallet from 'src/components/LandingPage/Wallet'; import Explorer from 'src/components/LandingPage/Explorer'; import Resources from 'src/components/LandingPage/Resources'; +import { graphql, useStaticQuery } from "gatsby" +import Img from "gatsby-image" const Sections = styled.div` `; @@ -50,12 +52,14 @@ const Landing = styled.div` /* height: ${MAIN_AREA_DESKTOP_HEIGHT}px; */ height: calc(100vh - ${HEADER_HEIGHT}px); overflow: hidden; - @media screen and (max-width: ${MOBILE_WIDTH}px) { - height: calc(100vh - ${MOBILE_HEADER_HEIGHT}px); - } display: flex; align-items: center; justify-content: center; + @media screen and (max-width: ${MOBILE_WIDTH}px) { + height: calc(100vh - ${MOBILE_HEADER_HEIGHT}px); + /* flex-direction: column; */ + } + `; const TitleSection = styled.div` /* border: 1px solid #EEE; */ @@ -66,6 +70,9 @@ const TitleSection = styled.div` font-family: Montserrat; @media screen and (max-width: ${MOBILE_WIDTH}px) { padding: 0px 20px; + position: absolute; + top: 50%; + /* left: 20px; */ } `; const Title = styled.div` @@ -74,8 +81,8 @@ const Title = styled.div` font-size: 70px; line-height: 70px; @media screen and (max-width: ${MOBILE_WIDTH}px) { - font-size: 35px; - line-height: 35px; + font-size: 50px; + line-height: 50px; } `; const SecondTitle = styled.div` @@ -83,8 +90,8 @@ const SecondTitle = styled.div` font-size: 70px; line-height: 70px; @media screen and (max-width: ${MOBILE_WIDTH}px) { - font-size: 30px; - line-height: 30px; + font-size: 40px; + line-height: 40px; } ` const SubTitle = styled.div` @@ -141,24 +148,72 @@ const CircleBackground = styled.div` } `; +const ExploreButton = styled.button` + background-color: #e05b21; + padding: 15px 30px; + border-radius: 5px; + color: white; + border: none; + border: none; + font-weight: bold; + margin-top: 50px; + cursor: pointer; +`; + +const LaunchImageWrapper = styled.div` + position: absolute; + z-index: 10; + width: 1100px; + margin-left: 100px; + @media screen and (max-width: ${MOBILE_WIDTH}px) { + /* position: relative; */ + /* width: 100%; */ + margin-left: 0px; + width: 130%; + top: 10px; + } +`; const IndexPage = ({ pageContext: { locale }, intl }) => { const [showCircle, setShowCircle] = useState(); + const query = useStaticQuery(graphql` + query { + file(relativePath: { eq: "mainnet-launch-landing-image.png" }) { + childImageSharp { + fluid(maxWidth: 1100) { + ...GatsbyImageSharpFluid + } + } + } + } + `); return ( <Layout locale={locale}> <Sections> <Landing> - <Bubble + <LaunchImageWrapper> + <Img + fluid={query.file.childImageSharp.fluid} + /> + </LaunchImageWrapper> + {/* <Bubble onFinish={() => setShowCircle(true)} /> - {showCircle && <CircleBackground />} + {showCircle && <CircleBackground />} */} <TitleSection> - <Title>Build <HightLight>Trust</HightLight></Title> - <SecondTitle>For a Better Future</SecondTitle> - <SubTitle>A next-generation blockchain built on fast, fair, and secure consensus protocol</SubTitle> + {/* <Title>Build </Title> */} + {/* <SecondTitle>For a Better Future</SecondTitle> */} + <Title>Mainnet </Title> + <SecondTitle><HightLight>Launched!</HightLight></SecondTitle> + {/* <SubTitle>A next-generation blockchain built on fast, fair, and secure consensus protocol</SubTitle> */} + <ExploreButton + onClick={() => window.open('https://tangerine.garden/')} + > + Go Explore! + </ExploreButton> </TitleSection> </Landing> - <Section><PartnerList /></Section> + {/* <Section><PartnerList /></Section> */} {/* <Section><Contact /></Section> */} <Section id="technology" |