Skip to content

Commit

Permalink
imp: Slightly improve login page UI and texts
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Oct 12, 2024
1 parent d9c2543 commit 3afffd3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
31 changes: 17 additions & 14 deletions hoyo_buddy/web_app/pages/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,25 @@ def __init__(
),
title=ft.Text(user_data["username"]),
),
ft.Row(
[
ft.FilledButton(
translator.translate(
LocaleStr(key="continue_button_label"), locale
ft.Container(
ft.Column(
[
ft.FilledButton(
translator.translate(
LocaleStr(key="continue_button_label"), locale
),
on_click=self.on_continue_button_click,
),
on_click=self.on_continue_button_click,
),
ft.FilledTonalButton(
translator.translate(
LocaleStr(key="not_you_label"), locale
ft.TextButton(
translator.translate(
LocaleStr(key="not_you_label"), locale
),
on_click=self.on_login_button_click,
),
on_click=self.on_login_button_click,
icon=ft.icons.DISCORD,
),
]
],
spacing=8,
),
margin=ft.margin.only(top=8),
),
]
)
Expand Down
4 changes: 2 additions & 2 deletions l10n/en_US.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -702,5 +702,5 @@ lb_view_command_description: View leaderboards
leaderboard_not_found: Leaderboard not found
not_supported_by_enka_error_title: Not Supported by Enka Network Yet
not_supported_by_enka_error_message: "{game} is not supported by [Enka Network](https://enka.cc) yet, so you cannot query a player's data with only the UID. Please add a {game} account with </accounts> and try again."
currently_logged_in_as: "You are currently signed in as:"
not_you_label: Not you? Sign in with a different account
currently_logged_in_as: "You are currently logged in as:"
not_you_label: Not you? Click to login with a different account

0 comments on commit 3afffd3

Please sign in to comment.