This portfolio is a high-performance Single Page Application (SPA) portfolio designed to showcase the duality of a modern software architect. The core feature is a Global Toggle mechanism that instantly transforms the entire application's content, styling, and tone between two distinct personas:
- Corporate Mode (Web2): A clean, minimalist, and professional interface emphasizing enterprise stability, scalability, and traditional full-stack engineering.
- Disruptor Mode (Web3): A cyberpunk-inspired, high-contrast interface highlighting blockchain innovation, smart contract security, and decentralized protocols.
- Dual-State Architecture: Powered by a custom React Context (
EngineeringContext) managing global state for theme and content. - Dynamic Content Engine: All textual content is segregated in a type-safe
content.tsfile, ensuring instant, glitch-free text swaps without page reloads. - Advanced Animations: Leveraging Framer Motion for complex layout transitions (
layoutprop), localized component reshuffling, and smooth orchestrations. - Theme System: Custom Tailwind CSS configuration using CSS variables and data attributes to handle sophisticated color palette shifts (Slate/White vs. Neon/Dark).
First, install dependencies:
npm install
# or
yarn install
# or
pnpm installRun the development server:
npm run dev
# or
yarn dev
# or
pnpm devOpen http://localhost:3000 with your browser to see the result.
src/data/content.ts: The Source of Truth. Contains all text for both modes.src/context/EngineeringContext.tsx: Manages the global toggle state.src/components/sections/: Major UI blocks (Hero, Skills, Projects, Experience).tailwind.config.ts: Defines the custom color palettes and animation utilities.
- Framework: Next.js 15+ (App Router)
- Language: TypeScript (Strict Mode)
- Styling: Tailwind CSS, PostCSS
- Animation: Framer Motion
- Icons: Lucide React