File tree Expand file tree Collapse file tree 2 files changed +20
-8
lines changed
Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,14 @@ const members = await getMembers();
5454 class = " skeleton rounded-none"
5555 />
5656 <div class = " absolute bottom-0 w-full min-w-45 bg-gradient-to-b from-transparent to-black px-6 pt-12 pb-6 text-white transition-all" >
57- <h2 class = " text-3xl" >{ member .data .nameJa } </h2 >
58- <p class = " text-md" >{ member .data .nameEn } </p >
57+ { member .data .nameJa === member .data .nameEn ? (
58+ <h2 class = " mb-4 text-4xl" >{ member .data .nameJa } </h2 >
59+ ) : (
60+ <>
61+ <h2 class = " text-3xl" >{ member .data .nameJa } </h2 >
62+ <p class = " text-md" >{ member .data .nameEn } </p >
63+ </>
64+ )}
5965 <p class = " mt-2 text-xs leading-normal" >
6066 { member .data .description }
6167 </p >
Original file line number Diff line number Diff line change @@ -39,12 +39,18 @@ const articles = await getArticles({
3939 class =" mx-auto flex h-full w-full max-w-5xl items-center justify-around"
4040 >
4141 <div class =" w-fit flex-1 px-4 py-12" >
42- <h1 class =" text-3xl lg:text-6xl" >
43- { member .data .nameJa }
44- </h1 >
45- <h2 class =" text-md mt-1 md:mt-4 md:text-xl lg:text-2xl" >
46- { member .data .nameEn }
47- </h2 >
42+ {
43+ member .data .nameJa === member .data .nameEn ? (
44+ <h1 class = " pb-6 text-4xl lg:text-7xl" >{ member .data .nameJa } </h1 >
45+ ) : (
46+ <>
47+ <h1 class = " text-3xl lg:text-6xl" >{ member .data .nameJa } </h1 >
48+ <h2 class = " text-md mt-1 md:mt-4 md:text-xl lg:text-2xl" >
49+ { member .data .nameEn }
50+ </h2 >
51+ </>
52+ )
53+ }
4854 <div class =" mt-4 flex gap-4 text-4xl md:mt-6" >
4955 {
5056 member .data .github && (
You can’t perform that action at this time.
0 commit comments