Skip to content

Commit fc1b208

Browse files
Grzegorz Kocjangkocjan
Grzegorz Kocjan
authored andcommitted
Support TBA and add 58 meetup info
1 parent eaa65b2 commit fc1b208

File tree

8 files changed

+90
-43
lines changed

8 files changed

+90
-43
lines changed

Diff for: assets/images/avatars/tba.png

10.3 KB
Loading
Loading

Diff for: content/spotkania/_content.gotmpl

+13-6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@
2626

2727
{{ $contentValue := printf "%s \n ## Prelekcje" $contentValue}}
2828

29+
{{ if not $meetup.talks }}
30+
31+
{{ $contentValue = printf `%s
32+
Już wkrótce ogłosimy oficjalną agendę naszego najnowszego spotkania Python Łódź. Bądźcie czujni, bo szykujemy naprawdę interesujące prezentacje.
33+
34+
Niezależnie od tematu, każde spotkanie to świetna okazja, by poszerzyć swoją wiedzę, poznać nowych ludzi i razem budować silną społeczność miłośników Pythona.
35+
36+
Zarezerwuj swoje miejsce już teraz – nie daj się zaskoczyć, gdy ruszymy z pełną informacją o wydarzeniu.` $contentValue}}
37+
38+
{{ end }}
39+
2940
{{ range $meetup.talks }}
3041
{{ $cleanedTitle := replace (replace .talk_title "\n" " ") "\t" " " }}
3142
{{ $cleanedTitle = replaceRE `\s+` " " $cleanedTitle }}
@@ -63,10 +74,9 @@
6374

6475
{{/* Add featured image. */}}
6576
{{ $info_graphic := ""}}
66-
{{ if eq (len $meetup.talks) 1 }}
77+
{{ if or (not $meetup.talks) (eq (len $meetup.talks) 1) }}
6778
{{- $info_graphic = partial "infographic-image-solo.html" (dict "meetup" $meetup) -}}
68-
{{ end }}
69-
{{ if eq (len $meetup.talks) 2 }}
79+
{{ else if eq (len $meetup.talks) 2 }}
7080
{{- $info_graphic = partial "infographic-image-duo.html" (dict "meetup" $meetup) -}}
7181
{{ end }}
7282

@@ -79,7 +89,4 @@
7989
"path" (printf "%s/featured.png" $meetup_number)
8090
}}
8191
{{ $.AddResource $resource }}
82-
83-
84-
8592
{{ end }}

Diff for: data/meetups/55.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
title: "Meetup #55"
22
date: 2024-11-27
33
time: "18:00"
4-
place: "**IndieBI**, Piotrkowska 157A, budynek Hi Piotrkowska"
4+
place: "IndieBI, Piotrkowska 157A, budynek Hi Piotrkowska"
55
sponsors: [indiebi, sunscrapers]
66

77
talks:

Diff for: data/meetups/56.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
title: "Meetup #56"
22
date: 2025-01-29
33
time: "18:00"
4-
place: "**IndieBI**, Piotrkowska 157A, budynek Hi Piotrkowska"
4+
place: "IndieBI, Piotrkowska 157A, budynek Hi Piotrkowska"
55
sponsors: [indiebi, sunscrapers]
66

77
talks:

Diff for: data/meetups/57.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
title: "Meetup #57"
22
date: 2025-03-26
33
time: "18:00"
4-
place: "**IndieBI**, Piotrkowska 157A, budynek Hi Piotrkowska"
4+
place: "IndieBI, Piotrkowska 157A, budynek Hi Piotrkowska"
55
meetup_link: "https://www.meetup.com/python-lodz/events/305850516/"
66
feedback_link: "https://forms.gle/uckRpVgg3b4fScFDA"
7-
live_stream: "AlJUKpXTSAc"
87
sponsors: [indiebi, sunscrapers]
9-
tags: ["Następne spotkanie!"]
108
featured: true
119

1210
talks:

Diff for: data/meetups/58.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
title: "Meetup #58"
2+
date: 2025-05-28
3+
time: "18:00"
4+
place: "IndieBI, Piotrkowska 157A, budynek Hi Piotrkowska"
5+
meetup_link: "https://www.meetup.com/python-lodz/events/306971418/"
6+
sponsors: [indiebi, sunscrapers]
7+
tags: ["Następne spotkanie!"]
8+
featured: true

Diff for: layouts/partials/infographic-image-solo.html

+66-32
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,23 @@
44
{{ $meetup := .meetup }}
55

66

7-
{{ $bg := resources.Get "images/infographic_template_solo.png" }}
7+
{{ $bg := resources.Get "images/infographic_template.png" }}
88

99

1010
{{ $final := $bg }}
1111

1212

1313
{{ $imgWidth := $final.Width }}
14+
15+
{{ $bottomDateOptions := dict
16+
"color" "#393f5f"
17+
"size" 66
18+
"x" 890
19+
"y" 132
20+
"font" $fontNormal
21+
}}
22+
{{ $final = $final.Filter (images.Text "ZAPRASZA" $bottomDateOptions) }}
23+
1424
{{ $date := (printf "%sr. godz. %s" ($meetup.date | time.Format "Monday 02.01.2006"| strings.ToUpper) $meetup.time) }}
1525
{{ $mainDateOptions := dict
1626
"color" "#393f5f"
@@ -22,46 +32,70 @@
2232
}}
2333
{{ $final = $final.Filter (images.Text $date $mainDateOptions) }}
2434

25-
{{ $bottomDateOptions := dict
35+
{{ $bottomDateOptions := dict
2636
"color" "#393f5f"
27-
"size" 32
37+
"size" 28
2838
"x" 157
29-
"y" 1010.3
39+
"y" 1014
3040
"font" $fontNormal
3141
}}
3242
{{ $final = $final.Filter (images.Text $date $bottomDateOptions) }}
3343

34-
{{ $talk1 := index $meetup.talks 0}}
35-
36-
{{ $speaker1 := index site.Data.speakers $talk1.speaker_id }}
37-
{{ $author1Options := dict
44+
{{ $bottomPlaceOptions := dict
3845
"color" "#393f5f"
39-
"size" 32
40-
"x" (div $imgWidth 2)
41-
"y" 815
46+
"size" 28
47+
"x" 1156
48+
"y" 1014
4249
"font" $fontNormal
43-
"alignx" "center"
4450
}}
45-
{{ $final = $final.Filter (images.Text $speaker1.name $author1Options) }}
46-
47-
{{ $title1Options := dict
48-
"color" "#393f5f"
49-
"size" 32
50-
"x" (div $imgWidth 2)
51-
"y" 870
52-
"font" $fontBold
53-
"alignx" "center"
51+
{{ $final = $final.Filter (images.Text $meetup.place $bottomPlaceOptions) }}
52+
53+
{{ $avatarBackground := resources.Get "images/avatars/tba.png" }}
54+
{{ $final := $final.Filter (images.Overlay $avatarBackground 779.9 436) }}
55+
56+
{{ if $meetup.talks }}
57+
{{ $talk1 := index $meetup.talks 0}}
58+
59+
{{ $speaker1 := index site.Data.speakers $talk1.speaker_id }}
60+
{{ $author1Options := dict
61+
"color" "#393f5f"
62+
"size" 32
63+
"x" (div $imgWidth 2)
64+
"y" 815
65+
"font" $fontNormal
66+
"alignx" "center"
5467
}}
55-
{{ $final = $final.Filter (images.Text $talk1.talk_title $title1Options) }}
56-
57-
{{ $avatarMaskFilter := images.Mask (resources.Get "images/avatars/mask.png") }}
58-
59-
{{ $speaker1Img := resources.Get $speaker1.avatar }}
60-
{{ $speaker1 := $speaker1Img.Fill "300x300 center" }}
61-
62-
{{ $maskedSpeaker1 := $speaker1 | images.Filter $avatarMaskFilter }}
63-
64-
{{ $final := $final.Filter (images.Overlay $maskedSpeaker1 (sub (div $imgWidth 2) 150) 465) }}
65-
68+
{{ $final = $final.Filter (images.Text $speaker1.name $author1Options) }}
69+
70+
{{ $title1Options := dict
71+
"color" "#393f5f"
72+
"size" 32
73+
"x" (div $imgWidth 2)
74+
"y" 870
75+
"font" $fontBold
76+
"alignx" "center"
77+
}}
78+
{{ $final = $final.Filter (images.Text $talk1.talk_title $title1Options) }}
79+
80+
{{ $avatarMaskFilter := images.Mask (resources.Get "images/avatars/mask.png") }}
81+
82+
{{ $speaker1Img := resources.Get $speaker1.avatar }}
83+
{{ $speaker1 := $speaker1Img.Fill "300x300 center" }}
84+
85+
{{ $maskedSpeaker1 := $speaker1 | images.Filter $avatarMaskFilter }}
86+
87+
{{ $final = $final.Filter (images.Overlay $maskedSpeaker1 (sub (div $imgWidth 2) 150) 465) }}
88+
89+
{{ else }}
90+
{{ $title1Options := dict
91+
"color" "#393f5f"
92+
"size" 80
93+
"x" (div $imgWidth 2)
94+
"y" 800
95+
"font" $fontBold
96+
"alignx" "center"
97+
}}
98+
{{ $final = $final.Filter (images.Text "TBA" $title1Options) }}
99+
{{ end }}
66100

67101
{{ return $final }}

0 commit comments

Comments
 (0)