From 5683037f5ac4b31a47b48e537f5592017e223bd5 Mon Sep 17 00:00:00 2001 From: Jingqi DOU <44810027+LorenzoValentine@users.noreply.github.com> Date: Sat, 7 Oct 2023 19:17:21 +1100 Subject: [PATCH] fix(style): fix style issue in index page & about page (#163) * fix(about page): fix style issue in about page * fix(index page): fix style issue in index page * style(about page): reformat style issue --- src/pages/about.tsx | 20 +++++++++++++------- src/pages/index.tsx | 2 +- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/pages/about.tsx b/src/pages/about.tsx index 5c74570..f68eb80 100644 --- a/src/pages/about.tsx +++ b/src/pages/about.tsx @@ -1,12 +1,16 @@ import aboutContent from '../../README.md'; import styled from 'styled-components'; +const PageWrapper = styled.div` + background-color: ${(props) => + (props.theme.light as boolean) ? '#ffffff' : '#707070'}; +`; + const Content = styled.div` text-align: justify; - margin-left: 25%; - margin-right: 25%; - margin-top: 4%; - margin-bottom: 8%; + margin-left: 20%; + margin-right: 20%; + margin-bottom: 5%; font-family: 'Roboto', sans-serif; color: ${(props) => ((props.theme.light as boolean) ? '#333333' : '#c9c9c9')}; a:link { @@ -26,9 +30,11 @@ const Content = styled.div` export default function AboutPage(): React.ReactElement { return ( <> - -
- + + +
+ + ); // return aboutContent as React.ReactElement diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 8763570..2fd2ebd 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -17,7 +17,7 @@ import RestorePopup from '../components/RestoreComponents/restorePopUp'; const SimulatorContainer = styled.div` position: relative; left: 21rem; - top: 6rem; + top: 1rem; width: calc(100vw - 22rem); height: calc(100vh - 7rem); z-index: 0;