|
|
|
@ -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)} |
|
|
|
|
> |
|
|
|
|
<p className="text-white text-md transition-all duration-150"> |
|
|
|
|
<p className="text-white text-md transition-all duration-150 cursor-pointer"> |
|
|
|
|
{item.name} |
|
|
|
|
</p> |
|
|
|
|
</li> |
|
|
|
@ -83,7 +88,7 @@ const Header = (props: Props) => { |
|
|
|
|
</ul> |
|
|
|
|
|
|
|
|
|
<div className="flex gap-4"> |
|
|
|
|
<Button size="sm"> |
|
|
|
|
<Button size="sm" onClick={() => openLocalPdf()}> |
|
|
|
|
<div className="flex items-center gap-2"> |
|
|
|
|
<BsNewspaper /> |
|
|
|
|
Whitepaper |
|
|
|
@ -118,19 +123,20 @@ const Header = (props: Props) => { |
|
|
|
|
<div className="flex gap-10 items-center"> |
|
|
|
|
<ul className="flex gap-10"> |
|
|
|
|
{menuItems.map((item) => ( |
|
|
|
|
<li className="inline-block" key={item.path}> |
|
|
|
|
<a |
|
|
|
|
href="#" |
|
|
|
|
className="text-white text-lg transition-all duration-150" |
|
|
|
|
> |
|
|
|
|
<li |
|
|
|
|
className="inline-block" |
|
|
|
|
key={item.path} |
|
|
|
|
onClick={() => jumpToSection(item.id)} |
|
|
|
|
> |
|
|
|
|
<p className="text-white text-md transition-all duration-150 cursor-pointer"> |
|
|
|
|
{item.name} |
|
|
|
|
</a> |
|
|
|
|
</p> |
|
|
|
|
</li> |
|
|
|
|
))} |
|
|
|
|
</ul> |
|
|
|
|
|
|
|
|
|
<div className="flex gap-4"> |
|
|
|
|
<Button size="md"> |
|
|
|
|
<Button size="md" onClick={() => openLocalPdf()}> |
|
|
|
|
<div className="flex items-center gap-2"> |
|
|
|
|
<BsNewspaper /> |
|
|
|
|
Whitepaper |
|
|
|
|