setupview: ui: remove old title, buttons, carousel and use new welcome, views, and lets get started button

This commit is contained in:
ericholguin
2023-05-26 15:28:10 -06:00
committed by William Casarin
parent e99142a5b8
commit c238b6e28f

View File

@@ -27,26 +27,47 @@ struct SetupView: View {
EmptyView() EmptyView()
} }
Spacer()
Image("logo-nobg") Image("logo-nobg")
.resizable() .resizable()
.frame(width: 128.0, height: 128.0, alignment: .center) .shadow(color: DamusColors.purple, radius: 2)
.padding([.top], 20.0) .frame(width: 56, height: 56, alignment: .center)
Text("Damus", comment: "Name of the app, shown on the first screen when user is not logged in.") .padding(.top, 20.0)
.font(Font.custom("Nunito", size: 50.0))
.kerning(-2)
.foregroundColor(.white)
CarouselView() HStack {
Text("Welcome to", comment: "Welcome text shown on the first screen when user is not logged in.")
DamusWhiteButton(NSLocalizedString("Create Account", comment: "Button to create an account.")) { .font(.title)
self.state = .create_account .fontWeight(.heavy)
Text("Damus")
.font(.title)
.fontWeight(.heavy)
.foregroundStyle(DamusLogoGradient.gradient)
} }
Button(NSLocalizedString("Login", comment: "Button to log into an account.")) { Text("The go-to iOS nostr client", comment: "Quick description of what Damus is")
self.state = .login .foregroundColor(DamusColors.mediumGrey)
.padding(.top, 10)
WhatIsNostr()
.padding()
WhyWeNeedNostr()
.padding()
Spacer()
Button(action: {
eula.toggle()
}) {
HStack {
Text("Let's get started!", comment: "Button to continue to login page.")
.fontWeight(.semibold)
}
.frame(minWidth: 300, maxWidth: .infinity, maxHeight: 12, alignment: .center)
} }
.padding([.top, .bottom], 20) .buttonStyle(GradientButtonStyle())
.foregroundColor(.white) .padding()
} }
} }
.background( .background(