diff --git a/components/Header/Header.tsx b/components/Header/Header.tsx index 3e87347eb..77d5e9b07 100644 --- a/components/Header/Header.tsx +++ b/components/Header/Header.tsx @@ -1,3 +1,27 @@ + adding-videos-on-open-source +import { FC, useContext } from "react"; +import Link from "next/link"; +import { AiOutlineMenu } from "react-icons/ai"; +import Logo from "components/logo"; +import { GlobalContext } from "context/GlobalContext"; +import { ThemeToggler } from "../ThemeToggler/themeToggler"; +import { TopBar } from "../TopBar/TopBar"; +import { SocialMediaIconsList } from "components/SocialMedia/SocialMediaIconsList"; +import { useEffect } from "react"; + +export const Header:FC<{}> = () => { + const { toggleNav } = useContext(GlobalContext); + useEffect(() => { + const script = document.createElement('script') + script.src = 'https://buttons.github.io/buttons.js' + script.async = true + script.defer = true + document.head.appendChild(script) + return () => { + document.head.removeChild(script) + } + }, []) + import { FC, useContext } from 'react' import Link from 'next/link' import { AiOutlineMenu } from 'react-icons/ai' @@ -10,6 +34,7 @@ import { SocialMediaIconsList } from 'components/SocialMedia/SocialMediaIconsLis export const Header: FC = () => { const { toggleNav } = useContext(GlobalContext) + main return (
@@ -18,6 +43,16 @@ export const Header: FC = () => {
+ + Fork +
diff --git a/database/opensource/videos.json b/database/opensource/videos.json new file mode 100644 index 000000000..cb92dcb12 --- /dev/null +++ b/database/opensource/videos.json @@ -0,0 +1,9 @@ +[ + { + "name": "How I choose Maintainers", + "description": "Even though the focus is on Linkfree, Eddie gives great advice on how people can maintain another person's open source project.", + "url": "https: //youtu.be/WPaN9vIyqt4", + "category": "open source", + "subcategory": "videos" + } +] \ No newline at end of file