This repository has been archived on 2021-09-06. You can view files and clone it, but cannot push or open issues or pull requests.
2021-02-08 12:15:58 +01:00
|
|
|
<template>
|
|
|
|
<li>
|
2021-02-08 14:16:56 +01:00
|
|
|
<base-card>
|
2021-02-08 12:15:58 +01:00
|
|
|
<header>
|
|
|
|
<h3>{{ title }}</h3>
|
2021-02-08 20:20:39 +01:00
|
|
|
<base-button mode="flat" @click="removeResource('id')"
|
|
|
|
>Delete</base-button
|
|
|
|
>
|
2021-02-08 12:15:58 +01:00
|
|
|
</header>
|
2021-02-08 14:16:56 +01:00
|
|
|
<p>{{ description }}</p>
|
|
|
|
<nav><a :href="link">View Resource</a></nav>
|
|
|
|
</base-card>
|
2021-02-08 14:10:04 +01:00
|
|
|
</li>
|
|
|
|
</template>
|
2021-02-08 12:15:58 +01:00
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2021-02-08 20:20:39 +01:00
|
|
|
props: ['id', 'title', 'description', 'link'],
|
|
|
|
inject: ['removeResource']
|
2021-02-08 12:15:58 +01:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
2021-02-08 12:19:22 +01:00
|
|
|
<style scoped>
|
|
|
|
li {
|
|
|
|
margin: auto;
|
|
|
|
max-width: 40rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
header {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
font-size: 1.25rem;
|
|
|
|
margin: 0.5rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin: 0.5rem 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
color: #ce5c00;
|
|
|
|
}
|
|
|
|
|
|
|
|
a:hover,
|
|
|
|
a:active {
|
|
|
|
color: #c89300;
|
|
|
|
}
|
|
|
|
</style>
|