Skip to content

Commit

Permalink
Arreglado diseño anuncio
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrogll committed Sep 25, 2023
1 parent 62a8e8d commit 120cdd8
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 19 deletions.
12 changes: 7 additions & 5 deletions src/components/announcement.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ const Announcement = ({ navigationRef }) => {

return (
<Center>
<Modal isOpen={showAnnouncement} onClose={() => setShowAnnouncement(false)} size='lg'>
<Modal.Content>
<Modal isOpen={showAnnouncement} onClose={() => setShowAnnouncement(false)}>
<Modal.Content width="90%">
<Modal.CloseButton />
<Modal.Header><Text style={styles.headerText}>¡Tenemos crowdfunding!</Text></Modal.Header>
<Modal.Body>
Expand Down Expand Up @@ -86,9 +86,11 @@ const styles = StyleSheet.create({
},
linkContainer: {
flexDirection: 'row',
paddingVertical: 4,
marginVertical: 4,
alignItems: 'center'
paddingTop: 6,
paddingBottom: 2,
marginVertical: 10,
alignItems: 'center',
maxWidth: '98%'
},
link: {
fontWeight: 'bold',
Expand Down
38 changes: 24 additions & 14 deletions src/containers/info-container.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,22 @@ const InfoContainer = ({ navigation }) => {
</Text>
</View>
<View style={styles.linksContainer}>
{crowdfundintActive &&
<TouchableHighlight
activeOpacity={0.9}
underlayColor={TOUCHABLE_UNDERLAY_COLOR}
onPress={() => Linking.openURL(CROWDFUNDING_URL)}
style={styles.crowdFunding}
>
<View style={styles.linkContainer}>
<DrawAttentionView duration='1000'>
<Text>
{iconsMap.get('crowdfunding', { color: LINK_COLOR, size: 28 })}
</Text>
</DrawAttentionView>
<Text style={styles.linkImportant}> ¡Apóyanos participando en el crowdfunding! </Text>
</View>
</TouchableHighlight>}
<TouchableHighlight
activeOpacity={0.9}
underlayColor={TOUCHABLE_UNDERLAY_COLOR}
Expand All @@ -57,7 +73,7 @@ const InfoContainer = ({ navigation }) => {
onPress={() => Linking.openURL(INSTAGRAM_URL)}
>
<View style={styles.linkContainer}>
<Text>{iconsMap.get('instagram', { color: LINK_COLOR })}</Text>
<Text> {iconsMap.get('instagram', { color: LINK_COLOR })}</Text>
<Text style={styles.link}> @benimacletconfusion </Text>
</View>
</TouchableHighlight>
Expand All @@ -71,17 +87,6 @@ const InfoContainer = ({ navigation }) => {
<Text style={styles.link}> Benimaclet conFusión </Text>
</View>
</TouchableHighlight>
{crowdfundintActive &&
<TouchableHighlight
activeOpacity={0.9}
underlayColor={TOUCHABLE_UNDERLAY_COLOR}
onPress={() => Linking.openURL(CROWDFUNDING_URL)}
>
<View style={styles.linkContainer}>
<DrawAttentionView duration='1000'><Text> {iconsMap.get('crowdfunding', { color: LINK_COLOR, size: 28 })} </Text></DrawAttentionView>
<Text style={styles.linkImportant}> ¡Apóyanos participando en el crowdfunding! </Text>
</View>
</TouchableHighlight>}
</View>
<View style={styles.textContainer}>
<Text style={styles.normalText}>
Expand Down Expand Up @@ -143,13 +148,18 @@ const styles = StyleSheet.create({
},
linksContainer: {
paddingHorizontal: 12,
marginBottom: 12
marginBottom: 12,
maxWidth: '90%'
},
linkContainer: {
flexDirection: 'row',
paddingVertical: 4,
paddingVertical: 6,
alignItems: 'center'
},
crowdFunding: {
paddingBottom: 10,
paddingTop: 5
},
subtitle: {
fontSize: 18
},
Expand Down

0 comments on commit 120cdd8

Please sign in to comment.