1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
| <template>
| <li>
| <base-card>
| <header>
| <h3>{{ title }}</h3>
| <base-button mode="flat" @click="deleteResource(id)"
| >Delete</base-button
| >
| </header>
| <p>{{ description }}</p>
| <nav>
| <a :href="link">View Resource</a>
| </nav>
| </base-card>
| </li>
| </template>
|
| <script>
| export default {
| props: ['id', 'title', 'description', 'link'],
| inject: ['deleteResource'],
| };
| </script>
|
| <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>
|
|