Simplify marketing nav and de-duplicate hero social proof
- Nav: replace the duplicated Download + stars buttons with a single GitHub stars badge (Download now lives only in the hero / final CTA) - Hero proof pill: drop the duplicated star count; show the users stat only, reworded as a statement - Remove now-unused nav-action and proof-link CSS Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This commit is contained in:
1 parent
b0d806710a
commit
7cbecd52eb
2 files changed
+37
-47
No files matched your search
@@ -38,18 +38,17 @@ const {
|
||||
</a>
|
||||
<div class="nav-right">
|
||||
<a
|
||||
class="btn btn-ghost nav-action"
|
||||
class="nav-stars"
|
||||
href={GITHUB_REPOSITORY_URL}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
aria-label={`View T3 Code on GitHub — ${MARKETING_STATS.githubStars} stars`}
|
||||
aria-label={`Star T3 Code on GitHub — ${MARKETING_STATS.githubStars} stars`}
|
||||
>
|
||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
|
||||
<path d="M12 .5C5.65.5.5 5.65.5 12a11.5 11.5 0 007.86 10.93c.58.1.79-.25.79-.56v-2c-3.2.69-3.88-1.37-3.88-1.37-.52-1.33-1.27-1.69-1.27-1.69-1.04-.71.08-.7.08-.7 1.15.08 1.76 1.18 1.76 1.18 1.02 1.76 2.68 1.25 3.33.96.1-.75.4-1.25.72-1.54-2.55-.29-5.24-1.27-5.24-5.67 0-1.25.45-2.28 1.18-3.08-.12-.29-.51-1.45.11-3.02 0 0 .96-.31 3.15 1.18a10.96 10.96 0 015.74 0c2.19-1.49 3.15-1.18 3.15-1.18.62 1.57.23 2.73.11 3.02.74.8 1.18 1.83 1.18 3.08 0 4.41-2.7 5.38-5.27 5.66.41.36.78 1.06.78 2.13v3.16c0 .31.21.67.8.56A11.5 11.5 0 0023.5 12C23.5 5.65 18.35.5 12 .5z"/>
|
||||
<path d="M12 2.3l2.9 5.88 6.49.94-4.7 4.58 1.11 6.47L12 17.12l-5.8 3.05 1.11-6.47-4.7-4.58 6.49-.94L12 2.3z"/>
|
||||
</svg>
|
||||
<span>{MARKETING_STATS.githubStars} stars</span>
|
||||
<span><strong>{MARKETING_STATS.githubStars}</strong> GitHub stars</span>
|
||||
</a>
|
||||
<a class="btn btn-primary nav-action" href="/#download">Download</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
@@ -332,12 +331,36 @@ const {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.nav-action {
|
||||
width: 112px;
|
||||
height: 38px;
|
||||
padding: 0 12px;
|
||||
.nav-stars {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
height: 36px;
|
||||
padding: 0 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
color: var(--fg-muted);
|
||||
font-size: 13px;
|
||||
line-height: 1;
|
||||
letter-spacing: -0.01em;
|
||||
white-space: nowrap;
|
||||
transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
|
||||
}
|
||||
|
||||
.nav-stars:hover {
|
||||
color: var(--fg);
|
||||
border-color: var(--border-strong);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
|
||||
.nav-stars strong {
|
||||
color: var(--fg);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.nav-stars svg {
|
||||
color: var(--warn);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.main {
|
||||
@@ -405,15 +428,10 @@ const {
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.nav-right {
|
||||
.nav-stars {
|
||||
height: 34px;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.nav-action {
|
||||
width: 98px;
|
||||
height: 36px;
|
||||
gap: 6px;
|
||||
padding: 0 8px;
|
||||
padding: 0 12px;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,14 +37,7 @@ const mobileEndorsementRows = [
|
||||
|
||||
<div class="container hero-inner">
|
||||
<div class="hero-proof" aria-label="T3 Code community">
|
||||
<span><strong>{MARKETING_STATS.users}</strong> users</span>
|
||||
<span class="hero-proof-divider" aria-hidden="true"></span>
|
||||
<a href={GITHUB_REPOSITORY_URL} target="_blank" rel="noopener noreferrer">
|
||||
<svg width="13" height="13" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
|
||||
<path d="M12 2.3l2.9 5.88 6.49.94-4.7 4.58 1.11 6.47L12 17.12l-5.8 3.05 1.11-6.47-4.7-4.58 6.49-.94L12 2.3z"/>
|
||||
</svg>
|
||||
<strong>{MARKETING_STATS.githubStars}</strong> GitHub stars
|
||||
</a>
|
||||
<span><strong>{MARKETING_STATS.users}</strong> developers shipping with T3 Code</span>
|
||||
</div>
|
||||
|
||||
<h1 class="hero-title display">
|
||||
@@ -543,27 +536,6 @@ const mobileEndorsementRows = [
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.hero-proof a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
transition: color 0.18s ease;
|
||||
}
|
||||
|
||||
.hero-proof a:hover {
|
||||
color: var(--fg);
|
||||
}
|
||||
|
||||
.hero-proof a svg {
|
||||
color: var(--warn);
|
||||
}
|
||||
|
||||
.hero-proof-divider {
|
||||
width: 1px;
|
||||
height: 12px;
|
||||
background: var(--border-strong);
|
||||
}
|
||||
|
||||
.hero-title {
|
||||
font-size: clamp(38px, 5.6vw, 76px);
|
||||
margin: 24px auto 22px;
|
||||
|
||||
Reference in new issue
Block a user