Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

PairsList.vue 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template lang="pug">
  2. section.pairs-list
  3. article(v-if='pairs.length')
  4. template(v-for='pair in pairs')
  5. router-link.pair.w-flex.align-center.flex-start(
  6. :to='`/profile/${pair.profile.pid}`'
  7. v-if='tabName == "pending"'
  8. )
  9. router-link.pair.w-flex.align-center.flex-start(
  10. :to='`/chat/${pair.profile.pid}`'
  11. v-else
  12. )
  13. .dot--icon
  14. .avatar
  15. .idCard
  16. h3 {{ pair.profile.name }} {{ pair.profile.pid }}
  17. p registered nurse
  18. w-button.menu-button(icon="mdi mdi-menu" xl)
  19. w-menu(activator=".menu-button" arrow right)
  20. w-image(:src="'../../../assets/icons/chat.svg'" :width="20" :height="20")
  21. w-image(:src="'../../../assets/icons/calendar.svg'" :width="20" :height="20")
  22. p(v-else) No {{ tabName }} profiles.
  23. </template>
  24. <script setup>
  25. const props = defineProps({
  26. pairs: {
  27. type: [Object, Array],
  28. default: () => [{}],
  29. },
  30. tabName: {
  31. type: String,
  32. default: 'paired',
  33. },
  34. })
  35. </script>
  36. <style lang="sass">
  37. .pairs-list
  38. color: #fff
  39. article
  40. font-family: 'Century Gothic'
  41. .dot--icon
  42. width:12px
  43. height:12px
  44. margin: 11px
  45. border-radius:50%
  46. background-color:#60C3FF
  47. .avatar
  48. width:40px
  49. height:40px
  50. margin: 11px
  51. border-radius: 6px
  52. background-color:#D5D5D5
  53. .idCard
  54. color: #fff
  55. margin: 11px
  56. h3
  57. font-size: 16px
  58. p
  59. font-size: 14px
  60. .w-card__content
  61. padding: 22px
  62. min-width: 100px
  63. display: flex
  64. justify-content: space-between
  65. border: none
  66. background: rgb(17,96,6)
  67. background: linear-gradient(90deg, rgba(17,96,6,1) 0%, rgba(17,96,6,1) 50%, rgba(3,136,166,1) 50%, rgba(3,136,166,1) 100%)
  68. </style>