one version

This commit is contained in:
Hailey
2024-06-11 16:09:19 -07:00
parent c5cc957c67
commit c48cdf549a
2 changed files with 28 additions and 8 deletions
+28 -7
View File
@@ -6,6 +6,7 @@ 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'
@@ -34,7 +35,7 @@ export function QrCode({
<LinearGradient <LinearGradient
colors={gradient} colors={gradient}
style={[ style={[
a.flex_1, {width: 580, height: 280},
a.align_center, a.align_center,
a.flex_row, a.flex_row,
a.gap_sm, a.gap_sm,
@@ -42,15 +43,35 @@ export function QrCode({
a.rounded_sm, a.rounded_sm,
a.px_sm, a.px_sm,
]}> ]}>
<View style={[a.gap_5xl, a.align_center, {width: '60%'}]}> <View style={[a.gap_4xl, a.align_center, {width: '55%'}]}>
<Text <Text
style={[a.font_bold, a.text_xl, a.text_center, {color: 'white'}]}> style={[a.font_bold, a.text_xl, a.text_center, {color: 'white'}]}>
<Trans>Join the conversation</Trans> <Trans>Join the conversation</Trans>
</Text> </Text>
<Text <View style={[a.gap_sm]}>
style={[a.font_bold, a.text_4xl, a.text_center, {color: 'white'}]}> <View style={[a.flex_row, a.align_center, a.justify_center]}>
{record.name} {starterPack.listItemsSample?.map(p => (
</Text> <View
style={[
{marginLeft: -6, borderColor: 'white', borderWidth: 2},
a.rounded_full,
a.shadow_lg,
]}
key={p.subject.did}>
<UserAvatar size={28} avatar={p.subject.avatar} />
</View>
))}
</View>
<Text
style={[
a.font_bold,
a.text_4xl,
a.text_center,
{color: 'white'},
]}>
{record.name}
</Text>
</View>
<View style={[a.flex_row, a.align_center, a.gap_sm]}> <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_xl, a.text_center, {color: 'white'}]}>
@@ -64,7 +85,7 @@ export function QrCode({
/> />
</View> </View>
</View> </View>
<View style={[{width: '40%'}]}> <View style={[{width: '35%'}]}>
<QrCodeInner url="https://bsky.app" /> <QrCodeInner url="https://bsky.app" />
</View> </View>
</LinearGradient> </LinearGradient>
@@ -41,7 +41,6 @@ export function QrCodeDialog({
}) })
}) })
} }
return ( return (
<Dialog.Outer control={control}> <Dialog.Outer control={control}>
<Dialog.Handle /> <Dialog.Handle />