diff --git a/src/components/pages/ArchivesPage/ArchivesPage.jsx b/src/components/pages/ArchivesPage/ArchivesPage.jsx index 764d723..2752989 100644 --- a/src/components/pages/ArchivesPage/ArchivesPage.jsx +++ b/src/components/pages/ArchivesPage/ArchivesPage.jsx @@ -1,28 +1,30 @@ -import React from 'react'; -import { Link } from 'gatsby'; -import Layout from '@/components/layout/PageLayout/PageLayout'; -import Section from '@/components/shared/Section'; +import React from "react"; +import { Link } from "gatsby"; +import Layout from "@/components/layout/PageLayout/PageLayout"; +import Section from "@/components/shared/Section"; +import "./ArchivesPage.scss"; const ArchivesPage = ({ events }) => (
{events.map((event) => ( -
+

{event.title}

-

Date: {new Date(event.date).toLocaleDateString()}

-

Lieu: {event?.location?.name}

+

Date: {new Date(event.date).toLocaleDateString()}

+

Lieu: {event?.location?.name}

{event?.talks?.map((talk, index) => ( -
+

{talk?.title}

-

- {console.log(talk)} - Personne présentant: {talk?.authors?.name} - {!talk?.authors && - 'ERREUR: veuillez ajouter le fichier `.yml` pour cette personne dans le répertoire `data/authors`.'} +

+ Personne présentant: {talk?.authors?.name || ( + + ERREUR: veuillez ajouter le fichier `.yml` pour cette personne dans le répertoire `data/authors`. + + )}

))} - Lien vers l'évènement + Lien vers l'évènement
))}
diff --git a/src/components/pages/ArchivesPage/ArchivesPage.scss b/src/components/pages/ArchivesPage/ArchivesPage.scss index bc6c5fe..6ac1f56 100644 --- a/src/components/pages/ArchivesPage/ArchivesPage.scss +++ b/src/components/pages/ArchivesPage/ArchivesPage.scss @@ -1 +1,38 @@ -// TODO: fill this +.event-card { + background: #fff; + border: 1px solid #ddd; + border-radius: 8px; + margin: 16px 0; + padding: 16px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); +} + +.event-date, +.event-location, +.talk-author { + margin: 8px 0; + font-size: 1rem; +} + +.talk-card { + background: #f9f9f9; + border-left: 4px solid #007BFF; + padding: 8px 16px; + margin: 8px 0; +} + +.error-message { + color: #dc3545; +} + +.event-link { + display: inline-block; + margin-top: 8px; + color: #007BFF; + text-decoration: none; + transition: color 0.3s; + + &:hover { + color: #0056b3; + } +}