Skip to content

Commit fb4b1a7

Browse files
committed
chore: improve the wording in logging page
1 parent 6bca761 commit fb4b1a7

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

crates/rostra-web-ui/assets/style.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,7 @@ emoji-picker {
11261126
padding: clamp(1rem, 2.5vw, 2rem) clamp(1rem, 5vw, 4rem);
11271127
border: solid 1px var(--color-timeline-item-border);
11281128
border-radius: 6px;
1129+
max-width: 700px;
11291130

11301131
display: flex;
11311132
flex-direction: column;
@@ -1186,6 +1187,15 @@ emoji-picker {
11861187
gap: 5pt;
11871188
}
11881189

1190+
.o-unlockScreen__generateButton {
1191+
white-space: nowrap;
1192+
max-width: unset;
1193+
}
1194+
1195+
.o-unlockScreen__generateButton .u-buttonIcon {
1196+
flex-shrink: 0;
1197+
}
1198+
11891199
.o-unlockScreen__unlockButtonIcon {
11901200
background: url('/assets/icons/right-to-bracket.svg') center/contain no-repeat;
11911201
}

crates/rostra-web-ui/src/routes/unlock.rs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,12 @@ impl UiState {
174174
(n)
175175
}
176176
div ."o-unlockScreen__header" {
177-
h4 { "Unlock Rostra account" }
178-
p { "Provide existing RostraId, secret passphrase or both to unlock your identity."}
179-
p { "Use Random button to generate new identity."}
180-
p { "Make sure to save your identity information."}
177+
h4 { "Login to Rostra" }
178+
p { "Provide existing RostraID (public key) only to log in in read-only mode," }
179+
p { "or Rostra secret passphrase to log in normally." }
180+
p {
181+
"Create Account to generate new RostraId/account. Saved it in the password manager."
182+
}
181183
}
182184
div."o-unlockScreen__idLine" {
183185
input ."o-unlockScreen__id"
@@ -192,7 +194,7 @@ impl UiState {
192194
type="submit"
193195
{
194196
span ."o-unlockScreen__unlockButtonIcon u-buttonIcon" width="1rem" height="1rem" {}
195-
"Unlock"
197+
"Login"
196198
}
197199
}
198200
div."o-unlockScreen__mnemonicLine" {
@@ -212,10 +214,10 @@ impl UiState {
212214
document.querySelector('.o-unlockScreen__mnemonic').value = '';
213215
"#
214216
)
215-
title="Clear the mnemonic to unlock in a read-only mode"
217+
title="Clear the mnemonic to login in read-only mode"
216218
{
217219
span ."o-unlockScreen__roButtonIcon u-buttonIcon" width="1rem" height="1rem" {}
218-
"Read-only"
220+
"Clear secret"
219221
}
220222
}
221223
div."o-unlockScreen__unlockLine" {
@@ -228,10 +230,10 @@ impl UiState {
228230
document.querySelector('.o-unlockScreen__mnemonic').value = '{}';
229231
"#, random_rostra_id, random_mnemonic)
230232
)
231-
title="Generate a random account."
233+
title="Create a new Rostra account. Make sure to save the generated secret passphrase."
232234
{
233235
span ."o-unlockScreen__generateButtonIcon u-buttonIcon" width="1rem" height="1rem" {}
234-
"Random"
236+
"Create Account"
235237
}
236238
}
237239
}

0 commit comments

Comments
 (0)