Skip to content

Commit e3b7b09

Browse files
authored
Merge pull request #37 from nicwn/nick-profile
Copied over my builder's page and avatar.
2 parents 4053cff + 87c57b3 commit e3b7b09

File tree

2 files changed

+120
-0
lines changed

2 files changed

+120
-0
lines changed
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
import Image from "next/image";
2+
import { NextPage } from "next";
3+
import { FaGithub, FaLinkedin, FaTwitter } from "react-icons/fa";
4+
import { SiBluesky } from "react-icons/si";
5+
import { Address } from "~~/components/scaffold-eth";
6+
7+
const BUILDER_ADDRESS = "0x48Bf488D00FE4C83e803688ffE5532EB83E9a0ff";
8+
9+
const socialLinks = [
10+
{
11+
href: "https://github.com/nicwn",
12+
label: "GitHub",
13+
icon: <FaGithub className="mr-3" size={20} />,
14+
},
15+
{
16+
href: "https://x.com/nicwn",
17+
label: "X",
18+
icon: <FaTwitter className="mr-3" size={20} />,
19+
},
20+
{
21+
href: "https://linkedin.com/in/nickwang",
22+
label: "LinkedIn",
23+
icon: <FaLinkedin className="mr-3" size={20} />,
24+
},
25+
{
26+
href: "https://bsky.app/profile/nicwn.bsky.social",
27+
label: "Bluesky",
28+
icon: <SiBluesky className="mr-3" size={20} />,
29+
},
30+
];
31+
32+
const NicwnProfilePage: NextPage = () => {
33+
return (
34+
<div className="min-h-screen flex items-center justify-center p-4 font-sans">
35+
<div className="w-full max-w-md mx-auto overflow-hidden rounded-3xl shadow-md shadow-secondary bg-white dark:bg-base-100">
36+
{/* Header with pattern */}
37+
<div className="relative">
38+
<div className="h-36 bg-[#5DA2D5] overflow-hidden relative">
39+
<div className="absolute inset-0 opacity-20">
40+
<div className="absolute inset-0 bg-[radial-gradient(circle_at_50%_120%,white_1px,transparent_1px)] bg-[size:16px_16px]"></div>
41+
</div>
42+
</div>
43+
44+
{/* Avatar */}
45+
<div className="absolute left-0 right-0 -bottom-16 flex justify-center">
46+
<div className="p-1 bg-[#F79E02] rounded-full shadow-md shadow-secondary">
47+
<div className="p-1 bg-[#55BAB7] rounded-full overflow-hidden">
48+
<div className="w-32 h-32 relative">
49+
<Image
50+
src="/nickavatar.avif"
51+
alt="Nicholas Wang"
52+
fill
53+
sizes="(max-width: 128px) 100vw, 128px"
54+
className="object-cover"
55+
priority
56+
/>
57+
</div>
58+
</div>
59+
</div>
60+
</div>
61+
</div>
62+
63+
{/* Content */}
64+
<div className="pt-20 px-8 pb-8">
65+
<div className="text-center mb-8">
66+
<h1 className="text-3xl font-bold mb-2">Nicholas Wang</h1>
67+
<div className="flex justify-center">
68+
<span className="px-3 py-1 text-sm rounded-full bg-[#5DA2D5] inline-block mb-4 text-white">
69+
LEGO Ideas Creator
70+
</span>
71+
</div>
72+
<p className="text-lg mb-6 max-w-xs mx-auto">
73+
I am Nick Wang. My claim to fame was the creation LEGO Ideas, where I moved from NYC to Tokyo and led a
74+
small team to make fan created LEGO sets a reality.
75+
</p>
76+
77+
{/* Address display */}
78+
<div className="bg-base-200 rounded-lg p-3 mb-6 shadow-md shadow-secondary break-all relative">
79+
<div className="flex items-center justify-between">
80+
<div>
81+
<span className="text-xs text-accent block text-left mb-1">Ethereum Address</span>
82+
<Address address={BUILDER_ADDRESS} format="short" />
83+
</div>
84+
</div>
85+
</div>
86+
</div>
87+
88+
{/* Connect Section */}
89+
<div className="divider before:bg-[#5DA2D5] after:bg-[#5DA2D5]">Connect</div>
90+
91+
<div className="grid grid-cols-2 gap-4 mb-8">
92+
{socialLinks.map(({ href, label, icon }) => (
93+
<a
94+
key={href}
95+
href={href}
96+
target="_blank"
97+
rel="noopener noreferrer"
98+
className="flex items-center px-4 py-3 rounded-lg bg-base-200 hover:bg-[#5DA2D5] hover:text-white transition-all duration-300 transform hover:scale-105 group"
99+
>
100+
{icon}
101+
<span className="font-medium">{label}</span>
102+
<svg
103+
xmlns="http://www.w3.org/2000/svg"
104+
viewBox="0 0 24 24"
105+
width="14"
106+
height="14"
107+
className="ml-auto opacity-0 group-hover:opacity-100 transition-opacity fill-current"
108+
>
109+
<path d="M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19V6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z" />
110+
</svg>
111+
</a>
112+
))}
113+
</div>
114+
</div>
115+
</div>
116+
</div>
117+
);
118+
};
119+
120+
export default NicwnProfilePage;
23.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)