From bae1330af41d5475709da06fdb3f03ff199635b6 Mon Sep 17 00:00:00 2001
From: Cristiano Magro <cristiano.magro@vola.it>
Date: Sun, 05 Jan 2025 17:59:41 +0100
Subject: [PATCH] scoped slot

---
 09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue |   30 +++++++++---------------------
 1 files changed, 9 insertions(+), 21 deletions(-)

diff --git a/09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue b/09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue
index 04dcf0f..789826c 100644
--- a/09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue
+++ b/09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue
@@ -1,10 +1,14 @@
 <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>
 
@@ -13,19 +17,3 @@
   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>
\ No newline at end of file

--
Gitblit v1.8.0