A modern, professional portfolio website built with Next.js 15, TypeScript, and Tailwind CSS
Live Demo: https://www.samankassou.com/
- Features
- Tech Stack
- Getting Started
- Project Structure
- Customization
- Development Commands
- Deployment
- Architecture
- Screenshots
- License
- Hero Section - Eye-catching introduction with animated wave background
- Services - Showcase of professional services with icons and descriptions
- Education - Academic background and qualifications
- Experience - Professional work history and achievements
- Certifications - Professional credentials (Microsoft Azure, SCRUM, ITIL)
- Portfolio - Project showcase with category filtering
- Testimonials - Client feedback with star ratings
- Blog - Latest blog posts and articles
- Contact - Contact form and information
- 🎨 Dark Mode - Three-state theme system (System/Dark/Light) with localStorage persistence
- 📱 Responsive Design - Mobile-first approach with three-column desktop layout
- ⚡ Performance Optimized - Next.js Image optimization, WebP/AVIF support
- 🎭 Smooth Animations - Framer Motion for polished interactions
- ♿ Accessible - Reduced motion support, semantic HTML
- 🎯 Type-Safe - Full TypeScript implementation with centralized type definitions
- 🎨 Custom Theme - Tailwind CSS with custom color system and dark mode
- 📊 Categorized Skills - Advanced skill organization system (6 major categories)
- 🔍 Project Filtering - Interactive portfolio filtering by category
- Next.js 15.1.6 - React framework with App Router
- React 19 - UI library
- TypeScript 5.9 - Type safety and developer experience
- Tailwind CSS 3.4 - Utility-first CSS framework
- Framer Motion 12 - Animation library
- next-themes 0.4 - Theme management
- React Icons 5.5 - Icon library
- Prettier - Code formatting with Tailwind class sorting
- ESLint - Code linting
- TypeScript Compiler - Type checking
- Node.js 18.x or higher
- npm or yarn
-
Clone the repository
git clone https://github.com/yourusername/portfolio.git cd portfolio -
Install dependencies
npm install
-
Run development server
npm run dev
-
Open your browser
http://localhost:3000
# Create optimized production build
npm run build
# Start production server
npm startportfolio/
├── app/ # Next.js App Router
│ ├── layout.tsx # Root layout with theme provider
│ ├── page.tsx # Main homepage (all sections)
│ ├── globals.css # Global styles and Tailwind imports
│ └── components/
│ ├── layout/ # Layout components (Navbar, Sidebars, Footer)
│ ├── sections/ # Section components (Hero, Services, etc.)
│ ├── ui/ # Reusable UI components (Button, ThemeToggle)
│ └── providers/ # React Context providers (ThemeProvider)
│
├── lib/ # Shared libraries and utilities
│ ├── types/ # TypeScript type definitions
│ │ └── index.ts # Centralized interfaces
│ ├── data/ # Content data layer (edit to customize)
│ │ ├── siteConfig.ts # Site metadata and social links
│ │ ├── profile.ts # Profile data, contact info, skills
│ │ ├── services.ts # Services data
│ │ ├── education.ts # Education history
│ │ ├── experience.ts # Work experience
│ │ ├── certifications.ts # Professional certifications
│ │ ├── projects.ts # Portfolio projects + categories
│ │ ├── testimonials.ts # Testimonials data
│ │ └── blogs.ts # Blog posts
│ ├── constants/ # Shared constants
│ │ ├── theme.ts # Theme mode constants
│ │ └── colors.ts # Color class constants (COMMON_CLASSES)
│ └── utils/ # Utility functions (future use)
│
├── public/ # Static assets
│ └── img/ # Images organized by type
│ ├── profile/ # Profile images
│ ├── hero/ # Hero section images
│ ├── projects/ # Project images
│ └── blog/ # Blog images
│
└── Configuration files
├── tailwind.config.js # Tailwind CSS configuration
├── next.config.mjs # Next.js configuration
├── tsconfig.json # TypeScript configuration
└── package.json # Dependencies and scripts
This portfolio follows a three-layer architecture:
- Type Layer (
lib/types/) - Centralized TypeScript interfaces - Data Layer (
lib/data/) - All content in typed TypeScript files - Component Layer (
app/components/) - Presentational components
Benefits:
- Clear separation of concerns
- Easy content updates without touching code
- Type safety across the entire application
- Reusable, maintainable components
All content is centralized in the lib/data/ directory. Edit these TypeScript files to customize:
Profile & Contact:
// lib/data/profile.ts
export const profile = {
name: "Your Name",
title: "Your Title",
email: "your.email@example.com",
// ... more fields
};Services:
// lib/data/services.ts
export const services: Service[] = [
{
icon: "analytics",
title: "Your Service",
description: "Service description",
},
// ... add more services
];Projects:
// lib/data/projects.ts
export const projects: Project[] = [
{
title: "Project Name",
category: "Web Templates",
image: "/img/projects/project.jpg",
link: "https://...",
},
// ... add more projects
];Other Data Files:
lib/data/education.ts- Education historylib/data/experience.ts- Work experiencelib/data/certifications.ts- Professional certificationslib/data/testimonials.ts- Client testimonialslib/data/blogs.ts- Blog posts
Edit the Tailwind color system in tailwind.config.js:
theme: {
extend: {
colors: {
primary: {
DEFAULT: '#F78F42', // Orange - your brand color
// ... other shades
},
accent: {
DEFAULT: '#3CC288', // Green - highlights
// ... other shades
},
}
}
}The project uses reusable CSS constants for consistent styling:
import { COMMON_CLASSES } from "@/lib/constants/colors";
// Use predefined classes for cards, backgrounds, text, etc.
<div className={COMMON_CLASSES.CARD_BG}>
{/* Card content */}
</div>Available Constants:
COMMON_CLASSES.CARD_BG- Card backgroundsCOMMON_CLASSES.PAGE_BG- Page backgroundsCOMMON_CLASSES.INPUT_BG- Input backgroundsCOMMON_CLASSES.TEXT- Text colorsCOMMON_CLASSES.TEXT_MUTED- Muted textCOMMON_CLASSES.DIVIDER- Divider colors
# Start development server (http://localhost:3000)
npm run dev
# Build for production
npm run build
# Start production server
npm start
# Lint code
npm run lint
# Type check without emitting files
npm run type-check
# Format code with Prettier
npx prettier --write .This portfolio is optimized for Vercel deployment:
- Push to Git repository (GitHub, GitLab, or Bitbucket)
- Import project in Vercel dashboard
- Deploy - Vercel auto-detects Next.js and configures build settings
Zero configuration needed! Vercel handles:
- Automatic builds on git push
- Image optimization
- Edge caching
- SSL certificates
Netlify:
npm run build
# Deploy the .next folderDocker:
FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
RUN npm run build
CMD ["npm", "start"]Traditional Node Hosting:
npm run build
npm start
# Runs on port 3000Custom three-state theme system using React Context:
- System (default) - Follows OS preference
- Dark - Forced dark mode
- Light - Forced light mode
Features:
- Stored in
localStoragewith key"theme" - Inline script in
layout.tsxprevents flash of unstyled content - Theme toggle component cycles through all three states
- Fully typed with TypeScript
Components follow a List/Item pattern:
index.tsx- Imports data fromlib/data/and maps over items*Item.tsxor*Card.tsx- Presentational component with typed props
Example:
sections/Services/
├── index.tsx # Maps over services data
└── ServiceCard.tsx # Displays individual service
- Image Optimization - Next.js Image component with WebP/AVIF
- Code Splitting - Automatic with Next.js App Router
- Reduced Motion - Respects user preferences for accessibility
- Efficient Animations - Framer Motion with GPU acceleration
- Centralized Types - All interfaces in
lib/types/index.ts - Data Layer Typing - All data files properly typed
- Component Props - Fully typed with TypeScript interfaces
- Path Aliases -
@/*resolves to root directory for clean imports
Full three-column layout with left sidebar, main content, and right sidebar
Responsive mobile design with slide-out navigation
Custom dark theme with optimized colors for readability
Note: Add screenshots to a
screenshots/folder in the root directory to display them in the README.
This project is licensed under the MIT License - see below for details:
MIT License
Copyright (c) 2025 Saman Kassou
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Live Demo: https://www.samankassou.com/
Author: Samankassou
For inquiries or collaboration opportunities, please visit the live site and use the contact form.
Built with ❤️ using Next.js, TypeScript, and Tailwind CSS
⭐ Star this repo if you find it helpful!