-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/members-list
- Loading branch information
Showing
9 changed files
with
185 additions
and
11 deletions.
There are no files selected for viewing
70 changes: 70 additions & 0 deletions
70
packages/nextjs/app/builders/0x26BfbD8ED2B302ec2c2B6f063C4caF7abcB062e0/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import Image from "next/image"; | ||
import type { NextPage } from "next"; | ||
import { FaDiscord, FaGithub, FaTelegram } from "react-icons/fa"; | ||
import { Address } from "~~/components/scaffold-eth"; | ||
|
||
const PeterProfile: NextPage = () => { | ||
const socials = [ | ||
{ | ||
name: "Telegram", | ||
icon: <FaTelegram size={24} />, | ||
address: "https://telegram.me/pbkompasz", | ||
}, | ||
{ | ||
name: "Discord", | ||
icon: <FaDiscord size={24} />, | ||
address: "https://discordapp.com/users/kbence9208", | ||
}, | ||
{ | ||
name: "GitHub", | ||
icon: <FaGithub size={24} />, | ||
address: "https://github.com/pbkompasz", | ||
}, | ||
]; | ||
|
||
return ( | ||
<div className="flex items-center justify-center h-full max-h-screen pt-16"> | ||
<div className="card shadow-lg rounded-lg p-6 max-w-md"> | ||
<Image | ||
src={"/0x26BfbD8ED2B302ec2c2B6f063C4caF7abcB062e0-avatar.jpg"} | ||
width={100} | ||
height={100} | ||
alt={"Profile"} | ||
className="rounded-full self-center" | ||
/> | ||
<div className="px-6 py-4 flex flex-col items-center"> | ||
<h2 className="font-bold text-xl mb-2 text-center">Peter Kompasz</h2> | ||
<div className="text-center"> | ||
<p>Fullstack Developer</p> | ||
<p> | ||
Hello! I'm Peter. | ||
<br /> | ||
My journey into <span className="font-bold">web3</span> began with studying computer science at | ||
university, followed by a stint in web development. | ||
<br /> | ||
Currently, I'm transitioning into <span className="font-bold">web3</span> and{" "} | ||
<span className="font-bold">smart contract development</span>, which I'm really{" "} | ||
<span className="font-bold">passionate</span> about | ||
</p> | ||
</div> | ||
<div className="flex justify-center space-x-4"> | ||
{socials.map((social, id) => ( | ||
<a | ||
key={id} | ||
href={social.address} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="btn btn-ghost btn-square" | ||
> | ||
{social.icon} | ||
</a> | ||
))} | ||
</div> | ||
<Address address="0x26BfbD8ED2B302ec2c2B6f063C4caF7abcB062e0" /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PeterProfile; |
File renamed without changes.
21 changes: 21 additions & 0 deletions
21
...ges/nextjs/app/builders/0xe9Ad7D1C2069E0Fa9b5852Adc77C9196651BB8b8/components/Socials.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import Link from "next/link"; | ||
import { FaGithub, FaXTwitter } from "react-icons/fa6"; | ||
|
||
const Socials: React.FC = () => { | ||
const socialPlatforms = [ | ||
{ name: "github", url: "https://github.com/krvvs", icon: <FaGithub size={24} /> }, | ||
{ name: "twitter", url: "https://x.com/xkrvsx", icon: <FaXTwitter size={24} /> }, | ||
]; | ||
|
||
return ( | ||
<div className="flex flex-row gap-4"> | ||
{socialPlatforms.map(social => ( | ||
<Link key={social.name} href={social.url} target="_blank"> | ||
{social.icon} | ||
</Link> | ||
))} | ||
</div> | ||
); | ||
}; | ||
|
||
export default Socials; |
54 changes: 54 additions & 0 deletions
54
packages/nextjs/app/builders/0xe9Ad7D1C2069E0Fa9b5852Adc77C9196651BB8b8/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
"use client"; | ||
|
||
import Socials from "./components/Socials"; | ||
import type { NextPage } from "next"; | ||
import { useEnsAvatar, useEnsName } from "wagmi"; | ||
import { Address } from "~~/components/scaffold-eth"; | ||
|
||
const builderAddress = "0xe9Ad7D1C2069E0Fa9b5852Adc77C9196651BB8b8"; | ||
const shortBuilderAddress = builderAddress.slice(0, 6); | ||
|
||
const KrvvsProfile: NextPage = () => { | ||
const { data: fetchedEns } = useEnsName({ | ||
address: builderAddress, | ||
chainId: 1, | ||
}); | ||
|
||
const { data: fetchedEnsAvatar } = useEnsAvatar({ | ||
name: fetchedEns ? fetchedEns : "", | ||
chainId: 1, | ||
}); | ||
|
||
return ( | ||
<div className="flex justify-center"> | ||
<div className="w-[800px] min-w-[200px] max-w-[800px] p-[30px] m-[50px] bg-base-200 shadow-2xl rounded-2xl flex flex-col gap-6 items-center"> | ||
<div className="avatar"> | ||
<div className="w-40 rounded-full"> | ||
{/* eslint-disable-next-line @next/next/no-img-element */} | ||
<img | ||
src={fetchedEnsAvatar || "https://avatars.githubusercontent.com/u/141290516?v=4"} | ||
alt="Builder's Avatar" | ||
/> | ||
</div> | ||
</div> | ||
<div className="flex flex-col items-center gap-4"> | ||
<div className="card-title">{fetchedEns || shortBuilderAddress}</div> | ||
<Socials /> | ||
</div> | ||
|
||
<div className="text-center max-w-[400px] mt-[8px]"> | ||
<p>Hello World!</p> | ||
<p> | ||
I am a builder who enjoys learning and creating value, with a strong interest in bringing blockchain | ||
technologies to life. | ||
</p> | ||
</div> | ||
<div className="flex items-center mt-8"> | ||
<Address address={builderAddress} format="short" size="xs" onlyEnsOrAddress={true} /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default KrvvsProfile; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+11.5 KB
packages/nextjs/public/0x26BfbD8ED2B302ec2c2B6f063C4caF7abcB062e0-avatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.