Hover concept

This commit is contained in:
Eric Bailey
2026-05-26 13:47:19 -05:00
parent 89f1917936
commit 844154934f
@@ -112,6 +112,7 @@ export const StandardSiteEmbed = ({
a.overflow_hidden, a.overflow_hidden,
a.w_full, a.w_full,
a.border, a.border,
t.atoms.bg,
interacted ? t.atoms.border_contrast_high : t.atoms.border_contrast_low, interacted ? t.atoms.border_contrast_high : t.atoms.border_contrast_low,
style, style,
]}> ]}>
@@ -131,7 +132,13 @@ export const StandardSiteEmbed = ({
<></> <></>
</Link> </Link>
<View style={[a.w_full, a.z_10, a.pointer_events_none]}> <View
style={[
a.w_full,
a.z_10,
a.pointer_events_none,
interacted && [t.atoms.bg_contrast_25],
]}>
{imageUri ? ( {imageUri ? (
<Image <Image
style={[a.aspect_card]} style={[a.aspect_card]}
@@ -226,20 +233,18 @@ export const StandardSiteEmbed = ({
)} )}
</View> </View>
<View style={[a.z_20]}> {view.source && (
{view.source && ( <View style={[a.z_20]}>
<> <Divider />
<Divider /> <PublicationFooter
<PublicationFooter view={view}
view={view} onPress={onPress}
onPress={onPress} onLongPress={onLongPress}
onLongPress={onLongPress} themeColors={themeColors}
themeColors={themeColors} hideSubscribe={hideSubscribe}
hideSubscribe={hideSubscribe} />
/> </View>
</> )}
)}
</View>
</View> </View>
) )
} }
@@ -278,7 +283,9 @@ export function PublicationCard({
a.w_full, a.w_full,
a.border, a.border,
a.p_md, a.p_md,
interacted ? t.atoms.border_contrast_high : t.atoms.border_contrast_low, interacted
? [t.atoms.bg_contrast_25, t.atoms.border_contrast_high]
: [t.atoms.bg, t.atoms.border_contrast_low],
style, style,
]}> ]}>
<Link <Link
@@ -500,6 +507,7 @@ export function PublicationFooter({
a.p_md, a.p_md,
a.gap_md, a.gap_md,
gtPhone && [a.flex_row, a.gap_sm], gtPhone && [a.flex_row, a.gap_sm],
interacted && t.atoms.bg_contrast_25,
]} ]}
testID="publication-embed-footer"> testID="publication-embed-footer">
<Link <Link
@@ -538,12 +546,7 @@ export function PublicationFooter({
<View style={[a.flex_1, a.gap_2xs]}> <View style={[a.flex_1, a.gap_2xs]}>
<Text <Text
numberOfLines={1} numberOfLines={1}
style={[ style={[a.text_sm, a.font_medium, t.atoms.text]}>
a.text_sm,
a.font_medium,
t.atoms.text,
interacted && a.underline,
]}>
{view.source?.title} {view.source?.title}
</Text> </Text>
<StandardSiteMetaRow type="publication" view={view} /> <StandardSiteMetaRow type="publication" view={view} />