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

NamePlate.vue 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template lang="pug">
  2. .name-plate.xs12.w-flex.justify-center
  3. section(:class='{ box: !isList }' v-if='pid')
  4. router-link(:to='`/profile/${pid}`' disabled)
  5. h1.text-capitalize {{ name }}
  6. p.text-capitalize {{ role }}&nbsp;
  7. span.text-capitalize(v-if='isList')
  8. span.text-capitalize | {{ locale }}
  9. p.text-capitalize(v-if='!isList') {{ pronouns }}
  10. </template>
  11. <script>
  12. export default {
  13. props: {
  14. pid: {
  15. type: Number,
  16. required: true,
  17. },
  18. name: {
  19. type: String,
  20. required: true,
  21. },
  22. role: {
  23. type: String,
  24. required: true,
  25. },
  26. locale: {
  27. type: String,
  28. required: true,
  29. },
  30. pronouns: {
  31. type: String,
  32. required: true,
  33. },
  34. isList: {
  35. type: Boolean,
  36. required: false,
  37. default: true,
  38. },
  39. },
  40. }
  41. </script>
  42. <style lang="sass">
  43. .name-plate
  44. section
  45. display: flex
  46. flex-direction: column
  47. align-items: center
  48. justify-content: center
  49. min-height: 10vh
  50. width: 100%
  51. &.box
  52. border-radius: 6px
  53. height: 15vw
  54. width: 15vw
  55. text-align: center
  56. font-family: Century Gothic, CenturyGothic, AppleGothic, sans-serif
  57. h1
  58. font-weight: bold
  59. font-size: 1.619em
  60. color: #183770
  61. p
  62. font-weight: bolder
  63. font-size: 0.8095em
  64. color: #183770
  65. h1
  66. font-weight: bold
  67. font-size: 1.619em
  68. color: #F7F5A6
  69. text-align: center
  70. p
  71. font-weight: bolder
  72. font-size: 1em
  73. color: #F7F5A6
  74. text-align: center
  75. </style>