From eb387dbd90a2a891ee5ee4458e32cccb460fd9b1 Mon Sep 17 00:00:00 2001
From: Cristiano Magro <cristiano.magro@vola.it>
Date: Mon, 06 Jan 2025 18:15:48 +0100
Subject: [PATCH] first components e props

---
 09 - deeper into components/cmp-adv-08-teleporting-elements/src/components/BaseCard.vue |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/09 - deeper into components/cmp-adv-08-teleporting-elements/src/components/BaseCard.vue b/09 - deeper into components/cmp-adv-08-teleporting-elements/src/components/BaseCard.vue
new file mode 100644
index 0000000..07e45ac
--- /dev/null
+++ b/09 - deeper into components/cmp-adv-08-teleporting-elements/src/components/BaseCard.vue
@@ -0,0 +1,33 @@
+<template>
+  <div>
+    <header v-if="$slots.header">
+      <slot name="header">
+        <!-- <h2>The Default</h2> -->
+      </slot>
+    </header>
+    <slot></slot>
+  </div>
+</template>
+
+<script>
+export default {
+  mounted() {
+    console.log(this.$slots.header);
+  }
+};
+</script>
+
+<style scoped>
+header {
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+}
+div {
+  margin: 2rem auto;
+  max-width: 30rem;
+  border-radius: 12px;
+  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
+  padding: 1rem;
+}
+</style>
\ No newline at end of file

--
Gitblit v1.8.0