Skip to content

Commit

Permalink
Merge pull request #140 from bitcoinppl/133-redesign-add-new-wallet-s…
Browse files Browse the repository at this point in the history
…creens

Redesign add new wallet screens
  • Loading branch information
praveenperera authored Dec 2, 2024
2 parents af30927 + 91cc88b commit f633990
Show file tree
Hide file tree
Showing 8 changed files with 279 additions and 134 deletions.
21 changes: 21 additions & 0 deletions ios/Cove/Assets.xcassets/newWalletPattern.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "new_wallet_flow_pattern.svg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions ios/Cove/CoveApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ struct CoveApp: App {
.white
case .selectedWallet:
.white
case .newWallet:
.white
default:
.blue
}
Expand Down
86 changes: 57 additions & 29 deletions ios/Cove/Flows/NewWalletFlow/HotWallet/HotWalletSelectScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,39 +26,69 @@ struct HotWalletSelectScreen: View {
}

var body: some View {
VStack(spacing: 20) {
Text("Select Wallet Option")
.font(.largeTitle)
.fontWeight(.bold)
.padding(.top)

VStack(spacing: 28) {
Spacer()

Button(action: { isSheetShown = true; nextScreen = .create }) {
HStack {
Image(systemName: "plus.circle.fill")
Text("Create Wallet")
}
.frame(maxWidth: .infinity)
.padding(.vertical, 25)
.background(Color.blue)
.foregroundColor(.white)
.cornerRadius(10)
HStack {
DotMenuView(selected: 1, size: 5)
Spacer()
}

HStack {
Text("Do you already have a wallet?")
.font(.system(size: 38, weight: .semibold))
.lineSpacing(1.2)
.foregroundColor(.white)

Spacer()
}
Button(action: { isSheetShown = true; nextScreen = .import_ }) {
HStack {
Image(systemName: "arrow.down.circle.fill")
Text("Import Wallet")

Divider()
.overlay(.lightGray.opacity(0.50))

VStack(spacing: 14) {
Button(action: { isSheetShown = true; nextScreen = .create }) {
Text("Create new wallet")
.font(.subheadline)
.fontWeight(.medium)
.frame(maxWidth: .infinity)
.padding(.vertical, 20)
.padding(.horizontal, 10)
.background(Color.btnPrimary)
.foregroundColor(.midnightBlue)
.cornerRadius(10)
}

Button(action: { isSheetShown = true; nextScreen = .import_ }) {
Text("Import existing wallet")
.font(.subheadline)
.fontWeight(.medium)
.frame(maxWidth: .infinity)
.padding(.vertical, 20)
.padding(.horizontal, 10)
.foregroundColor(.white)
}
.buttonStyle(PlainButtonStyle())
}
}
.padding()
.navigationBarTitleDisplayMode(.inline)
.frame(maxHeight: .infinity)
.background(
Image(.newWalletPattern)
.resizable()
.aspectRatio(contentMode: .fill)
.frame(height: screenHeight * 0.75, alignment: .topTrailing)
.frame(maxWidth: .infinity)
.padding(.vertical, 25)
.background(Color.secondary.opacity(0.1))
.foregroundColor(.primary)
.cornerRadius(10)
.brightness(0.05)
)
.background(Color.midnightBlue)
.toolbar {
ToolbarItem(placement: .principal) {
Text("Add New Wallet")
.fontWeight(.semibold)
.foregroundStyle(.white)
}

Spacer()
Spacer()
}
.confirmationDialog("Select Number of Words", isPresented: $isSheetShown) {
if nextScreen == .import_ {
Expand All @@ -77,8 +107,6 @@ struct HotWalletSelectScreen: View {
Text("24 Words")
}
}
.padding()
.navigationBarTitleDisplayMode(.inline)
}
}

Expand Down
Loading

0 comments on commit f633990

Please sign in to comment.