-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add suggest a feature or improvement section in about us screen
- Loading branch information
1 parent
a0b8371
commit 4673c3c
Showing
1 changed file
with
52 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,36 +19,49 @@ const AboutUsScreen = () => { | |
logEvent('about_us_screen'); | ||
}, []); | ||
|
||
const feedback = () => { | ||
const email = '[email protected]'; | ||
const subject = 'Feedback/Suggestions'; | ||
const body = | ||
'Hello Kamal,\n\n I have a few suggestions to improve the app.\n\n[Describe your suggestions here]\n\nBest regards,\n[Your Name]'; | ||
const url = `mailto:${email}?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent( | ||
body | ||
)}`; | ||
|
||
Linking.openURL(url).catch((err) => console.error('Failed to open email client', err)); | ||
}; | ||
|
||
return ( | ||
<ScrollView style={styles.container} showsVerticalScrollIndicator={false}> | ||
<View> | ||
<Text style={styles.line}> | ||
{t( | ||
'We are a small team of developers and designers is passionate about simplifying the color selection process and inspiring creativity.' | ||
'We are a small team of developers and designers passionate about simplifying the color selection process and inspiring creativity.' | ||
)} | ||
</Text> | ||
</View> | ||
<View style={styles.linksMainView}> | ||
<TouchableOpacity onPress={() => Linking.openURL(`${INSTAGRAM_URL}`)}> | ||
<View style={styles.linkView}> | ||
<Entypo name="instagram" style={styles.icon} /> | ||
<Text style={[styles.line, styles.subtitle]}>{t('Follow us on instagram')}</Text> | ||
<Text style={[styles.line, styles.subtitle]}>{t('Follow us on Instagram')}</Text> | ||
<Text style={[styles.line, styles.link]}>{INSTAGRAM_URL}</Text> | ||
</View> | ||
</TouchableOpacity> | ||
<TouchableOpacity onPress={() => Linking.openURL(`${DISCORD_URL}`)}> | ||
<View style={styles.linkView}> | ||
<MaterialCommunityIcons name="discord" style={styles.icon} /> | ||
<Text style={[styles.line, styles.subtitle]}>{t('Join discord')}</Text> | ||
<Text style={[styles.line, styles.subtitle]}>{t('Join Discord')}</Text> | ||
<Text style={[styles.line, styles.link]}>{DISCORD_URL}</Text> | ||
</View> | ||
</TouchableOpacity> | ||
|
||
<TouchableOpacity onPress={() => Linking.openURL(`${CROMA_APP_URL}`)}> | ||
<View style={styles.linkView}> | ||
<MaterialCommunityIcons name="web" style={styles.icon} /> | ||
<Text style={[styles.line, styles.subtitle]}>{t('Web version with ')}</Text> | ||
<Text style={[styles.line, styles.subtitle]}>{t('ChatGPT support')}</Text> | ||
<Text style={[styles.line, styles.subtitle]}> | ||
{t('Web version with ChatGPT support')} | ||
</Text> | ||
<Text style={[styles.line, styles.link]}>{CROMA_APP_URL}</Text> | ||
</View> | ||
</TouchableOpacity> | ||
|
@@ -62,11 +75,30 @@ const AboutUsScreen = () => { | |
<View style={[styles.menuIcon, { paddingLeft: 4 }]}> | ||
<FontAwesome5 name="unlock" style={styles.icon} /> | ||
</View> | ||
<Text style={[styles.line, styles.subtitle]}>{t('Support us by ')}</Text> | ||
<Text style={[styles.line, styles.subtitle]}>{t('buying pro version ')}</Text> | ||
<Text style={[styles.line, styles.subtitle]}> | ||
{t('Support us by buying the Pro version')} | ||
</Text> | ||
<Text style={[styles.line, styles.link]}>Unlock all features</Text> | ||
</View> | ||
</TouchableOpacity> | ||
|
||
<TouchableOpacity | ||
style={styles.menuItem} | ||
onPress={() => { | ||
logEvent('about_us_feedback'); | ||
feedback(); | ||
}}> | ||
<View style={styles.linkView}> | ||
<View style={[styles.menuIcon, { paddingLeft: 4 }]}> | ||
<FontAwesome5 name="lightbulb" style={styles.icon} /> | ||
</View> | ||
<Text style={[styles.line, styles.subtitle]}>{t('Suggest a feature')}</Text> | ||
<Text style={[styles.line, styles.subtitle]}>{t(' or improvement')}</Text> | ||
<Text style={styles.subtext}> | ||
{t("If we love your idea, you'll get the Pro version for free!")} | ||
</Text> | ||
</View> | ||
</TouchableOpacity> | ||
</View> | ||
</ScrollView> | ||
); | ||
|
@@ -100,6 +132,19 @@ const styles = StyleSheet.create({ | |
link: { | ||
fontSize: 14, | ||
color: 'blue' | ||
}, | ||
menuItem: { | ||
paddingVertical: 20, | ||
alignItems: 'center' | ||
}, | ||
menuIcon: { | ||
paddingBottom: 5 | ||
}, | ||
subtext: { | ||
fontSize: 14, | ||
textAlign: 'center', | ||
color: 'green', | ||
marginTop: 10 | ||
} | ||
}); | ||
|
||
|