Skip to content

Commit

Permalink
fix(style): fix style issue in index page & about page (#163)
Browse files Browse the repository at this point in the history
* fix(about page): fix style issue in about page

* fix(index page): fix style issue in index page

* style(about page): reformat style issue
  • Loading branch information
LorenzoValentine authored Oct 7, 2023
1 parent d5708ed commit 5683037
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
20 changes: 13 additions & 7 deletions src/pages/about.tsx
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -26,9 +30,11 @@ const Content = styled.div`
export default function AboutPage(): React.ReactElement {
return (
<>
<Content>
<div dangerouslySetInnerHTML={{ __html: aboutContent as string }} />
</Content>
<PageWrapper>
<Content>
<div dangerouslySetInnerHTML={{ __html: aboutContent as string }} />
</Content>
</PageWrapper>
</>
);
// return aboutContent as React.ReactElement
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5683037

Please sign in to comment.