ios ui refactor

This commit is contained in:
Trey t
2025-11-05 17:15:17 -06:00
parent 1d48a9bff1
commit 86c89121e1
24 changed files with 1086 additions and 634 deletions

View File

@@ -18,23 +18,7 @@ struct RegisterView: View {
ScrollView {
VStack(spacing: 24) {
// Icon and Title
VStack(spacing: 12) {
Image(systemName: "person.badge.plus")
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: 64, height: 64)
.foregroundColor(.blue)
Text("Join MyCrib")
.font(.largeTitle)
.fontWeight(.bold)
Text("Start managing your properties today")
.font(.subheadline)
.foregroundColor(.secondary)
}
.padding(.top, 40)
.padding(.bottom, 20)
RegisterHeader()
// Registration Form
VStack(spacing: 16) {
@@ -105,24 +89,7 @@ struct RegisterView: View {
// Error Message
if let errorMessage = viewModel.errorMessage {
HStack {
Image(systemName: "exclamationmark.triangle.fill")
.foregroundColor(.red)
Text(errorMessage)
.font(.caption)
.foregroundColor(.red)
Spacer()
Button(action: viewModel.clearError) {
Image(systemName: "xmark.circle.fill")
.foregroundColor(.red)
}
}
.padding()
.background(Color.red.opacity(0.1))
.cornerRadius(8)
ErrorMessageView(message: errorMessage, onDismiss: viewModel.clearError)
}
// Register Button