Skip to content

Commit dd4ec56

Browse files
committed
fix: show ASCII logo on mobile, use B&W Product Hunt badge
1 parent e9bb9fb commit dd4ec56

File tree

2 files changed

+7
-22
lines changed

2 files changed

+7
-22
lines changed

docs/img/banner.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/skillkit/components/Hero.tsx

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -119,35 +119,20 @@ 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">
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-4 lg:mb-6">
123+
<pre className="text-zinc-600 text-[6px] sm:text-[8px] lg:text-[10px] leading-none font-mono select-none whitespace-pre" style={{ fontFamily: 'JetBrains Mono, Consolas, monospace' }}>
124124
{ASCII_LOGO}
125125
</pre>
126126
<a
127127
href="https://www.producthunt.com/products/skillkit-2?embed=true&utm_source=badge-top-post-badge&utm_medium=badge&utm_campaign=badge-skillkit-2"
128128
target="_blank"
129129
rel="noopener noreferrer"
130-
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"
130+
className="flex items-center gap-2 sm:gap-3 bg-zinc-900/80 border border-zinc-800 hover:border-zinc-600 transition-colors rounded-full px-2.5 sm:px-4 py-1.5 sm: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-6 h-6 sm:w-8 sm:h-8 rounded-full border border-zinc-600 bg-transparent 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>
136-
</span>
137-
</a>
138-
</div>
139-
140-
<div className="lg:hidden mb-4">
141-
<a
142-
href="https://www.producthunt.com/products/skillkit-2?embed=true&utm_source=badge-top-post-badge&utm_medium=badge&utm_campaign=badge-skillkit-2"
143-
target="_blank"
144-
rel="noopener noreferrer"
145-
className="inline-flex items-center gap-2.5 bg-zinc-900/80 border border-zinc-800 hover:border-zinc-600 transition-colors rounded-full px-3 py-1.5 group"
146-
>
147-
<span className="flex items-center justify-center w-6 h-6 rounded-full bg-[#da552f] text-white font-bold text-xs">P</span>
148-
<span className="flex flex-col">
149-
<span className="text-[8px] font-semibold text-zinc-500 tracking-wider uppercase leading-tight">Product Hunt</span>
150-
<span className="text-xs font-bold text-white group-hover:text-zinc-200 transition-colors leading-tight">#3 Product of the Day</span>
134+
<span className="text-[8px] sm:text-[10px] font-semibold text-zinc-500 tracking-wider uppercase leading-tight">Product Hunt</span>
135+
<span className="text-[11px] sm:text-sm font-bold text-white group-hover:text-zinc-300 transition-colors leading-tight">#3 Product of the Day</span>
151136
</span>
152137
</a>
153138
</div>

0 commit comments

Comments
 (0)