File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ "use client" ;
12import React from "react" ;
23import Link from "next/link" ;
34import { BsGithub , BsLinkedin } from "react-icons/bs" ;
5+ import { usePathname } from "next/navigation" ;
46
57const Links = [
68 {
@@ -20,16 +22,27 @@ const Links = [
2022] ;
2123
2224const Footer = ( ) => {
25+ const path = usePathname ( ) ;
26+
2327 return (
2428 < footer className = "border-overlay dark:border-charcoal-gray mx-auto flex max-w-3xl items-center justify-between border-x border-y border-b-0 px-6 py-3 dark:text-white" >
25- < Link
26- target = "_blank"
27- href = "https://x.com/thegitcoder"
28- className = "group text-[11px] transition-all duration-300"
29- >
30- Built by < span className = "group-hover:underline" > Gitcoder</ span > { " " }
31- < span className = "text-[13px]" > ⟡</ span >
32- </ Link >
29+ { path === "/" ? (
30+ < Link
31+ href = "/how-i-build"
32+ className = "text-[11px] transition-all duration-300 hover:underline"
33+ >
34+ How I build ?
35+ </ Link >
36+ ) : (
37+ < Link
38+ target = "_blank"
39+ href = "https://x.com/thegitcoder"
40+ className = "group text-[11px] transition-all duration-300"
41+ >
42+ Built by < span className = "group-hover:underline" > Gitcoder</ span > { " " }
43+ < span className = "text-[13px]" > ⟡</ span >
44+ </ Link >
45+ ) }
3346 < ul className = "flex gap-1 text-lg" >
3447 { Links . map ( ( link ) => (
3548 < a
You can’t perform that action at this time.
0 commit comments