Skip to content

Commit 935b7e1

Browse files
authored
Fixed Contact us anchor action and added a new github anchor (#320)
* Fixed Contact us anchor action and added a new github anchor * fix lint
1 parent 900bfd1 commit 935b7e1

File tree

3 files changed

+87
-11
lines changed

3 files changed

+87
-11
lines changed

src/app/[locale]/partners/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ export default function PartnersPage() {
437437

438438
<div className="text-center">
439439
<div className="flex flex-col sm:flex-row gap-4 justify-center items-center">
440-
<a
441-
href="#contact-us"
440+
<Link
441+
href="/#contact"
442442
className="inline-flex items-center px-8 py-4 bg-gradient-to-r from-purple-600 to-blue-600 hover:from-purple-700 hover:to-blue-700 text-white font-semibold rounded-lg transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-purple-500/50"
443443
>
444444
<svg
@@ -455,7 +455,7 @@ export default function PartnersPage() {
455455
/>
456456
</svg>
457457
{t("partnershipOpportunities.contactButton")}
458-
</a>
458+
</Link>
459459

460460
<a
461461
href="https://kubestellar.io/slack"

src/components/Navbar.tsx

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,8 @@ export default function Navbar() {
703703
</svg>
704704
{t("programs")}
705705
</Link>
706-
<a
707-
href="#contact-us"
706+
<Link
707+
href="/#contact"
708708
className="flex items-center px-4 py-2 text-sm text-gray-300 hover:bg-cyan-900/30 rounded transition-all duration-200 hover:text-cyan-300 hover:shadow-md"
709709
>
710710
<svg
@@ -721,7 +721,7 @@ export default function Navbar() {
721721
></path>
722722
</svg>
723723
{t("contactUs")}
724-
</a>
724+
</Link>
725725
<Link
726726
href="/partners"
727727
className="flex items-center px-4 py-2 text-sm text-gray-300 hover:bg-cyan-900/30 rounded transition-all duration-200 hover:text-cyan-300 hover:shadow-md"
@@ -834,6 +834,20 @@ export default function Navbar() {
834834
{githubStats.watchers}
835835
</span>
836836
</a>
837+
<a
838+
href="https://github.com/kubestellar/docs/issues"
839+
className="flex items-center px-4 py-2 text-sm text-gray-300 hover:bg-emerald-900/30 rounded transition-all duration-200 hover:text-emerald-300 hover:shadow-md"
840+
>
841+
<svg
842+
className="w-4 h-4 mr-2"
843+
fill="currentColor"
844+
viewBox="0 0 16 16"
845+
>
846+
<path d="M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z" />
847+
<path d="M8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2z" />
848+
</svg>
849+
Create Issue
850+
</a>
837851
</div>
838852
</div>
839853

@@ -1175,8 +1189,8 @@ export default function Navbar() {
11751189
</Link>
11761190
</div>
11771191
<div className="relative mb-2">
1178-
<a
1179-
href="#contact-us"
1192+
<Link
1193+
href="/#contact"
11801194
className="text-sm sm:text-base font-medium text-gray-300 flex items-center space-x-1 px-3 py-2 rounded-lg"
11811195
>
11821196
<div className="relative">
@@ -1195,7 +1209,7 @@ export default function Navbar() {
11951209
</svg>
11961210
</div>
11971211
<span>{t("contactUs")}</span>
1198-
</a>
1212+
</Link>
11991213
</div>
12001214
<div className="relative mb-4">
12011215
<Link
@@ -1318,6 +1332,28 @@ export default function Navbar() {
13181332
{githubStats.watchers}
13191333
</span>
13201334
</a>
1335+
1336+
{/* Create Issue */}
1337+
<a
1338+
href="https://github.com/kubestellar/docs/issues"
1339+
target="_blank"
1340+
rel="noopener noreferrer"
1341+
className="flex items-center justify-between px-3 py-2 rounded-lg max-w-xs"
1342+
>
1343+
<div className="flex items-center space-x-3">
1344+
<svg
1345+
className="w-5 h-5 mr-3 text-gray-300"
1346+
fill="currentColor"
1347+
viewBox="0 0 16 16"
1348+
>
1349+
<path d="M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z" />
1350+
<path d="M8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2z" />
1351+
</svg>
1352+
<span className="text-sm font-medium text-gray-300">
1353+
Create Issue
1354+
</span>
1355+
</div>
1356+
</a>
13211357
</div>
13221358
</div>
13231359
</div>

src/components/docs/DocsNavbar.tsx

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ export default function DocsNavbar() {
434434
Programs
435435
</Link>
436436
<Link
437-
href="/#contact-us"
437+
href="/#contact"
438438
className={dropdownItemClasses}
439439
>
440440
<svg className="w-5 h-5 mr-2.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
@@ -593,6 +593,46 @@ export default function DocsNavbar() {
593593
{githubStats.forks}
594594
</span>
595595
</a>
596+
<a
597+
href="https://github.com/kubestellar/kubestellar/watchers"
598+
target="_blank"
599+
rel="noopener noreferrer"
600+
className={`flex items-center justify-between px-3 py-2 text-sm transition-colors ${
601+
isDark
602+
? 'text-gray-300 hover:bg-neutral-800'
603+
: 'text-gray-700 hover:bg-gray-100'
604+
}`}
605+
>
606+
<span className="flex items-center gap-2">
607+
<svg className="w-3.5 h-3.5" fill="currentColor" viewBox="0 0 20 20">
608+
<path d="M10 2C5.454 2 1.73 5.11.458 9.09a1.5 1.5 0 000 1.82C1.73 14.89 5.454 18 10 18s8.27-3.11 9.542-7.09a1.5 1.5 0 000-1.82C18.27 5.11 14.546 2 10 2zm0 14c-3.866 0-7.09-2.61-8.13-6C2.91 6.61 6.134 4 10 4s7.09 2.61 8.13 6c-1.04 3.39-4.264 6-8.13 6zm0-8a2 2 0 110 4 2 2 0 010-4z" />
609+
</svg>
610+
Watch
611+
</span>
612+
<span className={`text-xs px-1.5 py-0.5 rounded ${
613+
isDark ? 'bg-neutral-800' : 'bg-gray-200'
614+
}`}>
615+
{githubStats.watchers}
616+
</span>
617+
</a>
618+
<a
619+
href="https://github.com/kubestellar/docs/issues"
620+
target="_blank"
621+
rel="noopener noreferrer"
622+
className={`flex items-center justify-between px-3 py-2 text-sm transition-colors ${
623+
isDark
624+
? 'text-gray-300 hover:bg-neutral-800'
625+
: 'text-gray-700 hover:bg-gray-100'
626+
}`}
627+
>
628+
<span className="flex items-center gap-2">
629+
<svg className="w-3.5 h-3.5" fill="currentColor" viewBox="0 0 16 16">
630+
<path d="M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8z"/>
631+
<path d="M8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"/>
632+
</svg>
633+
Create Issue
634+
</span>
635+
</a>
596636
</div>
597637
)}
598638
</div>
@@ -928,7 +968,7 @@ export default function DocsNavbar() {
928968
Programs
929969
</Link>
930970
{/* --- REMOVED LADDER LINK FROM HERE --- */}
931-
<Link href="/#contact-us" className={`flex items-center px-3 py-2 text-sm rounded-md transition-colors ${
971+
<Link href="/#contact" className={`flex items-center px-3 py-2 text-sm rounded-md transition-colors ${
932972
isDark
933973
? 'text-gray-300 hover:bg-neutral-800'
934974
: 'text-gray-700 hover:bg-gray-100'

0 commit comments

Comments
 (0)