Skip to content

Commit 7fb57d1

Browse files
committed
use the correct organization
1 parent 8dac1f2 commit 7fb57d1

File tree

1 file changed

+36
-43
lines changed

1 file changed

+36
-43
lines changed

src/components/RepoCard.vue

Lines changed: 36 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,30 @@
11
<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>
3528
</template>
3629

3730
<style></style>
@@ -40,16 +33,16 @@
4033
import { useDisplay } from "vuetify";
4134
4235
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: () => ({}),
5345
},
46+
},
5447
};
5548
</script>

0 commit comments

Comments
 (0)