tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
little popover fixes
cozylittle.house
2 months ago
7dc05205
e40b54f1
+15
-17
2 changed files
expand all
collapse all
unified
split
app
(home-pages)
p
[didOrHandle]
ProfileHeader.tsx
components
ProfilePopover.tsx
+1
-1
app/(home-pages)/p/[didOrHandle]/ProfileHeader.tsx
···
251
251
Followed by{" "}
252
252
<a
253
253
className="hover:underline"
254
254
-
href={`https://bsky.social/profile/${props.did}/known-followers`}
254
254
+
href={`https://bsky.app/profile/${props.did}/known-followers`}
255
255
target="_blank"
256
256
>
257
257
{props.viewer?.knownFollowers?.followers[0]?.displayName}{" "}
+14
-16
components/ProfilePopover.tsx
···
69
69
<ProfileLinks handle={data.profile.handle} />
70
70
</div>
71
71
) : (
72
72
-
<div className="text-secondary py-2 px-4">Profile not found</div>
72
72
+
<div className="text-secondary py-2 px-4">No profile found...</div>
73
73
)}
74
74
</Popover>
75
75
);
76
76
};
77
77
78
78
const ProfileLinks = (props: { handle: string }) => {
79
79
+
let linkClassName =
80
80
+
"flex gap-1.5 text-tertiary items-center border border-transparent px-1 rounded-md hover:bg-[var(--accent-light)] hover:border-accent-contrast hover:text-accent-contrast no-underline hover:no-underline";
79
81
return (
80
82
<div className="w-full flex-col">
81
83
<hr className="border-border-light mt-3" />
82
84
<div className="flex gap-2 justify-between sm:px-4 px-3 py-2">
83
85
<div className="flex gap-2">
84
84
-
<ProfileLink href={`https://bsky.app/profile/${props.handle}`}>
86
86
+
<a
87
87
+
href={`https://bsky.app/profile/${props.handle}`}
88
88
+
target="_blank"
89
89
+
className={linkClassName}
90
90
+
>
85
91
<BlueskyTiny />
86
92
Bluesky
87
87
-
</ProfileLink>
93
93
+
</a>
88
94
</div>
89
89
-
<ProfileLink href={"/"}>
95
95
+
<SpeedyLink
96
96
+
href={`https://leaflet.pub/p/${props.handle}`}
97
97
+
className={linkClassName}
98
98
+
>
90
99
Full profile <ArrowRightTiny />
91
91
-
</ProfileLink>
100
100
+
</SpeedyLink>
92
101
</div>
93
102
</div>
94
103
);
95
104
};
96
96
-
97
97
-
const ProfileLink = (props: { children: React.ReactNode; href: string }) => {
98
98
-
return (
99
99
-
<a
100
100
-
href={props.href}
101
101
-
className="flex gap-1.5 text-tertiary items-center border border-transparent px-1 rounded-md hover:bg-[var(--accent-light)] hover:border-accent-contrast hover:text-accent-contrast no-underline hover:no-underline"
102
102
-
>
103
103
-
{props.children}
104
104
-
</a>
105
105
-
);
106
106
-
};