A professional website template with contact form functionality.
- HTML5 - Markup language for structuring web content
- CSS3 - Styling and layout with modern features
- Tailwind CSS (
^4.1.11) - Utility-first CSS framework- Uses
@tailwindcss/cli(^4.1.11) for processing styles - Implements custom utilities and themes
- Responsive design with breakpoints
- Uses
- JavaScript (ES6+) - Client-side scripting and interactivity
- DOM manipulation and event handling
- Form validation and AJAX requests
- Theme switching with localStorage persistence
- Smooth scrolling and animations
- Web Fonts - Poppins font family from Google Fonts
- Icons - Ionicons and Fluent Icons
- Animations - CSS keyframes and transitions
- Interactive Elements - Lordicon animations and Lottie animations
- Responsive Design - Mobile-first approach with breakpoints
- PHP (
7.4+) - Server-side scripting language - PHPMailer (
^6.9) - Email sending library- Supports SMTP authentication
- HTML email templates
- Error handling and logging
- vlucas/phpdotenv (
^5.6) - Environment variable management- Secure configuration storage
- SMTP settings via environment variables
- Node.js - JavaScript runtime environment
- npm - Package manager for JavaScript dependencies
- Composer - Dependency manager for PHP
- Dark/Light Theme - Dynamic theme switching with localStorage persistence
- Form Validation - Both client-side (JavaScript) and server-side (PHP)
- Accessibility - Semantic HTML and proper labeling
- Performance Optimization - Minified assets and optimized images
- Responsive design
- Contact form with email functionality
- Modern UI/UX
- Portfolio section
- Dark/light theme toggle
- Form validation (client and server-side)
- Environment-based configuration
- Cross-browser compatibility
-
Clone the repository:
git clone <repository-url> -
Install PHP dependencies:
composer install -
Install Node.js dependencies:
npm install -
Copy the environment file and configure your settings:
cp .env.example .envThen edit
.envwith your SMTP settings. -
Make sure your web server has PHP 7.4+ installed.
Create a .env file with the following variables:
SMTP_HOST=smtp.yourhost.com
SMTP_USERNAME=your_email@domain.com
SMTP_PASSWORD=your_app_password
SMTP_PORT=465
SMTP_SECURE=ssl
CONTACT_EMAIL=contact@yourdomain.com
- Main page:
index.html - Contact page:
contact.html - Portfolio page:
portfolio.html - Contact form backend:
contact.php
├── CSS/ # Stylesheets
│ ├── style.css # Main styles
│ ├── portfolio.css # Portfolio specific styles
│ └── premium.css # Premium component styles
├── JS/ # JavaScript files
│ ├── script.js # Main scripts
│ ├── portfolio script.js # Portfolio scripts
│ ├── contact script.js # Contact form scripts
│ └── premium-ui.js # Premium UI components
├── images/ # Image assets
├── .env.example # Environment variables example
├── .gitignore # Git ignore rules
├── contact.php # Contact form handler
├── index.html # Main page
├── contact.html # Contact page
└── portfolio.html # Portfolio page
- Never commit
.envfiles to version control - Validate and sanitize all user inputs
- Use strong passwords for SMTP accounts
- Enable two-factor authentication where possible
This project is licensed under the MIT License.