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.

InfoPage.razor 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. @page "/info"
  2. @using cwebplusApp.Shared.Services;
  3. @inject NavigationManager NavigationManager;
  4. @inject IStringLocalizer<Resources> i18n
  5. @inject PageHistoryManager PageHistoryManager
  6. @inject IJSRuntime JSRuntime;
  7. <div class="row px-3 h-100">
  8. <div class="text-center w-100">
  9. <img class="w-100" src="./images/caritas_logo.png" style="padding:1em;max-width:320px" />
  10. </div>
  11. <div class="row no-gutters align-items-center w-100">
  12. <table class="w-100">
  13. <tr>
  14. <td class="text-center">
  15. <p class="text-left" style="max-width: 500px;display:inline-block">@i18n["Abouttext"]</p>
  16. </td>
  17. </tr>
  18. <tr>
  19. <td class="text-center">
  20. <MatButton Raised="true" Class="w-100" @onclick="@ShowCaritasWebpage" style="max-width:500px">@i18n["Learnmore"]</MatButton>
  21. </td>
  22. </tr>
  23. <tr>
  24. <td class="text-center">
  25. <MatCaption Style="font-family:Ubuntu">Version: 0.0.1</MatCaption>
  26. </td>
  27. </tr>
  28. </table>
  29. </div>
  30. <div class="row no-gutters align-items-end w-100">
  31. <table class="w-100">
  32. <tr>
  33. <td class="text-right">
  34. <MatCaption Style="font-family:Ubuntu">@i18n["DevelopedBy"]</MatCaption>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td class="text-right">
  39. <img src="./images/integrate_logo.png" style="max-width:200px" alt="" />
  40. </td>
  41. </tr>
  42. <tr>
  43. <td class="text-right">
  44. <MatCaption Style="font-family:Ubuntu">Platz 10, Business Village Luzern</MatCaption>
  45. </td>
  46. </tr>
  47. <tr>
  48. <td class="text-right">
  49. <MatCaption Style="font-family:Ubuntu">CH-6039 Root D4</MatCaption>
  50. </td>
  51. </tr>
  52. </table>
  53. </div>
  54. </div>
  55. @code {
  56. protected override void OnInitialized() {
  57. PageHistoryManager.AddPageToHistory(NavigationManager.Uri);
  58. base.OnInitialized();
  59. }
  60. private async void ShowCaritasWebpage() {
  61. await JSRuntime.InvokeAsync<string>("open", $"https://www.caritas.ch", "_blank", "noopener");
  62. }
  63. }