diff --git a/public/sponsors/dominos-pizza.svg b/public/sponsors/dominos-pizza.svg new file mode 100644 index 0000000..07af860 --- /dev/null +++ b/public/sponsors/dominos-pizza.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/sponsors/fal.svg b/public/sponsors/fal.svg new file mode 100644 index 0000000..019e6e7 --- /dev/null +++ b/public/sponsors/fal.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/content.config.ts b/src/content.config.ts index ae8de4c..0c1fac2 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -48,6 +48,8 @@ const sponsors = defineCollection({ name: z.string(), image: z.string(), link: z.url(), + weight: z.number().default(Number.MAX_SAFE_INTEGER), + maxHeightRem: z.number().default(6), }), }); diff --git a/src/content/sponsors.yaml b/src/content/sponsors.yaml index 7544452..7431527 100644 --- a/src/content/sponsors.yaml +++ b/src/content/sponsors.yaml @@ -1,8 +1,21 @@ - id: europython-society name: EuroPython Society image: /sponsors/eps-text.png - link: https://www.europython-society.org/ + link: https://www.europython-society.org + weight: 0 - id: startgate name: StartGate image: /sponsors/startgate.svg - link: https://www.startgate.com/ + link: https://www.startgate.com + weight: 10 +- id: dominos-pizza + name: Domino's Pizza + image: /sponsors/dominos-pizza.svg + link: https://www.dominos.com.tr/kurumsal/hakkimizda + weight: 20 +- id: fal + name: fal + image: /sponsors/fal.svg + link: https://fal.ai + weight: 30 + maxHeightRem: 4 diff --git a/src/sections/Sponsors.astro b/src/sections/Sponsors.astro index 63fd0d6..ea65b85 100644 --- a/src/sections/Sponsors.astro +++ b/src/sections/Sponsors.astro @@ -4,7 +4,9 @@ import Section from "@components/Section.astro"; import Prose from "@components/Prose.astro"; import { event } from "@data/event"; -const sponsors = await getCollection("sponsors"); +const sponsors = (await getCollection("sponsors")).sort( + (a, b) => a.data.weight - b.data.weight, +); ---
@@ -28,7 +30,8 @@ const sponsors = await getCollection("sponsors"); {s.data.name} ))}