-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Giuseppe Macri <[email protected]>
- Loading branch information
1 parent
c660da8
commit fdafc9e
Showing
6 changed files
with
216 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
import React from 'react'; | ||
|
||
import styled from 'styled-components'; | ||
import {media} from '../../styles'; | ||
import {cdnUrl} from '../../utils'; | ||
|
||
export const StyledCaption = styled.div` | ||
max-width: unset; | ||
text-align: center; | ||
margin-bottom: 32px; | ||
margin-top: 6rem; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
${media.palm` | ||
width: auto; | ||
padding-top: 0; | ||
margin-right: 0; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
margin-top: 0px; | ||
`} .kg-home__caption__subtitle { | ||
font-size: 36px; | ||
font-weight: 600; | ||
margin-bottom: 20px; | ||
line-height: 1.3; | ||
${media.palm` | ||
font-size: 20px; | ||
`}; | ||
} | ||
.kg-home__caption__description { | ||
font-size: 14px; | ||
color: ${props => props.theme.labelColor}; | ||
line-height: 24px; | ||
margin-bottom: 32px; | ||
max-width: 400px; | ||
span.t-bold { | ||
color: ${props => props.theme.textColor}; | ||
font-weight: 500; | ||
} | ||
${media.palm` | ||
margin-bottom: 32px; | ||
text-align: center; | ||
font-size: 12px; | ||
`}; | ||
} | ||
`; | ||
|
||
export const BackgroundImage = styled.img` | ||
position: absolute; | ||
left: 0px; | ||
top: 0px; | ||
width: 100%; | ||
height: 70%; | ||
object-fit: cover; | ||
background: #0f1d29; | ||
`; | ||
|
||
export const Container = styled.div` | ||
padding: ${props => props.theme.margins.huge}; | ||
color: white; | ||
position: relative; | ||
${media.palm` | ||
padding-top: ${props => props.theme.margins.large}; | ||
`} | ||
`; | ||
|
||
export const Content = styled.div` | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
${media.palm` | ||
margin-top: 3rem; | ||
`}; | ||
`; | ||
|
||
export const Logo = styled.img` | ||
position: absolute; | ||
left: 0; | ||
top: 0; | ||
width: 120px; | ||
${media.palm` | ||
position: inherit; | ||
margin-top: ${props => props.theme.margins.normal}; | ||
margin-bottom: ${props => props.theme.margins.small}; | ||
`}; | ||
`; | ||
|
||
export const HeroImage = React.forwardRef((props, ref) => ( | ||
<BackgroundImage {...props} ref={ref} src={cdnUrl('hero/kepler.gl-background.png')}/> | ||
)); | ||
|
||
export const LogoImage = React.forwardRef((props, ref) => ( | ||
<Logo {...props} src={cdnUrl('icons/kepler.gl-logo.png')} /> | ||
)); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
// Copyright (c) 2019 Uber Technologies, Inc. | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to deal | ||
// in the Software without restriction, including without limitation the rights | ||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
// copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
// THE SOFTWARE. | ||
|
||
import React, {PureComponent} from 'react'; | ||
import styled, {ThemeProvider} from 'styled-components'; | ||
import {Container, Content, HeroImage, LogoImage, StyledCaption} from './common/styles'; | ||
import {theme} from '../styles'; | ||
import Header from './header'; | ||
import {cdnUrl} from '../utils'; | ||
|
||
const GITHUB_PROJECT = 'https://github.com/keplergl/kepler.gl'; | ||
const GITHUB_PROJECT_ISSUES = `${GITHUB_PROJECT}/issues`; | ||
|
||
const StyledContainer = styled(Container)` | ||
background-color: black; | ||
height: 100vh; | ||
max-width: unset; | ||
.kg-home__caption__description { | ||
max-width: unset; | ||
} | ||
h3 { | ||
margin-bottom: 24px; | ||
} | ||
a { | ||
text-decoration: underline; | ||
} | ||
a:visited { | ||
color: white; | ||
} | ||
img.hero-image { | ||
height: 100vh; | ||
} | ||
`; | ||
|
||
export default class Home extends PureComponent { | ||
render() { | ||
return ( | ||
<ThemeProvider theme={theme}> | ||
<div> | ||
|
||
<Header /> | ||
<StyledContainer> | ||
<HeroImage className="hero-image" /> | ||
<Content> | ||
<LogoImage /> | ||
<StyledCaption> | ||
<div className="kg-home__caption__subtitle"> | ||
Support Policy | ||
</div> | ||
<div className="kg-home__caption__description"> | ||
<h3> | ||
<a href="https://kepler.gl">Kepler.gl</a> is an open source project. Its source code is available at <a | ||
href={GITHUB_PROJECT}>Kepler.gl Github project</a>. | ||
</h3> | ||
<span> | ||
As an open source project, questions and bug reports can be filed with the project community, | ||
and you can participate in the development of the project's source code. Bug reports and | ||
issues can be submitted at <a | ||
href={GITHUB_PROJECT_ISSUES}>Kepler.gl Github issues</a>. | ||
[Questions can be asked on the project's mailing lists, which you can subscribe to at [URL] // NEED TO BE DEFINED] | ||
Please review the applicable contributing guidelines and procedures in connection with your submissions. | ||
Please note that the Kepler.gl project and Urban Computing Foundation do not otherwise provide support for users of Kepler.gl software. | ||
</span> | ||
</div> | ||
</StyledCaption> | ||
</Content> | ||
</StyledContainer> | ||
</div> | ||
</ThemeProvider> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters