Skip to content

sayedsahin/forsale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Domain For Sale

A beautiful, single-page PHP application to showcase a domain for sale. Fully responsive with social contact options.

Features

  • 📱 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

Requirements

  • PHP 7.4 or higher
  • Web server (Apache, Nginx, etc.)
  • Custom domain pointed to your server

Installation

1. Download & Upload

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 forsale

2. Configure Variables

Edit 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 URL

Update 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.com in the code and replace with your email

3. Customize Appearance

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, .text classes
  • Spacing: Adjust margins and padding as needed

4. Deploy

Visit your domain in a browser. The page will automatically display with your configured domain name.

https://yourdomain.com

File Structure

index.php          # Main application - contains everything needed
README.md          # This file

Customization Tips

  • 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

Mobile Optimization

The design is fully responsive with breakpoints for:

  • Desktop (1024px+)
  • Tablet (600px - 1024px)
  • Mobile (< 600px)

License

Feel free to use and modify this project for your needs.

About

Domain For Sale

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages