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

ProfileCard.vue 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template lang="pug">
  2. w-card.profile-card-list--card.xs12.pa12
  3. header.xs12.w-flex.column.center
  4. NamePlate(
  5. :pid="card.pid"
  6. :name="card.name"
  7. :pronouns="card.pronouns"
  8. :role="card.role"
  9. :is-list="isList"
  10. :is-paired="isPaired"
  11. )
  12. w-button.text-upper.xs12.pa6(v-if="isPaired && !isList")
  13. w-icon(xl).mr1 mdi mdi-chat
  14. | start chat
  15. template(v-if="!isList")
  16. SummaryBar(
  17. :is-tab="isPaired"
  18. :tab-content="card.summary"
  19. )
  20. TagList(v-if="!isPaired || isList")
  21. article.xs12.w-flex.column.justify-space-between
  22. AspectBar(
  23. v-if="!isPaired || isList"
  24. v-for="aspect in aspects"
  25. :labels="aspect.labels"
  26. :percentage="aspect.percentage"
  27. :key="aspect.name"
  28. )
  29. footer(v-if="!isList && !isPaired")
  30. .pa12
  31. p {{ card.summary.about.tab }}
  32. PairingButton(v-if="!isPaired")
  33. </template>
  34. <script setup>
  35. import { ref } from 'vue'
  36. import NamePlate from './NamePlate.vue'
  37. import AspectBar from './AspectBar.vue'
  38. import SummaryBar from './SummaryBar.vue'
  39. import TagList from './TagList.vue'
  40. import PairingButton from './PairingButton.vue'
  41. const isPaired = ref(true)
  42. // const isPaired = ref(false)
  43. const props = defineProps({
  44. card: {
  45. type: Object,
  46. required: true,
  47. },
  48. aspects: {
  49. type: Array,
  50. required: true,
  51. },
  52. isList: {
  53. type: Boolean,
  54. required: false,
  55. default: true,
  56. },
  57. })
  58. </script>
  59. <style lang="sass">
  60. .profile-card-list--card
  61. background-color: #000
  62. color: #fff
  63. header > .w-button
  64. background-color: #116006
  65. color: #fff
  66. </style>