Skip to content

Commit 7966b92

Browse files
committed
feature: aboutページの進捗。ネームプレートとアバターを追加
Add new about page layout and update configurations Refactored the about page for improved structure and design, including better image handling and responsiveness. Updated `next.config.ts` to allow external image domains. Modified devcontainer plugins and added new assets for enhanced functionality and visuals.
1 parent 80d6b60 commit 7966b92

File tree

5 files changed

+76
-33
lines changed

5 files changed

+76
-33
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"backend": "WebStorm",
1818
"plugins": [
1919
"Jetbrains TeamCity Plugin",
20-
// "Key Promoter X",
2120
"com.intellij.kubernetes",
2221
"cn.yiiguxing.plugin.translate",
2322
"com.dsoftware.ghtoolbar",
@@ -38,6 +37,9 @@
3837
"zielu.gittoolbox",
3938
"com.github.warningimhack3r.intellijshadcnplugin",
4039
"org.jetbrains.plugins.go-template",
40+
"com.wix.sasslint",
41+
"software.xdev.saveactions",
42+
"com.apidog.fastrequest"
4143
]
4244
}
4345
}

next.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import type { NextConfig } from "next";
33

44
const nextConfig: NextConfig = {
55
reactStrictMode: true,
6+
images: {
7+
domains: ['github.com'],
8+
},
69
};
710

811
export default withKumaUI(nextConfig, {

public/images/avatar.png

162 KB
Loading
Lines changed: 23 additions & 23 deletions
Loading

src/app/about/page.tsx

Lines changed: 47 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,58 @@ import Image from "next/image";
44

55
export default function Page() {
66
return (
7-
<div className="w-full flex flex-col items-center py-4 px-8 gap-16">
7+
<div className="w-full h-[70vh] flex flex-col items-center py-4 px-4 gap-16">
88
<div className="flex w-full max-w-6xl">
9-
<h1 className="text-6xl font-black italic text-gray-700 text-6rem tracking-[1rem]">
9+
<h1 className="text-6xl font-black italic text-gray-700 text-6rem tracking-[1rem]">
1010
About
1111
</h1>
1212
</div>
1313

14-
<div className="w-full flex justify-center max-w-2xl">
15-
<div className="flex relative">
16-
<Image src="/images/ryuzu.png" alt="avatar" width={16} height={128} className="absolute left-0"/>
17-
<Avatar className="absolute right-0 w-128 h-128">
18-
<AvatarImage src="https://github.com/Y-RyuZU.png" alt="@shadcn" />
19-
<AvatarFallback>CN</AvatarFallback>
20-
</Avatar>
14+
<div className="relative w-full h-full flex justify-center items-center gap-16 py-8 sm:py-16">
15+
<div className="relative w-[60vw] h-[50vw] max-w-[38rem] max-h-[32rem]">
16+
<div className="
17+
absolute
18+
right-0
19+
h-full
20+
z-0
21+
flex items-center justify-center
22+
">
23+
<Avatar className="w-full h-full">
24+
<AvatarImage
25+
src="https://github.com/Y-RyuZU.png"
26+
alt="@shadcn"
27+
className="object-contain"
28+
loading="eager"
29+
/>
30+
<AvatarFallback>RZ</AvatarFallback>
31+
</Avatar>
32+
</div>
33+
34+
<div className="absolute bottom-0 h-[80%] aspect-[173/359] z-10">
35+
<Image
36+
src="/images/ryuzu.png"
37+
alt="Self Image"
38+
className="object-contain w-full h-full"
39+
fill
40+
sizes="(max-width: 640px) 60vw, (max-width: 1024px) 60vw, 48rem"
41+
priority
42+
/>
43+
</div>
44+
</div>
45+
46+
<div className="flex flex-col gap-4 h-full w-[40vw] justify-start">
47+
<div className="h-[2rem] w-full">
48+
49+
</div>
50+
<div className="relative w-full h-[70%]">
51+
<Image
52+
src="/images/nameplate.svg"
53+
alt="Name Plate"
54+
fill
55+
className="object-contain w-full h-[70%]"
56+
priority
57+
/>
58+
</div>
2159
</div>
2260
</div>
2361
</div>

0 commit comments

Comments
 (0)