systems onboarding is done for now
This commit is contained in:
@@ -25,7 +25,7 @@ struct SystemsOnboardingView: View {
|
||||
Spacer(minLength: 32)
|
||||
|
||||
SystemsOnboardingCarousel(images: loopingImages, step: carouselStep)
|
||||
.frame(height: 120)
|
||||
.frame(minHeight: 80, maxHeight: 240)
|
||||
.padding(.horizontal, 0)
|
||||
|
||||
VStack(spacing: 12) {
|
||||
@@ -43,11 +43,30 @@ struct SystemsOnboardingView: View {
|
||||
.padding(.horizontal, 24)
|
||||
Spacer()
|
||||
VStack(spacing: 16) {
|
||||
TextField("System Name", text: $systemName)
|
||||
.textFieldStyle(.roundedBorder)
|
||||
.focused($isFieldFocused)
|
||||
.submitLabel(.done)
|
||||
.onSubmit(createSystem)
|
||||
HStack(spacing: 12) {
|
||||
Image(systemName: "sparkles")
|
||||
.font(.system(size: 18, weight: .semibold))
|
||||
.foregroundStyle(isFieldFocused ? Color.accentColor : Color.accentColor.opacity(0.6))
|
||||
|
||||
TextField("System Name", text: $systemName)
|
||||
.textInputAutocapitalization(.words)
|
||||
.disableAutocorrection(true)
|
||||
.focused($isFieldFocused)
|
||||
.submitLabel(.done)
|
||||
.onSubmit(createSystem)
|
||||
}
|
||||
.padding(.horizontal, 16)
|
||||
.padding(.vertical, 14)
|
||||
.background(
|
||||
RoundedRectangle(cornerRadius: 18, style: .continuous)
|
||||
.fill(Color(.secondarySystemBackground))
|
||||
)
|
||||
.overlay(
|
||||
RoundedRectangle(cornerRadius: 18, style: .continuous)
|
||||
.stroke(isFieldFocused ? Color.accentColor : Color.clear, lineWidth: 1)
|
||||
)
|
||||
.shadow(color: Color.black.opacity(0.08), radius: 12, x: 0, y: 6)
|
||||
.animation(.easeInOut(duration: 0.2), value: isFieldFocused)
|
||||
|
||||
Button(action: createSystem) {
|
||||
HStack(spacing:8) {
|
||||
|
||||
Reference in New Issue
Block a user