Skip to content

Commit

Permalink
Merge pull request #32 from GoCon/sponsors-20240504
Browse files Browse the repository at this point in the history
2024/05/04 分を追加
  • Loading branch information
budougumi0617 authored May 6, 2024
2 parents f79e36a + 2766c23 commit 9b280ba
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 1 deletion.
Binary file added public/sponsors/Classi株式会社.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/sponsors/chihiro.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/sponsors/yagi2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions src/components/Sponsors.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ const silverSponsors = sponsors.data.filter(
const bronzeSponsors = sponsors.data.filter(
(sponsor) => sponsor.class === "Bronze",
);
const gopherSponsors = sponsors.data.filter(
(sponsor) => sponsor.class === "Gopher",
);
---

<div id="sponsors" class="background">
Expand Down Expand Up @@ -101,6 +104,24 @@ const bronzeSponsors = sponsors.data.filter(
))
}
</div>
<h3>Gopher</h3>
<div class="box">
{
gopherSponsors.map((sponsor) => (
<div>
<Image
class="gopher"
src={concatWithBase(sponsor.image)}
alt={sponsor.name}
width={123}
height={69}
/>
<div>{sponsor.name}</div>
{sponsor.description && <div>fav: {sponsor.description}</div>}
</div>
))
}
</div>
</div>

<style>
Expand Down Expand Up @@ -168,5 +189,10 @@ const bronzeSponsors = sponsors.data.filter(
width: 50%;
}
}
.gopher {
@media screen and (max-width: 448px) {
width: 50%;
}
}
</style>
</div>
9 changes: 8 additions & 1 deletion src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@ const sponsorsCollection = defineCollection({
z.object({
id: z.number(),
name: z.string(),
class: z.enum(["Venue", "Platinum Gold", "Gold", "Silver", "Bronze"]),
class: z.enum([
"Venue",
"Platinum Gold",
"Gold",
"Silver",
"Bronze",
"Gopher",
]),
description: z.string(),
image: z.string(),
}),
Expand Down
21 changes: 21 additions & 0 deletions src/content/sponsors/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,13 @@
"description": "",
"image": "sponsors/株式会社Newbees.svg"
},
{
"id": 47,
"name": "Classi株式会社",
"class": "Bronze",
"description": "",
"image": "sponsors/Classi株式会社.png"
},
{
"id": 48,
"name": "株式会社リクルート",
Expand Down Expand Up @@ -355,5 +362,19 @@
"class": "Bronze",
"description": "",
"image": "sponsors/株式会社CARTA HOLDINGS.svg"
},
{
"id": 53,
"name": "chihiro",
"class": "Gopher",
"description": "",
"image": "sponsors/chihiro.jpg"
},
{
"id": 54,
"name": "yagi2",
"class": "Gopher",
"description": "net/http",
"image": "sponsors/yagi2.png"
}
]

0 comments on commit 9b280ba

Please sign in to comment.