Skip to content

Commit 9e2a290

Browse files
committed
feat: add event sponsors & supporters section
1 parent 44cc59e commit 9e2a290

File tree

10 files changed

+48
-84
lines changed

10 files changed

+48
-84
lines changed

public/docs/regulation.pdf

7.25 KB
Binary file not shown.

src/assets/astronaut.png

-147 KB
Binary file not shown.

src/components/compatibility.astro

Lines changed: 8 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -2,88 +2,22 @@
22
import CompatibilityList from "~/components/compatibilityList.astro";
33
import ContentSection from "~/components/contentSection.astro";
44
import type { CompatibilityItem } from "~/types";
5-
6-
const frameworks: Array<CompatibilityItem> = [
7-
{
8-
title: "React",
9-
icon: "frameworks/react",
10-
url: "https://reactjs.org/",
11-
},
12-
{
13-
title: "Preact",
14-
icon: "frameworks/preact",
15-
url: "https://preactjs.com/",
16-
},
17-
{
18-
title: "Svelte",
19-
icon: "frameworks/svelte",
20-
url: "https://svelte.dev/",
21-
},
22-
{
23-
title: "Vue",
24-
icon: "frameworks/vue",
25-
url: "https://vuejs.org/",
26-
},
27-
{
28-
title: "Solid",
29-
icon: "frameworks/solid",
30-
url: "https://www.solidjs.com/",
31-
},
32-
{
33-
title: "Lit",
34-
icon: "frameworks/lit",
35-
url: "https://lit.dev/",
36-
},
37-
];
38-
39-
const platforms: Array<CompatibilityItem> = [
40-
{
41-
title: "Netlify",
42-
icon: "platforms/netlify",
43-
url: "https://www.netlify.com/",
44-
},
45-
{
46-
title: "Vercel",
47-
icon: "platforms/vercel",
48-
url: "https://vercel.com/",
49-
},
50-
{
51-
title: "Cloudflare",
52-
icon: "fa-brands:cloudflare",
53-
url: "https://pages.cloudflare.com/",
54-
},
55-
{
56-
title: "Render",
57-
icon: "platforms/render",
58-
url: "https://render.com/",
59-
},
60-
{
61-
title: "GitHub",
62-
icon: "fa-brands:github",
63-
url: "https://pages.github.com/",
64-
},
65-
{
66-
title: "GitLab",
67-
icon: "fa-brands:gitlab",
68-
url: "https://docs.gitlab.com/ee/user/project/pages/",
69-
},
70-
];
5+
import companies from "~/data/companies.json";
716
---
727

73-
<ContentSection title="Compatibility" id="compatibility">
8+
<ContentSection title="Sponsors" id="companies">
749
<Fragment slot="lead">
75-
Astro <span class="text-primary">plays nice</span>. Bring your own UI{" "}
76-
<span class="text-primary">framework</span>
77-
and deploy to your favorite <span class="text-primary">platform</span>.
10+
Check out some of the companies envolved in the event.
7811
</Fragment>
12+
<br />
7913
<CompatibilityList
80-
items={frameworks}
81-
title="Frameworks"
14+
items={companies.sponsors}
15+
title="Sponsor"
8216
url="https://docs.astro.build/core-concepts/framework-components/"
8317
/>
8418
<CompatibilityList
85-
items={platforms}
86-
title="Platforms"
19+
items={companies.supporters}
20+
title="Supporters"
8721
url="https://docs.astro.build/guides/deploy/"
8822
/>
8923
</ContentSection>

src/components/compatibilityList.astro

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,25 @@ export interface Props {
1111
const { items, title, url } = Astro.props;
1212
---
1313

14-
<div class="w-full max-w-6xl space-y-2">
15-
<div class="relative border border-default bg-offset px-6 pb-4 pt-8">
14+
<div class="w-full max-w-4xl space-y-2">
15+
<div class="relative border border-white px-6 pb-8 pt-8">
1616
<h3
17-
class="absolute right-4 top-0 -translate-y-1/2 rounded-full border border-current bg-default px-4 py-1 uppercase tracking-tight text-xs"
17+
class="absolute left-4 top-0 -translate-y-1/2 rounded-full border border-current bg-default px-4 py-1 uppercase tracking-tight text-xs"
1818
>
1919
{title}
2020
</h3>
21-
<ul class="grid grid-cols-2 gap-8 sm:grid-cols-3 md:grid-cols-6">
21+
<ul
22+
class="flex flex-wrap mx-auto justify-center items-center gap-16 sm:gap-8 sm:h-32"
23+
>
2224
{
2325
items.map((item) => (
2426
<li>
25-
<a class="flex flex-col items-center gap-2" href={item.url}>
26-
<Icon class="size-12" name={item.icon} />
27-
<span>{item.title}</span>
27+
<a class="flex flex-col items-center mx-8" href={item.url}>
28+
<Icon class="size-36 h-full" name={item.icon} />
2829
</a>
2930
</li>
3031
))
3132
}
3233
</ul>
3334
</div>
34-
<p class="text-right text-sm">
35-
<a class="text-primary" href={url}> ...and more &rarr;</a>
36-
</p>
3735
</div>

src/data/companies.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"sponsors": [
3+
{
4+
"title": "Uphold",
5+
"icon": "companies/uphold",
6+
"url": "https://uphold.com/"
7+
}
8+
],
9+
"supporters": [
10+
{
11+
"title": "RedBull",
12+
"icon": "companies/redbull",
13+
"url": "https://www.redbull.com/pt-pt/"
14+
},
15+
{
16+
"title": "DSPA",
17+
"icon": "companies/dspa",
18+
"url": "https://dspa.pt/"
19+
},
20+
{
21+
"title": "Startup Braga",
22+
"icon": "companies/startup",
23+
"url": "https://www.startupbraga.com/"
24+
}
25+
]
26+
}

src/icons/companies/dspa.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)