Skip to content
Open
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 src/components/PageHeader/RootPage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ const { title, subtitle } = Astro.props;
// to the header only when the filter by keyword is not present.
const routesWithFilter = ["/reference"];
const isFilterRoute = routesWithFilter.some((route) =>
Astro.url.pathname.includes(route)
Astro.url.pathname.includes(route),
);
const borderStyle = isFilterRoute ? "" : "border-b border-sidebar-type-color";
---

<div
class=`content-grid-simple min-h-[350px] h-[50vh] pt-[11.25rem] lg:pt-4xl bg-accent-color text-accent-type-color pb-md px-5 md:px-lg ${borderStyle}`
class=`content-grid-simple min-h-[350px] min-h-[50vh] h-auto pt-[11.25rem] lg:pt-4xl bg-accent-color text-accent-type-color pb-md px-5 md:px-lg ${borderStyle}`
>
<h1 class="whitespace-pre-line col-span-full mb-5">{title}</h1>
<p class="text-h3 !mt-0 mb-3xl col-span-2">{subtitle}</p>
Expand Down
8 changes: 5 additions & 3 deletions src/layouts/TutorialsLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const sections = categories.map((slug) => {
.filter((e: TutorialEntry) => e.data.category === slug)
.sort(
(a: TutorialEntry, b: TutorialEntry) =>
(a.data.categoryIndex ?? 1000) - (b.data.categoryIndex ?? 1000)
(a.data.categoryIndex ?? 1000) - (b.data.categoryIndex ?? 1000),
);

return { slug, name, sectionEntries };
Expand Down Expand Up @@ -55,7 +55,7 @@ setJumpToState({
</h2>
<ul class="content-grid border-b border-sidebar-type-color last:border-0">
{sectionEntries.map((entry: TutorialEntry, i: number) => (
<li class="col-span-3">
<li class="col-span-6 md:col-span-3">
<GridItemTutorial item={entry} lazyLoad={i > 3} />
</li>
))}
Expand All @@ -66,7 +66,9 @@ setJumpToState({

<section>
<h2 class="mb-gutter-md mt-0">
{t("tutorialCategories", "education-resources")}<a id="education-resources"></a> <!-- ✅ changed from tutorialsPage -->
{t("tutorialCategories", "education-resources")}<a
id="education-resources"></a>
<!-- ✅ changed from tutorialsPage -->
</h2>
<p>{t("tutorialsPage", "education-resources-snippet")}</p>
<LinkButton url="/education-resources" variant="link" class="mt-lg">
Expand Down