Skip to content

Commit a2dd020

Browse files
iammukeshmclaude
andcommitted
feat(docs): upgrade hero eyebrow to interactive pill badge
Rounded pill with green version badge, hover glow, and arrow. Links to quick-start. Collapses to version-only on small screens. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f05507a commit a2dd020

1 file changed

Lines changed: 51 additions & 17 deletions

File tree

docs/src/pages/index.astro

Lines changed: 51 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ import mukeshPhoto from '../assets/mukesh_murugan.png';
1515
<div class="hero-glow" aria-hidden="true"></div>
1616
<div class="w">
1717
<div class="hero-center">
18-
<div class="hero-eyebrow">
19-
<span class="pulse"></span>
20-
<code>v10.0</code>
21-
<span class="sep">/</span>
22-
<span>.NET 10 &bull; C# latest &bull; Aspire</span>
23-
</div>
18+
<a href="/dotnet-starter-kit/quick-start/" class="hero-pill">
19+
<span class="pill-glow"></span>
20+
<span class="pill-badge"><span class="pulse"></span>v10.0</span>
21+
<span class="pill-text">.NET 10 &bull; C# latest &bull; Aspire</span>
22+
<svg class="pill-arrow" width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><path d="M4.5 3l3 3-3 3"/></svg>
23+
</a>
2424
<h1>Build fast.<br /><span class="g">Ship faster.</span></h1>
2525
<p class="hero-p">
2626
Production-ready .NET starter kit with multitenancy, identity, CQRS,<br class="br-desk" />
@@ -923,21 +923,54 @@ import mukeshPhoto from '../assets/mukesh_murugan.png';
923923

924924
.hero-center { text-align: center; }
925925

926-
.hero-eyebrow {
927-
display: inline-flex; align-items: center; gap: 0.5rem;
928-
font-size: 0.78rem; font-weight: 500; color: var(--text-dim);
929-
margin-bottom: 1.25rem;
926+
/* hero pill / eyebrow */
927+
.hero-pill {
928+
display: inline-flex; align-items: center; gap: 0.6rem;
929+
font-size: 0.82rem; font-weight: 500; color: var(--text-dim);
930+
margin-bottom: 1.5rem;
931+
padding: 0.35rem 0.9rem 0.35rem 0.4rem;
932+
border-radius: 9999px;
933+
border: 1px solid var(--border-bright);
934+
background: var(--bg-card);
935+
position: relative; overflow: hidden;
936+
transition: border-color 0.25s ease-out, color 0.25s ease-out;
937+
text-decoration: none;
938+
}
939+
.hero-pill:hover {
940+
border-color: var(--brand);
941+
color: var(--text);
930942
}
931-
.hero-eyebrow code {
932-
font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
943+
.hero-pill:hover .pill-arrow { transform: translateX(2px); }
944+
945+
.pill-glow {
946+
position: absolute; inset: 0; opacity: 0;
947+
background: radial-gradient(ellipse at 30% 50%, var(--brand-glow-strong), transparent 70%);
948+
transition: opacity 0.3s ease-out; pointer-events: none;
949+
}
950+
.hero-pill:hover .pill-glow { opacity: 1; }
951+
952+
.pill-badge {
953+
display: inline-flex; align-items: center; gap: 0.35rem;
954+
font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
933955
background: var(--brand-glow); color: var(--brand);
934-
padding: 0.15rem 0.45rem; border-radius: 4px;
956+
padding: 0.2rem 0.55rem; border-radius: 9999px;
957+
border: 1px solid rgba(74,222,128,0.15);
958+
position: relative;
935959
}
936-
.hero-eyebrow .sep { color: var(--text-faint); }
960+
.pill-text {
961+
position: relative; font-size: 0.8rem;
962+
}
963+
.pill-arrow {
964+
position: relative; color: var(--text-faint);
965+
transition: transform 0.2s ease-out, color 0.2s ease-out;
966+
flex-shrink: 0;
967+
}
968+
.hero-pill:hover .pill-arrow { color: var(--brand); }
937969

938970
.pulse {
939971
width: 6px; height: 6px; border-radius: 50%;
940972
background: var(--brand); animation: blink 2s ease-in-out infinite;
973+
flex-shrink: 0;
941974
}
942975
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
943976

@@ -1988,7 +2021,8 @@ import mukeshPhoto from '../assets/mukesh_murugan.png';
19882021
.hero { padding: 5rem 0 2rem; }
19892022
.hero h1 { font-size: 2.25rem; }
19902023
.hero-p { font-size: 1.05rem; line-height: 1.6; }
1991-
.hero-eyebrow { font-size: 0.88rem; }
2024+
.hero-pill { font-size: 0.85rem; }
2025+
.pill-text { font-size: 0.82rem; }
19922026
.br-desk { display: none; }
19932027
.hero-term-wrap { margin-top: 2rem; padding: 0; }
19942028
.hero-term { box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
@@ -2150,8 +2184,8 @@ import mukeshPhoto from '../assets/mukesh_murugan.png';
21502184

21512185
@media (max-width: 480px) {
21522186
.hero h1 { font-size: 2rem; }
2153-
.hero-eyebrow span:last-child { display: none; }
2154-
.hero-eyebrow .sep { display: none; }
2187+
.pill-text { display: none; }
2188+
.pill-arrow { display: none; }
21552189
.stack-grid { grid-template-columns: 1fr; }
21562190
.nums-strip { gap: 0.5rem; }
21572191
.ns { padding: 0.45rem 0.75rem; }

0 commit comments

Comments
 (0)