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
22 changes: 22 additions & 0 deletions _includes/event-cards.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
{% assign event_type = post.event.event_type | downcase %}
{% assign event_type_label = "" %}
{% if event_type == "training" %}
{% assign event_type_label = "Training" %}
{% elsif event_type == "sprint" %}
{% assign event_type_label = "Sprint" %}
{% elsif event_type == "talk" %}
{% assign event_type_label = "Talk" %}
{% elsif event_type == "community" %}
{% assign event_type_label = "Community event" %}
{% endif %}

{% if include.compact %}
<article class="event-card event-card--compact">
<div class="event-card__content">
<div class="event-card__details">
{% if event_type_label != "" %}
<span class="event-card__type event-card__type--{{ event_type }}">
{{ event_type_label }}
</span>
{% endif %}
<p class="event-card__date-line">{{ post.event.start_date | date: "%b %-d, %Y" }}</p>
<h3 class="event-card__title">{{ post.title | markdownify | strip_html }}</h3>
<p class="event-card__location">{{ post.event.location }}</p>
Expand Down Expand Up @@ -39,6 +56,11 @@ <h3 class="event-card__title">{{ post.title | markdownify | strip_html }}</h3>
</div>
</div>
<div class="event-card__details">
{% if event_type_label != "" %}
<span class="event-card__type event-card__type--{{ event_type }}">
{{ event_type_label }}
</span>
{% endif %}
<h3 class="event-card__title">{{ post.title | markdownify | strip_html }}</h3>
<p>{{ post.excerpt }}</p>
{% if include.show_button != false %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ event:
start_date: 2024-04-29
cost: 10$
location: Online
event_type: training
permalink: /events/april-2024-create-python-package-pyopensci-online-workshop.html
header:
overlay_image: images/headers/pyopensci-sustainability.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ event:
start_date: 2024-07-13
cost: Registration through the scipy meeting
location: Online
event_type: training
classes: wide
type: "event"
comments: true
Expand Down
1 change: 1 addition & 0 deletions _posts/events/2024-08-09-pyopensci-fall-festival.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ event:
start_date: "2024-10-28"
end_date: "2024-11-01"
location: Online using Spatial Chat
event_type: community
permalink: /events/pyopensci-2024-fall-festival.html
header:
overlay_image: images/headers/pyopensci-sustainability.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ author: "pyopensci"
event:
start_date: "2025-05-05"
location: Online
event_type: community
permalink: /events/pyopensci-community-call-may-2025.html
header:
overlay_image: images/headers/pyopensci-sustainability.png
Expand Down
1 change: 1 addition & 0 deletions _posts/events/2025-06-24-scipy25-bof.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ author: "pyopensci"
event:
start_date: "2025-07-10"
location: Online
event_type: community
permalink: /events/pyopensci-scipy25-bof-packaging-challenges.html
header:
overlay_image: images/headers/pyopensci-sustainability.png
Expand Down
1 change: 1 addition & 0 deletions _posts/events/2025-06-24-scipy25-create-python-package.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ author: "pyopensci"
event:
start_date: "2025-07-08"
location: Online
event_type: training
permalink: /events/pyopensci-scipy25-create-python-package-workshop.html
header:
overlay_image: images/headers/pyopensci-sustainability.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ author: "pyopensci"
event:
start_date: "2025-08-07"
location: Online
event_type: talk
permalink: /events/pyopensci-stanford-ospo-peer-review.html
header:
overlay_image: images/headers/pyopensci-sustainability.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ event:
start_date: "2025-10-02"
location: Online
cost: This workshop is paid through Stanford's membership with pyOpenSci.
event_type: training
permalink: /events/pyopensci-stanford-create-python-package-workshop.html
header:
overlay_image: images/headers/pyopensci-sustainability.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ author: "pyopensci"
event:
start_date: "2025-11-06"
location: Online
event_type: training
permalink: /events/python-packaging-workshop-november-2025.html
header:
overlay_image: images/headers/pyopensci-sustainability.png
Expand Down
1 change: 1 addition & 0 deletions _posts/events/2026-03-03-course-python-packaging-gen-ai.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ event:
start_date: "2026-04-10"
end_date: "2026-04-23"
location: Online
event_type: training
permalink: /events/shipit-python-package-gen-ai-april-2026.html
header:
overlay_image: images/headers/pyopensci-sustainability.png
Expand Down
1 change: 1 addition & 0 deletions _posts/events/2026-05-16-pycon-us-maintainers-summit.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ event:
start_date: 2026-05-16
end_date: 2026-05-16
location: "Long Beach, CA"
event_type: community
permalink: /events/2026-pycon-us-maintainers-summit.html
header:
overlay_image: images/headers/pyopensci-sprints-2025.png
Expand Down
1 change: 1 addition & 0 deletions _posts/events/2026-05-17-pycon-us-development-sprint.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ event:
start_date: 2026-05-17
end_date: 2026-05-17
location: "Long Beach, CA"
event_type: sprint
permalink: /events/2026-pycon-us-development-sprint.html
header:
overlay_image: images/headers/pyopensci-sprints-2025.png
Expand Down
40 changes: 38 additions & 2 deletions _sass/minimal-mistakes/_pyos-cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,12 @@
flex-grow: 1;
min-width: 0;
padding: 1rem;
padding-top: 2.8rem;
display: flex;
flex-direction: column;
justify-content: center;
overflow-wrap: break-word;
position: relative;

h3 {
margin-bottom: 0.5rem;
Expand All @@ -332,6 +334,40 @@
}
}
}

&__type {
position: absolute;
top: 0.8rem;
right: 0.8rem;
display: inline-flex;
align-items: center;
border-radius: 9999px;
padding: 0.2rem 0.6rem;
font-size: $type-size-card-meta;
line-height: 1.2;
font-weight: $semibold-weight;
white-space: nowrap;
}

&__type--training {
background-color: $pyos-teal;
color: $pyos-brand-dark-purple;
}

&__type--sprint {
background-color: $pyos-lightpurple;
color: $pyos-brand-dark-purple;
}

&__type--talk {
background-color: $pyos-softpurple;
color: $pyos-brand-dark-purple;
}

&__type--community {
background-color: $pyos-brand-dark-purple;
color: $pyos-white;
}
}


Expand Down Expand Up @@ -416,7 +452,7 @@
.event-card__details {
min-width: 0;
max-width: 100%;
padding: 1rem 1.25rem 1.05rem;
padding: 2.45rem 1.25rem 1.05rem;
}

.event-card__date-line {
Expand Down Expand Up @@ -585,7 +621,7 @@
.event-card__details {
min-width: 0;
max-width: 100%;
padding: 0.9rem 1.1rem 0.85rem;
padding: 2.2rem 1.1rem 0.85rem;
display: flex;
flex-direction: column;
height: 100%;
Expand Down
Loading