ios ui refactor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user