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.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. <span class="text-left" style="max-width: 500px;display:inline-block;font-size:smaller">
  18. <pre style="white-space:pre-line;font-family:'Ubuntu';margin-bottom:0">@I18n["App.Info"]</pre>
  19. <p><a href="https://www.kulturlegi.ch" target="_blank">https://www.kulturlegi.ch</a></p>
  20. </span>
  21. </td>
  22. </tr>
  23. <tr>
  24. <td class="text-center">
  25. <MatButton Raised="true" Class="w-100" @onclick="@ShowCaritasWebpage" style="max-width:500px">@I18n["Learnmore"]</MatButton>
  26. </td>
  27. </tr>
  28. <tr>
  29. <td class="text-center">
  30. <MatCaption Style="font-family:Ubuntu">@I18n["App.version", @version]</MatCaption>
  31. </td>
  32. </tr>
  33. </table>
  34. </div>
  35. <div class="row no-gutters align-items-end w-100">
  36. <table class="w-100">
  37. <tr>
  38. <td class="text-right">
  39. <MatCaption Style="font-family:Ubuntu">@I18n["DevelopedBy"]</MatCaption>
  40. </td>
  41. </tr>
  42. <tr>
  43. <td class="text-right">
  44. <img src="./images/integrate_logo.png" style="max-width:200px" alt="" />
  45. </td>
  46. </tr>
  47. <tr>
  48. <td class="text-right">
  49. <MatCaption Style="font-family:Ubuntu">Platz 10, Business Village Luzern</MatCaption>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td class="text-right">
  54. <MatCaption Style="font-family:Ubuntu">CH-6039 Root D4</MatCaption>
  55. </td>
  56. </tr>
  57. </table>
  58. </div>
  59. </div>
  60. @code {
  61. private string version;
  62. protected override void OnInitialized() {
  63. base.OnInitialized();
  64. version = Assembly.GetExecutingAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
  65. }
  66. private async void ShowCaritasWebpage() {
  67. await JSRuntime.InvokeAsync<string>("open", $"https://www.caritas.ch", "_blank", "noopener");
  68. }
  69. }