From e528910ac94b37f011933768b27270f5c164e5b2 Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Sat, 3 Oct 2020 22:33:31 +0300 Subject: [PATCH] Improved overall styling --- src/App.tsx | 16 +++++++-- src/components/WorkoutPlot.tsx | 2 -- src/components/WorkoutStats.tsx | 58 +++++++++++++++++++++++++-------- src/index.css | 2 +- 4 files changed, 59 insertions(+), 19 deletions(-) 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