1 files added
2 files modified
New file |
| | |
| | | <template> |
| | | <div> |
| | | <slot></slot> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | div { |
| | | margin: 2rem auto; |
| | | max-width: 30rem; |
| | | border-radius: 12px; |
| | | box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26); |
| | | padding: 1rem; |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <section> |
| | | <header> |
| | | <h3>{{ fullName }}</h3> |
| | | <base-badge :type="role" :caption="role.toUpperCase()"></base-badge> |
| | | </header> |
| | | <p>{{ infoText }}</p> |
| | | <base-card> |
| | | <header> |
| | | <h3>{{ fullName }}</h3> |
| | | <base-badge :type="role" :caption="role.toUpperCase()"></base-badge> |
| | | </header> |
| | | <p>{{ infoText }}</p> |
| | | </base-card> |
| | | </section> |
| | | </template> |
| | | |
| | |
| | | </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; |
| | |
| | | |
| | | import App from './App.vue'; |
| | | import BaseBadge from './components/BaseBadge.vue'; |
| | | import BaseCard from './components/BaseCard.vue'; |
| | | |
| | | |
| | | const app = createApp(App); |
| | | |
| | | app.component('base-badge', BaseBadge); |
| | | app.component('base-card', BaseCard); |
| | | |
| | | app.mount('#app'); |