feat: home screen + iOS pairing views

This commit is contained in:
null 2026-06-22 12:52:33 -05:00
parent 60ca0b3582
commit 39617053fd
2 changed files with 14 additions and 2 deletions

View File

@ -62,6 +62,7 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.layout.ContentScale import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.painterResource
import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.dp
@ -519,7 +520,10 @@ private fun PartnerActivationCard(
text = "Private invite", text = "Private invite",
style = MaterialTheme.typography.labelSmall, style = MaterialTheme.typography.labelSmall,
color = CloserPalette.PurpleDeep, color = CloserPalette.PurpleDeep,
fontWeight = FontWeight.SemiBold fontWeight = FontWeight.SemiBold,
textAlign = TextAlign.Center,
maxLines = 1,
overflow = TextOverflow.Ellipsis
) )
} }
} }
@ -594,10 +598,13 @@ private fun ActivationBenefitPill(
) { ) {
Text( Text(
text = label, text = label,
modifier = Modifier.padding(horizontal = 9.dp, vertical = 7.dp), modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 9.dp, vertical = 7.dp),
style = MaterialTheme.typography.labelSmall, style = MaterialTheme.typography.labelSmall,
color = CloserPalette.PurpleDeep, color = CloserPalette.PurpleDeep,
fontWeight = FontWeight.SemiBold, fontWeight = FontWeight.SemiBold,
textAlign = TextAlign.Center,
maxLines = 1, maxLines = 1,
overflow = TextOverflow.Ellipsis overflow = TextOverflow.Ellipsis
) )

View File

@ -62,6 +62,8 @@ struct PartnerActivationCard: View {
.font(CloserFont.caption) .font(CloserFont.caption)
.fontWeight(.semibold) .fontWeight(.semibold)
.foregroundColor(.closerPrimary) .foregroundColor(.closerPrimary)
.multilineTextAlignment(.center)
.lineLimit(1)
.padding(.horizontal, 12) .padding(.horizontal, 12)
.padding(.vertical, 7) .padding(.vertical, 7)
.background(Color.closerBackground.opacity(0.75)) .background(Color.closerBackground.opacity(0.75))
@ -73,6 +75,8 @@ struct PartnerActivationCard: View {
.font(CloserFont.caption) .font(CloserFont.caption)
.fontWeight(.semibold) .fontWeight(.semibold)
.foregroundColor(.closerPrimary) .foregroundColor(.closerPrimary)
.multilineTextAlignment(.center)
.lineLimit(1)
.padding(.horizontal, 12) .padding(.horizontal, 12)
.padding(.vertical, 7) .padding(.vertical, 7)
.background(Color.closerBackground.opacity(0.75)) .background(Color.closerBackground.opacity(0.75))
@ -145,6 +149,7 @@ private struct ActivationBenefitChip: View {
.font(CloserFont.caption2) .font(CloserFont.caption2)
.fontWeight(.semibold) .fontWeight(.semibold)
.foregroundColor(.closerPrimary) .foregroundColor(.closerPrimary)
.multilineTextAlignment(.center)
.lineLimit(1) .lineLimit(1)
.minimumScaleFactor(0.78) .minimumScaleFactor(0.78)
.frame(maxWidth: .infinity) .frame(maxWidth: .infinity)