base setup

This commit is contained in:
Nico 2022-12-02 11:21:18 +01:00
commit 688d794dc7
30 changed files with 4362 additions and 0 deletions

View file

@ -0,0 +1,15 @@
---
import { Picture } from "@astrojs/image/components";
const { src, alt, width, height, ...attrs } = Astro.props;
---
<Picture
src={src}
widths={[320, 640, 768, attrs.width]}
aspectRatio={`${width}:${height}`}
sizes={`(max-width: ${attrs.width}px) 100vw, ${attrs.width}px`}
formats={["avif", "webp"]}
alt={alt ? alt : ""}
{...attrs}
/>

View file

@ -0,0 +1,5 @@
---
const { title, url } = Astro.props;
---
<a href={url}>{title}</a>

View file

@ -0,0 +1,7 @@
---
import Navigation from '../components/Navigation.astro';
---
<header role="banner">
<Navigation />
</header>

View file

@ -0,0 +1,10 @@
---
---
<nav role="navigation" aria-label="Navigation principale">
<ul>
<li><a href="/">Accueil</a></li>
<li><a href="/articles/">Articles</a></li>
<li><a href="/tags/">Catégories</a></li>
</ul>
</nav>