Skip to content

Commit

Permalink
improve summary page styles
Browse files Browse the repository at this point in the history
- increase page padding
- increase gap between paragraphs
- increase font sizes
- have content vertically centered by margin: 'auto'
  • Loading branch information
JGreenlee committed Oct 4, 2023
1 parent 3c22583 commit ffc614e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions www/js/onboarding/StudySummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ const StudySummary = () => {
const styles = StyleSheet.create({
title: {
fontWeight: "bold",
fontSize: 22,
fontSize: 24,
paddingBottom: 10,
textAlign: "center"
},
text: {
fontSize: 14,
fontSize: 15,
},
studyName: {
fontWeight: "bold",
fontSize: 16
fontSize: 17,
},
});

Expand Down
6 changes: 4 additions & 2 deletions www/js/onboarding/SummaryPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ const SummaryPage = () => {
// summary of the study, followed by 'next' button
return (<>
<ScrollView contentContainerStyle={{flex: 1}}>
<Surface style={[onboardingStyles.page, {flex:1, gap: 16}]}>
<StudySummary />
<Surface style={[onboardingStyles.page, {flex: 1, padding: 32}]}>
<View style={{ gap: 40, margin: 'auto' }}>
<StudySummary />
</View>
<View style={[onboardingStyles.buttonRow, {marginTop: 'auto'}]}>
<Button mode='contained' onPress={next}> {t('intro.proceed')} </Button>
</View>
Expand Down

0 comments on commit ffc614e

Please sign in to comment.