Cristiano Magro
2025-01-05 60df099e6db8a1b3478021205facc9db6642ee7c
09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue
@@ -1,11 +1,13 @@
<template>
  <section>
    <base-card>
      <header>
      <template #header>
        <h3>{{ fullName }}</h3>
        <base-badge :type="role" :caption="role.toUpperCase()"></base-badge>
      </header>
      <p>{{ infoText }}</p>
      </template>
      <template #default>
        <p>{{ infoText }}</p>
      </template>
    </base-card>
  </section>
</template>
@@ -15,12 +17,3 @@
  props: ['fullName', 'infoText', 'role'],
};
</script>
<style scoped>
section header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style>