systems onboarding is done for now
This commit is contained in:
@@ -25,7 +25,7 @@ struct SystemsOnboardingView: View {
|
|||||||
Spacer(minLength: 32)
|
Spacer(minLength: 32)
|
||||||
|
|
||||||
SystemsOnboardingCarousel(images: loopingImages, step: carouselStep)
|
SystemsOnboardingCarousel(images: loopingImages, step: carouselStep)
|
||||||
.frame(height: 120)
|
.frame(minHeight: 80, maxHeight: 240)
|
||||||
.padding(.horizontal, 0)
|
.padding(.horizontal, 0)
|
||||||
|
|
||||||
VStack(spacing: 12) {
|
VStack(spacing: 12) {
|
||||||
@@ -43,11 +43,30 @@ struct SystemsOnboardingView: View {
|
|||||||
.padding(.horizontal, 24)
|
.padding(.horizontal, 24)
|
||||||
Spacer()
|
Spacer()
|
||||||
VStack(spacing: 16) {
|
VStack(spacing: 16) {
|
||||||
TextField("System Name", text: $systemName)
|
HStack(spacing: 12) {
|
||||||
.textFieldStyle(.roundedBorder)
|
Image(systemName: "sparkles")
|
||||||
.focused($isFieldFocused)
|
.font(.system(size: 18, weight: .semibold))
|
||||||
.submitLabel(.done)
|
.foregroundStyle(isFieldFocused ? Color.accentColor : Color.accentColor.opacity(0.6))
|
||||||
.onSubmit(createSystem)
|
|
||||||
|
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) {
|
Button(action: createSystem) {
|
||||||
HStack(spacing:8) {
|
HStack(spacing:8) {
|
||||||
|
|||||||
Reference in New Issue
Block a user