diff --git a/src/assets/Whitepaper.pdf b/src/assets/Whitepaper.pdf new file mode 100644 index 0000000..7387da5 Binary files /dev/null and b/src/assets/Whitepaper.pdf differ diff --git a/src/shared/components/Header.tsx b/src/shared/components/Header.tsx index 1da4bd6..cd50236 100644 --- a/src/shared/components/Header.tsx +++ b/src/shared/components/Header.tsx @@ -2,7 +2,7 @@ import React from "react"; import Button from "./Button"; import robotLogo from "../../assets/images/logo-robot.png"; import { BsNewspaper, BsGithub } from "react-icons/bs"; - +import Whitepaper from "../../assets/Whitepaper.pdf"; type Props = {}; const menuItems = [ @@ -49,6 +49,11 @@ const Header = (props: Props) => { } }; + const openLocalPdf = () => { + const pdf = Whitepaper; + window.open(pdf); + }; + return ( <> {isScrolled ? ( @@ -75,7 +80,7 @@ const Header = (props: Props) => { key={item.path} onClick={() => jumpToSection(item.id)} > -

+

{item.name}

@@ -83,7 +88,7 @@ const Header = (props: Props) => {
-