Refactor frontend-mobile
Run Tests on Branches / Frontend Tests (push) Has been cancelled
Run Tests on Branches / Backend Tests (push) Has been cancelled

This commit is contained in:
Antoni Nuñez Romeu
2026-07-07 18:08:44 +02:00
parent 69d66729aa
commit 9949b85001
14 changed files with 771 additions and 100 deletions
+19 -10
View File
@@ -55,11 +55,11 @@ export default function HomeScreen() {
value={query}
onChangeText={setQuery}
/>
<TouchableOpacity
<TouchableOpacity
style={styles.scannerButton}
onPress={() => router.push('/scanner')}
>
<Ionicons name="scan" size={24} color={colors.primary} />
<Ionicons name="scan" size={22} color="#ffffff" />
</TouchableOpacity>
</View>
@@ -96,25 +96,34 @@ const styles = StyleSheet.create({
searchContainer: {
flexDirection: 'row',
alignItems: 'center',
paddingRight: spacing.lg,
},
scannerButton: {
marginRight: spacing.md,
padding: spacing.sm,
backgroundColor: colors.card,
borderRadius: borderRadius.md,
width: 44,
height: 44,
borderRadius: 22,
backgroundColor: colors.scanButton,
alignItems: 'center',
justifyContent: 'center',
shadowColor: '#2b5bb5',
shadowOffset: { width: 0, height: 4 },
shadowOpacity: 0.3,
shadowRadius: 12,
elevation: 6,
},
list: {
paddingBottom: spacing.xl,
},
errorContainer: {
padding: spacing.md,
marginHorizontal: spacing.md,
backgroundColor: '#F8D7DA',
borderRadius: 8,
marginHorizontal: spacing.lg,
backgroundColor: colors.dangerContainer,
borderRadius: borderRadius.lg,
},
errorText: {
color: '#721C24',
color: colors.danger,
textAlign: 'center',
fontSize: 14,
},
emptyContainer: {
padding: spacing.xl,