You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NamePlate.vue 2.0KB

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