Skip to content

Commit ec4176b

Browse files
committed
enable click
Signed-off-by: walnuts1018 <walnuts1018@hatena.com>
1 parent dbb9948 commit ec4176b

File tree

2 files changed

+14
-75
lines changed

2 files changed

+14
-75
lines changed

src/components/ContentHeader.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
import SwapText from "./SwapText";
22

3-
export const ContentHeader = ({
4-
initialText,
5-
finalText,
6-
}: {
7-
finalText: string;
8-
initialText: string;
9-
}) => {
3+
export const ContentHeader = ({ initialText, finalText }: { finalText: string; initialText: string }) => {
104
return (
115
<SwapText
126
textClassName="cursor-default text-4xl text-center lg:text-left"
137
initialText={initialText}
148
initialTextClassName="font-Nunito"
159
finalText={finalText}
1610
finalTextClassName="font-ZenMaruGothic font-semibold"
17-
disableClick={true}
11+
disableClick={false}
1812
/>
1913
);
2014
};

src/components/Profile.tsx

Lines changed: 12 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -23,59 +23,30 @@ export function Profile() {
2323
initialTextClassName=""
2424
finalText="Ryota Tawara"
2525
finalTextClassName=""
26-
disableClick={true}
26+
disableClick={false}
2727
/>
2828
</div>
2929
<div className="space-y-1 sm:space-y-2">
30-
<ProfileItem
31-
src="/icons/twitter-x-line.svg"
32-
alt="X(Twitter)"
33-
link="https://twitter.com/walnuts1018"
34-
>
30+
<ProfileItem src="/icons/twitter-x-line.svg" alt="X(Twitter)" link="https://twitter.com/walnuts1018">
3531
@walnuts1018
3632
</ProfileItem>
37-
<ProfileItem
38-
src="/icons/github-fill.svg"
39-
alt="GitHub"
40-
link="https://github.com/walnuts1018"
41-
>
33+
<ProfileItem src="/icons/github-fill.svg" alt="GitHub" link="https://github.com/walnuts1018">
4234
walnuts1018
4335
</ProfileItem>
44-
<ProfileItem
45-
src="/icons/instagram-line.svg"
46-
alt="Instagram"
47-
link="https://www.instagram.com/walnuts_1018/"
48-
>
36+
<ProfileItem src="/icons/instagram-line.svg" alt="Instagram" link="https://www.instagram.com/walnuts_1018/">
4937
@walnuts_1018
5038
</ProfileItem>
51-
<ProfileItem
52-
src="/icons/mail_FILL0_wght400_GRAD0_opsz24.svg"
53-
alt="Mail"
54-
link="mailto:r.juglans.1018@gmail.com"
55-
fontSize="text-2xl"
56-
>
39+
<ProfileItem src="/icons/mail_FILL0_wght400_GRAD0_opsz24.svg" alt="Mail" link="mailto:r.juglans.1018@gmail.com" fontSize="text-2xl">
5740
r.juglans.1018@gmail.com
5841
</ProfileItem>
5942
<School />
60-
<ProfileItem
61-
src="/icons/favorite_FILL0_wght400_GRAD0_opsz24.svg"
62-
alt="Favorite Tech"
63-
fontSize="text-2xl"
64-
>
43+
<ProfileItem src="/icons/favorite_FILL0_wght400_GRAD0_opsz24.svg" alt="Favorite Tech" fontSize="text-2xl">
6544
Kubernetes / Golang / OpenTelemetry / React
6645
</ProfileItem>
67-
<ProfileItem
68-
src="/icons/map_FILL0_wght400_GRAD0_opsz24.svg"
69-
alt="Map Icon"
70-
link="https://maps.app.goo.gl/2nuqetk7S8FcNayWA"
71-
>
46+
<ProfileItem src="/icons/map_FILL0_wght400_GRAD0_opsz24.svg" alt="Map Icon" link="https://maps.app.goo.gl/2nuqetk7S8FcNayWA">
7247
<Image src="/icons/yummy.png" alt="yummy" width={30} height={30} />
7348
</ProfileItem>
74-
<ProfileItem
75-
src="/icons/shopping_cart_FILL0_wght400_GRAD0_opsz24.svg"
76-
alt="shopping cart icon"
77-
link="https://www.amazon.jp/hz/wishlist/ls/1L1NGV8XKP7X6?ref_=wl_share"
78-
>
49+
<ProfileItem src="/icons/shopping_cart_FILL0_wght400_GRAD0_opsz24.svg" alt="shopping cart icon" link="https://www.amazon.jp/hz/wishlist/ls/1L1NGV8XKP7X6?ref_=wl_share">
7950
Want-to-Buy
8051
</ProfileItem>
8152
</div>
@@ -84,39 +55,17 @@ export function Profile() {
8455
);
8556
}
8657

87-
function ProfileItem({
88-
src,
89-
alt,
90-
children,
91-
link,
92-
fontSize = "text-2xl sm:text-3xl",
93-
}: {
94-
alt: string;
95-
children: React.ReactNode;
96-
fontSize?: string;
97-
link?: string;
98-
src: string;
99-
}) {
58+
function ProfileItem({ src, alt, children, link, fontSize = "text-2xl sm:text-3xl" }: { alt: string; children: React.ReactNode; fontSize?: string; link?: string; src: string }) {
10059
const content = (
10160
<>
102-
<Image
103-
src={src}
104-
alt={alt}
105-
width={40}
106-
height={40}
107-
className="min-w-[36px] max-w-[36px] sm:min-w-[40px] sm:max-w-[40px] object-contain"
108-
/>
61+
<Image src={src} alt={alt} width={40} height={40} className="min-w-[36px] max-w-[36px] sm:min-w-[40px] sm:max-w-[40px] object-contain" />
10962
<p className="leading-7">{children}</p>
11063
</>
11164
);
11265
return (
11366
<>
11467
{link === undefined ? (
115-
<div
116-
className={`flex space-x-3 text-[#7f7f7f] font-bold items-center ${fontSize} w-full sm:outline-hidden flex rounded-full px-4 py-1 profile-list`}
117-
>
118-
{content}
119-
</div>
68+
<div className={`flex space-x-3 text-[#7f7f7f] font-bold items-center ${fontSize} w-full sm:outline-hidden flex rounded-full px-4 py-1 profile-list`}>{content}</div>
12069
) : (
12170
<Link
12271
target="_blank"
@@ -140,11 +89,7 @@ function School() {
14089
const b = now >= new Date("2025-04-01") ? "B4" : "B3";
14190

14291
return (
143-
<ProfileItem
144-
src="/icons/school_FILL0_wght400_GRAD0_opsz24.svg"
145-
alt="School"
146-
link="https://www.s-ee.t.kyoto-u.ac.jp/ja"
147-
>
92+
<ProfileItem src="/icons/school_FILL0_wght400_GRAD0_opsz24.svg" alt="School" link="https://www.s-ee.t.kyoto-u.ac.jp/ja">
14893
Kyoto Univ. / {b}
14994
</ProfileItem>
15095
);

0 commit comments

Comments
 (0)