1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-23 11:43:49 +00:00

Added register page and accounts repo. Switch to color instead of bg image.

This commit is contained in:
Kyle Spearrin
2016-06-25 20:54:17 -04:00
parent e7fef012b8
commit e38dbff152
14 changed files with 290 additions and 35 deletions

View File

@@ -25,7 +25,6 @@ namespace Bit.App.Pages
Init();
}
public void Init()
{
var logo = new Image
@@ -48,7 +47,7 @@ namespace Bit.App.Pages
var createAccountButton = new Button
{
Text = "Create Account",
//Command = new Command(async () => await RegisterAsync()),
Command = new Command(async () => await RegisterAsync()),
VerticalOptions = LayoutOptions.End,
HorizontalOptions = LayoutOptions.Fill,
Style = (Style)Application.Current.Resources["btn-primary"],
@@ -74,12 +73,17 @@ namespace Bit.App.Pages
Title = "bitwarden";
Content = buttonStackLayout;
BackgroundImage = "bg.png";
BackgroundColor = Color.FromHex("ecf0f5");
}
public async Task LoginAsync()
{
await Navigation.PushModalAsync(new ExtendedNavigationPage(new LoginPage()));
}
public async Task RegisterAsync()
{
await Navigation.PushModalAsync(new ExtendedNavigationPage(new RegisterPage()));
}
}
}