Skip to content

Commit

Permalink
Merge pull request #56 from tokyorubykaigi12/terfno/helper
Browse files Browse the repository at this point in the history
add helper
  • Loading branch information
Terfno authored Jan 17, 2025
2 parents 5e4afe9 + 9ba32b6 commit 62f690f
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 27 deletions.
89 changes: 64 additions & 25 deletions src/components/staff/Member.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,50 @@ interface Props {
ImageSrc?: string;
githubID?: string;
xID?: string;
otherUrl?: string;
label?: string;
isrubynokai?: boolean;
}
const { name, md5Email, ImageSrc, githubID, xID, label } = Astro.props;
const { name, md5Email, ImageSrc, githubID, xID, otherUrl, label, isrubynokai } = Astro.props;
const iconSize = 400;
---

<div class="outer">
<MiniPanel>
<div class="icon">
{md5Email && <GravatarImage md5Email={md5Email} size={iconSize} alt={name} />}
{ImageSrc && <img src={ImageSrc} alt={name} />}
</div>
{label && <div class="label">{label}</div>}
<h3>{name}</h3>
<div class="socials">
{githubID && (
<div class="social github">
<img src={GitHubMarkImage.src} /><a
href=`https://github.com/${githubID}`
>
@{githubID}
</a>
</div>
)}
{xID && (
<div class="social x">
<img src={XLogoBlackImage.src} /><a
href=`https://x.com/${xID}`
>
@{xID}
</a>
<div class="container">
<div class="icon">
{(!isrubynokai && md5Email) && <GravatarImage md5Email={md5Email} size={iconSize} alt={name} />}
{(!isrubynokai && ImageSrc) && <img src={ImageSrc} alt={name} />}
{isrubynokai && <img class="rubynokai" src={ImageSrc} alt={name}/>}
</div>
<div>
{label && <div class="label">{label}</div>}
<h3>{name}</h3>
<div class="socials">
{githubID && (
<div class="social github">
<img src={GitHubMarkImage.src} /><a
href=`https://github.com/${githubID}`
>
@{githubID}
</a>
</div>
)}
{xID && (
<div class="social x">
<img src={XLogoBlackImage.src} /><a
href=`https://x.com/${xID}`
>
@{xID}
</a>
</div>
)}
{otherUrl && (
<a class="other" href={otherUrl}>{otherUrl}</a>
)}
</div>
)}
</div>
</div>
</MiniPanel>
</div>
Expand All @@ -60,12 +70,23 @@ const iconSize = 400;
}
}

.container {
display: flex;
flex-direction: column;
}
@media screen and (480px < width <= 720px) {
.container {
flex-direction: row;
gap: 24px;
}
}
.icon {
display: flex;
justify-content: center;
margin-bottom: 32px;

img {
background-color: #fff;
border-radius: 12px;
border: solid #d9d9d9 1px;
width: 200px;
Expand All @@ -76,6 +97,15 @@ const iconSize = 400;
}
}
}
@media screen and (480px < width <= 720px) {
.icon {
margin-bottom: 0;
}
}

.rubynokai {
padding: 12px;
}

.label {
font-family: "Hiragino Kaku Gothic Pro", "Noto Sans JP", sans-serif;
Expand Down Expand Up @@ -112,6 +142,7 @@ const iconSize = 400;
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: wrap;
}

.social img {
Expand All @@ -137,4 +168,12 @@ const iconSize = 400;
font-size: 16px;
}
}

.other {
word-wrap: anywhere;
font-family: "Futura", "Jost", sans-serif;
font-size: 16px;
line-height: 24px;
text-decoration: underline;
}
</style>
Binary file added src/components/staff/pics/hirotea.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 src/components/staff/pics/tdakak.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
77 changes: 75 additions & 2 deletions src/pages/staff.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,22 @@ import Panel from "../components/Layouts/Panel.astro";
import Member from "../components/staff/Member.astro";
import OkuramasafumiImage from "../components/staff/pics/okuramasafumi.jpg";
import TdakakImage from "../components/staff/pics/tdakak.jpg";
import HiroteaImage from "../components/staff/pics/hirotea.jpg";
const title = "スタッフ | 東京Ruby会議12";
const twitter_card = "summary_large_image";
---

<style>
h3 {
font-family: "Futura", "Jost", sans-serif;
font-size: 32px;
font-weight: 500;
line-height: 43px;
margin-bottom: 24px;
}

.container {
display: flex;
flex-wrap: wrap;
Expand All @@ -18,7 +28,8 @@ const twitter_card = "summary_large_image";
</style>

<Layout title={title} twitter_card={twitter_card}>
<Panel title="Organizers" subtitle="実行委員">
<Panel title="Staff">
<h3>Organizers</h3>
<div class="container">
<Member
label="Chief Organizer"
Expand Down Expand Up @@ -69,6 +80,68 @@ const twitter_card = "summary_large_image";
ImageSrc={OkuramasafumiImage.src}
/>
</div>
<h3>Helpers</h3>
<div class="container">
<Member
name="Tomoya Chiba"
xID="nemunemu3desu"
githubID="tomoasleep"
md5Email="c3ddc2fb6aad352cdfacc5a0c6d784c7"
/>
<Member
name="polamjag"
xID="polamjag"
githubID="polamjag"
md5Email="f9fa9b6225d62d8c0559e993906ca4f5"
/>
<Member
name="Koji Nakamura"
xID="kozy4324"
githubID="kozy4324"
md5Email="41a3b3d39a9f1f097eeca98e90622576"
/>
<Member
name="Kaoru Endo"
xID="aiandrox"
githubID="aiandrox"
md5Email="43d7033f39dd4922f0936a42182c1291"
/>
<Member
name="Naohisa Yokoyama"
xID="_shrrk"
githubID="nhsykym"
md5Email="2e9f17022d0698764d2b141065de6d8f"
/>
<Member
name="ただあき"
xID="tdakak"
ImageSrc={TdakakImage.src}
/>
<Member
name="Taiga Muraoka"
githubID="muraoka"
md5Email="3d0cfebb94a574828929e0b4048ea3f9"
/>
<Member
name="Shogo Terai"
xID="krpk1900_dev"
githubID="krpk1900"
md5Email="e05c5bb6ec6456ba8d7c5b83e5dd5cb4"
/>
<Member
name="hirotea"
xID="nifuchi222222"
ImageSrc={HiroteaImage.src}
/>
</div>
<h3>Support</h3>
<div class="container">
<Member
name="日本Rubyの会"
otherUrl="https://ruby-no-kai.org/"
ImageSrc="https://gyazo.com/fa3bc8419cb3ac3fe9c05490d3ab354f.png"
isrubynokai={true}
/>
</div>
</Panel>
<!-- <Panel title="Helper" subtitle="ヘルパー"></Panel> -->
</Layout>

0 comments on commit 62f690f

Please sign in to comment.