ModalFiles.razor 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <div class="modal" tabindex="-1" role="dialog" style="display:none" id="@elementid">
  2. <div class="modal-container">
  3. <div class="modal__body">
  4. <div class="modal__body__header">
  5. <div class="modal__body__header__info">
  6. <img src="img/files.svg" alt="">
  7. <p>Ваши файлы</p>
  8. </div>
  9. </div>
  10. <div class="modal__body__container modal__body__container_aligncenter">
  11. <div class="modal__body__container__left modal__body__container__left_blackborder">
  12. <p class="modal__files__type">NFT</p>
  13. <p class="modal__files__type">APK</p>
  14. <p class="modal__files__type">PDF</p>
  15. <p class="modal__files__type">DOC</p>
  16. <p class="modal__files__type">EPS</p>
  17. </div>
  18. <div class="modal__body__container__right modal__body__container__right_blackborder">
  19. @foreach (var article in AppData.Articles)
  20. {
  21. <p class="modal__files__name">
  22. #@article.Value.ID - <a>@article.Value.Name</a> @article.Value.ID@(article.Value.PublishDate.ToString("dd.MM.yy"))
  23. </p>
  24. }
  25. </div>
  26. </div>
  27. </div>
  28. <a class="modal_close" style="cursor:pointer" @onclick="@Close">&#10006;</a>
  29. </div>
  30. </div>
  31. @code {
  32. [Inject]
  33. public IJSRuntime JsRuntime { get; set; }
  34. [Parameter]
  35. public RenderFragment Title { get; set; }
  36. string elementid = "modal_files";
  37. public void Open()
  38. {
  39. JsRuntime.InvokeVoidAsync("OpenModal", elementid);
  40. }
  41. public void Close()
  42. {
  43. JsRuntime.InvokeVoidAsync("CloseModal", elementid);
  44. }
  45. }