Skip to content

Commit 202d5d5

Browse files
committed
Update sprints
1 parent ab81522 commit 202d5d5

File tree

10 files changed

+52
-27
lines changed

10 files changed

+52
-27
lines changed

public/draft2.png

14 KB
Loading

src/components/SprintCard.astro

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ const { data, body } = sprint;
1616
// <a href={`/sprints/${slug}`} id={slug} class="text-blue-600 hover:text-blue-800 hover:underline"></a>
1717
---
1818

19-
<article class="sprint-card bg-white border border-gray-200 rounded-lg p-6 mb-8 shadow-sm hover:shadow-md transition-shadow duration-200" data-python-level={data.pythonLevel} data-room={data.room}>
19+
<article class=`${data.draft?"draft2":""} sprint-card bg-white border border-gray-200 rounded-lg p-6 mb-8 shadow-sm hover:shadow-md transition-shadow duration-200` data-python-level={data.pythonLevel} data-room={data.room}>
2020
<header class="mb-4">
2121
<h3 class="text-2xl font-semibold mb-2">
2222
{data.title}
2323
</h3>
24-
<div class="flex flex-wrap gap-4 text-sm text-gray-600">
24+
<div class="flex flex-wrap gap-4 text-lg text-gray-600">
2525
<span class="flex items-center gap-1">
2626
<span>👥</span>
2727
<span>{data.numberOfPeople}</span>
@@ -34,28 +34,33 @@ const { data, body } = sprint;
3434
</header>
3535

3636
<div class="space-y-4">
37-
<div class="text-sm">
38-
<span class="font-medium text-gray-900">Contact:</span>
37+
<div class="text-lg">
38+
<span class="text-gray-900">Contact:</span>
3939
<span class="text-gray-700">{data.contactPerson.name}</span>
4040
{data.contactPerson.email && (
4141
<span class="text-gray-600">
42-
{' '}(<a href={`mailto:${data.contactPerson.email}`} class="text-blue-600 hover:text-blue-800 hover:underline">{data.contactPerson.email}</a>)
42+
{' '}(<a href={`mailto:${data.contactPerson.email}`} class="text-primary hover:text-primary-hover underline">{data.contactPerson.email}</a>)
4343
</span>
4444
)}
4545
{data.contactPerson.github && (
4646
<span class="text-gray-600">
47-
{' '}(<a href={`https://github.com/${data.contactPerson.github}`} target="_blank" rel="noopener" class="text-blue-600 hover:text-blue-800 hover:underline">@{data.contactPerson.github}</a>)
47+
{' '}(<a href={`https://github.com/${data.contactPerson.github}`} target="_blank" rel="noopener" class="text-primary hover:text-primary-hover underline">@{data.contactPerson.github}</a>)
48+
</span>
49+
)}
50+
{data.contactPerson.twitter && (
51+
<span class="text-gray-600">
52+
{' '}(<a href={`https://x.com/${data.contactPerson.twitter}`} target="_blank" rel="noopener" class="text-primary hover:text-primary-hover underline">@{data.contactPerson.twitter}</a>)
4853
</span>
4954
)}
5055
</div>
5156

5257
{(data.links) && (
53-
<div class="text-sm">
58+
<div class="text-lg">
5459
<span class="font-medium text-gray-900">Links:</span>
5560
<ul class="mt-2 ml-6 space-y-1 list-disc">
5661
{data.links?.map((link) => (
57-
<li key={link.url}>
58-
<a href={link.url} target="_blank" rel="noopener" class="text-blue-600 hover:text-blue-800 hover:underline">{link.title}</a>
62+
<li>
63+
<a href={link.url} target="_blank" rel="noopener" class="text-primary hover:text-primary-hover underline ">{link.title}</a>
5964
</li>
6065
))}
6166
</ul>

src/content/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ const sprints = defineCollection({
265265
pythonLevel: z.enum(["Any", "Beginner", "Intermediate", "Advanced"]),
266266
contactPerson: z.object({
267267
name: z.string(),
268-
email: z.string().email().optional(),
269-
github: z.string().optional(),
270-
twitter: z.string().optional(),
268+
email: z.string().email().optional().nullable(),
269+
github: z.string().optional().nullable(),
270+
twitter: z.string().optional().nullable(),
271271
}),
272272
links: z
273273
.array(
File renamed without changes.

src/content/sprints/_sprints_template.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ numberOfPeople: "" # How many people you expect to be able to accommodate.
44
pythonLevel: "Any" # Any, Beginner, Intermediate, or Advanced.
55
contactPerson: # The main person to reach out to regarding the sprint.
66
name: ""
7-
8-
draft: true # Delete this when you PR your sprint.
7+
email:
8+
github:
9+
twitter:
910
links: # Add as many links as relevant.
1011
- title: "Project xyz GitHub repo"
1112
url: "https://github.com/xyz"
13+
draft: true # Keep this true when you send PR.
1214
---
1315

1416
Your sprint/project description goes here.

src/content/sprints/beeware.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ numberOfPeople: "TBA"
44
pythonLevel: "Beginner"
55
contactPerson:
66
name: "Russell Keith-Magee"
7-
7+
email:
88
links:
99
- title: "BeeWare GitHub"
1010
url: "https://github.com/beeware"

src/content/sprints/cpython.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ numberOfPeople: "TBA"
44
pythonLevel: "Intermediate"
55
contactPerson:
66
name: "Petr Viktorin"
7-
7+
email:
88
links:
9-
- title: "Code of Conduct"
10-
url: "https://www.python.org/psf/conduct/"
119
- title: "CPython's Developer Guide"
1210
url: "https://devguide.python.org/"
11+
- title: "Code of Conduct"
12+
url: "https://www.python.org/psf/conduct/"
1313
- title: "Easy Issues"
1414
url: "https://github.com/python/cpython/issues?q=is%3Aissue+is%3Aopen+label%3Aeasy"
1515
---
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: "Secret project"
3+
numberOfPeople: "5"
4+
pythonLevel: "Any"
5+
contactPerson:
6+
name: "Nikoś Hell"
7+
email:
8+
github: "nikoshell"
9+
twitter: "nikoshell20"
10+
links:
11+
- title: "Secret GitHub repo"
12+
url: "https://github.com/nikoshell/secret"
13+
draft: true
14+
---
15+
16+
Your sprint/project description goes here.

src/pages/sprints.astro

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { getCollection } from 'astro:content';
33
import Layout from '@layouts/SectionLayout.astro';
44
import SprintCard from '@components/SprintCard.astro';
5-
// import Headline from "@ui/Headline.astro"
5+
import Headline from "@ui/Headline.astro"
66
77
const 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>

src/styles/global.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,12 @@ main a[href^="#"]::before {
252252
background-color: white;
253253
}
254254

255+
.draft2 {
256+
background: url("/draft2.png");
257+
background-size: 25%;
258+
background-color: white;
259+
}
260+
255261
.social-icon {
256262
display: inline-flex;
257263
align-items: center;

0 commit comments

Comments
 (0)