A beautiful, single-page PHP application to showcase a domain for sale. Fully responsive with social contact options.
- 📱 Fully responsive design (desktop, tablet, mobile)
- 🎨 Modern, clean UI with customizable colors
- 🔗 Built-in social media links (Twitter, Telegram)
- 📧 Email contact button with pre-filled subject
- ⚡ Single-file PHP implementation
- 🎯 No dependencies required
- PHP 7.4 or higher
- Web server (Apache, Nginx, etc.)
- Custom domain pointed to your server
Clone or download this repository and upload index.php to your web server's root directory.
git clone https://github.com/yourusername/forsale.git
cd forsaleEdit the PHP variables at the top of index.php:
$domain = $_SERVER['HTTP_HOST']; // Auto-detected from your domain
$telegram = 'sayedsahin'; // Your Telegram username (without @)
$twitter = 'sayed_sahin'; // Your Twitter/X username (without @)
$icon = 'https://cdn.jsdelivr.net/...'; // Your favicon/icon URLUpdate these variables:
- $domain: Leave as-is for auto-detection, or hardcode your domain name
- $telegram: Your Telegram username (leave empty to hide Telegram link)
- $twitter: Your Twitter/X username (leave empty to hide Twitter link)
- $icon: URL to your favicon/icon image
- Email address: Find
sayedsdev@gmail.comin the code and replace with your email
Edit the CSS in the <style> section to match your brand:
- Colors: Change
#7705ff(purple) and#29293e(dark) to your colors - Fonts: Modify font sizes and families in
.title,.textclasses - Spacing: Adjust margins and padding as needed
Visit your domain in a browser. The page will automatically display with your configured domain name.
https://yourdomain.com
index.php # Main application - contains everything needed
README.md # This file
- Hide Social Links: Remove or leave variables empty to hide links
- Change Colors: The main color is
#7705ff- replace globally for brand colors - Update Content: Modify text in the HTML section (e.g., "Make me an offer...")
- Add Logo: Update the icon URL or add an
<img>tag in the HTML
The design is fully responsive with breakpoints for:
- Desktop (1024px+)
- Tablet (600px - 1024px)
- Mobile (< 600px)
Feel free to use and modify this project for your needs.