Skip to content
Merged
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
17 changes: 15 additions & 2 deletions src/pages/talks/index.astro
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
---
import WipAlert from "../../components/wip-alert.astro";
import BaseLayout from "../../layouts/base.layout.astro";
import type { MarkdownResource } from "../../shared/astro";
import type { Talk } from "../../shared/talks";
const title = "Talks";
const talks = Object.values<MarkdownResource<Talk>>(
import.meta.glob("./*.md", { eager: true }),
);
---

<BaseLayout title={title}>
<div class="app-container">
<WipAlert />
<ul>
{
talks.map(({ frontmatter: talk }) => (
<li>
[{new Date(talk.date).toLocaleDateString()} ]
<a href={talk.url}>{talk.title}</a> ({talk.lang})
</li>
))
}
</ul>
</div>
</BaseLayout>
6 changes: 6 additions & 0 deletions src/pages/talks/peaks-2025.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Programmation fonctionnelle & Guide pour créer une appli PHP
date: 2025-02-20
lang: fr
url: https://www.youtube.com/watch?v=MtVA-NEi0PE
---
6 changes: 6 additions & 0 deletions src/pages/talks/solid-2023.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Principes SOLID épisode 1 - "Single Responsibility" (ou Responsabilité Unique)
date: 2023-09-14
lang: fr
url: https://www.youtube.com/watch?v=rEbsyedOrXE
---
4 changes: 4 additions & 0 deletions src/shared/astro.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export type MarkdownResource<T> = {
url: string;
frontmatter: T;
}
10 changes: 10 additions & 0 deletions src/shared/talks.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export enum TalkLangage {
FR = 'fr'
}

export type Talk = {
title: string;
date: Date;
lang: TalkLangage;
url: string;
}
1 change: 1 addition & 0 deletions src/styles/bootstrap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
@import "./components/navbar/navbar";
@import "./layout/footer";
@import "./layout/header";
@import "./layout/list";
@import "./layout/main";
@import "./theming/themes/default";
@import "./vendors/google-fonts";
7 changes: 7 additions & 0 deletions src/styles/layout/_list.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ul {
list-style: none;
margin-bottom: 2rem;
li {
margin-bottom: 1rem;
}
}
Loading