Skip to content

Commit d1927c7

Browse files
committed
UPDATE
1 parent 1666bf1 commit d1927c7

2 files changed

Lines changed: 21 additions & 8 deletions

File tree

components/layout/footer.tsx

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
"use client";
12
import React from "react";
23
import Link from "next/link";
34
import { BsGithub, BsLinkedin } from "react-icons/bs";
5+
import { usePathname } from "next/navigation";
46

57
const Links = [
68
{
@@ -20,16 +22,27 @@ const Links = [
2022
];
2123

2224
const 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

public/how-i-build.jpg

-170 KB
Loading

0 commit comments

Comments
 (0)