Skip to content

Commit bbeb6a2

Browse files
authored
Twitter -> X に移行 (#193)
1 parent 98f2f59 commit bbeb6a2

File tree

5 files changed

+27
-14
lines changed

5 files changed

+27
-14
lines changed

contents/members/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
| `faceImage` || 顔写真。縦横比は 1:1。顔を中央に配置し、顔の横幅がおよそ写真の横幅の 1/2 になるようにトリミングしてください。 |
1717
| `upperBodyImage` || バストショット。縦横比は 4:3。顔の横幅が画像の横幅のおよそ 1/3、顔の中央が画像上部からおよそ 1/3 になるようにトリミングしてください。 |
1818
| `github` | | GitHub の**アカウント名** |
19-
| `twitter` | | Twitter (X) の **ID** |
19+
| `twitter` | | X (旧 Twitter) の **ID**-- TODO: キーをx_twitterに変える (理由: X だけだとなんのことかわかりにくいため) |
2020
| `website` | | 個人のウェブサイトの URL。 |

src/components/GlobalFooter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default function GlobalFooter({ className }: { className?: string }) {
7474
to: "https://first-programming.utcode.net/",
7575
},
7676
{ title: "GitHub", to: "https://github.com/ut-code" },
77-
{ title: "Twitter", to: "https://twitter.com/utokyo_code" },
77+
{ title: "𝕏", to: "https://twitter.com/utokyo_code" },
7878
]}
7979
/>
8080
</div>

src/pages/contact.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function ContactPage() {
3434
<p>ut.code(); へのお問い合わせは、各種 SNS をご利用ください。</p>
3535
<p className="not-prose flex gap-4">
3636
<ActionButton to="https://twitter.com/utokyo_code">
37-
X (Twitter)
37+
𝕏 (旧 Twitter)
3838
</ActionButton>
3939
<ActionButton to="https://line.me/ti/p/%40nlr3843e">
4040
LINE
@@ -53,7 +53,8 @@ export default function ContactPage() {
5353
<h2>ご寄付・ご協賛のお願い</h2>
5454
<p>
5555
{/* eslint-disable prettier/prettier */}
56-
ut.code(); では、活動を支援していただける方を募集しております。詳細につきましては、次のページをご覧ください。
56+
ut.code();
57+
では、活動を支援していただける方を募集しております。詳細につきましては、次のページをご覧ください。
5758
{/* eslint-enable prettier/prettier */}
5859
</p>
5960
<p className="not-prose">

src/pages/index.tsx

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,19 +186,31 @@ export default function IndexPage({ data }: PageProps<Queries.IndexPageQuery>) {
186186
{ title: "団体名", content: "ut.code();" },
187187
{ title: "構成人数", content: "20 名程度 (アクティブ)" },
188188
{ title: "部室", content: "駒場キャンパス学生会館 313B 教室" },
189-
{ title: "X (旧 Twitter)", content: "@utokyo_code" },
189+
{
190+
title: "𝕏",
191+
content: "@utokyo_code",
192+
link: "https://x.com/utokyo_code",
193+
},
190194
{
191195
title: "活動場所",
192196
content: "オンライン, 部室, KOMAD, その他施設",
193197
},
194198
{ title: "所属", content: "東京大学工学部丁友会 (2022 年度)" },
195-
].map(({ title, content }) => (
196-
<li
197-
key={title}
198-
className="flex gap-4 border-b border-gray-400 px-6 py-3"
199-
>
199+
].map(({ title, content, link }) => (
200+
<li className="flex gap-4 border-b border-gray-400 px-6 py-3">
200201
<div className="w-24">{title}</div>
201-
<div className="flex-1">{content}</div>
202+
{link ? (
203+
<a
204+
href={link}
205+
target="_blank"
206+
rel="noreferrer"
207+
className="flex-1 text-blue-500 underline"
208+
>
209+
{content}
210+
</a>
211+
) : (
212+
<div className="flex-1">{content}</div>
213+
)}
202214
</li>
203215
))}
204216
</ul>

src/templates/member.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { GatsbyImage } from "gatsby-plugin-image";
44
import nullthrows from "nullthrows";
55
import Color from "color";
66
import clsx from "clsx";
7-
import { FiTwitter, FiGithub, FiGlobe } from "react-icons/fi";
7+
import { FiGithub, FiGlobe } from "react-icons/fi";
88
import GlobalHeader from "../components/GlobalHeader";
99
import GlobalFooter from "../components/GlobalFooter";
1010
import CommonHead from "../components/CommonHead";
@@ -66,9 +66,9 @@ export default function MemberPage({
6666
target="_blank"
6767
className={socialButtonClassName}
6868
rel="noreferrer"
69-
aria-label="Twitterを見る"
69+
aria-label="𝕏 (旧 Twitter) を見る"
7070
>
71-
<FiTwitter />
71+
𝕏
7272
</a>
7373
)}
7474
{data.mdx?.frontmatter?.website && (

0 commit comments

Comments
 (0)