Skip to content

Commit

Permalink
Merge pull request #39 from GoCon/feat/staffs-page
Browse files Browse the repository at this point in the history
feat: add staffs page
  • Loading branch information
sago35 authored May 31, 2024
2 parents 1585509 + 35609e7 commit e662f20
Show file tree
Hide file tree
Showing 59 changed files with 509 additions and 1 deletion.
Binary file added public/staffs/a2.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/staffs/bikiniki.webp
Binary file not shown.
Binary file added public/staffs/budougumi0617.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/staffs/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/staffs/douglas_takeuchi.jpeg
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/staffs/fujiwo.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/staffs/gami.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/staffs/gunzi.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/staffs/hikari.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/staffs/igaryo.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/staffs/jackchuka.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/staffs/kaminashi.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/staffs/kensuke_ueno.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/staffs/kenta_yamaguchi.jpeg
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/staffs/kizuku.webp
Binary file not shown.
Binary file added public/staffs/kota_yagi.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/staffs/masahiro_sakuraba.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/staffs/micchie.jpeg
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/staffs/miki.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/staffs/mikichin.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/staffs/mocchi.jpeg
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/staffs/momi.jpeg
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/staffs/n9te9.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/staffs/nakagawa_ryotaku.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/staffs/naotama.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/staffs/nozomu_ikuta.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/staffs/okarin.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/staffs/onoe.jpeg
Binary file added public/staffs/peacock.jpg
Binary file added public/staffs/rapisu.jpg
Binary file added public/staffs/rei_suzuki.jpg
Binary file added public/staffs/remiposo.png
Binary file added public/staffs/ryo_mimura.jpg
Binary file added public/staffs/ryu-ichiroh.png
Binary file added public/staffs/sadah.jpg
Binary file added public/staffs/sago35.png
Binary file added public/staffs/senoue.png
Binary file added public/staffs/shinnosuke_kishida.png
Binary file added public/staffs/sivchari.png
Binary file added public/staffs/sugar-cat.jpeg
Binary file added public/staffs/sutenyan.jpg
Binary file added public/staffs/suu.jpg
Binary file added public/staffs/tadaaki.jpg
Binary file added public/staffs/takato.webp
Binary file not shown.
Binary file added public/staffs/tamaclaw.jpg
Binary file added public/staffs/terui.jpg
Binary file added public/staffs/tomato3713.jpeg
Binary file added public/staffs/uji.jpg
Binary file added public/staffs/walkure.jpeg
Binary file added public/staffs/yamato.webp
Binary file not shown.
Binary file added public/staffs/yoshi_yamaguchi.jpg
Binary file added public/staffs/yosuke_okamoto.png
Binary file added public/staffs/yuki_bobier_koshimizu.jpeg
Binary file added public/staffs/zundamaru.png
2 changes: 1 addition & 1 deletion src/components/Header/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import { concatWithBase } from "@utils/concatWithBase";
>
</li>
<li><a href={concatWithBase("floorguide")}>Floor Guide</a></li>
<!-- <li><a href="#">Staff</a></li> -->
<li><a href={concatWithBase("staffs")}>Staff</a></li>
<!-- <li><a href="#">English</a></li> -->
</ul>
</nav>
Expand Down
116 changes: 116 additions & 0 deletions src/components/Staffs.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
---
import { Image } from "astro:assets";
import { getEntry } from "astro:content";
import { concatWithBase } from "@utils/concatWithBase";
const staffs = await getEntry("staffs", "data");
---

<div class="container">
<div class="staffs">
{
staffs.data.map((staff) => (
<div class="staff">
<Image
src={concatWithBase(`staffs/${staff.avatar}`)}
width="120"
height="120"
loading="lazy"
alt={staff.name}
class="staff-avatar"
/>
<p class="staff-name">{staff.name}</p>
<p class="staff-company">{staff.company}</p>
<p class="staff-favorite-packages">
{staff.favoritePackages.join(", ")}
</p>
</div>
))
}
</div>
</div>

<style>
.staffs {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
max-width: 1400px;
margin: 0 auto;
}

.staff {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
width: 342px;
text-decoration: none;
color: #222;
padding: 16px;
border-radius: 8px;
overflow: hidden;
background-color: #fff;
box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.1);

@media screen and (max-width: 1185px) {
width: calc(50% - 16px);
}

@media screen and (max-width: 768px) {
width: 100%;
}
}

.title {
--max-lines: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: var(--max-lines);
overflow: hidden;
font-size: 28px;
font-weight: bold;
line-height: 1.25;
min-height: calc(var(--max-lines) * 1.25em);

@media screen and (max-width: 768px) {
--max-lines: 1;
}
}

.staff-avatar {
object-fit: cover;
border-radius: 100%;
overflow: hidden;
flex-shrink: 0;
}

.staff-name {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
overflow: hidden;
font-weight: bold;
}

.staff-company {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
overflow: hidden;
min-height: 1.5em;
font-size: 14px;
color: #666;
}

.staff-favorite-packages {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
overflow: hidden;
min-height: 1.5em;
font-size: 14px;
color: #666;
}
</style>
13 changes: 13 additions & 0 deletions src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,20 @@ const sponsors = defineCollection({
),
});

const staffs = defineCollection({
type: "data",
schema: z.array(
z.object({
name: z.string(),
company: z.string().nullable(),
avatar: z.string(),
favoritePackages: z.array(z.string()),
}),
),
});

export const collections = {
sessions,
sponsors,
staffs,
};
Loading

0 comments on commit e662f20

Please sign in to comment.