shellphone.app/app/features/public-area/components/header.tsx

35 lines
873 B
TypeScript
Raw Normal View History

2022-07-08 23:34:18 +00:00
import { Link } from "@remix-run/react";
2021-08-25 08:52:24 +00:00
2022-07-08 23:34:18 +00:00
import Button from "./button";
import Container from "./container";
import Logo from "./logo";
import NavLink from "./nav-link";
2021-09-01 15:44:15 +00:00
2022-07-08 23:34:18 +00:00
export default function Header() {
2021-09-01 15:44:15 +00:00
return (
2022-07-08 23:34:18 +00:00
<header className="py-10">
<Container>
<nav className="relative z-50 flex justify-between">
<div className="flex items-center md:gap-x-12">
<Link to="/" aria-label="Home">
<Logo />
2021-08-25 08:52:24 +00:00
</Link>
</div>
2022-07-08 23:34:18 +00:00
<div className="flex items-center gap-x-5 md:gap-x-8">
<NavLink href="/sign-in">Have an account?</NavLink>
<Button
variant="solid"
color="primary"
onClick={() => {
document.querySelector("#get-started-today")?.scrollIntoView({ behavior: "smooth" });
}}
>
2022-07-08 23:34:18 +00:00
<span>Request access</span>
</Button>
</div>
2022-07-08 23:34:18 +00:00
</nav>
</Container>
</header>
);
}