Skip to content

Commit cad0e9b

Browse files
committed
slight change to font
1 parent a82cd25 commit cad0e9b

1 file changed

Lines changed: 28 additions & 3 deletions

File tree

components/teamInfo/eventCard.tsx

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@ export default function EventCard({ eventData, teamNumber }: UserGraphSectionPro
106106
<View style={[styles.mobileAllianceCell, styles.redAlliance, { backgroundColor: isDarkMode ? '#3B1F1F' : '#FEF2F2' }]}>
107107
{[teamRed.team_1, teamRed.team_2].filter(Boolean).map((t, idx) => (
108108
<Text key={idx} style={[styles.mobileTeamText, { color: isDarkMode ? '#FCA5A5' : '#DC2626' }]} numberOfLines={1}>
109-
{t?.teamNumber}{t?.teamName}
109+
<Text style={{ fontWeight: '700' }}>{t?.teamNumber}</Text>{t?.teamName}
110110
</Text>
111111
))}
112112
</View>
113113
<View style={[styles.mobileAllianceCell, styles.blueAlliance, { backgroundColor: isDarkMode ? '#1F2F3F' : '#EFF6FF' }]}>
114114
{[teamBlue.team_1, teamBlue.team_2].filter(Boolean).map((t, idx) => (
115115
<Text key={idx} style={[styles.mobileTeamText, { color: isDarkMode ? '#93C5FD' : '#2563EB' }]} numberOfLines={1}>
116-
{t?.teamNumber}{t?.teamName}
116+
<Text style={{ fontWeight: '800' }}>{t?.teamNumber}</Text>{t?.teamName}
117117
</Text>
118118
))}
119119
</View>
@@ -403,6 +403,18 @@ export default function EventCard({ eventData, teamNumber }: UserGraphSectionPro
403403
</View>
404404
</View>
405405
)}
406+
{isSmallDevice && (
407+
<View style={[
408+
styles.mobileTableHeader,
409+
{
410+
backgroundColor: isDarkMode ? 'rgba(255, 255, 255, 0.04)' : '#F9FAFB',
411+
borderBottomColor: isDarkMode ? '#374151' : '#E5E7EB',
412+
}
413+
]}>
414+
<Text style={[styles.mobileHeaderText, { color: isDarkMode ? '#9CA3AF' : '#6B7280' }]}>Match</Text>
415+
<Text style={[styles.mobileHeaderText, { color: isDarkMode ? '#9CA3AF' : '#6B7280' }]}>Score</Text>
416+
</View>
417+
)}
406418
{matches.map(renderMatchRow)}
407419
</View>
408420
</View>
@@ -599,7 +611,6 @@ const styles = StyleSheet.create({
599611
flexDirection: 'row',
600612
borderBottomWidth: 1,
601613
minHeight: 50,
602-
transition: 'background-color 0.2s ease',
603614
},
604615
tableRowSmall: {
605616
minHeight: 50,
@@ -610,6 +621,20 @@ const styles = StyleSheet.create({
610621
paddingVertical: 12,
611622
paddingHorizontal: 8,
612623
},
624+
mobileTableHeader: {
625+
flexDirection: 'row',
626+
alignItems: 'center',
627+
justifyContent: 'space-between',
628+
paddingVertical: 10,
629+
paddingHorizontal: 16,
630+
borderBottomWidth: 1,
631+
},
632+
mobileHeaderText: {
633+
fontSize: 11,
634+
fontWeight: '600',
635+
textTransform: 'uppercase',
636+
letterSpacing: 0.5,
637+
},
613638
mobileMatchInfo: {
614639
flexDirection: 'row',
615640
alignItems: 'center',

0 commit comments

Comments
 (0)