Skip to content

Commit 0215014

Browse files
committed
add website to profile
1 parent 58a3b0c commit 0215014

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

app/pages/profile/[handle]/index.vue

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,33 @@ defineOgImageComponent('Default', {
4343
<main class="container flex-1 flex flex-col py-8 sm:py-12 w-full">
4444
<!-- Header -->
4545
<header class="mb-8 pb-8 border-b border-border">
46-
<div class="flex flex-wrap items-center gap-4">
47-
<div>
48-
<h1 class="font-mono text-2xl sm:text-3xl font-medium">{{ profile.displayName }}</h1>
46+
<div class="flex flex-col flex-wrap gap-4">
47+
<h1 class="font-mono text-2xl sm:text-3xl font-medium">{{ profile.displayName }}</h1>
48+
<p v-if="profile.description">{{ profile.description }}</p>
49+
<div class="flex gap-4">
4950
<h2>@{{ handle }}</h2>
50-
<p v-if="profile.description">{{ profile.description }}</p>
51+
<a
52+
v-if="profile.website"
53+
:href="profile.website"
54+
target="_blank"
55+
rel="noopener noreferrer"
56+
class="link-subtle font-mono text-sm inline-flex items-center gap-1.5"
57+
>
58+
<span class="i-carbon:link w-4 h-4" aria-hidden="true" />
59+
{{ profile.website }}
60+
</a>
5161
</div>
5262
</div>
5363
</header>
5464

5565
<section class="flex flex-col gap-8">
56-
<h1
66+
<h2
5767
class="font-mono text-2xl sm:text-3xl font-medium min-w-0 break-words"
5868
:title="Likes"
5969
dir="ltr"
6070
>
6171
Likes <span v-if="likesData">({{ likesData.likes.records.length ?? 0 }})</span>
62-
</h1>
72+
</h2>
6373
<div v-if="status === 'pending'">
6474
<p>Loading...</p>
6575
</div>

0 commit comments

Comments
 (0)