Skip to content

Commit a289a16

Browse files
committed
change homepage
1 parent 6d9dad1 commit a289a16

File tree

4 files changed

+21
-12
lines changed

4 files changed

+21
-12
lines changed

models/homepage.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ func (m *Homepage) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
4949
}
5050

5151
func (m *Homepage) View() string {
52-
view := styles.DefaultText("Hi 👋🏻 Weave is a CLI for managing Initia deployments.\n\n") + styles.RenderPrompt("What would you like to do today?", []string{}, styles.Question) + m.Selector.View()
52+
view := styles.FadeText("Welcome to Weave! 🪢 CLI for managing Initia deployments.\n\n")
53+
view += styles.RenderPrompt("What would you like to do today?", []string{}, styles.Question) + m.Selector.View()
5354
return view
5455
}

models/initialize.go

+10-2
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,19 @@ func (m *ExistingAppChecker) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
3333
}
3434

3535
func (m *ExistingAppChecker) View() string {
36-
view := styles.DefaultText("Hi 👋🏻 Weave is a CLI for managing Initia deployments.\n\n")
36+
view := styles.FadeText("Welcome to Weave! 🪢\n\n")
37+
38+
view += styles.RenderPrompt("As this is your first time using Weave, we ask that you set up your Gas Station account,\nwhich will hold the necessary funds for the OPinit-bots or relayer to send transactions.\n\n", []string{"Gas Station account"}, styles.Empty)
39+
40+
view += styles.BoldText("Please note that Weave will not send any transactions without your confirmation.\n", styles.Yellow)
41+
42+
view += styles.Text("While you can complete this setup later, we recommend doing it now to ensure a smoother experience.\n\n", styles.Gray)
43+
44+
// TODO add new step to ask if user want to set up gas station account or not, if not we will skip to the next step
3745

3846
view += styles.RenderPrompt("Please set up a Gas Station account", []string{"Gas Station account"}, styles.Question) +
3947
" " + styles.Text("(The account that will hold the funds required by the OPinit-bots or relayer to send transactions)", styles.Gray)
40-
view += "\n" + m.TextInput.View()
48+
view += m.TextInput.View()
4149

4250
return view
4351
}

styles/color.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const (
66
White HexColor = "#FFFFFF"
77
Ivory HexColor = "#EEEEEE"
88
Cyan HexColor = "#27D8FF"
9-
DarkCyan HexColor = "#008B8B"
9+
DarkCyan HexColor = "#178299"
1010
Green HexColor = "#B0EE5F"
1111
Gray HexColor = "#808080"
1212
Red HexColor = "#FF5656"

styles/text.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ func Cursor(cursorChar string) string {
6060

6161
func FadeText(text string) string {
6262
fadedColors := []HexColor{
63-
"#00FFFF", // Cyan
64-
"#00EEEE", // Intermediate color 1
65-
"#00DDDD", // Intermediate color 2
66-
"#00CCCC", // Intermediate color 3
67-
"#00BBBB", // Intermediate color 4
68-
"#00AAAA", // Intermediate color 5
69-
"#009999", // Intermediate color 6
70-
"#008B8B", // DarkCyan
63+
"#27D8FF", // Cyan
64+
"#25ccf0", // Intermediate color 1
65+
"#22bfe2", // Intermediate color 2
66+
"#20b3d3", // Intermediate color 3
67+
"#1ea7c5", // Intermediate color 4
68+
"#1c9bb6", // Intermediate color 5
69+
"#198ea8", // Intermediate color 6
70+
"#178299", // DarkCyan
7171
}
7272

7373
result := ""

0 commit comments

Comments
 (0)