update to astro V2
This commit is contained in:
parent
082b193d23
commit
f24a432155
14 changed files with 789 additions and 796 deletions
|
@ -75,16 +75,20 @@ const sortedSnippets = localizedSnippets.sort(
|
|||
))
|
||||
}
|
||||
|
||||
<section class="region latest">
|
||||
<section class="region flow latest">
|
||||
<div class="flow latest__articles">
|
||||
<h2>{t("index.latestArticles")}</h2>
|
||||
<ListCards list={sortedArticles} routeName={t("article.titre")} />
|
||||
<p><a href={l("/articles")}>{t("index.allArticles")}</a></p>
|
||||
<p class="latest__link">
|
||||
<a href={l("/articles")}>{t("index.allArticles")}</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="flow latest__snippets">
|
||||
<h2>{t("index.latestSnippets")}</h2>
|
||||
<ListCards list={sortedSnippets} routeName={t("fragments.titre")} />
|
||||
<p><a href={l("/fragments")}>{t("index.allSnippets")}</a></p>
|
||||
<p class="latest__link">
|
||||
<a href={l("/fragments")}>{t("index.allSnippets")}</a>
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
</BaseLayout>
|
||||
|
@ -163,6 +167,14 @@ const sortedSnippets = localizedSnippets.sort(
|
|||
font-size: var(--size-1);
|
||||
}
|
||||
|
||||
.latest {
|
||||
--flow-space: var(--space-l-xl);
|
||||
}
|
||||
|
||||
.latest__link {
|
||||
text-align: end;
|
||||
}
|
||||
|
||||
@container section (min-width: 50rem) {
|
||||
.section__container {
|
||||
flex-direction: row;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue