Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/landing/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ function LGap() {

function LFail() {
return (
<Box as="section" css={s.section} id="how">
<Box as="section" css={s.section}>
<Box css={s.wrap}>
<Box css={s.sectionHead}>
<Eyebrow as="p" css={{ margin: "0 0 16px" }}>Why it matters</Eyebrow>
Expand Down Expand Up @@ -501,7 +501,7 @@ function LFail() {

function LRead() {
return (
<Box as="section" css={{ ...s.section, ...s.sectionBand }}>
<Box as="section" css={{ ...s.section, ...s.sectionBand }} id="how">
<Box css={s.wrap}>
<Box css={s.sectionHead}>
<Eyebrow as="p" css={{ margin: "0 0 16px" }}>The assessment</Eyebrow>
Expand Down
7 changes: 3 additions & 4 deletions components/layout/SiteHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,11 @@ type SiteHeaderProps = {

/** Shared site header — the landing nav, reused across the landing, assessment,
and methodology. The "Assess your validator" CTA hides on /assess (you're
already there); "How it works" jumps to the landing's section from inner pages. */
already there); "How it works" links to the landing's #how section (via
next/link so it carries the basePath). */
export function SiteHeader({ contentWidth = 1140 }: SiteHeaderProps) {
const router = useRouter();
const onLanding = router.pathname === "/";
const onAssess = router.pathname === "/assess";
const howHref = onLanding ? "#how" : "/#how";

return (
<Box as="nav" css={bar}>
Expand All @@ -107,7 +106,7 @@ export function SiteHeader({ contentWidth = 1140 }: SiteHeaderProps) {
</BrandLink>
<TopSpacer />
<Box css={links}>
<Box as="a" href={howHref} css={navLink}>
<Box as={NextLink} href="/#how" css={navLink}>
How it works
</Box>
<TopNavLink href={METHODOLOGY_PATH}>Methodology</TopNavLink>
Expand Down
Loading