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.

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