cpanel-site-hosting / index.html
sacredfire01's picture
I need this to work on cpanel hosting
ed28b39 verified
Raw History Blame Contribute Delete
7.16 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Business</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/lucide@latest"></script>
<link rel="stylesheet" href="style.css">
</head>
<body class="bg-gray-50">
<!-- Navigation -->
<nav class="bg-white shadow-sm fixed w-full top-0 z-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex items-center">
<!-- REPLACE THIS WITH YOUR LOGO -->
<img src="logo.png" alt="My Logo" class="h-10 w-auto object-contain" onerror="this.style.display='none'; document.getElementById('fallback-logo').style.display='flex';">
<!-- Fallback if logo.png doesn't exist -->
<div id="fallback-logo" class="hidden items-center gap-2">
<i data-lucide="music" class="h-8 w-8 text-indigo-600"></i>
<span class="font-bold text-xl text-gray-900">My Business</span>
</div>
</div>
<div class="flex items-center space-x-4">
<a href="#home" class="text-gray-700 hover:text-indigo-600 px-3 py-2 rounded-md text-sm font-medium">Home</a>
<a href="#about" class="text-gray-700 hover:text-indigo-600 px-3 py-2 rounded-md text-sm font-medium">About</a>
<a href="#contact" class="bg-indigo-600 text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-indigo-700 transition">Contact</a>
</div>
</div>
</div>
</nav>
<!-- Hero Section -->
<section id="home" class="pt-24 pb-12 md:pt-32 md:pb-24">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center">
<h1 class="text-4xl tracking-tight font-extrabold text-gray-900 sm:text-5xl md:text-6xl">
Welcome to <span class="text-indigo-600">Our Business</span>
</h1>
<p class="mt-3 max-w-md mx-auto text-base text-gray-500 sm:text-lg md:mt-5 md:text-xl md:max-w-3xl">
Professional services tailored to your needs. We deliver quality and excellence in everything we do.
</p>
<div class="mt-5 max-w-md mx-auto sm:flex sm:justify-center md:mt-8">
<div class="rounded-md shadow">
<a href="#contact" class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 md:py-4 md:text-lg transition">
Get Started
</a>
</div>
</div>
</div>
</div>
</section>
<!-- Features -->
<section class="py-12 bg-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="text-center p-6 rounded-lg hover:shadow-lg transition">
<div class="flex justify-center mb-4">
<i data-lucide="award" class="h-12 w-12 text-indigo-600"></i>
</div>
<h3 class="text-lg font-medium text-gray-900">Quality Service</h3>
<p class="mt-2 text-gray-500">Top-notch quality in every project we undertake.</p>
</div>
<div class="text-center p-6 rounded-lg hover:shadow-lg transition">
<div class="flex justify-center mb-4">
<i data-lucide="clock" class="h-12 w-12 text-indigo-600"></i>
</div>
<h3 class="text-lg font-medium text-gray-900">24/7 Support</h3>
<p class="mt-2 text-gray-500">Round the clock support for all your needs.</p>
</div>
<div class="text-center p-6 rounded-lg hover:shadow-lg transition">
<div class="flex justify-center mb-4">
<i data-lucide="shield" class="h-12 w-12 text-indigo-600"></i>
</div>
<h3 class="text-lg font-medium text-gray-900">Trusted & Secure</h3>
<p class="mt-2 text-gray-500">Your security and trust is our priority.</p>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="py-12 bg-gray-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-12">
<h2 class="text-3xl font-extrabold text-gray-900">Contact Us</h2>
<p class="mt-4 text-gray-500">Get in touch with us for any inquiries.</p>
</div>
<!-- Working Contact Form for cPanel -->
<form action="contact.php" method="POST" class="max-w-lg mx-auto bg-white p-8 rounded-lg shadow-md">
<div class="mb-4">
<label class="block text-gray-700 text-sm font-bold mb-2" for="name">Name</label>
<input class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="name" name="name" type="text" placeholder="Your name" required>
</div>
<div class="mb-4">
<label class="block text-gray-700 text-sm font-bold mb-2" for="email">Email</label>
<input class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="email" name="email" type="email" placeholder="your@email.com" required>
</div>
<div class="mb-6">
<label class="block text-gray-700 text-sm font-bold mb-2" for="message">Message</label>
<textarea class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline h-32" id="message" name="message" placeholder="Your message" required></textarea>
</div>
<div class="flex items-center justify-center">
<button class="bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline w-full transition" type="submit">
Send Message
</button>
</div>
</form>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-8">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
<p>&copy; 2024 My Business. All rights reserved.</p>
</div>
</footer>
<script>
lucide.createIcons();
</script>
<script src="script.js"></script>
<script src="https://deepsite.hf.co/deepsite-badge.js"></script>
</body>
</html>