-
-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
70 additions
and
48 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
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 |
---|---|---|
@@ -1,53 +1,8 @@ | ||
export { Page } | ||
|
||
// For generating a 600x315 banner.png from this page see: https://gist.github.com/brillout/e7d0a5585471c4ea40d43d2caaadafad | ||
|
||
import React from 'react' | ||
import { heroBgColor, HeroTagline } from '../index/sections/hero/Hero' | ||
import vikeLogo from '../../assets/logo/vike.svg' | ||
import { Banner } from './Banner' | ||
|
||
function Page() { | ||
return ( | ||
<div | ||
style={{ | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
height: '100vh', | ||
background: heroBgColor | ||
}} | ||
> | ||
<div | ||
style={{ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
// Needs to have the right size upon 600x315 (that's the viewport we use to generate banner.png as explained in the HOW-TO above) | ||
scale: '1.3' | ||
}} | ||
> | ||
<div | ||
style={{ | ||
display: 'flex', | ||
alignItems: 'center', | ||
marginBottom: -14 | ||
}} | ||
> | ||
<img src={vikeLogo} style={{ marginRight: 12, height: 48, objectFit: 'contain' }} /> | ||
<span | ||
style={{ | ||
fontSize: '2.7em', | ||
fontWeight: 450, | ||
color: 'black', | ||
opacity: 0.75, | ||
lineHeight: '1em' | ||
}} | ||
> | ||
Vike | ||
</span> | ||
</div> | ||
<HeroTagline /> | ||
</div> | ||
</div> | ||
) | ||
return <Banner showLogo={true} /> | ||
} |
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,53 @@ | ||
export { Banner } | ||
|
||
import React from 'react' | ||
import { heroBgColor, HeroTagline } from '../index/sections/hero/Hero' | ||
import vikeLogo from '../../assets/logo/vike.svg' | ||
|
||
function Banner({ showLogo }: { showLogo: boolean }) { | ||
return ( | ||
<div | ||
style={{ | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
height: '100vh', | ||
background: heroBgColor | ||
}} | ||
> | ||
<div | ||
style={{ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
// Needs to have the right size upon 600x315 (that's the viewport we use to generate banner.png as explained in the HOW-TO above) | ||
scale: '1.3' | ||
}} | ||
> | ||
{showLogo && ( | ||
<div | ||
style={{ | ||
display: 'flex', | ||
alignItems: 'center', | ||
marginBottom: -14 | ||
}} | ||
> | ||
<img src={vikeLogo} style={{ marginRight: 12, height: 48, objectFit: 'contain' }} /> | ||
<span | ||
style={{ | ||
fontSize: '2.7em', | ||
fontWeight: 450, | ||
color: 'black', | ||
opacity: 0.75, | ||
lineHeight: '1em' | ||
}} | ||
> | ||
Vike | ||
</span> | ||
</div> | ||
)} | ||
<HeroTagline /> | ||
</div> | ||
</div> | ||
) | ||
} |
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,8 @@ | ||
export { Page } | ||
|
||
import React from 'react' | ||
import { Banner } from '../Banner' | ||
|
||
function Page() { | ||
return <Banner showLogo={false} /> | ||
} |
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