Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created a personal page for snook1.eth (0xeb50...) #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import Image from "next/image";
import Link from "next/link";
import avatar from "./avatar.png";
import styles from "./styles.module.css";
import type { NextPage } from "next";

const Personal: NextPage = () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since there are more personal pages, it would be nice to give it a more descriptive name.

return (
<div className="flex flex-col items-center p-4">
<Image
src={avatar}
alt="Nick's Avatar"
width={150}
height={150}
className={`rounded-full mb-4 ${styles.animatedXMotion}`}
/>
<h1 className="text-3xl font-bold">snook1.eth</h1>
<h2 className="text-xl ">Nick Jarosz</h2>
<h3 className="text-l">Chicago, IL</h3>
<h4 className="text-center">Developer | Blockchain Enthusiast</h4>
<div className="bio-book bg-white shadow-lg rounded-lg p-4 max-w-md mb-4">
<p className="text-center mb-4 text-lg max-w-md">
I am a blockchain developer passionate about learning everything Web3 and Crypto. Currently exploring the
intersection of RFID technology with Ethereum to build real-world supply chain solutions.
</p>
</div>
<div className="grid grid-cols-2 gap-4 mt-4">
{[
{ href: "https://x.com/snook_eth", label: "X" },
{ href: "https://github.com/NJarosz", label: "GitHub" },
Comment on lines +29 to +30
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could create a social links array and move it outside the component to prevent unnecessary recreation on each render and to enhance readability.

].map((link, index) => (
<Link key={index} href={link.href} target="_blank" rel="noopener noreferrer">
<div className="flex items-center justify-center p-2 rounded-md border-2 border-gray-300 bg-white hover:border-blue-500 transition-all duration-300 ease-in-out">
<span className="text-l font-bold">{link.label}</span>
</div>
</Link>
))}
</div>
</div>
);
};

export default Personal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* styles.module.css */
@keyframes xMotion {

0%,
100% {
transform: translate(0, 0);
}

25% {
transform: translate(10px, -5px);
}

50% {
transform: translate(-10px, -5px);
}

75% {
transform: translate(10px, 0px);
}
}

.animatedXMotion {
animation: xMotion 3s ease-in-out infinite;
}