feat: flags

This commit is contained in:
2026-01-15 15:55:36 +01:00
parent 49ff374529
commit 0c41e2aec2
5 changed files with 15 additions and 3 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

+4
View File
@@ -105,6 +105,8 @@ import placeholder3 from './UI/placeholder3.png'
import placeholder4 from './UI/placeholder4.jpg' import placeholder4 from './UI/placeholder4.jpg'
import profile from './UI/profile.jpg' import profile from './UI/profile.jpg'
import musiclandClub from './UI/musiclandClub.png' import musiclandClub from './UI/musiclandClub.png'
import frenchFlag from './icons/frenchFlag.png'
import englishFlag from './icons/englishFlag.png'
export const tabs = { export const tabs = {
home, home,
tasks, tasks,
@@ -124,6 +126,8 @@ export const icons = {
sort, sort,
dragDots: require('./icons/dragDots.png'), dragDots: require('./icons/dragDots.png'),
frenchFlag,
englishFlag,
chevronDown, chevronDown,
arrowRight, arrowRight,
threeDots, threeDots,
+1 -1
View File
@@ -442,7 +442,7 @@ const styles = StyleSheet.create({
zIndex: 2, zIndex: 2,
}, },
heading: { heading: {
fontSize: 20, fontSize: 16,
color: Palette.white, color: Palette.white,
textAlign: 'center', textAlign: 'center',
fontFamily: FONT_FAMILY.HelveticaNeueMedium, fontFamily: FONT_FAMILY.HelveticaNeueMedium,
+10 -2
View File
@@ -100,13 +100,15 @@ export default function LandingPage() {
style={[styles.languageButton]} style={[styles.languageButton]}
onPress={() => handleSelectLanguage('fr')} onPress={() => handleSelectLanguage('fr')}
> >
<Text style={styles.languageText}>🇫🇷 Français</Text> <Image source={icons.frenchFlag} style={styles.flagIcon} />
<Text style={styles.languageText}>Français</Text>
</TouchableOpacity> </TouchableOpacity>
<TouchableOpacity <TouchableOpacity
style={[styles.languageButton]} style={[styles.languageButton]}
onPress={() => handleSelectLanguage('en')} onPress={() => handleSelectLanguage('en')}
> >
<Text style={styles.languageText}>🇬🇧 English</Text> <Image source={icons.englishFlag} style={styles.flagIcon} />
<Text style={styles.languageText}>English</Text>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
)} )}
@@ -191,6 +193,12 @@ const styles = StyleSheet.create({
paddingHorizontal: 18, paddingHorizontal: 18,
minWidth: 140, minWidth: 140,
alignItems: 'center', alignItems: 'center',
flexDirection: 'row',
gap: 8,
},
flagIcon: {
width: 24,
height: 18,
}, },
languageText: { languageText: {
fontSize: 16, fontSize: 16,