PWA Fundvelo der Caritas.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IndexPage.razor 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. @page "/"
  2. @using CaritasPWA.Shared.Services;
  3. @inject NavigationManager NavigationManager;
  4. @inject AppState AppState;
  5. @inject IStringLocalizer<Resources> i18n
  6. @inject PageHistoryManager PageHistoryManager
  7. @inject MasterDataService MasterDataService;
  8. <div class="row h-100 justify-content-center">
  9. <div class="row d-flex align-items-center justify-content-center px-4 w-100">
  10. <img src="./images/caritas_logo.png" style="padding:1em;max-width:320px" class="w-100" alt="">
  11. </div>
  12. <div class="row align-items-center vw-100 h-75">
  13. <div class="col text-center">
  14. <h3 style="font-style:italic;padding-bottom:1em">@i18n["Welcome"]</h3>
  15. <div>
  16. <MatButton Raised="true" Style="width:50%" @onclick="@((e) => ButtonClicked())">@i18n["Login"]</MatButton>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. @code {
  22. protected async override void OnInitialized() {
  23. await MasterDataService.SynchronizeMasterdata();
  24. PageHistoryManager.Reset();
  25. base.OnInitialized();
  26. }
  27. private void ButtonClicked() {
  28. NavigationManager.NavigateTo("./caritas_services");
  29. AppState.LoggedIn = true;
  30. }
  31. }