mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-27 12:26:31 +01:00
home page buttons
This commit is contained in:
parent
aec2855db9
commit
0c93fc2662
@ -28,7 +28,7 @@ namespace Bit.App
|
||||
InitializeComponent();
|
||||
SetCulture();
|
||||
ThemeManager.SetTheme("light");
|
||||
MainPage = new TabsPage();
|
||||
MainPage = new HomePage();
|
||||
|
||||
ServiceContainer.Resolve<MobilePlatformUtilsService>("platformUtilsService").Init();
|
||||
_broadcasterService.Subscribe<DialogDetails>("showDialog", async (details) =>
|
||||
|
@ -4,6 +4,8 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="Bit.App.Pages.HomePage"
|
||||
xmlns:pages="clr-namespace:Bit.App.Pages"
|
||||
xmlns:i18n="clr-namespace:Bit.App.Utilities"
|
||||
xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core"
|
||||
x:DataType="pages:HomeViewModel"
|
||||
Title="{Binding PageTitle}">
|
||||
<ContentPage.BindingContext>
|
||||
@ -11,22 +13,19 @@
|
||||
</ContentPage.BindingContext>
|
||||
|
||||
<StackLayout>
|
||||
<!-- Place new controls here -->
|
||||
<Label
|
||||
Text="Home Page!"
|
||||
HorizontalOptions="Center"
|
||||
VerticalOptions="CenterAndExpand" />
|
||||
<Label
|
||||
Text=""
|
||||
HorizontalOptions="Center"
|
||||
VerticalOptions="CenterAndExpand">
|
||||
|
||||
<Label.FontFamily>
|
||||
<OnPlatform x:TypeArguments="x:String"
|
||||
Android="FontAwesome.ttf#FontAwesome"
|
||||
iOS="FontAwesome" />
|
||||
</Label.FontFamily>
|
||||
</Label>
|
||||
<Button Text=""
|
||||
class="fa"
|
||||
HorizontalOptions="Start"></Button>
|
||||
<StackLayout VerticalOptions="CenterAndExpand">
|
||||
<Image Source="logo.png"
|
||||
VerticalOptions="Center" />
|
||||
<Label Text="{i18n:Translate LoginOrCreateNewAccount}"
|
||||
class="text-lg"
|
||||
HorizontalTextAlignment="Center"></Label>
|
||||
<Button Text="{i18n:Translate LogIn}"
|
||||
android:Button.UseDefaultShadow="false"></Button>
|
||||
<Button Text="{i18n:Translate CreateAccount}"></Button>
|
||||
</StackLayout>
|
||||
</StackLayout>
|
||||
|
||||
</ContentPage>
|
||||
|
@ -1,7 +1,7 @@
|
||||
@import "variables.scss";
|
||||
|
||||
__ContentPage {
|
||||
background-color: $white;
|
||||
// background-color: $white;
|
||||
}
|
||||
|
||||
StackLayout.list-cell {
|
||||
|
Loading…
Reference in New Issue
Block a user