Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
rosewang01 committed Dec 27, 2022
1 parent 95bd0d1 commit c66e377
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 39 deletions.
7 changes: 1 addition & 6 deletions client/src/Question/QuestionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,7 @@ function QuestionPage() {
return (
<ScreenGrid>
<SidebarComponent currentQuestion={currentQuestion}>
<Box
justifyContent="space-between"
height="100%"
margin="auto"
marginTop="15%"
>
<Box height="100%" margin="auto">
<Box margin="auto">
<ResourceComponent question={currentQuestion} />
</Box>
Expand Down
61 changes: 28 additions & 33 deletions client/src/Question/ResourceComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,45 +15,40 @@ function ResourceComponent(props: ResourceComponentProps) {
return (
// eslint-disable-next-line no-underscore-dangle
<div>
<ScreenGrid>
<Grid
container
direction="column"
justifyContent="space-between"
alignItems="center"
fit-content="100%"
height="100%"
>
<Grid
container
direction="row"
justifyContent="flex-start"
alignItems="center"
height="100%"
direction="column"
alignItems="center"
fit-content="100%"
justifyContent="space-in"
gap="2%"
>
<Grid
container
height="100%"
direction="row"
alignItems="center"
justifyContent="flex-start"
// gap="2%"
>
<Grid
container
direction="column"
alignItems="center"
justifyContent="flex-start"
>
<Typography variant="h2" fontWeight="bold" textAlign="center">
Resources
</Typography>
</Grid>
{question.resultantAnswers.map((answer) => {
return (
<Grid item margin="auto">
<ResourceDropdown
title={answer.text}
content={answer.resourceContent}
/>
</Grid>
);
})}
<Grid container direction="column" alignItems="center">
<Typography variant="h2" fontWeight="bold" textAlign="center">
Resources
</Typography>
</Grid>
{question.resultantAnswers.map((answer) => {
return (
<Grid item margin="auto" marginTop="1%">
<ResourceDropdown
title={answer.text}
content={answer.resourceContent}
/>
</Grid>
);
})}
</Grid>
</ScreenGrid>
</Grid>
</div>
);
}
Expand Down

0 comments on commit c66e377

Please sign in to comment.