Skip to content

Commit 3b463b2

Browse files
committed
tweak formatting of credits screen
1 parent edf65e3 commit 3b463b2

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

source/views/settings/screens/credits.tsx

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as React from 'react'
22
import * as c from '@frogpond/colors'
3-
import {Heading as H, Paragraph as P} from '@frogpond/markdown'
43
import {Platform, ScrollView, StyleSheet, TextProps, Text} from 'react-native'
54
import {iOSUIKit, material} from 'react-native-typography'
65
import {AppLogo} from '../components/logo'
@@ -10,19 +9,21 @@ const styles = StyleSheet.create({
109
backgroundColor: c.white,
1110
},
1211
contentContainer: {
13-
paddingHorizontal: 5,
12+
paddingHorizontal: 25,
1413
paddingVertical: 10,
1514
},
1615
title: {
1716
textAlign: 'center',
18-
marginTop: 10,
19-
marginBottom: 5,
17+
marginTop: 15,
18+
marginBottom: 20,
2019
...Platform.select({
2120
ios: iOSUIKit.largeTitleEmphasizedObject,
2221
android: material.headlineObject,
2322
}),
2423
},
2524
heading: {
25+
marginTop: 20,
26+
marginBottom: 4,
2627
...Platform.select({
2728
ios: iOSUIKit.subheadEmphasizedObject,
2829
android: material.titleObject,
@@ -33,8 +34,6 @@ const styles = StyleSheet.create({
3334
ios: iOSUIKit.bodyObject,
3435
android: material.body1Object,
3536
}),
36-
paddingHorizontal: 25,
37-
paddingTop: 10,
3837
},
3938
contributors: {
4039
...Platform.select({
@@ -61,7 +60,10 @@ const Contributors = (props: TextProps) => (
6160
<Text {...props} style={[styles.contributors, props.style]} />
6261
)
6362

64-
let contributors = [
63+
const formatPeopleList = (arr: Array<string>) =>
64+
arr.map((w) => w.replace(' ', ' ')).join(' • ')
65+
66+
const contributors = [
6567
'Anna Linden',
6668
'Drew Turnblad',
6769
'Drew Volz',
@@ -74,7 +76,7 @@ let contributors = [
7476
'Matt Kilens',
7577
]
7678

77-
let acknowledgements = [
79+
const acknowledgements = [
7880
'Brandon Cash',
7981
'Catherine Paro',
8082
'Dan Beach',
@@ -102,33 +104,33 @@ export let CreditsView = (): JSX.Element => (
102104
College in Northfield, MN under the name StoDevX.
103105
</About>
104106

105-
<H level={3}>🏡 October 2017 — Today</H>
106-
<P>
107+
<Heading>🏡 October 2017 — Today</Heading>
108+
<About>
107109
Alumni of St. Olaf — Hawken Rives, Kris Rye, and Drew Volz — develop and
108110
support the app in its current form. Rewritten from top to bottom in
109111
Typescript, this is the version you see today in the iOS and Android app
110112
stores. It remains self-published, open-source, cross-platform, and free
111113
of trackers and data collection.
112-
</P>
114+
</About>
113115

114-
<H level={3}>🧱 July 2016 — September 2017</H>
115-
<P>
116+
<Heading>🧱 July 2016 — September 2017</Heading>
117+
<About>
116118
This version was written in the summer of 2016, led by Elijah Verdoorn and
117119
assisted by Hawken Rives and Drew Volz. The app was supported and
118120
published by the Student Government Association (SGA) web team, called the
119121
Oleville Development Team.
120-
</P>
122+
</About>
121123

122-
<H level={3}>🏗 2014</H>
123-
<P>
124+
<Heading>🏗 2014</Heading>
125+
<About>
124126
The first version of All About Olaf was an iOS app created by Drew Volz as
125127
an independent project, self-published and written in Objective-C.
126-
</P>
128+
</About>
127129

128130
<Heading>Contributors</Heading>
129-
<Contributors names={contributors} />
131+
<Contributors>{formatPeopleList(contributors)}</Contributors>
130132

131133
<Heading>Acknowledgements</Heading>
132-
<Contributors names={acknowledgements} />
134+
<Contributors>{formatPeopleList(acknowledgements)}</Contributors>
133135
</ScrollView>
134136
)

0 commit comments

Comments
 (0)