fix: Tweak branding, OSS landing page

This commit is contained in:
Tom Moor
2020-02-16 19:49:24 -08:00
parent e18d0fdc77
commit 8fbd4a7463
4 changed files with 13 additions and 9 deletions

View File

@@ -19,7 +19,6 @@ import { emojiToUrl } from 'utils/emoji';
import Header from './Header'; import Header from './Header';
import DocumentMove from './DocumentMove'; import DocumentMove from './DocumentMove';
import Branding from './Branding';
import KeyboardShortcuts from './KeyboardShortcuts'; import KeyboardShortcuts from './KeyboardShortcuts';
import References from './References'; import References from './References';
import Loading from './Loading'; import Loading from './Loading';
@@ -28,6 +27,7 @@ import MarkAsViewed from './MarkAsViewed';
import ErrorBoundary from 'components/ErrorBoundary'; import ErrorBoundary from 'components/ErrorBoundary';
import LoadingIndicator from 'components/LoadingIndicator'; import LoadingIndicator from 'components/LoadingIndicator';
import PageTitle from 'components/PageTitle'; import PageTitle from 'components/PageTitle';
import Branding from 'shared/components/Branding';
import Notice from 'shared/components/Notice'; import Notice from 'shared/components/Notice';
import Time from 'shared/components/Time'; import Time from 'shared/components/Time';

View File

@@ -7,6 +7,7 @@ import AuthNotices from './components/AuthNotices';
import Hero from './components/Hero'; import Hero from './components/Hero';
import HeroText from './components/HeroText'; import HeroText from './components/HeroText';
import SigninButtons from './components/SigninButtons'; import SigninButtons from './components/SigninButtons';
import Branding from '../../shared/components/Branding';
import { githubUrl } from '../../shared/utils/routeHelpers'; import { githubUrl } from '../../shared/utils/routeHelpers';
type Props = { type Props = {
@@ -34,11 +35,9 @@ function Home(props: Props) {
<p> <p>
<SigninButtons {...props} /> <SigninButtons {...props} />
</p> </p>
<p>
<a href={githubUrl()}>Powered by Outline</a>
</p>
</Hero> </Hero>
</Grid> </Grid>
<Branding href={githubUrl()} />
</span> </span>
); );
} }

View File

@@ -4,12 +4,13 @@ import Centered from './Centered';
const Hero = styled(Centered)` const Hero = styled(Centered)`
width: 100%; width: 100%;
min-height: 500px; margin-top: 50vh;
padding: 4em 0 0; transform: translateY(-50%);
h1 { h1 {
font-size: 3.5em; font-size: 3.5em;
line-height: 1em; line-height: 1em;
margin-top: 0;
} }
h2 { h2 {

View File

@@ -1,11 +1,15 @@
// @flow // @flow
import * as React from 'react'; import * as React from 'react';
import styled from 'styled-components'; import styled from 'styled-components';
import OutlineLogo from 'shared/components/OutlineLogo'; import OutlineLogo from './OutlineLogo';
function Branding() { type Props = {
href?: string,
};
function Branding({ href = process.env.URL }: Props) {
return ( return (
<Link href={process.env.URL}> <Link href={href}>
<OutlineLogo size={16} fill="#000" />&nbsp;Outline <OutlineLogo size={16} fill="#000" />&nbsp;Outline
</Link> </Link>
); );