les-particules-org/src/pages/index.astro

95 lines
2 KiB
Text
Raw Normal View History

2023-01-30 22:49:01 +01:00
---
import Layout from '../layouts/Layout.astro';
import Card from '../components/Card.astro';
2024-01-02 00:34:17 +01:00
import { fetchEvenements } from "../lib/contentful";
import Evenement from "../components/Evenement.astro";
2024-11-12 15:56:02 +01:00
export const prerender = false
2024-01-02 00:34:17 +01:00
const evenements = await fetchEvenements()
2023-01-30 22:49:01 +01:00
---
<Layout title="Les Particules">
2024-01-02 00:34:17 +01:00
<p class="instructions">
La troupe d'improvisation théâtrale chatouilleuse, curieuse, créative et autogérée<br/>
📌 Albi, Occitanie
</p>
<div class="dates">
<div class="prochainement">Retrouvez-nous prochainement&nbsp;<span>&rarr;</span></div>
<div class="evenements">
{evenements.map(evenement => (
<Evenement evenement={evenement} />
))}
2023-02-04 23:00:56 +01:00
</div>
2024-01-02 00:34:17 +01:00
</div>
<ul role="list" class="link-card-grid">
<Card
title="Les Particules Fines"
href="/fines"
>
Cours dimpro adultes débutant·e·s
2024-01-02 00:34:17 +01:00
</Card>
<Card
href="./inscription-newsletter"
title="Newsletter"
>
Tous nos évènements directement dans votre boite aux lettres !
</Card>
<Card
href="/contact"
title="Contact"
>
Écrivez-nous ou suivez-nous sur les réseaux
</Card>
</ul>
2023-01-30 22:49:01 +01:00
</Layout>
<style>
h1 {
font-size: 3rem;
font-weight: 800;
margin: 0;
}
.text-gradient {
background-image: var(--accent-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-size: 400%;
2024-01-02 00:34:17 +01:00
background-position: 0;
2023-01-30 22:49:01 +01:00
}
.instructions, .dates {
2023-01-30 22:49:01 +01:00
line-height: 1.6;
margin: 1rem 0;
border: 1px solid rgba(var(--accent), 25%);
background-color: white;
padding: 1rem;
border-radius: 0.4rem;
}
.instructions strong {
color: rgb(var(--accent));
}
.link-card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(24ch, 1fr));
gap: 1rem;
padding: 0;
}
2024-01-02 00:34:17 +01:00
.evenements {
display: flex;
flex-direction: column;
}
2024-01-02 00:34:17 +01:00
.dates {
box-shadow: 0.2em 0.2em 1em black;
.prochainement {
font-size: 1.2em;
font-weight: 700;
margin-bottom: 1em;
}
}
.dates ul {
list-style: none;
}
2023-01-30 22:49:01 +01:00
</style>