Skip to content

Commit 6c7dd2e

Browse files
committed
fix: hide onlycrabs link and code pill
1 parent c72e300 commit 6c7dd2e

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

src/components/Header.tsx

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Menu, Monitor, Moon, Sun } from 'lucide-react'
55
import { useMemo, useRef } from 'react'
66
import { api } from '../../convex/_generated/api'
77
import { gravatarUrl } from '../lib/gravatar'
8-
import { getClawdHubSiteUrl, getOnlyCrabsSiteUrl, getSiteMode, getSiteName } from '../lib/site'
8+
import { getClawdHubSiteUrl, getSiteMode, getSiteName } from '../lib/site'
99
import { applyTheme, useThemeMode } from '../lib/theme'
1010
import { startThemeTransition } from '../lib/theme-transition'
1111
import {
@@ -26,7 +26,6 @@ export default function Header() {
2626
const siteMode = getSiteMode()
2727
const siteName = useMemo(() => getSiteName(siteMode), [siteMode])
2828
const isSoulMode = siteMode === 'souls'
29-
const onlyCrabsUrl = getOnlyCrabsSiteUrl()
3029
const clawdHubUrl = getClawdHubSiteUrl()
3130

3231
const avatar = me?.image ?? (me?.email ? gravatarUrl(me.email) : undefined)
@@ -57,11 +56,7 @@ export default function Header() {
5756
<span className="brand-name">{siteName}</span>
5857
</Link>
5958
<nav className="nav-links">
60-
{isSoulMode ? (
61-
<a href={clawdHubUrl}>ClawdHub</a>
62-
) : (
63-
<a href={onlyCrabsUrl}>onlycrabs.ai</a>
64-
)}
59+
{isSoulMode ? <a href={clawdHubUrl}>ClawdHub</a> : null}
6560
<Link
6661
to={isSoulMode ? '/souls' : '/skills'}
6762
search={
@@ -97,13 +92,11 @@ export default function Header() {
9792
</button>
9893
</DropdownMenuTrigger>
9994
<DropdownMenuContent align="end">
100-
<DropdownMenuItem asChild>
101-
{isSoulMode ? (
95+
{isSoulMode ? (
96+
<DropdownMenuItem asChild>
10297
<a href={clawdHubUrl}>ClawdHub</a>
103-
) : (
104-
<a href={onlyCrabsUrl}>onlycrabs.ai</a>
105-
)}
106-
</DropdownMenuItem>
98+
</DropdownMenuItem>
99+
) : null}
107100
<DropdownMenuItem asChild>
108101
<Link
109102
to={isSoulMode ? '/souls' : '/skills'}

src/styles.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2357,7 +2357,7 @@ code {
23572357
color: var(--accent-deep);
23582358
}
23592359

2360-
.markdown code {
2360+
.markdown :not(pre) > code {
23612361
background: rgba(255, 107, 74, 0.12);
23622362
padding: 2px 6px;
23632363
border-radius: 8px;
@@ -2397,11 +2397,16 @@ code {
23972397
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
23982398
}
23992399

2400-
[data-theme="dark"] .markdown code {
2400+
[data-theme="dark"] .markdown :not(pre) > code {
24012401
background: rgba(255, 131, 95, 0.2);
24022402
color: #ffe9de;
24032403
}
24042404

2405+
[data-theme="dark"] .markdown pre code {
2406+
background: transparent;
2407+
color: inherit;
2408+
}
2409+
24052410
.fade-up {
24062411
animation: fadeUp 0.6s ease forwards;
24072412
opacity: 0;

0 commit comments

Comments
 (0)