This repository was archived by the owner on Oct 2, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,10 @@ import { Bars3Icon, XMarkIcon } from "@heroicons/react/24/outline";
16
16
import { signIn , signOut } from "next-auth/react" ;
17
17
import Image from "next/image" ;
18
18
import Link from "next/link" ;
19
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" ;
19
20
20
21
import { classNames } from "@/utils/classNames" ;
22
+ import socialIcon from "@/config/socialIcon" ;
21
23
22
24
const navigation = [
23
25
{ name : "Home" , href : "/" , current : true } ,
@@ -65,6 +67,19 @@ export default function Header({ session, user }) {
65
67
66
68
{ /* Right section on desktop */ }
67
69
< div className = "hidden lg:ml-4 lg:flex lg:items-center lg:pr-0.5" >
70
+ < Link
71
+ className = "relative flex-shrink-0 rounded-full p-1 text-indigo-200 hover:text-white focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-indigo-600"
72
+ href = "https://github.com/EddieHubCommunity/CreatorsRegistry"
73
+ >
74
+ < span className = "absolute -inset-1.5" />
75
+ < span className = "sr-only" > GitHub Repo</ span >
76
+ < FontAwesomeIcon
77
+ icon = { socialIcon ( "github" ) }
78
+ className = "h-6 w-6"
79
+ style = { { height : 25 , width : 25 } }
80
+ />
81
+ </ Link >
82
+
68
83
{ ! session && (
69
84
< button
70
85
type = "button"
Original file line number Diff line number Diff line change 1
1
import {
2
2
faDev ,
3
+ faGithub ,
3
4
faHashnode ,
4
5
faTwitch ,
5
6
faTwitter ,
@@ -25,6 +26,9 @@ export default function socialIcon(name) {
25
26
case "devto" :
26
27
icon = faDev ;
27
28
break ;
29
+ case "github" :
30
+ icon = faGithub ;
31
+ break ;
28
32
}
29
33
return icon ;
30
34
}
You can’t perform that action at this time.
0 commit comments