Beautiful animated personal portfolio showcasing projects, GitHub stats, and live Discord presence.
- Next.js 14 - React framework for production
- Framer Motion - Animation library for React
- TailwindCSS - Utility-first CSS framework
- GitHub API - Fetch repository and stats data
- TypeScript - Type-safe development
- ✨ Beautiful animated UI/UX with Framer Motion
- 🎨 Professional branding and design
- 📊 Real-time GitHub stats and repositories
- 💬 Discord presence integration (using Lanyard API)
- 📱 Fully responsive design
- 🚀 Optimized performance with Next.js
- 🎯 Smooth scroll navigation
- 🌙 Dark theme with gradient accents
- Node.js 18+ and npm/yarn/pnpm
- Clone the repository:
git clone <repository-url>
cd devfolio-pro- Install dependencies:
npm install- Set up environment variables:
Create a
.env.localfile in the root directory (seeenv.example.txt):
GITHUB_USERNAME=your-github-username
GITHUB_TOKEN=your-github-token (optional, for higher rate limits)
NEXT_PUBLIC_GITHUB_USERNAME=your-github-username
DISCORD_USER_ID=your-discord-user-id (optional)
NEXT_PUBLIC_DISCORD_USER_ID=your-discord-user-id (optional)- Run the development server:
npm run dev- Open http://localhost:3000 in your browser.
npm run build
npm startUpdate your personal information in the following components:
-
Hero Section (
components/Hero.tsx):- Name and title
- Social media links
- Call-to-action text
-
About Section (
components/About.tsx):- Bio and description
- Experience statistics
-
Skills Section (
components/Skills.tsx):- Skill categories and technologies
-
Contact Section (
components/Contact.tsx):- Contact links and email
The portfolio automatically fetches your GitHub repositories and statistics. Make sure to set:
GITHUB_USERNAME- Your GitHub usernameNEXT_PUBLIC_GITHUB_USERNAME- Same as above (for client-side access)GITHUB_TOKEN(optional) - Personal access token for higher API rate limits
To enable Discord presence, you need:
DISCORD_USER_ID- Your Discord user IDNEXT_PUBLIC_DISCORD_USER_ID- Same as above (for client-side access)
The portfolio uses the Lanyard API to fetch Discord presence data.
devfolio-pro/
├── app/
│ ├── api/
│ │ └── github/ # GitHub API route
│ ├── globals.css # Global styles
│ ├── layout.tsx # Root layout
│ └── page.tsx # Home page
├── components/
│ ├── About.tsx # About section
│ ├── Contact.tsx # Contact section
│ ├── DiscordPresence.tsx # Discord presence widget
│ ├── Footer.tsx # Footer component
│ ├── GitHubStats.tsx # GitHub statistics
│ ├── Hero.tsx # Hero section
│ ├── Navigation.tsx # Navigation bar
│ ├── Projects.tsx # Projects showcase
│ └── Skills.tsx # Skills section
├── lib/
│ └── github.ts # GitHub API utilities
├── types/
│ └── index.ts # TypeScript types
└── ...config files
The portfolio uses a dark theme with purple/pink gradient accents. To customize:
- Edit
tailwind.config.tsfor color schemes - Update gradient colors in component files
- Modify
app/globals.cssfor global styles
Animations are powered by Framer Motion. Adjust animation timings and effects in individual components.
- Push your code to GitHub
- Import the repository to Vercel
- Add environment variables in Vercel dashboard
- Deploy!
The portfolio can be deployed to any platform that supports Next.js:
- Netlify
- AWS Amplify
- Railway
- DigitalOcean App Platform
If you encounter rate limit issues:
- Add a
GITHUB_TOKENto your environment variables - The token should have
public_reposcope
- Verify your Discord User ID is correct
- Ensure
NEXT_PUBLIC_DISCORD_USER_IDis set - Check browser console for errors
- Ensure all environment variables are set
- Run
npm installto ensure dependencies are installed - Check Node.js version (18+ required)
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details
- Built with Next.js
- Animations by Framer Motion
- Styling with TailwindCSS
- Discord presence via Lanyard