Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding videos on open source #1361

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions components/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -10,6 +34,7 @@ import { SocialMediaIconsList } from 'components/SocialMedia/SocialMediaIconsLis
export const Header: FC = () => {
const { toggleNav } = useContext(GlobalContext)

main
return (
<header className="fixed top-0 left-0 z-30 row-start-1 row-end-2 flex h-[76px] w-screen items-center justify-between">
<div className="bg-base-200 h-full w-fit flex-none px-6 py-4 dark:bg-gray-900 lg:w-[290px]">
Expand All @@ -18,6 +43,16 @@ export const Header: FC = () => {
</Link>
</div>
<div className="bg-base-200 relative h-full grow px-8 dark:bg-gray-900 lg:bg-gray-100 lg:dark:bg-[#101623]">
<Link
className="github-button"
href="https://github.com/rupali-codes/LinksHub"
data-icon="octicon-repo-forked"
data-size="large"
data-show-count="true"
aria-label="Fork rupali-codes/LinksHub on GitHub"
>
Fork
</Link>
<TopBar className="absolute left-8 hidden h-full md:flex" />
<div className="absolute right-8 flex h-full gap-4">
<SocialMediaIconsList className="hidden lg:flex" />
Expand Down
9 changes: 9 additions & 0 deletions database/opensource/videos.json
Original file line number Diff line number Diff line change
@@ -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"
}
]