@@ -24,6 +24,10 @@ const { active } = Astro.props;
2424.nav-right{display:flex;align-items:center;gap:4px;margin-left:auto}
2525.nav-right .gh-link{color:var(--muted);transition:all 0.2s;display:flex;padding:6px 8px;border-radius:40px}
2626.nav-right .gh-link:hover{color:var(--fg);background:rgba(255,255,255,0.06)}
27+ .gh-stars{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:0.78rem;font-weight:500;padding:4px 10px 4px 8px;border-radius:40px;border:1px solid rgba(255,255,255,0.1);transition:all 0.2s;text-decoration:none;white-space:nowrap}
28+ .gh-stars:hover{color:var(--fg);border-color:rgba(255,255,255,0.2);background:rgba(255,255,255,0.06);text-decoration:none}
29+ .gh-star-icon{color:#e3b341}
30+ .gh-count{min-width:1ch}
2731.nav-cta{font-size:0.8rem;padding:6px 16px;border-radius:40px;background:var(--accent);color:#000;font-weight:600;transition:all 0.2s;border:none;cursor:pointer;white-space:nowrap;text-decoration:none;display:inline-block}
2832.nav-cta:hover{opacity:0.9;text-decoration:none;box-shadow:0 0 16px rgba(34,197,94,0.3)}
2933
@@ -102,22 +106,36 @@ const { active } = Astro.props;
102106 </a >
103107 </div >
104108 </div >
105- <a href =" /docs/ plans" class ={ active === ' plans' ? ' active' : ' ' } ><svg class =" nav-icon" viewBox =" 0 0 24 24" ><path d =" M12 2L2 7l10 5 10-5-10-5z" /><path d =" M2 17l10 5 10-5" /><path d =" M2 12l10 5 10-5" /></svg >Plans</a >
109+ <a href =" /plans" class ={ active === ' plans' ? ' active' : ' ' } ><svg class =" nav-icon" viewBox =" 0 0 24 24" ><path d =" M12 2L2 7l10 5 10-5-10-5z" /><path d =" M2 17l10 5 10-5" /><path d =" M2 12l10 5 10-5" /></svg >Plans</a >
106110 <a href =" /blog/" class ={ active === ' blog' ? ' active' : ' ' } >
107111 <svg class =" nav-icon" viewBox =" 0 0 24 24" ><path d =" M12 20h9" /><path d =" M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4z" /></svg >Blog
108112 </a >
109113 </div >
110114 <div class =" nav-divider" ></div >
111115 <div class =" nav-center" >
112- <a href =" /docs/" class ={ active === ' docs' ? ' active' : ' ' } >
113- <svg class =" nav-icon" viewBox =" 0 0 24 24" ><path d =" M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" /><polyline points =" 14 2 14 8 20 8" /></svg >Docs
114- </a >
116+ { active === ' home' ? (
117+ <a href = " #contact" >
118+ <svg class = " nav-icon" viewBox = " 0 0 24 24" ><path d = " M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" /><polyline points = " 22,6 12,13 2,6" /></svg >Contact Us
119+ </a >
120+ ) : (
121+ <a href = " /docs/" class = { active === ' docs' ? ' active' : ' ' } >
122+ <svg class = " nav-icon" viewBox = " 0 0 24 24" ><path d = " M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" /><polyline points = " 14 2 14 8 20 8" /></svg >Docs
123+ </a >
124+ )}
115125 </div >
116126 <div class =" nav-right" >
117- <a class =" gh-link" href =" https://github.com/TeoSlayer/pilotprotocol" title =" GitHub" >
118- <svg width =" 18" height =" 18" viewBox =" 0 0 24 24" fill =" currentColor" ><path d =" M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" /></svg >
119- </a >
120- <a class =" nav-cta" href =" /docs/getting-started" >Get Started</a >
127+ { active === ' home' ? (
128+ <a class = " gh-stars" href = " https://github.com/TeoSlayer/pilotprotocol" title = " Star on GitHub" >
129+ <svg width = " 16" height = " 16" viewBox = " 0 0 24 24" fill = " currentColor" ><path d = " M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" /></svg >
130+ <svg class = " gh-star-icon" width = " 14" height = " 14" viewBox = " 0 0 24 24" fill = " none" stroke = " currentColor" stroke-width = " 2" ><polygon points = " 12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2" /></svg >
131+ <span class = " gh-count" id = " gh-star-count" ></span >
132+ </a >
133+ ) : (
134+ <a class = " gh-link" href = " https://github.com/TeoSlayer/pilotprotocol" title = " GitHub" >
135+ <svg width = " 18" height = " 18" viewBox = " 0 0 24 24" fill = " currentColor" ><path d = " M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" /></svg >
136+ </a >
137+ )}
138+ <a class =" nav-cta" href ={ active === ' home' ? ' #install' : ' /docs/getting-started' } >Get Started</a >
121139 <button class =" nav-hamburger" onclick =" document .querySelector (' .nav-mobile' ).classList .toggle (' open' )" aria-label =" Menu" >
122140 <svg viewBox =" 0 0 24 24" ><line x1 =" 3" y1 =" 6" x2 =" 21" y2 =" 6" /><line x1 =" 3" y1 =" 12" x2 =" 21" y2 =" 12" /><line x1 =" 3" y1 =" 18" x2 =" 21" y2 =" 18" /></svg >
123141 </button >
@@ -129,9 +147,12 @@ const { active } = Astro.props;
129147 <a href =" /for/skills" ><svg viewBox =" 0 0 24 24" ><path d =" M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z" /><polyline points =" 3.27 6.96 12 12.01 20.73 6.96" /><line x1 =" 12" y1 =" 22.08" x2 =" 12" y2 =" 12" /></svg >Skill Zoo</a >
130148 <a href =" /for/setups" ><svg viewBox =" 0 0 24 24" ><circle cx =" 12" cy =" 12" r =" 3" /><path d =" M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z" /></svg >Setups</a >
131149 <div class =" mob-label" >Navigate</div >
132- <a href =" /docs/ plans" ><svg viewBox =" 0 0 24 24" ><path d =" M12 2L2 7l10 5 10-5-10-5z" /><path d =" M2 17l10 5 10-5" /><path d =" M2 12l10 5 10-5" /></svg >Plans</a >
150+ <a href =" /plans" ><svg viewBox =" 0 0 24 24" ><path d =" M12 2L2 7l10 5 10-5-10-5z" /><path d =" M2 17l10 5 10-5" /><path d =" M2 12l10 5 10-5" /></svg >Plans</a >
133151 <a href =" /blog/" ><svg viewBox =" 0 0 24 24" ><path d =" M12 20h9" /><path d =" M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4z" /></svg >Blog</a >
134152 <a href =" /docs/" ><svg viewBox =" 0 0 24 24" ><path d =" M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" /><polyline points =" 14 2 14 8 20 8" /></svg >Docs</a >
153+ { active === ' home' && (
154+ <a href = " #contact" ><svg viewBox = " 0 0 24 24" ><path d = " M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" /><polyline points = " 22,6 12,13 2,6" /></svg >Contact Us</a >
155+ )}
135156 </div >
136157 </div >
137158</nav >
0 commit comments