feat(nav): Go to Library button on the marketing site
deploy / build-and-deploy (push) Canceled after 0s
deploy / build-and-deploy (push) Canceled after 0s
This commit is contained in:
@@ -6,7 +6,6 @@ const LINKS = [
|
|||||||
{ href: "#contents", label: "Contents" },
|
{ href: "#contents", label: "Contents" },
|
||||||
{ href: "#letter", label: "Why" },
|
{ href: "#letter", label: "Why" },
|
||||||
{ href: "#faq", label: "FAQ" },
|
{ href: "#faq", label: "FAQ" },
|
||||||
{ href: "/read", label: "Library" },
|
|
||||||
];
|
];
|
||||||
|
|
||||||
function NavItem({ href, label, onClick }) {
|
function NavItem({ href, label, onClick }) {
|
||||||
@@ -67,9 +66,14 @@ export default function Nav() {
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a href="#get" className="btn btn-primary nav-cta">
|
<div className="nav-actions">
|
||||||
Get the preview
|
<Link href="/read" className="btn btn-ghost nav-cta" onClick={close}>
|
||||||
</a>
|
Go to Library
|
||||||
|
</Link>
|
||||||
|
<a href="#get" className="btn btn-primary nav-cta">
|
||||||
|
Get the preview
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
@@ -87,6 +91,9 @@ export default function Nav() {
|
|||||||
{LINKS.map((l) => (
|
{LINKS.map((l) => (
|
||||||
<NavItem key={l.href} href={l.href} label={l.label} onClick={close} />
|
<NavItem key={l.href} href={l.href} label={l.label} onClick={close} />
|
||||||
))}
|
))}
|
||||||
|
<Link href="/read" className="btn btn-ghost" onClick={close}>
|
||||||
|
Go to Library
|
||||||
|
</Link>
|
||||||
<a href="#get" className="btn btn-primary" onClick={close}>
|
<a href="#get" className="btn btn-primary" onClick={close}>
|
||||||
Get the preview
|
Get the preview
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user