Skip to content

Commit b8e1aaf

Browse files
committed
chore: profile og image clean up
1 parent fc1e79c commit b8e1aaf

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

app/components/OgImage/Profile.takumi.vue

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,10 @@ const {
33
handle,
44
displayName = '',
55
description = '',
6-
avatar = '',
7-
packageCount = 0,
8-
orgCount = 0,
96
} = defineProps<{
107
handle: string
118
displayName?: string
129
description?: string
13-
avatar?: string
14-
packageCount?: number
15-
orgCount?: number
1610
}>()
1711
1812
const getInitials = (name: string) =>
@@ -23,13 +17,6 @@ const getInitials = (name: string) =>
2317
.join('')
2418
.toUpperCase()
2519
.slice(0, 2)
26-
27-
const stats = computed(() => {
28-
const items: string[] = []
29-
if (packageCount > 0) items.push(`${packageCount} package${packageCount !== 1 ? 's' : ''}`)
30-
if (orgCount > 0) items.push(`${orgCount} org${orgCount !== 1 ? 's' : ''}`)
31-
return items.join(' · ')
32-
})
3320
</script>
3421

3522
<template>
@@ -43,15 +30,7 @@ const stats = computed(() => {
4330
class="flex items-center justify-center rounded-full bg-bg-muted overflow-hidden shrink-0"
4431
:style="{ width: '96px', height: '96px' }"
4532
>
46-
<img
47-
v-if="avatar"
48-
:src="avatar"
49-
:alt="handle"
50-
width="96"
51-
height="96"
52-
class="w-full h-full object-cover"
53-
/>
54-
<span v-else class="text-8 text-fg-muted font-medium">
33+
<span class="text-8 text-fg-muted font-medium">
5534
{{ getInitials(displayName || handle) }}
5635
</span>
5736
</span>
@@ -76,11 +55,6 @@ const stats = computed(() => {
7655
>
7756
{{ description }}
7857
</div>
79-
80-
<!-- Stats -->
81-
<div v-if="stats" class="text-3xl text-fg-muted">
82-
{{ stats }}
83-
</div>
8458
</div>
8559
</OgLayout>
8660
</template>

0 commit comments

Comments
 (0)