22import { getCollection } from ' astro:content' ;
33import Layout from ' @layouts/SectionLayout.astro' ;
44import SprintCard from ' @components/SprintCard.astro' ;
5- // import Headline from "@ui/Headline.astro"
5+ import Headline from " @ui/Headline.astro"
66
77const sprints = await getCollection (" sprints" , ({ data }) => {
88 return import .meta .env .MODE === " production" ? data .draft !== true : true ;
@@ -11,10 +11,8 @@ const sprints = await getCollection("sprints", ({ data }) => {
1111---
1212
1313<Layout title =" Sprints & Workshops" description =" All in one" >
14- <main class =" min-h-screen py-8" >
15- <div class =" max-w-6xl mx-auto px-4" >
1614 <header class =" text-center mb-12" >
17- <h1 class = " text-5xl font-bold text-gray-900 mb-4 " > Sprints & Workshops</ h1 >
15+ <Headline title = " Sprints & Workshops" / >
1816 <p class =" text-xl text-gray-600 max-w-2xl mx-auto leading-relaxed" >
1917 Join collaborative coding sessions and hands-on workshops.
2018 Connect with maintainers, contribute to open source projects,
@@ -24,8 +22,8 @@ const sprints = await getCollection("sprints", ({ data }) => {
2422
2523 <div class =" flex flex-wrap gap-8 justify-center mb-8" >
2624 <div class =" flex flex-col gap-2" >
27- <label for =" level-filter" class =" font-semibold text-gray-700 text-sm " >Python Level:</label >
28- <select id =" level-filter" class =" px-4 py-2 border border-gray-300 rounded-lg bg-white text-sm min-w-[150px] focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent" >
25+ <label for =" level-filter" class =" font-semibold text-gray-700 text-lg " >Python Level:</label >
26+ <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" >
2927 <option value =" " >All Levels</option >
3028 <option value =" Any" >Any</option >
3129 <option value =" Beginner" >Beginner</option >
@@ -50,8 +48,7 @@ const sprints = await getCollection("sprints", ({ data }) => {
5048 <p class = " text-gray-500 text-lg" >No sprints are currently available. Check back soon!</p >
5149 </div >
5250 )}
53- </div >
54- </main >
51+ </Layout >
5552
5653 <script >
5754 document.addEventListener('DOMContentLoaded', () => {
@@ -87,4 +84,3 @@ const sprints = await getCollection("sprints", ({ data }) => {
8784 levelFilter?.addEventListener('change', filterSprints);
8885 });
8986 </script >
90- </Layout >
0 commit comments