Skip to content

Commit

Permalink
fix review page spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
ccatherinetan committed Dec 13, 2024
1 parent 0179ea1 commit c8b45a4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
35 changes: 16 additions & 19 deletions app/onboarding/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const stateOptions: DropdownOption<string>[] = [

const gardenTypeOptions: DropdownOption<UserTypeEnum>[] = [
{ label: 'Individual', value: 'INDIV' },
{ label: 'Community', value: 'ORG' },
{ label: 'Community/Organization', value: 'ORG' },
{ label: 'School', value: 'SCHOOL' },
];

Expand Down Expand Up @@ -228,20 +228,18 @@ const ReviewPage = ({

return (
<OnboardingContainer>
<Flex $direction="column" $justify="start">
<div style={{ width: '100%', display: 'flex', flexDirection: 'column' }}>
<ProgressBar progress={100} />
<QuestionDiv>
<H3
$color={COLORS.shrub}
style={{
textAlign: 'center',
marginTop: '90px',
marginBottom: '40px',
}}
>
Review & Submit
</H3>
</QuestionDiv>
<H3
$color={COLORS.shrub}
style={{
textAlign: 'center',
marginTop: '90px',
marginBottom: '40px',
}}
>
Review & Submit
</H3>
<ContentContainer>
<P1 style={{ color: COLORS.shrub, marginBottom: '16px' }}>
Your Responses
Expand All @@ -265,12 +263,11 @@ const ReviewPage = ({
options={plotOptions}
onChange={value => setSelectedPlot(value === true)} // Convert the value as needed
/>
<div style={{ height: '12.625rem' }} />
<BigButton color={COLORS.shrub} onClick={handleSubmit}>
Let&apos;s Start Growing !
</BigButton>
</ContentContainer>
</Flex>
</div>
<BigButton color={COLORS.shrub} onClick={handleSubmit}>
Let&apos;s Start Growing!
</BigButton>
</OnboardingContainer>
);
};
Expand Down
2 changes: 1 addition & 1 deletion app/onboarding/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const ContentContainer = styled.div`
export const QuestionDiv = styled.div`
display: flex;
flex-direction: column;
min-height: 60px;
height: max(60px, max-content);
align-items: center;
justify-content: end;
align-content: center;
Expand Down
1 change: 1 addition & 0 deletions components/Buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const BigButton = styled.button<ButtonProps>`
width: 100%;
height: 3rem;
max-height: 3rem;
font-family: inherit;
`;

export const Button = styled.button<ButtonProps>`
Expand Down

0 comments on commit c8b45a4

Please sign in to comment.