|
1 | 1 | <template> |
2 | | - <v-card |
3 | | - flat |
4 | | - rounded="0" |
5 | | - :border="true" |
6 | | - :class="(smAndDown ? 'mb-0' : 'mb-8') + ' flex-grow-1'" |
7 | | - :href="`https://compas.dev/${repo.name}`" |
8 | | - target="_blank" |
9 | | - > |
10 | | - <div v-if="repo.image" class="img-fix-container"> |
11 | | - <v-img :src="repo.image" class="img-fix" cover></v-img> |
12 | | - </div> |
13 | | - <div v-else class="img-fix-container"> |
14 | | - <v-responsive max-width="1600px" max-height="1000px" :aspect-ratio="16 / 10"> |
15 | | - <div class="bg-white w-100 h-100"></div> |
16 | | - </v-responsive> |
17 | | - </div> |
18 | | - <v-card-title class="mt-8">{{ repo.name }}</v-card-title> |
19 | | - <v-card-text> |
20 | | - <p>{{ repo.description }}</p> |
21 | | - <v-chip-group class="my-4"> |
22 | | - <v-chip |
23 | | - v-for="keyword in repo.keywords" |
24 | | - :key="keyword" |
25 | | - size="small" |
26 | | - color="secondary" |
27 | | - variant="tonal" |
28 | | - label |
29 | | - > |
30 | | - {{ keyword }} |
31 | | - </v-chip> |
32 | | - </v-chip-group> |
33 | | - </v-card-text> |
34 | | - </v-card> |
| 2 | + <v-card |
| 3 | + flat |
| 4 | + rounded="0" |
| 5 | + :border="true" |
| 6 | + :class="(smAndDown ? 'mb-0' : 'mb-8') + ' flex-grow-1'" |
| 7 | + :href="`https://${repo.organization}/${repo.name}`" |
| 8 | + target="_blank" |
| 9 | + > |
| 10 | + <div v-if="repo.image" class="img-fix-container"> |
| 11 | + <v-img :src="repo.image" class="img-fix" cover></v-img> |
| 12 | + </div> |
| 13 | + <div v-else class="img-fix-container"> |
| 14 | + <v-responsive max-width="1600px" max-height="1000px" :aspect-ratio="16 / 10"> |
| 15 | + <div class="bg-white w-100 h-100"></div> |
| 16 | + </v-responsive> |
| 17 | + </div> |
| 18 | + <v-card-title class="mt-8">{{ repo.name }}</v-card-title> |
| 19 | + <v-card-text> |
| 20 | + <p>{{ repo.description }}</p> |
| 21 | + <v-chip-group class="my-4"> |
| 22 | + <v-chip v-for="keyword in repo.keywords" :key="keyword" size="small" color="secondary" variant="tonal" label> |
| 23 | + {{ keyword }} |
| 24 | + </v-chip> |
| 25 | + </v-chip-group> |
| 26 | + </v-card-text> |
| 27 | + </v-card> |
35 | 28 | </template> |
36 | 29 |
|
37 | 30 | <style></style> |
|
40 | 33 | import { useDisplay } from "vuetify"; |
41 | 34 |
|
42 | 35 | export default { |
43 | | - setup() { |
44 | | - const { smAndDown, mdAndDown, smAndUp, mdAndUp, platform, mobile } = useDisplay(); |
45 | | - return { smAndDown, mdAndDown, smAndUp, mdAndUp, platform, mobile }; |
46 | | - }, |
47 | | - name: "RepoCard", |
48 | | - props: { |
49 | | - repo: { |
50 | | - type: Object, |
51 | | - default: () => ({}), |
52 | | - }, |
| 36 | + setup() { |
| 37 | + const { smAndDown, mdAndDown, smAndUp, mdAndUp, platform, mobile } = useDisplay(); |
| 38 | + return { smAndDown, mdAndDown, smAndUp, mdAndUp, platform, mobile }; |
| 39 | + }, |
| 40 | + name: "RepoCard", |
| 41 | + props: { |
| 42 | + repo: { |
| 43 | + type: Object, |
| 44 | + default: () => ({}), |
53 | 45 | }, |
| 46 | + }, |
54 | 47 | }; |
55 | 48 | </script> |
0 commit comments