Skip to content

Commit

Permalink
# 99 - Add III meetup data (#102)
Browse files Browse the repository at this point in the history
* - add basic info about third meetup

* - change year in the footer

* - finally fix showing previous meetup

* - change resolution of some logos because it was too big

* - remove unnecessary line
  • Loading branch information
EwelinaSkrzypacz authored Jan 9, 2025
1 parent d407ddf commit 474eb58
Show file tree
Hide file tree
Showing 10 changed files with 102 additions and 11 deletions.
15 changes: 11 additions & 4 deletions public/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ function initialize() {
avatarUrl: `${meetupFolder}/images/speakers/${speaker.avatarUrl}`,
presentationUrl: `${meetupFolder}/presentations/${speaker.presentationUrl}`,
}))
meetupData.patrons = meetupData.patrons.map((patron) => ({
meetupData.patrons = (meetupData.patrons || []).map((patron) => ({
...patron,
logoUrl: `${meetupFolder}/images/partners/${patron.logoUrl}`,
}))
meetupData.partners = meetupData.partners.map((partner) => ({
meetupData.partners = (meetupData.partners || []).map((partner) => ({
...partner,
logoUrl: `${meetupFolder}/images/partners/${partner.logoUrl}`,
}))
meetupData.sponsors = meetupData.sponsors.map((sponsor) => ({
meetupData.sponsors = (meetupData.sponsors || []).map((sponsor) => ({
...sponsor,
logoUrl: `${meetupFolder}/images/partners/${sponsor.logoUrl}`,
}))
Expand All @@ -80,8 +80,11 @@ function initialize() {
}
},
loadUpcomingMeetup: function () {
if (this.meetup) {
return
}

const now = moment()
const endOfDay = moment().endOf('day')

const upcomingMeetup = this.meetups.find((meetup) => {
const meetupDate = moment(meetup.datetime)
Expand All @@ -102,6 +105,10 @@ function initialize() {
}
},
processMeetup: function (meetup) {
if (this.meetup && this.meetup.id === meetup.id) {
return
}

let time = moment(meetup.datetime).locale('pl')
meetup.date = time.format('DD MMMM')
meetup.time = time.format('HH:mm')
Expand Down
3 changes: 2 additions & 1 deletion public/assets/meetups.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[
"./assets/meetups/2024-04-11-lmt-01/data.json",
"./assets/meetups/2024-09-12-lmt-02/data.json"
"./assets/meetups/2024-09-12-lmt-02/data.json",
"./assets/meetups/2025-02-20-lmt-03/data.json"
]
Binary file not shown.
Binary file not shown.
83 changes: 83 additions & 0 deletions public/assets/meetups/2025-02-20-lmt-03/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"title": "Legnicki Meetup Technologiczny #3",
"datetime": "2025-02-20 18:00:00",
"place": "Legnicki Browar Książęcy",
"localization": "https://maps.app.goo.gl/MFfX39G6NrAerXWd6",
"lineup": [
{
"name": "Pierwszy",
"surname": "Prelegent",
"role": "programista",
"companies": [],
"avatarUrl": "no-photo-man.png",
"about": "TBA",
"presentationTitle": "",
"presentationUrl": "",
"videoUrl": ""
},
{
"name": "Drugi",
"surname": "Prelegent",
"role": "programista",
"companies": [],
"avatarUrl": "no-photo-woman.png",
"about": "TBA",
"presentationTitle": "",
"presentationUrl": "",
"videoUrl": ""
},
{
"name": "Trzeci",
"surname": "Prelegent",
"role": "programista",
"companies": [],
"avatarUrl": "no-photo-man.png",
"about": "TBA",
"presentationTitle": "",
"presentationUrl": "",
"videoUrl": ""
}
],
"agenda": [
{
"start": "18:00",
"title": "Otwarcie spotkania"
},
{
"start": "18:30",
"title": "Pierwsza prezentacja",
"speaker": "Pierwszy Prelegent",
"description": "TBA"
},
{
"start": "19:15",
"title": "Przerwa"
},
{
"start": "19:30",
"title": "Druga prezentacja",
"speaker": "Drugi Prelegent",
"description": "TBA"
},
{
"start": "20:15",
"title": "Przerwa"
},
{
"start": "20:30",
"title": "Trzecia prezentacja",
"speaker": "Trzeci Prelegent",
"description": "TBA"
},
{
"start": "21:15",
"title": "Networking"
}
],
"sponsors": [],
"partners": [],
"partnersGridCols": 4,
"gallery": [],
"photographers": "",
"regulations": ""
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ <h2 class="pt-10 text-center text-5xl font-bold lg:text-6xl">
class="flex flex-grow flex-col text-xs lg:flex-row lg:gap-2 lg:text-base"
>
<div>
2024 Legnicki Meetup Technologiczny powered by
2025 Legnicki Meetup Technologiczny powered by
<a
href="https://blumilk.pl/"
class="font-bold"
Expand Down
2 changes: 1 addition & 1 deletion public/meetup.html
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ <h2 class="text-5xl font-bold">Galeria</h2>
class="relative z-20 mx-auto flex max-w-7xl items-center opacity-50"
>
<div class="flex-grow text-xs lg:text-base">
2024 Legnicki Meetup Technologiczny powered by
2025 Legnicki Meetup Technologiczny powered by
<a
href="https://blumilk.pl/"
class="font-bold"
Expand Down
8 changes: 4 additions & 4 deletions src/templates/email_registration_confirmation.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@
>
<p>Cześć {{name}}!</p>
<p style="margin-bottom: 18px">
Twoja rejestracja na drugi
Twoja rejestracja na trzeci
<a
href="https://www.facebook.com/events/8410812612283854"
href="https://www.facebook.com/groups/legnickimeetuptechnologiczny"
style="
font-weight: bold;
color: white;
Expand All @@ -228,8 +228,8 @@
color: white;
background: #7c17f5;
"
>12 września o godz. 18:00 w sali konferencyjnej
Legnickiego Browaru Książęcego.</span
>20 lutego o godz. 18:00 w sali konferencyjnej Legnickiego
Browaru Książęcego.</span
>
Polecamy przyjść nieco wcześniej, aby zająć sobie dogodne
miejsce ;)
Expand Down

0 comments on commit 474eb58

Please sign in to comment.