diff --git a/src/App.tsx b/src/App.tsx index ee8ae64..b5822a2 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,6 +3,7 @@ import { WorkoutPlot } from './components/WorkoutPlot'; import { WorkoutStats } from './components/WorkoutStats'; import { parse, chunkRangeIntervals, Duration } from 'make-workout'; import { ErrorMessage } from './components/ErrorMessage'; +import styled from 'styled-components'; const defaultWorkout = `Name: Hello @@ -14,6 +15,15 @@ FreeRide: 10:00 Cooldown: 10:00 60%..30% `; +const AppContainer = styled.div` + max-width: 800px; + margin: 0 auto; +`; + +const AppTitle = styled.h1` + font-weight: normal; +`; + // Split range-intervals into 1 minute chunks const chunkSize = new Duration(60); @@ -34,12 +44,12 @@ export function App() { }, [setText, setWorkout, setError]); return ( -
-

Workout editor

+ + Workout editor