A cutting-edge portfolio website showcasing cybersecurity expertise, built with modern web technologies.
- β‘ Key Features
- π Quick Start
- π Deployment
- π οΈ Tech Stack
- π Project Structure
- π¨ Customization
- π± Responsive Design
- π Security Features
- π€ Contributing
- π License
π¨ Design & UI
- Responsive design optimized for all devices
- Dark/Light theme with smooth transitions
- Particle background animation
- Interactive UI elements
- Custom typewriter effect
- Smooth scroll behavior
- Loading animations and transitions
π‘οΈ Security Features
- Content Security Policy (CSP) headers
- XSS protection mechanisms
- Input sanitization
- Secure HTTP headers
- Protected API endpoints
- Rate limiting implementation
- CORS configuration
π§ Technical Features
- Type-safe development with TypeScript
- Component-based architecture
- Efficient build system with Vite
- Modern CSS with Tailwind
- Form validation & handling
- Automated CI/CD pipeline
- Performance optimization
-
Clone & Install
git clone https://github.com/AmazingMoaaz/Portfolio.git cd portfolio npm install -
Configure Environment
# Create .env file with your Web3Forms API key echo "VITE_WEB3FORMS_KEY=your-api-key" > .env
Note: You'll need a Web3Forms API key for the contact form to work. Get one for free at web3forms.com.
-
Development
npm run dev
-
Production
npm run build npm run preview
-
Linting
npm run lint
This project is configured for automatic deployment to GitHub Pages using GitHub Actions.
-
Set up the Web3Forms API key in GitHub Actions:
- Go to your repository's Settings
- Navigate to Secrets and variables > Actions
- Create a new repository secret:
- Name:
VITE_WEB3FORMS_KEY - Value: Your Web3Forms API key
- Name:
-
Push to the main branch to trigger deployment:
git push origin main
-
GitHub Actions will:
- Build your project with the API key from secrets
- Deploy it to GitHub Pages
- Make it available at your configured GitHub Pages URL
- βοΈ React 18 - Component-based UI
- π· TypeScript - Type safety
- π¨ Tailwind CSS - Utility-first styling
- β‘ Vite - Next-gen frontend tooling
- π· Lucide React - Beautiful icons
- π¨ React Icons - Comprehensive icon set
- π Web3Forms - Form handling
- π Framer Motion - Smooth animations
- π React Intersection Observer - Scroll animations
src/
βββ π¨ components/ # React components
β βββ π± ui/ # Reusable UI components
β βββ π sections/ # Page sections
βββ π context/ # React context
βββ π data/ # Static data
βββ π types/ # TypeScript types
βββ π οΈ utils/ # Utilities
βββ π± App.tsx # Root component
- Modify
src/data/files for content updates - Update social links in
SocialLinks.tsx - Add new certifications in
certifications.ts - Customize projects in
projects.ts
- Theme colors:
tailwind.config.js - Animations:
src/index.css - Typography: Update font in
index.css - Custom components:
src/components/ui/
| Device | Width | Class Prefix | Description |
|---|---|---|---|
| π± Mobile | 320px+ | sm: |
Optimized for small screens |
| π± Tablet | 768px+ | md: |
Tablet and small laptops |
| π» Desktop | 1024px+ | lg: |
Standard desktop screens |
| π₯οΈ Large | 1280px+ | xl: |
Large monitors and displays |
-
Content Security Policy (CSP)
- Restricts resource loading
- Prevents XSS attacks
- Controls script execution
-
Input Validation
- Form data sanitization
- Type checking
- Length restrictions
-
API Security
- Rate limiting
- CORS configuration
- Request validation
We welcome contributions! See our Contributing Guide for details.
- π΄ Fork the repository
- πΏ Create your feature branch (
git checkout -b feature/AmazingFeature) - π» Make your changes
- π Test your changes
- π€ Create a pull request
- Update the README.md with details of changes
- Update the documentation
- Ensure all tests pass
- Follow the existing code style
This project is licensed under the MIT License - see the LICENSE file for details.