11---
2+ import { GITHUB_REPOSITORY_URL , MARKETING_STATS } from " ../lib/site" ;
3+
24interface Props {
35 title? : string ;
46 description? : string ;
@@ -36,17 +38,17 @@ const {
3638 </a >
3739 <div class =" nav-right" >
3840 <a
39- class =" nav-gh "
40- href =" https://github.com/pingdotgg/t3code "
41+ class =" nav-stars "
42+ href ={ GITHUB_REPOSITORY_URL }
4143 target =" _blank"
4244 rel =" noopener noreferrer"
45+ aria-label ={ ` Star T3 Code on GitHub — ${MARKETING_STATS .githubStars } stars ` }
4346 >
4447 <svg width =" 14" height =" 14" viewBox =" 0 0 24 24" fill =" currentColor" aria-hidden =" true" >
45- <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 " />
48+ <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 " />
4649 </svg >
47- <span >GitHub</span >
50+ <span >< strong > { MARKETING_STATS . githubStars } </ strong > GitHub stars </span >
4851 </a >
49- <a class =" btn btn-primary" href =" /#download" >Download</a >
5052 </div >
5153 </div >
5254 </nav >
@@ -62,7 +64,7 @@ const {
6264 <span >© { new Date ().getFullYear ()} T3 Tools Inc · MIT licensed</span >
6365 </div >
6466 <div class =" footer-links" >
65- <a href =" https://github.com/pingdotgg/t3code " target =" _blank" rel =" noopener noreferrer" >GitHub</a >
67+ <a href ={ GITHUB_REPOSITORY_URL } target =" _blank" rel =" noopener noreferrer" >GitHub</a >
6668 <a href =" https://discord.gg/jn4EGJjrvv" target =" _blank" rel =" noopener noreferrer" >Discord</a >
6769 <a href =" /download" >Download</a >
6870 </div >
@@ -329,23 +331,36 @@ const {
329331 gap: 8px;
330332 }
331333
332- .nav-gh {
334+ .nav-stars {
333335 display: inline-flex;
334336 align-items: center;
335- gap: 6px;
336- padding: 7px 12px;
337+ gap: 7px;
338+ height: 36px;
339+ padding: 0 14px;
337340 border: 1px solid var(--border);
338- border-radius: 8px;
341+ border-radius: 999px;
342+ background: rgba(255, 255, 255, 0.02);
339343 color: var(--fg-muted);
340- font-family: var(--font-mono);
341- font-size: 12px;
342- transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
344+ font-size: 13px;
345+ letter-spacing: -0.01em;
346+ white-space: nowrap;
347+ transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
343348 }
344349
345- .nav-gh :hover {
350+ .nav-stars :hover {
346351 color: var(--fg);
347- background: rgba(255, 255, 255, 0.04);
348352 border-color: var(--border-strong);
353+ background: rgba(255, 255, 255, 0.04);
354+ }
355+
356+ .nav-stars strong {
357+ color: var(--fg);
358+ font-weight: 600;
359+ }
360+
361+ .nav-stars svg {
362+ color: var(--warn);
363+ flex-shrink: 0;
349364 }
350365
351366 .main {
@@ -407,4 +422,17 @@ const {
407422 padding-right: 20px;
408423 }
409424 }
425+
426+ @media (max-width: 420px) {
427+ .nav-inner {
428+ gap: 12px;
429+ }
430+
431+ .nav-stars {
432+ height: 34px;
433+ gap: 6px;
434+ padding: 0 12px;
435+ font-size: 12px;
436+ }
437+ }
410438</style >
0 commit comments