|
|
|
@ -6,7 +6,8 @@ import { BsNewspaper, BsGithub } from "react-icons/bs"; |
|
|
|
|
import Whitepaper from "../../assets/Whitepaper.pdf"; |
|
|
|
|
import { MdLanguage } from "react-icons/md"; |
|
|
|
|
import { locales, resources } from "../../i18n/i18n"; |
|
|
|
|
import { HashLink as Link } from "react-router-hash-link"; |
|
|
|
|
import { HashLink } from "react-router-hash-link"; |
|
|
|
|
import { Link } from "react-router-dom"; |
|
|
|
|
|
|
|
|
|
type Props = {}; |
|
|
|
|
|
|
|
|
@ -126,7 +127,7 @@ const Header = (props: Props) => { |
|
|
|
|
<div className="flex lg:gap-4 gap-10 items-center"> |
|
|
|
|
<ul className="flex lg:gap-4 "> |
|
|
|
|
{menuItems.map((item) => ( |
|
|
|
|
<Link |
|
|
|
|
<HashLink |
|
|
|
|
to={`${item.path}#${item.id}`} |
|
|
|
|
className="flex my-auto item-center" |
|
|
|
|
> |
|
|
|
@ -139,7 +140,7 @@ const Header = (props: Props) => { |
|
|
|
|
{item.name} |
|
|
|
|
</p> |
|
|
|
|
</li> |
|
|
|
|
</Link> |
|
|
|
|
</HashLink> |
|
|
|
|
))} |
|
|
|
|
<li className="inline-block group relative"> |
|
|
|
|
<p className="text-white text-md transition-all duration-150 cursor-pointer transform motion-safe:group-hover:scale-110 group-hover:text-orange-500"> |
|
|
|
@ -148,7 +149,10 @@ const Header = (props: Props) => { |
|
|
|
|
<div className=" h-10 w-[140px] absolute top-3"></div> |
|
|
|
|
<ul className="hidden group-hover:flex animate-show-list-language absolute top-10 left-[-8px] flex-col gap-y-4 pt-2 bg-slate-800 w-[200px] min-h-[50px] rounded"> |
|
|
|
|
{menuSGPTProducts.map((item) => ( |
|
|
|
|
<Link to="/healthcare"> |
|
|
|
|
<HashLink |
|
|
|
|
to="/healthcare#firstSection" |
|
|
|
|
preventScrollReset={false} |
|
|
|
|
> |
|
|
|
|
<li |
|
|
|
|
className="inline-block pl-2 " |
|
|
|
|
key={item.path} |
|
|
|
@ -157,7 +161,7 @@ const Header = (props: Props) => { |
|
|
|
|
{item.name} |
|
|
|
|
</p> |
|
|
|
|
</li> |
|
|
|
|
</Link> |
|
|
|
|
</HashLink> |
|
|
|
|
))} |
|
|
|
|
</ul> |
|
|
|
|
</li> |
|
|
|
@ -209,7 +213,7 @@ const Header = (props: Props) => { |
|
|
|
|
<div className="flex flex-col pl-[20px] h-full"> |
|
|
|
|
<ul className="flex flex-col gap-3 "> |
|
|
|
|
{menuItems.map((item, index) => ( |
|
|
|
|
<Link to={`${item.path}#${item.id}`}> |
|
|
|
|
<HashLink to={`${item.path}#${item.id}`}> |
|
|
|
|
<li |
|
|
|
|
className="inline-block" |
|
|
|
|
key={item.path} |
|
|
|
@ -219,7 +223,7 @@ const Header = (props: Props) => { |
|
|
|
|
{item.name} |
|
|
|
|
</p> |
|
|
|
|
</li> |
|
|
|
|
</Link> |
|
|
|
|
</HashLink> |
|
|
|
|
))} |
|
|
|
|
<li |
|
|
|
|
className="inline-block" |
|
|
|
@ -248,7 +252,10 @@ const Header = (props: Props) => { |
|
|
|
|
{/* <div className=" h-40 w-[140px] absolute top-3"></div> */} |
|
|
|
|
<ul className="hidden group-hover:flex animate-show-list-language flex-col gap-y-4 "> |
|
|
|
|
{menuSGPTProducts.map((item, index) => ( |
|
|
|
|
<Link to="/healthcare"> |
|
|
|
|
<HashLink |
|
|
|
|
to="/healthcare#firstSection" |
|
|
|
|
preventScrollReset={false} |
|
|
|
|
> |
|
|
|
|
<li |
|
|
|
|
className="lng-item relative group/lng-item w-fit hover:text-orange-400 animate-show" |
|
|
|
|
key={index} |
|
|
|
@ -257,7 +264,7 @@ const Header = (props: Props) => { |
|
|
|
|
{item.name} |
|
|
|
|
<div className="absolute bottom-0 bg-white h-[1px] w-0 animate-show group-hover/lng-item:w-full group-hover/lng-item:bg-orange-400"></div> |
|
|
|
|
</li> |
|
|
|
|
</Link> |
|
|
|
|
</HashLink> |
|
|
|
|
))} |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
@ -309,17 +316,19 @@ const Header = (props: Props) => { |
|
|
|
|
<div className="flex gap-6 items-center"> |
|
|
|
|
<ul className="flex gap-6"> |
|
|
|
|
{menuItems.map((item, index) => ( |
|
|
|
|
<Link to={`${item.path}#${item.id}`}> |
|
|
|
|
<HashLink |
|
|
|
|
to={`${item.path}#${item.id}`} |
|
|
|
|
key={item.path + index} |
|
|
|
|
> |
|
|
|
|
<li |
|
|
|
|
className="inline-block " |
|
|
|
|
key={item.path + index} |
|
|
|
|
onClick={() => jumpToSection(item.id)} |
|
|
|
|
> |
|
|
|
|
<p className="text-white text-md transition-all duration-150 cursor-pointer hover:text-orange-400"> |
|
|
|
|
{item.name} |
|
|
|
|
</p> |
|
|
|
|
</li> |
|
|
|
|
</Link> |
|
|
|
|
</HashLink> |
|
|
|
|
))} |
|
|
|
|
<li className="inline-block group relative"> |
|
|
|
|
<p className="text-white text-md transition-all duration-150 cursor-pointer transform group-hover:text-orange-400"> |
|
|
|
@ -328,13 +337,16 @@ const Header = (props: Props) => { |
|
|
|
|
<div className=" h-10 w-[140px] absolute top-3"></div> |
|
|
|
|
<ul className="hidden group-hover:flex animate-show-list-language w-[250px] absolute top-10 flex-col gap-y-4 "> |
|
|
|
|
{menuSGPTProducts.map((item) => ( |
|
|
|
|
<Link to="/healthcare"> |
|
|
|
|
<HashLink |
|
|
|
|
to="/healthcare#firstSection" |
|
|
|
|
preventScrollReset={false} |
|
|
|
|
> |
|
|
|
|
<li className="inline-block " key={item.path}> |
|
|
|
|
<p className="text-white text-md transition-all duration-150 cursor-pointer transform hover:text-orange-500"> |
|
|
|
|
{item.name} |
|
|
|
|
</p> |
|
|
|
|
</li> |
|
|
|
|
</Link> |
|
|
|
|
</HashLink> |
|
|
|
|
))} |
|
|
|
|
</ul> |
|
|
|
|
</li> |
|
|
|
@ -364,7 +376,7 @@ const Header = (props: Props) => { |
|
|
|
|
<Button size="sm" onClick={() => openLocalPdf()}> |
|
|
|
|
<div className="flex items-center gap-2"> |
|
|
|
|
<BsNewspaper /> |
|
|
|
|
Whitepaper11 |
|
|
|
|
Whitepaper |
|
|
|
|
</div> |
|
|
|
|
</Button> |
|
|
|
|
<Button size="sm"> |
|
|
|
|