Skip to content

Commit

Permalink
- add sponsors (#52)
Browse files Browse the repository at this point in the history
* - add sponsors

* - add sponsors
  • Loading branch information
EwelinaSkrzypacz authored Aug 21, 2024
1 parent bf7bad6 commit ccba789
Show file tree
Hide file tree
Showing 9 changed files with 108 additions and 34 deletions.
10 changes: 7 additions & 3 deletions public/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,18 @@ function initialize() {
...speaker,
avatarUrl: `${meetupFolder}/images/speakers/${speaker.avatarUrl}`,
}))
meetupData.sponsors = meetupData.sponsors.map((sponsor) => ({
...sponsor,
logoUrl: `${meetupFolder}/images/partners/${sponsor.logoUrl}`,
meetupData.patrons = meetupData.patrons.map((patron) => ({
...patron,
logoUrl: `${meetupFolder}/images/partners/${patron.logoUrl}`,
}))
meetupData.partners = meetupData.partners.map((partner) => ({
...partner,
logoUrl: `${meetupFolder}/images/partners/${partner.logoUrl}`,
}))
meetupData.sponsors = meetupData.sponsors.map((sponsor) => ({
...sponsor,
logoUrl: `${meetupFolder}/images/partners/${sponsor.logoUrl}`,
}))

meetupData.gallery = await this.loadGalleryImages(
meetupId,
Expand Down
3 changes: 2 additions & 1 deletion public/assets/meetups/2024-04-11-lmt-01/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"title": "Networking"
}
],
"sponsors": [
"patrons": [
{
"name": "Collegium Witelona Uczelnia Państwowa",
"website": "https://collegiumwitelona.pl/",
Expand All @@ -94,6 +94,7 @@
"logoUrl": "softiq.png"
}
],
"sponsors": [],
"photographers": "Paweł Dancewicz",
"gallery": []
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 23 additions & 4 deletions public/assets/meetups/2024-09-12-lmt-02/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"role": "",
"companies": [
{
"name": "Blumilk sp. z o.o.",
"url": "https://www.blumilk.pl/"
"name": "Blumilk sp. z o.o.",
"url": "https://www.blumilk.pl/"
}
],
"avatarUrl": "patryk-mauer.jpg",
Expand Down Expand Up @@ -76,7 +76,26 @@
"title": "Networking"
}
],
"sponsors": [],
"partners": [],
"patrons": [
{
"name": "Collegium Witelona Uczelnia Państwowa",
"website": "https://collegiumwitelona.pl/",
"logoUrl": "cwup.png"
}
],
"partners": [
{
"name": "Synergy Codes",
"url": "https://www.synergycodes.com/",
"logoUrl": "synergy-codes.png"
}
],
"sponsors": [
{
"name": "Softiq",
"website": "https://softiq.pl/",
"logoUrl": "softiq.png"
}
],
"gallery": []
}
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 39 additions & 13 deletions public/meetup.html
Original file line number Diff line number Diff line change
Expand Up @@ -426,35 +426,36 @@ <h2 class="pl-4 text-2xl font-bold">O czym?</h2>
class="h-[71px]"
/>
</a>
<div class="hidden justify-end pt-6 lg:flex">
<div class="hidden justify-center pt-6 lg:flex">
<p
class="w-[111px] rounded-md bg-slate-900 text-center text-white"
>
Organizator
</p>
</div>
</div>
<template x-for="partner in meetup.partners">

<template x-for="patron in meetup.patrons">
<div class="flex flex-col">
<div class="flex justify-start pb-5 lg:hidden">
<p
class="rounded-md bg-violet-700 px-5 py-1 text-center text-white"
>
Partner
Patronat
</p>
</div>
<a :href="partner.website" target="_blank">
<a :href="patron.website" target="_blank">
<img
:src="partner.logoUrl"
:alt="partner.name "
:src="patron.logoUrl"
:alt="patron.name"
class="h-[71px]"
/>
</a>
<div class="hidden justify-end pt-6 lg:flex">
<div class="hidden justify-center pt-6 lg:flex">
<p
class="w-[111px] rounded-md bg-slate-900 text-center text-white"
>
Partner
Patronat
</p>
</div>
</div>
Expand All @@ -465,7 +466,7 @@ <h2 class="pl-4 text-2xl font-bold">O czym?</h2>
<p
class="rounded-md bg-violet-700 px-5 py-1 text-center text-white"
>
Patronat
Sponsor
</p>
</div>
<a :href="sponsor.website" target="_blank">
Expand All @@ -475,11 +476,36 @@ <h2 class="pl-4 text-2xl font-bold">O czym?</h2>
class="h-[71px]"
/>
</a>
<div class="hidden justify-end pt-6 lg:flex">
<div class="hidden justify-center pt-6 lg:flex">
<p
class="w-[111px] rounded-md bg-slate-900 text-center text-white"
>
Patronat
Sponsor
</p>
</div>
</div>
</template>
<template x-for="partner in meetup.partners">
<div class="flex flex-col">
<div class="flex justify-start pb-5 lg:hidden">
<p
class="rounded-md bg-violet-700 px-5 py-1 text-center text-white"
>
Partner
</p>
</div>
<a :href="partner.website" target="_blank">
<img
:src="partner.logoUrl"
:alt="partner.name"
class="h-[71px]"
/>
</a>
<div class="hidden justify-center pt-6 lg:flex">
<p
class="w-[111px] rounded-md bg-slate-900 text-center text-white"
>
Partner
</p>
</div>
</div>
Expand Down Expand Up @@ -777,11 +803,11 @@ <h2 class="pl-4 text-2xl font-bold">O czym?</h2>
@click="navigateToPastMeetup(meetup.id)"
>
<div
class="text-2xl font-bold lg:text-4xl text-green-500"
class="text-2xl font-bold text-green-500 lg:text-4xl"
x-text="meetup.formattedDate"
></div>
<div
class="pl-4 text-base lg:px-8 font-bold"
class="pl-4 text-base font-bold lg:px-8"
x-text="meetup.title"
></div>
<div class="flex flex-grow justify-end pr-4">
Expand Down
50 changes: 37 additions & 13 deletions public/pastMeetup.html
Original file line number Diff line number Diff line change
Expand Up @@ -220,35 +220,35 @@
class="h-[71px]"
/>
</a>
<div class="hidden justify-end pt-6 lg:flex">
<div class="hidden justify-center pt-6 lg:flex">
<p
class="w-[111px] rounded-md bg-slate-900 text-center text-white"
>
Organizator
</p>
</div>
</div>
<template x-for="partner in meetup.partners">
<template x-for="patron in meetup.patrons">
<div class="flex flex-col">
<div class="flex justify-start pb-5 lg:hidden">
<p
class="rounded-md bg-violet-700 px-5 py-1 text-center text-white"
>
Partner
Patronat
</p>
</div>
<a :href="partner.website" target="_blank">
<a :href="patron.website" target="_blank">
<img
:src="partner.logoUrl"
:alt="partner.name "
:src="patron.logoUrl"
:alt="patron.name"
class="h-[71px]"
/>
</a>
<div class="hidden justify-end pt-6 lg:flex">
<div class="hidden justify-center pt-6 lg:flex">
<p
class="w-[111px] rounded-md bg-slate-900 text-center text-white"
>
Partner
Patronat
</p>
</div>
</div>
Expand All @@ -259,7 +259,7 @@
<p
class="rounded-md bg-violet-700 px-5 py-1 text-center text-white"
>
Patronat
Sponsor
</p>
</div>
<a :href="sponsor.website" target="_blank">
Expand All @@ -269,11 +269,36 @@
class="h-[71px]"
/>
</a>
<div class="hidden justify-end pt-6 lg:flex">
<div class="hidden justify-center pt-6 lg:flex">
<p
class="w-[111px] rounded-md bg-slate-900 text-center text-white"
>
Patronat
Sponsor
</p>
</div>
</div>
</template>
<template x-for="partner in meetup.partners">
<div class="flex flex-col">
<div class="flex justify-start pb-5 lg:hidden">
<p
class="rounded-md bg-violet-700 px-5 py-1 text-center text-white"
>
Partner
</p>
</div>
<a :href="partner.website" target="_blank">
<img
:src="partner.logoUrl"
:alt="partner.name "
class="h-[71px]"
/>
</a>
<div class="hidden justify-center pt-6 lg:flex">
<p
class="w-[111px] rounded-md bg-slate-900 text-center text-white"
>
Partner
</p>
</div>
</div>
Expand Down Expand Up @@ -557,8 +582,7 @@ <h2 class="text-5xl font-bold">Galeria</h2>

<div class="pt-4 text-base text-neutral-200">
Autorzy zdjęć:
<span x-text="meetup.photographers">
</span>
<span x-text="meetup.photographers"> </span>
</div>
</div>
<div class="hidden flex-row justify-end gap-10 lg:flex">
Expand Down

0 comments on commit ccba789

Please sign in to comment.