Swap in new image

This commit is contained in:
Eric Bailey
2025-09-03 16:18:28 -05:00
parent af5e783d7d
commit 89b3a1401a
2 changed files with 34 additions and 48 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

@@ -1,6 +1,7 @@
import {useCallback} from 'react' import {useCallback} from 'react'
import {View} from 'react-native' import {View} from 'react-native'
import {Image} from 'expo-image' import {Image} from 'expo-image'
import {LinearGradient} from 'expo-linear-gradient'
import {msg, Trans} from '@lingui/macro' import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react' import {useLingui} from '@lingui/react'
@@ -30,7 +31,7 @@ export function BookmarksAnnouncement() {
<Dialog.ScrollableInner <Dialog.ScrollableInner
label={_(msg`Introducing saved posts AKA bookmarks`)} label={_(msg`Introducing saved posts AKA bookmarks`)}
style={[web({maxWidth: 400})]} style={[web({maxWidth: 440})]}
contentContainerStyle={[ contentContainerStyle={[
{ {
paddingTop: 0, paddingTop: 0,
@@ -42,27 +43,21 @@ export function BookmarksAnnouncement() {
style={[ style={[
a.align_center, a.align_center,
a.overflow_hidden, a.overflow_hidden,
t.atoms.bg_contrast_25,
{ {
gap: isWeb ? 16 : 24, gap: 16,
paddingTop: isWeb ? 24 : 48, paddingTop: isWeb ? 24 : 40,
borderTopLeftRadius: a.rounded_md.borderRadius, borderTopLeftRadius: a.rounded_md.borderRadius,
borderTopRightRadius: a.rounded_md.borderRadius, borderTopRightRadius: a.rounded_md.borderRadius,
}, },
]}> ]}>
<View <LinearGradient
style={[ colors={[t.palette.primary_25, t.palette.primary_100]}
a.pl_sm, locations={[0, 1]}
a.pr_md, start={{x: 0, y: 0}}
a.py_sm, end={{x: 0, y: 1}}
a.rounded_full, style={[a.absolute, a.inset_0]}
a.flex_row, />
a.align_center, <View style={[a.flex_row, a.align_center, a.gap_xs]}>
a.gap_xs,
{
backgroundColor: t.palette.primary_100,
},
]}>
<SparkleIcon fill={t.palette.primary_800} size="sm" /> <SparkleIcon fill={t.palette.primary_800} size="sm" />
<Text <Text
style={[ style={[
@@ -75,54 +70,46 @@ export function BookmarksAnnouncement() {
</Text> </Text>
</View> </View>
<View style={[a.relative, a.w_full]}> <View
style={[
a.relative,
a.w_full,
{
paddingTop: 8,
paddingHorizontal: 32,
paddingBottom: 32,
},
]}>
<View <View
style={[ style={[
a.absolute,
t.atoms.bg_contrast_25,
t.atoms.shadow_md, t.atoms.shadow_md,
{ {
shadowOpacity: 0.4, shadowOpacity: 0.2,
top: 5, shadowOffset: {
bottom: 0, width: 0,
left: '17%', height: 10,
right: '17%', },
width: '66%', aspectRatio: 333 / 104,
borderTopLeftRadius: 40,
borderTopRightRadius: 40,
},
]}
/>
<View
style={[
a.overflow_hidden,
{
aspectRatio: 398 / 228,
}, },
]}> ]}>
<Image <Image
accessibilityIgnoresInvertColors accessibilityIgnoresInvertColors
source={require('../../../../assets/images/activity_notifications_announcement.webp')} source={require('../../../../assets/images/bookmarks_announcement_nux.webp')}
style={[ style={[
a.w_full, a.w_full,
{ {
aspectRatio: 398 / 268, aspectRatio: 333 / 104,
}, },
]} ]}
alt={_( alt={_(
msg`A screenshot of a profile page with a bell icon next to the follow button, indicating the new activity notifications feature.`, msg`A screenshot of a post with a new button next to the like button that allows you to save the post to your bookmarks. The post is from @jcsalterego.bsky.social and reads "inventing a saturday that immediately follows monday".`,
)} )}
/> />
</View> </View>
</View> </View>
</View> </View>
<View <View style={[a.align_center, a.px_xl, a.pt_xl, a.gap_2xl, a.pb_sm]}>
style={[ <View style={[a.gap_sm, a.align_center]}>
a.align_center,
a.px_xl,
isWeb ? [a.pt_xl, a.gap_xl, a.pb_sm] : [a.pt_3xl, a.gap_3xl],
]}>
<View style={[a.gap_md, a.align_center]}>
<Text <Text
style={[ style={[
a.text_3xl, a.text_3xl,
@@ -156,12 +143,11 @@ export function BookmarksAnnouncement() {
<Button <Button
label={_(msg`Close`)} label={_(msg`Close`)}
size="large" size="large"
variant="solid"
color="primary" color="primary"
onPress={() => { onPress={() => {
control.close() control.close()
}} }}
style={[a.w_full, {maxWidth: 280}]}> style={[a.w_full]}>
<ButtonText> <ButtonText>
<Trans>Close</Trans> <Trans>Close</Trans>
</ButtonText> </ButtonText>