Skip to content

Commit 95532d2

Browse files
authored
Merge pull request #3 from kq5y/codex/add-toggle-for-certifications-display
Allow hiding specific certifications from About page
2 parents 533980a + fee964a commit 95532d2

4 files changed

Lines changed: 15 additions & 7 deletions

File tree

src/components/AboutPage/AboutPage.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const educationHistory = sortedHistory.filter(
3030
);
3131
const careerHistory = sortedHistory.filter((item) => item.type !== "education");
3232
const sortedCerts = sortByDateDesc(personalData.certs);
33+
const visibleCerts = sortedCerts.filter((cert) => !cert.hidden);
3334
const sortedCtfs = sortByDateDesc(personalData.ctfs);
3435
---
3536

@@ -114,7 +115,7 @@ const sortedCtfs = sortByDateDesc(personalData.ctfs);
114115
</div>
115116
<div class:list={[styles.sectionContent, styles.timeline]}>
116117
{
117-
sortedCerts.map((cert) => (
118+
visibleCerts.map((cert) => (
118119
<TimelineEntry
119120
date={cert.date}
120121
title={cert.name}

src/content/personal/en.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@
122122
{
123123
"name": "TOEIC Listening & Reading 645",
124124
"description": "Listening:330 Reading:315",
125-
"date": "2024-04"
125+
"date": "2024-04",
126+
"hidden": true
126127
},
127128
{
128129
"name": "Applied Information Technology Engineer Exam",
@@ -131,7 +132,8 @@
131132
},
132133
{
133134
"name": "Japanese ordinary driver license (AT only)",
134-
"date": "2023-12"
135+
"date": "2023-12",
136+
"hidden": true
135137
},
136138
{
137139
"name": "Technopro Design food package image analysis challenge (general and student divisions)",
@@ -155,7 +157,8 @@
155157
{
156158
"name": "EIKEN Grade Pre-2",
157159
"description": "Passed",
158-
"date": "2021-06"
160+
"date": "2021-06",
161+
"hidden": true
159162
},
160163
{
161164
"name": "Fundamental Information Technology Engineer Exam",

src/content/personal/ja.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@
122122
{
123123
"name": "TOEIC Listening & Reading 645点",
124124
"description": "Listening:330 Reading:315",
125-
"date": "2024-04"
125+
"date": "2024-04",
126+
"hidden": true
126127
},
127128
{
128129
"name": "応用情報技術者試験 合格",
@@ -131,7 +132,8 @@
131132
},
132133
{
133134
"name": "普通自動車第一種運転免許(AT限定) 取得",
134-
"date": "2023-12"
135+
"date": "2023-12",
136+
"hidden": true
135137
},
136138
{
137139
"name": "テクノプロ・デザイン社 食品パッケージ画像解析チャレンジ(一般部門・学生部門)",
@@ -154,7 +156,8 @@
154156
},
155157
{
156158
"name": "実用英語技能検定 準2級 合格",
157-
"date": "2021-06"
159+
"date": "2021-06",
160+
"hidden": true
158161
},
159162
{
160163
"name": "基本情報技術者試験 合格",

src/data/personal.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const personalSchema = z.object({
5454
description: z.string().min(1).optional(),
5555
date: z.string().min(1),
5656
links: z.array(linkSchema).optional(),
57+
hidden: z.boolean().optional(),
5758
})
5859
),
5960
ctfs: z.array(

0 commit comments

Comments
 (0)