This commit is contained in:
Hailey
2024-06-11 22:14:52 -07:00
parent c48cdf549a
commit ad1c34e7be
+53 -37
View File
@@ -6,7 +6,6 @@ import {LinearGradient} from 'expo-linear-gradient'
import {AppBskyGraphDefs, AppBskyGraphStarterpack} from '@atproto/api' import {AppBskyGraphDefs, AppBskyGraphStarterpack} from '@atproto/api'
import {Trans} from '@lingui/macro' import {Trans} from '@lingui/macro'
import {UserAvatar} from 'view/com/util/UserAvatar'
import {Logo} from 'view/icons/Logo' import {Logo} from 'view/icons/Logo'
import {Logotype} from 'view/icons/Logotype' import {Logotype} from 'view/icons/Logotype'
import {useTheme} from '#/alf' import {useTheme} from '#/alf'
@@ -35,59 +34,76 @@ export function QrCode({
<LinearGradient <LinearGradient
colors={gradient} colors={gradient}
style={[ style={[
{width: 580, height: 280}, {width: 300, height: 440}, //😎
a.align_center, a.align_center,
a.flex_row,
a.gap_sm,
a.py_2xl,
a.rounded_sm,
a.px_sm, a.px_sm,
a.py_5xl,
a.rounded_sm,
a.justify_between,
]}> ]}>
<View style={[a.gap_4xl, a.align_center, {width: '55%'}]}>
<Text
style={[a.font_bold, a.text_xl, a.text_center, {color: 'white'}]}>
<Trans>Join the conversation</Trans>
</Text>
<View style={[a.gap_sm]}>
<View style={[a.flex_row, a.align_center, a.justify_center]}>
{starterPack.listItemsSample?.map(p => (
<View <View
style={[ style={[
{marginLeft: -6, borderColor: 'white', borderWidth: 2}, a.absolute,
a.rounded_full, a.z_20,
a.shadow_lg, {
top: 0,
left: 'auto',
right: 'auto',
height: 24,
width: 48,
borderBottomLeftRadius: 100,
borderBottomRightRadius: 100,
backgroundColor: 'transparent',
},
]} ]}
key={p.subject.did}> />
<UserAvatar size={28} avatar={p.subject.avatar} /> <View
</View>
))}
</View>
<Text
style={[ style={[
a.font_bold, a.absolute,
a.text_4xl, a.z_20,
a.text_center, {
{color: 'white'}, bottom: 0,
]}> left: 'auto',
right: 'auto',
height: 24,
width: 48,
borderTopLeftRadius: 100,
borderTopRightRadius: 100,
backgroundColor: 'transparent',
},
]}
/>
<View style={[a.gap_sm]}>
<Text
style={[a.font_bold, a.text_3xl, a.text_center, {color: 'white'}]}>
{record.name} {record.name}
</Text> </Text>
</View> </View>
<View style={[a.flex_row, a.align_center, a.gap_sm]}>
<Text <Text
style={[a.font_bold, a.text_xl, a.text_center, {color: 'white'}]}> style={[a.font_bold, a.text_center, {color: 'white', fontSize: 18}]}>
<Trans>Join the conversation</Trans>
</Text>
<View style={[]}>
<QrCodeInner url="https://bsky.app" />
</View>
<View style={[a.flex_row, a.align_center, {gap: 5}]}>
<Text
style={[
a.font_bold,
a.text_center,
{color: 'white', fontSize: 18},
]}>
<Trans>on</Trans> <Trans>on</Trans>
</Text> </Text>
<Logo width={30} fill="white" /> <Logo width={26} fill="white" />
<Logotype <Logotype
width={70} width={66}
fill="white" fill="white"
style={{marginTop: 8, marginLeft: 2}} style={{marginTop: 6, marginLeft: 2}}
/> />
</View> </View>
</View>
<View style={[{width: '35%'}]}>
<QrCodeInner url="https://bsky.app" />
</View>
</LinearGradient> </LinearGradient>
</ViewShot> </ViewShot>
) )