From ac100de8d8e0fc85e34cde9aec6262259b12f96c Mon Sep 17 00:00:00 2001 From: Cristiano Magro <cristiano.magro@vola.it> Date: Mon, 30 Dec 2024 21:53:48 +0100 Subject: [PATCH] style scoped locali --- 09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 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 new file mode 100644 index 0000000..04dcf0f --- /dev/null +++ b/09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue @@ -0,0 +1,31 @@ +<template> + <section> + <header> + <h3>{{ fullName }}</h3> + <base-badge :type="role" :caption="role.toUpperCase()"></base-badge> + </header> + <p>{{ infoText }}</p> + </section> +</template> + +<script> +export default { + 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