commit | author | age
|
4f1007
|
1 |
<template> |
CM |
2 |
<section> |
|
3 |
<header> |
|
4 |
<h3>{{ fullName }}</h3> |
|
5 |
<base-badge :type="role" :caption="role.toUpperCase()"></base-badge> |
|
6 |
</header> |
|
7 |
<p>{{ infoText }}</p> |
|
8 |
</section> |
|
9 |
</template> |
|
10 |
|
|
11 |
<script> |
|
12 |
export default { |
|
13 |
props: ['fullName', 'infoText', 'role'], |
|
14 |
}; |
|
15 |
</script> |
|
16 |
|
|
17 |
<style scoped> |
|
18 |
section { |
|
19 |
margin: 2rem auto; |
|
20 |
max-width: 30rem; |
|
21 |
border-radius: 12px; |
|
22 |
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26); |
|
23 |
padding: 1rem; |
|
24 |
} |
|
25 |
|
|
26 |
section header { |
|
27 |
display: flex; |
|
28 |
justify-content: space-between; |
|
29 |
align-items: center; |
|
30 |
} |
|
31 |
</style> |