| | |
| | | <template> |
| | | <section> |
| | | <header> |
| | | <h3>{{ fullName }}</h3> |
| | | <base-badge :type="role" :caption="role.toUpperCase()"></base-badge> |
| | | </header> |
| | | <p>{{ infoText }}</p> |
| | | <base-card> |
| | | <template #header> |
| | | <h3>{{ fullName }}</h3> |
| | | <base-badge :type="role" :caption="role.toUpperCase()"></base-badge> |
| | | </template> |
| | | <template #default> |
| | | <p>{{ infoText }}</p> |
| | | </template> |
| | | </base-card> |
| | | </section> |
| | | </template> |
| | | |
| | |
| | | props: ['fullName', 'infoText', 'role'], |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | section { |
| | | margin: 2rem auto; |
| | | max-width: 30rem; |
| | | border-radius: 12px; |
| | | box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26); |
| | | padding: 1rem; |
| | | } |
| | | |
| | | section header { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | } |
| | | </style> |