Skip to content

Commit ee54bf1

Browse files
committed
fix: show Product Hunt badge on mobile, remove duplicate from nav
1 parent f097ec7 commit ee54bf1

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed

docs/skillkit/App.tsx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -169,21 +169,6 @@ export default function App(): React.ReactElement {
169169
</svg>
170170
<span className="text-white font-medium">{stats.stars || '—'}</span>
171171
</a>
172-
<span className="text-zinc-800 hidden sm:inline">·</span>
173-
<a
174-
href="https://www.producthunt.com/products/skillkit-2?embed=true&utm_source=badge-top-post-badge&utm_medium=badge&utm_campaign=badge-skillkit-2"
175-
target="_blank"
176-
rel="noopener noreferrer"
177-
className="hidden sm:inline-flex items-center hover:opacity-80 transition-opacity"
178-
>
179-
<img
180-
src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=1071813&theme=dark&period=daily"
181-
alt="Skillkit - The package manager for AI agent skills | Product Hunt"
182-
width="250"
183-
height="54"
184-
style={{ height: '28px', width: 'auto' }}
185-
/>
186-
</a>
187172
</div>
188173
</div>
189174
</div>

docs/skillkit/components/Hero.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ export function Hero({ version, stars }: HeroProps): React.ReactElement {
119119
<div className="absolute inset-0 bg-gradient-to-b from-zinc-900/50 to-transparent pointer-events-none"></div>
120120

121121
<div className="mx-auto max-w-5xl px-4 sm:px-6 lg:px-8 pt-8 pb-10 relative">
122-
<div className="hidden lg:flex items-center justify-between mb-6 overflow-hidden">
123-
<pre className="text-zinc-600 text-[10px] leading-none font-mono select-none whitespace-pre" style={{ fontFamily: 'JetBrains Mono, Consolas, monospace' }}>
122+
<div className="flex items-center justify-between mb-6 overflow-hidden">
123+
<pre className="hidden lg:block text-zinc-600 text-[10px] leading-none font-mono select-none whitespace-pre" style={{ fontFamily: 'JetBrains Mono, Consolas, monospace' }}>
124124
{ASCII_LOGO}
125125
</pre>
126126
<a
@@ -129,10 +129,10 @@ export function Hero({ version, stars }: HeroProps): React.ReactElement {
129129
rel="noopener noreferrer"
130130
className="flex items-center gap-3 bg-zinc-900/80 border border-zinc-800 hover:border-zinc-600 transition-colors rounded-full px-4 py-2 group shrink-0"
131131
>
132-
<span className="flex items-center justify-center w-8 h-8 rounded-full bg-[#da552f] text-white font-bold text-sm">P</span>
132+
<span className="flex items-center justify-center w-7 h-7 sm:w-8 sm:h-8 rounded-full bg-[#da552f] text-white font-bold text-xs sm:text-sm">P</span>
133133
<span className="flex flex-col">
134-
<span className="text-[10px] font-semibold text-zinc-500 tracking-wider uppercase">Product Hunt</span>
135-
<span className="text-sm font-bold text-white group-hover:text-zinc-200 transition-colors">#3 Product of the Day</span>
134+
<span className="text-[9px] sm:text-[10px] font-semibold text-zinc-500 tracking-wider uppercase">Product Hunt</span>
135+
<span className="text-xs sm:text-sm font-bold text-white group-hover:text-zinc-200 transition-colors">#3 Product of the Day</span>
136136
</span>
137137
</a>
138138
</div>

0 commit comments

Comments
 (0)