-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
28c46f7
commit b4e4a3b
Showing
21 changed files
with
521 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...llet/Assets.xcassets/colors/App Interactive Tent Secondary Default.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "1.000", | ||
"blue" : "0.280", | ||
"green" : "0.100", | ||
"red" : "0.000" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
MinWallet/Assets.xcassets/colors/App Surface Primary Disabled.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "0.080", | ||
"blue" : "0.280", | ||
"green" : "0.100", | ||
"red" : "0.000" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
MinWallet/Assets.xcassets/icons/arrow-left.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "arrow-left.pdf", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
MinWallet/Assets.xcassets/icons/check.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "check.pdf", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
MinWallet/Assets.xcassets/icons/eye.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "eye.pdf", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file not shown.
51 changes: 51 additions & 0 deletions
51
MinWallet/Features/Create Wallet/Components/BeforeYouStart.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import SwiftUI | ||
|
||
struct BeforeYouStart: View { | ||
private let tips = [ | ||
"If I lose my seed phrase, my assets will be lost forever.", | ||
"If I share my seed phrase with others, my assets will be stolen.", | ||
"The seed phrase is only stored on my computer, and Minswap has no access to it.", | ||
"If I clear my local storage without backing up the seed phrase, Minswap cannot retrieve it for me.", | ||
] | ||
|
||
var onNext: () -> Void | ||
|
||
var body: some View { | ||
VStack { | ||
VStack(alignment: .leading, spacing: Spacing.lg) { | ||
Text("Before you start, please read and keep the following security tips in mind.").font( | ||
.paragraphSmall | ||
).foregroundColor(.appTentPrimary).frame(maxWidth: .infinity, alignment: .leading) | ||
|
||
ForEach(tips, id: \.self) { tip in | ||
HStack(alignment: .top) { | ||
HStack { | ||
AppIcon(name: .check, size: 20, color: .white) | ||
}.padding(Spacing.xxs).background(.appToneHighlight).cornerRadius(BorderRadius.full) | ||
|
||
Text(tip).font(.paragraphSmall).foregroundColor(.appTentPrimarySub) | ||
} | ||
.frame(maxWidth: .infinity, alignment: .leading) | ||
.padding(Spacing.xl) | ||
.cornerRadius(BorderRadius._3xl) | ||
.overlay( | ||
RoundedRectangle(cornerRadius: BorderRadius._3xl) | ||
.stroke( | ||
Color.appBorderPrimarySub, | ||
lineWidth: 1) | ||
) | ||
} | ||
}.padding(.horizontal, Spacing.xl).padding(.vertical, Spacing.lg) | ||
|
||
Spacer() | ||
|
||
Group { | ||
AppButton(title: "Next", variant: .primary, fullWidth: true, size: .lg, action: onNext) | ||
}.padding(.horizontal, Spacing.xl).padding(.top, Spacing._3xl) | ||
} | ||
} | ||
} | ||
|
||
#Preview { | ||
BeforeYouStart(onNext: {}) | ||
} |
48 changes: 48 additions & 0 deletions
48
MinWallet/Features/Create Wallet/Components/ReInputSeedPhrase.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import SwiftUI | ||
import UniformTypeIdentifiers | ||
|
||
struct ReInputSeedPhrase: View { | ||
var onBack: () -> Void | ||
var onNext: () -> Void | ||
|
||
@State private var text: String = "" | ||
|
||
var body: some View { | ||
|
||
VStack { | ||
VStack(alignment: .leading, spacing: Spacing.lg) { | ||
Text("Please write down your 24 words seed phrase and store it in a secured place.") | ||
.font( | ||
.paragraphSmall | ||
).foregroundColor(.appTentPrimary).frame(maxWidth: .infinity, alignment: .leading) | ||
|
||
LazyVGrid(columns: columns, spacing: Spacing.lg) { | ||
ForEach(0..<24, id: \.self) { index in | ||
AppTextField( | ||
text: .constant(""), | ||
prefix: String(index + 1) | ||
) | ||
} | ||
} | ||
}.padding(.horizontal, Spacing.xl).padding(.vertical, Spacing.lg) | ||
|
||
Spacer() | ||
|
||
Group { | ||
AppButton( | ||
title: "Next", variant: .primary, fullWidth: true, size: .lg, | ||
action: onNext) | ||
}.padding(.horizontal, Spacing.xl).padding(.top, Spacing._3xl) | ||
} | ||
|
||
} | ||
} | ||
|
||
private let columns = [ | ||
GridItem(.flexible()), | ||
GridItem(.flexible()), | ||
] | ||
|
||
#Preview { | ||
ReInputSeedPhrase(onBack: {}, onNext: {}) | ||
} |
Oops, something went wrong.