From 369f50955e28d0423fc6dfb019d10630520a036d Mon Sep 17 00:00:00 2001 From: aster <137767097+aster-void@users.noreply.github.com> Date: Mon, 16 Dec 2024 23:17:51 +0900 Subject: [PATCH 1/3] rename twitter -> X --- contents/members/README.md | 2 +- src/components/GlobalFooter.tsx | 2 +- src/pages/contact.tsx | 5 +++-- src/pages/index.tsx | 23 +++++++++++++++++++---- src/templates/member.tsx | 6 +++--- 5 files changed, 27 insertions(+), 11 deletions(-) diff --git a/contents/members/README.md b/contents/members/README.md index 69e448cf..4a6ce138 100644 --- a/contents/members/README.md +++ b/contents/members/README.md @@ -16,5 +16,5 @@ | `faceImage` | ✅ | 顔写真。縦横比は 1:1。顔を中央に配置し、顔の横幅がおよそ写真の横幅の 1/2 になるようにトリミングしてください。 | | `upperBodyImage` | ✅ | バストショット。縦横比は 4:3。顔の横幅が画像の横幅のおよそ 1/3、顔の中央が画像上部からおよそ 1/3 になるようにトリミングしてください。 | | `github` | | GitHub の**アカウント名** | -| `twitter` | | Twitter (X) の **ID**。 | +| `twitter` | | X (旧 Twitter) の **ID**。 -- TODO: キーをx_twitterに変える (理由: X だけだとなんのことかわかりにくいため) | | `website` | | 個人のウェブサイトの URL。 | diff --git a/src/components/GlobalFooter.tsx b/src/components/GlobalFooter.tsx index 7a1b007f..a98b87ba 100644 --- a/src/components/GlobalFooter.tsx +++ b/src/components/GlobalFooter.tsx @@ -74,7 +74,7 @@ export default function GlobalFooter({ className }: { className?: string }) { to: "https://first-programming.utcode.net/", }, { title: "GitHub", to: "https://github.com/ut-code" }, - { title: "Twitter", to: "https://twitter.com/utokyo_code" }, + { title: "𝕏", to: "https://twitter.com/utokyo_code" }, ]} /> diff --git a/src/pages/contact.tsx b/src/pages/contact.tsx index 741a248c..3743e454 100644 --- a/src/pages/contact.tsx +++ b/src/pages/contact.tsx @@ -34,7 +34,7 @@ export default function ContactPage() {

ut.code(); へのお問い合わせは、各種 SNS をご利用ください。

- X (Twitter) + 𝕏 (旧 Twitter) LINE @@ -53,7 +53,8 @@ export default function ContactPage() {

ご寄付・ご協賛のお願い

{/* eslint-disable prettier/prettier */} - ut.code(); では、活動を支援していただける方を募集しております。詳細につきましては、次のページをご覧ください。 + ut.code(); + では、活動を支援していただける方を募集しております。詳細につきましては、次のページをご覧ください。 {/* eslint-enable prettier/prettier */}

diff --git a/src/pages/index.tsx b/src/pages/index.tsx index d3d28fc1..8e5c6de3 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -186,19 +186,34 @@ export default function IndexPage({ data }: PageProps) { { title: "団体名", content: "ut.code();" }, { title: "構成人数", content: "20 名程度 (アクティブ)" }, { title: "部室", content: "駒場キャンパス学生会館 313B 教室" }, - { title: "X (旧 Twitter)", content: "@utokyo_code" }, + { + title: "𝕏", + content: "@utokyo_code", + link: "https://x.com/utokyo_code", + }, { title: "活動場所", content: "オンライン, 部室, KOMAD, その他施設", }, { title: "所属", content: "東京大学工学部丁友会 (2022 年度)" }, - ].map(({ title, content }) => ( + ].map(({ title, content, link }, idx) => (

  • {title}
    -
    {content}
    + {link ? ( + + {content} + + ) : ( +
    {content}
    + )}
  • ))} diff --git a/src/templates/member.tsx b/src/templates/member.tsx index 0b6f2519..0799b5ec 100644 --- a/src/templates/member.tsx +++ b/src/templates/member.tsx @@ -4,7 +4,7 @@ import { GatsbyImage } from "gatsby-plugin-image"; import nullthrows from "nullthrows"; import Color from "color"; import clsx from "clsx"; -import { FiTwitter, FiGithub, FiGlobe } from "react-icons/fi"; +import { FiGithub, FiGlobe } from "react-icons/fi"; import GlobalHeader from "../components/GlobalHeader"; import GlobalFooter from "../components/GlobalFooter"; import CommonHead from "../components/CommonHead"; @@ -66,9 +66,9 @@ export default function MemberPage({ target="_blank" className={socialButtonClassName} rel="noreferrer" - aria-label="Twitterを見る" + aria-label="𝕏 (旧 Twitter) を見る" > - + 𝕏 )} {data.mdx?.frontmatter?.website && ( From 77d1e1f7c6922824d881b4b7bf8abd0060b7885b Mon Sep 17 00:00:00 2001 From: Yuki Kobayashi <137767097+aster-void@users.noreply.github.com> Date: Tue, 17 Dec 2024 10:04:24 +0900 Subject: [PATCH 2/3] remove key --- src/pages/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 8e5c6de3..46f4682f 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -196,9 +196,8 @@ export default function IndexPage({ data }: PageProps) { content: "オンライン, 部室, KOMAD, その他施設", }, { title: "所属", content: "東京大学工学部丁友会 (2022 年度)" }, - ].map(({ title, content, link }, idx) => ( + ].map(({ title, content, link }) => (
  • {title}
    From 31713e01dad18a7d5f16be19bad470ef7a39ed2f Mon Sep 17 00:00:00 2001 From: Yuki Kobayashi <137767097+aster-void@users.noreply.github.com> Date: Tue, 17 Dec 2024 10:06:24 +0900 Subject: [PATCH 3/3] format --- src/pages/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 46f4682f..b5db8b47 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -197,9 +197,7 @@ export default function IndexPage({ data }: PageProps) { }, { title: "所属", content: "東京大学工学部丁友会 (2022 年度)" }, ].map(({ title, content, link }) => ( -
  • +
  • {title}
    {link ? (