Skip to content

Commit 1de318d

Browse files
committed
Improve social buttons
1 parent 54f7ff2 commit 1de318d

File tree

1 file changed

+20
-15
lines changed
  • src/app/conf/2025/components/top-minds

1 file changed

+20
-15
lines changed

src/app/conf/2025/components/top-minds/index.tsx

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function TopMindsSection({
2525
)}
2626
{...rest}
2727
>
28-
<div className="flex flex-wrap max-sm:flex-col">
28+
<div className="flex flex-wrap max-sm:flex-col sm:*:border-b-0">
2929
{/* todo: look up socials */}
3030
<h3 className="grow pb-6 pr-6 typography-h2">
3131
Meet the top industry minds
@@ -34,14 +34,16 @@ export default function TopMindsSection({
3434
name="Uri Goldshtein"
3535
title="The Guild — Founder"
3636
src={uriGoldshtein}
37+
linkedin="urigo"
38+
twitter="UriGoldshtein"
3739
/>
3840
<SpeakerCard
3941
name="Elizabeth Stone"
4042
title="Netflix — CTO"
4143
src={elizabethStone}
42-
linkedinHref="https://www.linkedin.com/in/elizabeth-stone-608a754/"
44+
linkedin="elizabeth-stone-608a754"
4345
/>
44-
<div className="flex grow max-sm:contents">
46+
<div className="flex grow border-t border-sec-dark *:border-t-0 max-sm:contents">
4547
<SpeakerCard
4648
name="Kamil Kisiela"
4749
title="The Guild — Developer"
@@ -51,11 +53,14 @@ export default function TopMindsSection({
5153
name="Rajeev Rajan"
5254
title="Atlassian — CTO"
5355
src={rajeevRajan}
56+
linkedin="rajeev-rajan"
5457
/>
5558
<SpeakerCard
5659
name="Tenmai Gopal"
5760
title="Hasura — CEO & Co-Founder"
5861
src={tenmaiGopal}
62+
twitter="tanmaigo"
63+
linkedin="tanmaig"
5964
/>
6065
<div className="mt-6 flex grow items-end justify-end pl-6">
6166
<Button variant="secondary">View all speakers</Button>
@@ -70,15 +75,15 @@ function SpeakerCard({
7075
name,
7176
title,
7277
src,
73-
twitterHref,
74-
linkedinHref,
78+
twitter,
79+
linkedin,
7580
className,
7681
}: {
7782
name: string
7883
title: string
7984
src: string | StaticImageData
80-
twitterHref?: string
81-
linkedinHref?: string
85+
twitter?: string
86+
linkedin?: string
8287
className?: string
8388
}) {
8489
return (
@@ -96,28 +101,28 @@ function SpeakerCard({
96101
className="aspect-square size-[236px] w-full object-cover transition-transform"
97102
/>
98103
<div className="flex items-stretch border-t border-sec-dark">
99-
<div className="flex grow flex-col gap-1 p-3">
104+
<div className="flex h-[80px] grow flex-col justify-center gap-1 p-3">
100105
<h4 className="typography-body-md">{name}</h4>
101106
<p className="text-neu-700 typography-body-xs">{title}</p>
102107
</div>
103-
{(linkedinHref || twitterHref) && (
108+
{(linkedin || twitter) && (
104109
<div className="flex items-center border-l border-sec-dark sm:flex-col sm:border-l">
105-
{linkedinHref && (
110+
{linkedin && (
106111
<a
107-
href={linkedinHref}
112+
href={`https://www.linkedin.com/in/${linkedin}`}
108113
target="_blank"
109114
rel="noopener noreferrer"
110-
className="flex grow items-center justify-center p-4 transition-colors hover:text-neu-700 dark:hover:text-neu-400 sm:p-2"
115+
className="flex grow items-center justify-center p-4 transition-colors hover:bg-neu-900/10 hover:text-neu-700 sm:p-2"
111116
>
112117
<LinkedInIcon />
113118
</a>
114119
)}
115-
{twitterHref && (
120+
{twitter && (
116121
<a
117-
href={twitterHref}
122+
href={`https://x.com/${twitter}`}
118123
target="_blank"
119124
rel="noopener noreferrer"
120-
className="flex grow items-center justify-center p-4 transition-colors hover:text-neu-700 dark:hover:text-neu-400 sm:p-2"
125+
className="flex grow items-center justify-center p-4 transition-colors hover:bg-neu-900/10 hover:text-neu-700 sm:p-2"
121126
>
122127
<TwitterIcon className="size-6" />
123128
</a>

0 commit comments

Comments
 (0)