Files
MatchLiveTv/native/ios/MatchLiveTv/UI/Components/MatchLiveWordmark.swift
Emiliano Frascaro 585332e32e Aggiunge app iOS nativa con parità multi-sport e test unitari.
Porting SwiftUI da Android (auth, hub, wizard, broadcast RTMP, overlay, scoring board-aware), reload hub al ritorno da diretta, decodifica score tollerante e documentazione allineata.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-14 21:37:32 +02:00

41 lines
1.5 KiB
Swift

import SwiftUI
struct MatchLiveWordmark: View {
var compact: Bool = false
var showSlogan: Bool = false
var showLogo: Bool { !compact }
var body: some View {
VStack(spacing: 0) {
if showLogo {
Image("logo-white-m")
.resizable()
.scaledToFit()
.frame(width: compact ? 40 : 80, height: compact ? 40 : 80)
.padding(.bottom, 16)
}
HStack(spacing: 8) {
Text("MATCH")
.font(MatchTypography.displaySmall)
.foregroundStyle(.white)
Text("LIVE")
.font(MatchTypography.labelLarge)
.foregroundStyle(.white)
.padding(.horizontal, compact ? 8 : 12)
.padding(.vertical, compact ? 2 : 4)
.background(MatchColors.primaryRed, in: RoundedRectangle(cornerRadius: 6))
Text("TV")
.font(MatchTypography.displaySmall)
.foregroundStyle(MatchColors.textSecondary)
}
if showSlogan {
Text("OGNI PARTITA, OGNI EVENTO, PER I TUOI TIFOSI.")
.font(.system(size: 12, weight: .medium))
.foregroundStyle(MatchColors.textSecondary)
.multilineTextAlignment(.center)
.padding(.top, 12)
}
}
}
}