Sidebar.razor 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <sidebar class="profile-info">
  2. <AuthorizeView>
  3. <Authorized>
  4. <img src="https://place-hold.it/150x150" alt="Фото профиля" class="profile-info__img">
  5. <div class="profile-info__list">
  6. <div class="profile-info__item">
  7. <div class="profile-info__link">Имя: @context.User.Identity.Name</div>
  8. <div class="profile-info__link">Фамилия: @context.User.Identity.Name</div>
  9. </div>
  10. <div class="profile-info__item">
  11. <div class="profile-info__link">id 00112</div>
  12. </div>
  13. <div class="profile-info__item">
  14. <a href="Account" class="profile-info__link">
  15. <img src="img/qual.svg" alt="qual" class="profile-info__link-img">
  16. Квалификация
  17. </a>
  18. <a href="#" class="profile-info__link">
  19. <img src="img/rating.svg" alt="qual" class="profile-info__link-img">
  20. Рейтинги
  21. </a>
  22. <a href="Wallet" class="profile-info__link">
  23. <img src="img/wallet.svg" alt="qual" class="profile-info__link-img">
  24. Кошелек
  25. </a>
  26. </div>
  27. <div class="profile-info__item">
  28. <a class="profile-info__link">
  29. <img src="img/exit.svg" alt="qual" class="profile-info__link-img">
  30. <form method="post" action="Identity/Account/LogOut">
  31. <button type="submit" class="nav-link btn btn-link">Выйти</button>
  32. </form>
  33. </a>
  34. </div>
  35. </div>
  36. </Authorized>
  37. <NotAuthorized>
  38. <a class="profile-info__link" href="Identity/Account/Register">Регистрация</a>
  39. <a class="profile-info__link" href="Identity/Account/Login">Вход</a>
  40. </NotAuthorized>
  41. </AuthorizeView>
  42. </sidebar>