|
| 1 | +import Image from "next/image"; |
| 2 | +import { InfoCard } from "./components/InfoCard"; |
| 3 | +import { PROFILE_DATA, SOCIAL_LINKS } from "./constants"; |
| 4 | +import { Address } from "@scaffold-ui/components"; |
| 5 | +import type { NextPage } from "next"; |
| 6 | + |
| 7 | +const ZarccProfile: NextPage = () => { |
| 8 | + return ( |
| 9 | + <div className="flex flex-col items-center justify-center min-h-screen px-4 py-12 bg-base-200 dark:bg-base-100"> |
| 10 | + <div className="max-w-3xl w-full space-y-8"> |
| 11 | + {/* Header Section */} |
| 12 | + <div className="text-center space-y-4"> |
| 13 | + <div className="inline-flex items-center justify-center w-24 h-24 rounded-full bg-primary/10 dark:bg-secondary/20 border-4 border-primary/30 dark:border-secondary/40"> |
| 14 | + <Image src={"/zarccAvatar.webp"} alt="Zarcc" width={100} height={100} className="rounded-full" /> |
| 15 | + </div> |
| 16 | + <h1 className="text-4xl md:text-5xl font-bold tracking-tight">{PROFILE_DATA.name}</h1> |
| 17 | + <p className="text-lg text-base-content/70 dark:text-base-content/80 italic">{PROFILE_DATA.tagline}</p> |
| 18 | + </div> |
| 19 | + |
| 20 | + {/* Address Section */} |
| 21 | + <div className="flex justify-center"> |
| 22 | + <div className="bg-base-100 dark:bg-base-300 rounded-lg px-6 py-3 border border-base-300 dark:border-base-100 shadow-sm"> |
| 23 | + <Address address={PROFILE_DATA.address} format="long" /> |
| 24 | + </div> |
| 25 | + </div> |
| 26 | + |
| 27 | + <InfoCard title="About Me"> |
| 28 | + <p className="text-base-content/80 dark:text-base-content/90 leading-relaxed">{PROFILE_DATA.bio}</p> |
| 29 | + </InfoCard> |
| 30 | + |
| 31 | + <InfoCard title="Current Focus"> |
| 32 | + <p className="text-base-content/80 dark:text-base-content/90 leading-relaxed"> |
| 33 | + 🎯 {PROFILE_DATA.currentFocus} |
| 34 | + </p> |
| 35 | + </InfoCard> |
| 36 | + |
| 37 | + <InfoCard title="Tech Stack"> |
| 38 | + <div className="flex flex-wrap gap-3"> |
| 39 | + {PROFILE_DATA.skills.map(skill => ( |
| 40 | + <span |
| 41 | + key={skill} |
| 42 | + className="px-4 py-2 bg-primary/10 dark:bg-secondary/20 text-primary dark:text-white rounded-full text-sm font-medium border border-primary/20 dark:border-secondary/30" |
| 43 | + > |
| 44 | + {skill} |
| 45 | + </span> |
| 46 | + ))} |
| 47 | + </div> |
| 48 | + </InfoCard> |
| 49 | + |
| 50 | + <InfoCard title="Connect with Me"> |
| 51 | + <div className="grid grid-cols-1 md:grid-cols-4 gap-4"> |
| 52 | + {SOCIAL_LINKS.map(link => { |
| 53 | + const IconComponent = link.icon; |
| 54 | + return ( |
| 55 | + <a |
| 56 | + key={link.name} |
| 57 | + href={link.url} |
| 58 | + target="_blank" |
| 59 | + rel="noopener noreferrer" |
| 60 | + className="flex flex-col items-center p-6 bg-base-200 dark:bg-base-200 rounded-xl border border-base-300 dark:border-base-200 transition-all hover:scale-105 hover:shadow-md hover:border-primary/50 dark:hover:border-secondary/40 group" |
| 61 | + > |
| 62 | + <IconComponent className="w-8 h-8 mb-3 text-primary dark:text-white/50 group-hover:text-primary-focus dark:group-hover:text-secondary-focus" /> |
| 63 | + <span className="font-semibold text-base-content mb-1">{link.name}</span> |
| 64 | + <span className="text-sm text-center whitespace-nowrap text-base-content/60 dark:text-base-content/50"> |
| 65 | + {link.description} |
| 66 | + </span> |
| 67 | + </a> |
| 68 | + ); |
| 69 | + })} |
| 70 | + </div> |
| 71 | + </InfoCard> |
| 72 | + |
| 73 | + <div className="text-center pt-8"> |
| 74 | + <p className="text-sm text-base-content/50 dark:text-base-content/40 italic"> |
| 75 | + “The best time to plant a tree was 20 years ago. The second best time is now.” - Building in |
| 76 | + Web3 since 2025 |
| 77 | + </p> |
| 78 | + </div> |
| 79 | + </div> |
| 80 | + </div> |
| 81 | + ); |
| 82 | +}; |
| 83 | + |
| 84 | +export default ZarccProfile; |
0 commit comments