A blazing-fast, bilingual personal site template for developers looking to showcase their work with elegance and performance.
portfolio/
├── public/ # Static files
│ └── images/ # Optimized images
├── src/
│ ├── components/ # React components
│ ├── hooks/ # Custom React hooks
│ ├── locales/ # Translation files
│ ├── pages/ # Next.js pages
│ ├── styles/ # Global styles
│ ├── i18n.js # i18next configuration
│ └── LanguageContext.js # Language context provider
├── scripts/ # Build and optimization scripts
└── .env.example # Environment variables template
Clone the repository
git clone https://github.com/KevinLmn/portfolio.git
cd portfolio
Install dependencies
npm install
Set up environment variables
cp .env.example .env
Edit .env
and add your Google Analytics ID
Run the development server
npm run dev
Build for production
npm run build
The project includes a custom image optimization script that:
Run the optimization script:
node scripts/optimize-images.js
The site supports multiple languages through i18next with a LanguageContext provider. Translation files are located in src/locales/
and configured in src/i18n.js
. The language state is managed through src/LanguageContext.js
.
tailwind.config.js
to customize the color schemesrc/components/
and src/locales/
src/locales/
Feel free to fork this repo, use it as your own portfolio base, and ⭐ it if you like the work!