| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- @page "/info"
-
- @using cwebplusApp.Shared.Services;
- @using System;
- @using System.Reflection;
-
- @inject NavigationManager NavigationManager;
- @inject IStringLocalizer<Resources> i18n
- @inject PageHistoryManager PageHistoryManager
- @inject IJSRuntime JSRuntime;
-
- <div class="row px-3 h-100">
- <div class="text-center w-100">
- <img class="w-100" src="./images/caritas_logo.png" style="padding:1em;max-width:320px" />
- </div>
- <div class="row no-gutters align-items-center w-100">
- <table class="w-100">
- <tr>
- <td class="text-center">
- <p class="text-left" style="max-width: 500px;display:inline-block">@i18n["Abouttext"]</p>
- </td>
- </tr>
- <tr>
- <td class="text-center">
- <MatButton Raised="true" Class="w-100" @onclick="@ShowCaritasWebpage" style="max-width:500px">@i18n["Learnmore"]</MatButton>
- </td>
- </tr>
- <tr>
- <td class="text-center">
- <MatCaption Style="font-family:Ubuntu">@i18n["App.version", @version]</MatCaption>
- </td>
- </tr>
- </table>
- </div>
- <div class="row no-gutters align-items-end w-100">
- <table class="w-100">
- <tr>
- <td class="text-right">
- <MatCaption Style="font-family:Ubuntu">@i18n["DevelopedBy"]</MatCaption>
- </td>
- </tr>
- <tr>
- <td class="text-right">
- <img src="./images/integrate_logo.png" style="max-width:200px" alt="" />
- </td>
- </tr>
- <tr>
- <td class="text-right">
- <MatCaption Style="font-family:Ubuntu">Platz 10, Business Village Luzern</MatCaption>
- </td>
- </tr>
- <tr>
- <td class="text-right">
- <MatCaption Style="font-family:Ubuntu">CH-6039 Root D4</MatCaption>
- </td>
- </tr>
- </table>
- </div>
- </div>
-
-
- @code {
-
- private string version;
-
- protected override void OnInitialized() {
- base.OnInitialized();
- PageHistoryManager.AddPageToHistory(NavigationManager.Uri);
- version = Assembly.GetExecutingAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
- }
-
- private async void ShowCaritasWebpage() {
- await JSRuntime.InvokeAsync<string>("open", $"https://www.caritas.ch", "_blank", "noopener");
- }
-
- //private string GetAppVersion() {
- // return i18n.GetString("App.version", new object[] { version });
- //}
- }
|