Add credits footer

This commit is contained in:
Rene Saarsoo 2020-10-04 16:27:13 +03:00
parent 02009fd014
commit 316b59eeed
2 changed files with 23 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import styled from 'styled-components';
import { CodeEditor } from './components/CodeEditor'; import { CodeEditor } from './components/CodeEditor';
import { ZwoOutput } from './components/ZwoOutput'; import { ZwoOutput } from './components/ZwoOutput';
import logo from "./logo.png"; import logo from "./logo.png";
import { Credits } from './components/Credits';
const defaultWorkout = `Name: Sample workout const defaultWorkout = `Name: Sample workout
Description: Try changing it, and see what happens below. Description: Try changing it, and see what happens below.
@ -63,6 +64,7 @@ export function App() {
{error && <ErrorMessage>{error}</ErrorMessage>} {error && <ErrorMessage>{error}</ErrorMessage>}
<WorkoutStats workout={workout} /> <WorkoutStats workout={workout} />
<ZwoOutput workout={workout} /> <ZwoOutput workout={workout} />
<Credits />
</AppContainer> </AppContainer>
); );
} }

View File

@ -0,0 +1,21 @@
import React from 'react';
import styled from 'styled-components';
const Text = styled.p`
font-size: 12px;
text-align: center;
margin-top: 3em;
border-top: 1px solid #eee;
padding-top: 1em;
color: gray;
`;
export const Credits: React.FC<{}> = () => (
<Text>
Built by Rene Saarsoo.
·
Graphics inspired by <a href="https://whatsonzwift.com/workouts/">What's on Zwift?</a>
&nbsp;·
Sweat provided by <a href="https://zwift.com">Zwift</a> :-)
</Text>
)