Skip to content

Commit 22cc1b5

Browse files
committed
Make ad CTA bold with larger click target
1 parent 82e773d commit 22cc1b5

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

cli/src/components/ad-banner.tsx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,29 @@ export const AdBanner: React.FC<AdBannerProps> = ({ ad, onDisableAds, isFreeMode
116116
style={{
117117
fg: theme.name === 'light' ? '#ffffff' : theme.background,
118118
bg: isLinkHovered ? theme.link : theme.muted,
119+
attributes: TextAttributes.BOLD,
119120
}}
120121
>
121122
{` ${ctaText} `}
122123
</text>
123124
</Button>
124125
)}
125-
{domain && <text style={{ fg: theme.muted }}>{domain}</text>}
126+
{domain && (
127+
<Button
128+
onClick={handleClick}
129+
onMouseOver={() => setIsLinkHovered(true)}
130+
onMouseOut={() => setIsLinkHovered(false)}
131+
>
132+
<text
133+
style={{
134+
fg: theme.muted,
135+
attributes: TextAttributes.UNDERLINE,
136+
}}
137+
>
138+
{domain}
139+
</text>
140+
</Button>
141+
)}
126142
<box style={{ flexGrow: 1 }} />
127143
{ad.credits != null && ad.credits > 0 && (
128144
<text style={{ fg: theme.muted }}>+{ad.credits} credits</text>

0 commit comments

Comments
 (0)