From 2757804c19ddba5a0c46092f9ec7c4a8981c8652 Mon Sep 17 00:00:00 2001 From: Cristiano Magro <cristiano.magro@vola.it> Date: Tue, 07 Jan 2025 15:06:18 +0100 Subject: [PATCH] Header and BaseCard --- 10 - course project/xno-prj-cmp-01-starting-setup/src/components/learning-resource/LearningResource.vue | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/10 - course project/xno-prj-cmp-01-starting-setup/src/components/learning-resource/LearningResource.vue b/10 - course project/xno-prj-cmp-01-starting-setup/src/components/learning-resource/LearningResource.vue index eeab6f7..6d23c5c 100644 --- a/10 - course project/xno-prj-cmp-01-starting-setup/src/components/learning-resource/LearningResource.vue +++ b/10 - course project/xno-prj-cmp-01-starting-setup/src/components/learning-resource/LearningResource.vue @@ -1,22 +1,22 @@ <template> - <li> - <div> - <header> - <h3>{{ title }}</h3> - <button>Delete</button> - </header> - </div> - <p>{{ description }}</p> - <nav> - <a :href="link">View Resource</a> - </nav> - </li> + <li> + <base-card> + <header> + <h3>{{ title }}</h3> + <button>Delete</button> + </header> + <p>{{ description }}</p> + <nav> + <a :href="link">View Resource</a> + </nav> + </base-card> + </li> </template> <script> export default { - props: ['title', 'description', 'link'] -} + props: ['title', 'description', 'link'], +}; </script> <style scoped> @@ -49,4 +49,4 @@ a:active { color: #c89300; } -</style> \ No newline at end of file +</style> -- Gitblit v1.8.0