Skip to content

Commit fe0db12

Browse files
committed
refactor: rirekisho print pages directives
1 parent 86267ee commit fe0db12

File tree

6 files changed

+28
-12
lines changed

6 files changed

+28
-12
lines changed

messages/fr.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"home": "Retour à l'acceuil",
44
"githubPortfolio": "Accéder à mon Github",
55
"rirekisho": "Rirekisho",
6-
"Theme": "Thème"
6+
"theme": "Thème"
77
},
88
"Home": {
99
"githubPortfolio": "Accéder à mon Github"

messages/ja.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"home": "ホームページに戻る",
44
"githubPortfolio": "私のGithubポートフォリオをご覧ください",
55
"rirekisho": "履歴書",
6-
"Theme": "テーマ"
6+
"theme": "テーマ"
77
},
88
"Home": {
99
"githubPortfolio": "私のGithubポートフォリオをご覧ください"
@@ -58,15 +58,15 @@
5858
"value": "情報なし"
5959
},
6060
"mailPerso": {
61-
"legend": "Eメール",
61+
"legend": "メール",
6262
"value": "[email protected]"
6363
},
6464
"phonePro": {
6565
"legend": "電話",
6666
"value": "同上"
6767
},
6868
"mailPro": {
69-
"legend": "Eメール",
69+
"legend": "メール",
7070
"value": "同上"
7171
}
7272
},

src/app/[locale]/components/Header.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface Props {
1313
export const Header: FC<Props> = ({ locale }) => {
1414
const t = useTranslations();
1515
return (
16-
<div className='mx-auto flex max-w-screen-2xl flex-row items-center justify-between p-5'>
16+
<div className='mx-auto flex max-w-screen-2xl flex-row items-center justify-between p-5 print:hidden'>
1717
<nav className='mr-10 inline-flex gap-5 text-button'>
1818
<Link
1919
lang={locale}

src/app/[locale]/rirekisho/components/personal-infos/InfoItem.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ const _defaultStyle = {
2222
},
2323
wrapper: 'col-span-full grid grid-cols-subgrid grid-rows-subgrid',
2424
definition: {
25-
grid: 'col-span-1 row-span-1',
26-
text: 'text-center',
25+
grid: 'col-span-2 row-span-1',
26+
text: 'text-center font-bold',
2727
},
2828
term: {
29-
grid: 'col-span-full col-start-2',
29+
grid: 'col-span-full col-start-3',
3030
},
3131
};
3232

src/app/[locale]/rirekisho/components/personal-infos/index.tsx

+19-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function PersonalInfos() {
88
const now = new Date();
99

1010
return (
11-
<div>
11+
<>
1212
<div className='grid auto-cols-fr grid-cols-12'>
1313
<RirekishoHeader
1414
title={t('Rirekisho.PersonalInfos.title')}
@@ -41,7 +41,7 @@ export default function PersonalInfos() {
4141
<span
4242
aria-label={t('Rirekisho.PersonalInfos.gender.ariaLabel')}
4343
role='img'
44-
className='rounded-full border border-solid border-black pb-1 pe-3 ps-3 pt-1'
44+
className='rounded-full border border-solid border-black pb-1 pe-2 ps-2 pt-1'
4545
>
4646
{chunks}
4747
</span>
@@ -86,6 +86,10 @@ export default function PersonalInfos() {
8686
legend={t('Rirekisho.PersonalInfos.phonePerso.legend')}
8787
value={t('Rirekisho.PersonalInfos.phonePerso.value')}
8888
className='col-start-10'
89+
style={{
90+
definition: 'col-span-1',
91+
term: 'col-start-2',
92+
}}
8993
/>
9094

9195
<InfoItem
@@ -100,6 +104,10 @@ export default function PersonalInfos() {
100104
legend={t('Rirekisho.PersonalInfos.mailPerso.legend')}
101105
value={t('Rirekisho.PersonalInfos.mailPerso.value')}
102106
className='col-start-10'
107+
style={{
108+
definition: 'col-span-1',
109+
term: 'col-start-2',
110+
}}
103111
/>
104112

105113
<InfoItem
@@ -113,6 +121,10 @@ export default function PersonalInfos() {
113121
legend={t('Rirekisho.PersonalInfos.phonePro.legend')}
114122
value={t('Rirekisho.PersonalInfos.phonePro.value')}
115123
className='col-start-10'
124+
style={{
125+
definition: 'col-span-1',
126+
term: 'col-start-2',
127+
}}
116128
/>
117129

118130
<InfoItem
@@ -127,9 +139,13 @@ export default function PersonalInfos() {
127139
legend={t('Rirekisho.PersonalInfos.mailPro.legend')}
128140
value={t('Rirekisho.PersonalInfos.mailPro.value')}
129141
className='col-start-10'
142+
style={{
143+
definition: 'col-span-1',
144+
term: 'col-start-2',
145+
}}
130146
/>
131147
</dl>
132148
</div>
133-
</div>
149+
</>
134150
);
135151
}

src/app/[locale]/rirekisho/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PersonalInfos from './components/personal-infos/index';
33

44
export default function Rirekisho() {
55
return (
6-
<section className='flex flex-col gap-y-2 bg-slate-50 dark:bg-slate-900'>
6+
<section className='flex flex-col gap-y-2 bg-slate-50 dark:bg-slate-900 p-2 print:p-0'>
77
<PersonalInfos />
88
<Education />
99

0 commit comments

Comments
 (0)