added seeder for legacy apge and added the legacy page
This commit is contained in:
@@ -361,43 +361,13 @@ export default function About({ loaderData }: Route.ComponentProps) {
|
||||
<div className="flex flex-wrap items-center gap-md">
|
||||
<Button
|
||||
as={Link}
|
||||
to={sectionPath("whatWeDo", locale)}
|
||||
to={sectionPath("legacy", locale)}
|
||||
prefetch="intent"
|
||||
size="lg"
|
||||
iconEnd={<ArrowIcon />}
|
||||
>
|
||||
{t("actions.learnWhatWeDo")}
|
||||
{copy.legacyLinkLabel}
|
||||
</Button>
|
||||
|
||||
{/* The draft marks the legacy page as "[link: …]" with no target
|
||||
yet, so this second button appears only once the CMS gives it
|
||||
a real one. */}
|
||||
{legacy.link ? (
|
||||
legacy.link.isExternal ? (
|
||||
<Button
|
||||
as="a"
|
||||
href={legacy.link.href}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
variant="secondary"
|
||||
size="lg"
|
||||
iconEnd={<ArrowIcon />}
|
||||
>
|
||||
{legacy.link.label}
|
||||
</Button>
|
||||
) : (
|
||||
<Button
|
||||
as={Link}
|
||||
to={legacy.link.href}
|
||||
prefetch="intent"
|
||||
variant="secondary"
|
||||
size="lg"
|
||||
iconEnd={<ArrowIcon />}
|
||||
>
|
||||
{legacy.link.label}
|
||||
</Button>
|
||||
)
|
||||
) : null}
|
||||
</div>
|
||||
</div>
|
||||
</PageSection>
|
||||
|
||||
Reference in New Issue
Block a user