|
1 | 1 | --- |
2 | 2 | import { getCollection } from 'astro:content'; |
3 | | -import Layout from '@layouts/SectionLayout.astro'; |
| 3 | +import { getEntry, render } from 'astro:content'; |
| 4 | +import Layout from '@layouts/MarkdownLayout.astro'; |
4 | 5 | import SprintCard from '@components/SprintCard.astro'; |
5 | 6 | import Headline from "@ui/Headline.astro" |
| 7 | +import Markdown from "@ui/Markdown.astro"; |
| 8 | +import TwoCols from "@components/TwoCols.astro"; |
| 9 | +import Prose from "@ui/Prose.astro"; |
| 10 | +
|
| 11 | +const entry = await getEntry('pages', 'sprints_info'); |
| 12 | +
|
| 13 | +if (!entry) { |
| 14 | + throw new Error('Could not find page entry.'); |
| 15 | +} |
| 16 | +
|
| 17 | +console.log(entry) |
| 18 | +const { Content } = await render(entry); |
6 | 19 |
|
7 | 20 | const sprints = await getCollection("sprints", ({ data }) => { |
8 | 21 | return import.meta.env.MODE === "production" ? data.draft !== true : true; |
9 | 22 | }); |
10 | 23 |
|
11 | 24 | --- |
12 | 25 |
|
13 | | -<Layout title="Sprints & Workshops" description="All in one"> |
14 | | - <header class="text-center mb-12"> |
15 | | - <Headline title="Sprints & Workshops" /> |
16 | | - <p class="text-xl text-gray-600 max-w-2xl mx-auto leading-relaxed"> |
17 | | - Join collaborative coding sessions and hands-on workshops. |
18 | | - Connect with maintainers, contribute to open source projects, |
19 | | - and learn new skills alongside fellow Python enthusiasts. |
20 | | - </p> |
21 | | - </header> |
22 | | - |
23 | | - <div class="flex flex-wrap gap-8 justify-center mb-8"> |
| 26 | +<Layout title=`${entry.title}` description=`${entry.description}` toc=true> |
| 27 | + |
| 28 | + <Markdown content={entry.body} /> |
| 29 | + <div class="flex flex-wrap gap-8 justify-center my-8"> |
24 | 30 | <div class="flex flex-col gap-2"> |
25 | 31 | <label for="level-filter" class="font-semibold text-gray-700 text-lg">Python Level:</label> |
26 | 32 | <select id="level-filter" class="px-4 py-2 border border-gray-300 rounded-lg bg-white text-lg min-w-[150px] focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"> |
|
0 commit comments