-
Notifications
You must be signed in to change notification settings - Fork 1
add staff_list.ts #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sat0ken
wants to merge
16
commits into
main
Choose a base branch
from
feat/add-staff
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d5c279d
add staff_list.ts
sat0ken b2238ec
remove Community interface
sat0ken 8c7c471
sdd staff's avater images
sat0ken c6c4fa7
update staff list
sat0ken 750104b
add image & fix typo
sat0ken 0162207
change avatar to url
sat0ken 2704ac0
remove staf img files
sat0ken 9aaeabc
add staff pages
sat0ken 6cae34f
update photo url
sat0ken 731dc24
Snsにタイプをセット
sat0ken 6ca3b44
SubPageをimportするように修正
sat0ken 9961bb5
テキスト修正と順番入れ替え
sat0ken c34809f
TextLinkを使うように変更
sat0ken 143f6ca
propsを日英対応するように修正
sat0ken a39d05b
LayoutをSubPageに修正
sat0ken 0fb9496
Headerミスっていたので修正
sat0ken File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,188 @@ | ||
| --- | ||
| import { staffs } from "./staff_list"; | ||
| import XLogo from "../assets/icons/x.svg"; | ||
| import GitHubLogo from "../assets/icons/github.svg"; | ||
| --- | ||
|
|
||
| <section class="staffs-section"> | ||
| <div class="staffs-grid"> | ||
| { | ||
| staffs.map((staff) => ( | ||
| <div class="staff-card"> | ||
| <div class="staff-header"> | ||
| <div | ||
| class={`staff-avatar ${staff.avatar ? "staff-avatar--with-image" : "staff-avatar--placeholder"}`} | ||
| > | ||
| {staff.avatar && ( | ||
| <img src={staff.avatar} alt={staff.name} /> | ||
| )} | ||
| </div> | ||
|
|
||
| {staff.sns.url && ( | ||
| <div class="social-links"> | ||
| <a | ||
| href={staff.sns.url} | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| class="social-link" | ||
| aria-label={`${staff.sns.type} Link`} | ||
| > | ||
| {staff.sns.type === "x" && <XLogo />} | ||
| {staff.sns.type === "github" && <GitHubLogo />} | ||
| </a> | ||
| </div> | ||
| )} | ||
| </div> | ||
|
|
||
| <div class="staff-content"> | ||
| <h3 class="staff-name">{staff.name}</h3> | ||
|
|
||
| {staff.communities.length > 0 && ( | ||
| <div class="communities"> | ||
| {staff.communities.map((community, index) => ( | ||
| <span class="community-name"> | ||
| {community} | ||
| {index < staff.communities.length - 1 && ", "} | ||
| </span> | ||
| ))} | ||
| </div> | ||
| )} | ||
|
|
||
| {staff.comment && ( | ||
| <p class="staff-comment">{staff.comment}</p> | ||
| )} | ||
| </div> | ||
| </div> | ||
| )) | ||
| } | ||
| </div> | ||
| </section> | ||
|
|
||
| <style> | ||
| .staffs-section { | ||
| padding: 0; | ||
| } | ||
|
|
||
| .staffs-grid { | ||
| display: grid; | ||
| gap: 24px; | ||
| margin-top: 32px; | ||
| justify-content: center; | ||
| grid-template-columns: repeat(3, 360px); | ||
|
|
||
| @media screen and (max-width: 1200px) { | ||
| grid-template-columns: repeat(2, 360px); | ||
| } | ||
|
|
||
| @media screen and (max-width: 800px) { | ||
| grid-template-columns: 360px; | ||
| } | ||
| } | ||
|
|
||
| .staff-card { | ||
| background: var(--primitive-light-blue); | ||
| border-radius: 16px; | ||
| padding: 24px; | ||
| width: 360px; | ||
| min-height: 200px; | ||
| box-sizing: border-box; | ||
| flex-shrink: 0; | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 16px; | ||
| } | ||
|
|
||
| .staff-header { | ||
| display: flex; | ||
| justify-content: space-between; | ||
| align-items: flex-start; | ||
| } | ||
|
|
||
| .staff-avatar { | ||
| width: 80px; | ||
| height: 80px; | ||
| border-radius: 50%; | ||
| object-fit: cover; | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| font-size: 32px; | ||
| color: #666; | ||
| flex-shrink: 0; | ||
| } | ||
|
|
||
| .staff-avatar--with-image { | ||
| background: #fff; | ||
| } | ||
|
|
||
| .staff-avatar--placeholder { | ||
| background: #c4c4c4; | ||
| } | ||
|
|
||
| .staff-avatar img { | ||
| width: 100%; | ||
| height: 100%; | ||
| border-radius: 50%; | ||
| object-fit: cover; | ||
| } | ||
|
|
||
| .staff-content { | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 8px; | ||
| flex: 1; | ||
| } | ||
|
|
||
| .staff-name { | ||
| font-size: 20px; | ||
| font-weight: 700; | ||
| color: var(--text-primary); | ||
| margin: 0; | ||
| line-height: 1.2; | ||
| } | ||
|
|
||
| .social-links { | ||
| display: flex; | ||
| gap: 12px; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .social-link { | ||
| display: inline-flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| width: 30px; | ||
| height: 30px; | ||
| text-decoration: none; | ||
| border-radius: 4px; | ||
| transition: opacity 0.2s ease; | ||
|
|
||
| &:hover { | ||
| opacity: 0.7; | ||
| } | ||
| } | ||
|
|
||
| .social-link svg { | ||
| width: 30px; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. アイコン40*40かもしれませんかね? |
||
| height: 30px; | ||
| fill: var(--text-primary); | ||
| } | ||
|
|
||
| .communities { | ||
| margin: 0; | ||
| line-height: 1.4; | ||
| } | ||
|
|
||
| .community-name { | ||
| font-size: 12px; | ||
| font-weight: 700; | ||
| color: var(--text-accent); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Figmaだとこちらが |
||
| } | ||
|
|
||
| .staff-comment { | ||
| font-size: 13px; | ||
| color: var(--text-secondary); | ||
| margin: 0; | ||
| line-height: 1.5; | ||
| } | ||
| </style> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.