gstorm / index.html
Cashlambin's picture
Add 2 files
0121340 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Houston Roofing Experts | Roof Repair & Replacement</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script src="https://js.stripe.com/v3/"></script>
<style>
.hero-bg {
background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
background-size: cover;
background-position: center;
}
.dashboard-nav {
height: calc(100vh - 4rem);
}
.crm-pipeline-stage {
min-width: 300px;
}
.kanban-column {
min-width: 280px;
}
.calendar-day {
height: 120px;
}
.roof-measurement-container {
background-image: url('https://images.unsplash.com/photo-1513519245088-0e12902e5a38?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
background-size: cover;
background-position: center;
}
.ai-chat-container {
height: 500px;
}
.chat-message {
max-width: 80%;
}
.payment-form {
max-width: 500px;
}
.client-portal-card {
transition: all 0.3s ease;
}
.client-portal-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
/* Animation for AI typing indicator */
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.typing-indicator span {
animation: pulse 1.5s infinite;
}
.typing-indicator span:nth-child(2) {
animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
animation-delay: 0.4s;
}
</style>
</head>
<body class="font-sans">
<!-- Header/Navigation -->
<header class="bg-white shadow-md">
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
<div class="flex items-center">
<img src="https://preview--roofing-revamp-houston.lovable.app/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Flogo.7d1360e3.png&w=128&q=75" alt="Houston Roofing Experts" class="h-12">
<span class="ml-2 text-xl font-bold text-blue-800">Houston Roofing Experts</span>
</div>
<nav class="hidden md:flex space-x-8">
<a href="#" class="text-blue-800 font-medium hover:text-blue-600">Home</a>
<a href="#services" class="text-gray-600 hover:text-blue-600">Services</a>
<a href="#about" class="text-gray-600 hover:text-blue-600">About Us</a>
<a href="#testimonials" class="text-gray-600 hover:text-blue-600">Testimonials</a>
<a href="#contact" class="text-gray-600 hover:text-blue-600">Contact</a>
<a href="#" onclick="showDashboard()" class="bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700">Client Portal</a>
</nav>
<button class="md:hidden text-gray-600" onclick="toggleMobileMenu()">
<i class="fas fa-bars text-2xl"></i>
</button>
</div>
<!-- Mobile Menu -->
<div id="mobileMenu" class="hidden md:hidden bg-white py-4 px-4 shadow-lg">
<a href="#" class="block py-2 text-blue-800 font-medium">Home</a>
<a href="#services" class="block py-2 text-gray-600 hover:text-blue-600">Services</a>
<a href="#about" class="block py-2 text-gray-600 hover:text-blue-600">About Us</a>
<a href="#testimonials" class="block py-2 text-gray-600 hover:text-blue-600">Testimonials</a>
<a href="#contact" class="block py-2 text-gray-600 hover:text-blue-600">Contact</a>
<a href="#" onclick="showDashboard()" class="block mt-2 bg-blue-600 text-white px-4 py-2 rounded-md text-center hover:bg-blue-700">Client Portal</a>
</div>
</header>
<!-- Hero Section -->
<section class="hero-bg text-white py-20 md:py-32">
<div class="container mx-auto px-4">
<div class="max-w-2xl">
<h1 class="text-4xl md:text-5xl font-bold mb-6">Houston's Trusted Roofing Experts</h1>
<p class="text-xl mb-8">Quality roof repair, replacement, and installation services with over 20 years of experience serving the Houston area.</p>
<div class="flex flex-col sm:flex-row gap-4">
<a href="#contact" class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-md text-center font-medium">Get a Free Estimate</a>
<a href="tel:+12812345678" class="bg-white hover:bg-gray-100 text-blue-800 px-6 py-3 rounded-md text-center font-medium">
<i class="fas fa-phone mr-2"></i> (281) 234-5678
</a>
</div>
</div>
</div>
</section>
<!-- AI Chat Assistant (floating button) -->
<div id="aiChatButton" class="fixed bottom-6 right-6 bg-blue-600 text-white w-14 h-14 rounded-full flex items-center justify-center shadow-lg cursor-pointer hover:bg-blue-700 transition-colors" onclick="toggleAIChat()">
<i class="fas fa-robot text-2xl"></i>
</div>
<!-- AI Chat Container (hidden by default) -->
<div id="aiChatContainer" class="hidden fixed bottom-24 right-6 w-96 bg-white rounded-lg shadow-xl overflow-hidden border border-gray-200 ai-chat-container flex flex-col">
<div class="bg-blue-600 text-white p-4 flex justify-between items-center">
<h3 class="font-bold">Roofing Assistant</h3>
<button class="text-white hover:text-gray-200" onclick="toggleAIChat()">
<i class="fas fa-times"></i>
</button>
</div>
<div id="aiChatMessages" class="flex-1 p-4 overflow-y-auto bg-gray-50">
<div class="chat-message bg-blue-100 text-blue-800 rounded-lg p-3 mb-3">
<p>Hello! I'm your roofing assistant. How can I help you today?</p>
<p class="text-xs text-blue-600 mt-1">Here are some things I can help with:</p>
<ul class="list-disc list-inside text-xs text-blue-600">
<li>Get a quick estimate</li>
<li>Answer roofing questions</li>
<li>Schedule an inspection</li>
<li>Explain our services</li>
</ul>
</div>
</div>
<div class="p-4 border-t border-gray-200 bg-white">
<div id="aiTypingIndicator" class="hidden mb-2 text-sm text-gray-500">
<div class="typing-indicator flex space-x-1">
<span></span>
<span></span>
<span></span>
</div>
</div>
<div class="flex">
<input type="text" id="aiChatInput" placeholder="Type your question..." class="flex-1 border border-gray-300 rounded-l-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
<button onclick="sendAIChatMessage()" class="bg-blue-600 text-white px-4 py-2 rounded-r-lg hover:bg-blue-700">
<i class="fas fa-paper-plane"></i>
</button>
</div>
</div>
</div>
<!-- Services Section -->
<section id="services" class="py-16 bg-gray-50">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">Our Roofing Services</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- Service 1 -->
<div class="bg-white p-6 rounded-lg shadow-md hover:shadow-lg transition-shadow">
<div class="text-blue-600 mb-4">
<i class="fas fa-home text-4xl"></i>
</div>
<h3 class="text-xl font-bold mb-3">Roof Replacement</h3>
<p class="text-gray-600 mb-4">Complete roof replacement using high-quality materials from trusted manufacturers.</p>
<a href="#" class="text-blue-600 font-medium hover:text-blue-800">Learn More <i class="fas fa-arrow-right ml-1"></i></a>
</div>
<!-- Service 2 -->
<div class="bg-white p-6 rounded-lg shadow-md hover:shadow-lg transition-shadow">
<div class="text-blue-600 mb-4">
<i class="fas fa-tools text-4xl"></i>
</div>
<h3 class="text-xl font-bold mb-3">Roof Repair</h3>
<p class="text-gray-600 mb-4">Expert repairs for leaks, storm damage, and general wear and tear to extend your roof's life.</p>
<a href="#" class="text-blue-600 font-medium hover:text-blue-800">Learn More <i class="fas fa-arrow-right ml-1"></i></a>
</div>
<!-- Service 3 -->
<div class="bg-white p-6 rounded-lg shadow-md hover:shadow-lg transition-shadow">
<div class="text-blue-600 mb-4">
<i class="fas fa-search-dollar text-4xl"></i>
</div>
<h3 class="text-xl font-bold mb-3">Roof Inspections</h3>
<p class="text-gray-600 mb-4">Comprehensive inspections to assess your roof's condition and recommend appropriate solutions.</p>
<a href="#" class="text-blue-600 font-medium hover:text-blue-800">Learn More <i class="fas fa-arrow-right ml-1"></i></a>
</div>
</div>
</div>
</section>
<!-- About Section -->
<section id="about" class="py-16">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row items-center">
<div class="md:w-1/2 mb-8 md:mb-0 md:pr-8">
<img src="https://images.unsplash.com/photo-1600880292203-757bb62b4baf?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80" alt="Our Team" class="rounded-lg shadow-md w-full">
</div>
<div class="md:w-1/2">
<h2 class="text-3xl font-bold mb-6">About Houston Roofing Experts</h2>
<p class="text-gray-600 mb-4">Founded in 2003, Houston Roofing Experts has been providing top-quality roofing services to residential and commercial clients throughout the Greater Houston area.</p>
<p class="text-gray-600 mb-4">Our team of certified professionals is committed to excellence in every project, using only the highest quality materials and industry-best practices.</p>
<p class="text-gray-600 mb-6">We're fully licensed and insured, and we stand behind our work with comprehensive warranties.</p>
<div class="flex flex-wrap gap-4">
<div class="flex items-center bg-blue-50 px-4 py-2 rounded-md">
<i class="fas fa-check-circle text-blue-600 mr-2"></i>
<span>Licensed & Insured</span>
</div>
<div class="flex items-center bg-blue-50 px-4 py-2 rounded-md">
<i class="fas fa-check-circle text-blue-600 mr-2"></i>
<span>20+ Years Experience</span>
</div>
<div class="flex items-center bg-blue-50 px-4 py-2 rounded-md">
<i class="fas fa-check-circle text-blue-600 mr-2"></i>
<span>Free Estimates</span>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Testimonials Section -->
<section id="testimonials" class="py-16 bg-gray-50">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">What Our Customers Say</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Testimonial 1 -->
<div class="bg-white p-6 rounded-lg shadow-md">
<div class="flex items-center mb-4">
<div class="text-yellow-400 mr-2">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
<span class="text-gray-600">5.0</span>
</div>
<p class="text-gray-600 mb-4">"Houston Roofing Experts did an amazing job replacing our roof after hurricane damage. They were professional, efficient, and the quality is outstanding."</p>
<div class="flex items-center">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Sarah J." class="w-10 h-10 rounded-full mr-3">
<div>
<h4 class="font-bold">Sarah J.</h4>
<p class="text-gray-500 text-sm">Houston, TX</p>
</div>
</div>
</div>
<!-- Testimonial 2 -->
<div class="bg-white p-6 rounded-lg shadow-md">
<div class="flex items-center mb-4">
<div class="text-yellow-400 mr-2">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
<span class="text-gray-600">5.0</span>
</div>
<p class="text-gray-600 mb-4">"The team was punctual, cleaned up perfectly, and the roof looks fantastic. They even helped us navigate the insurance claim process."</p>
<div class="flex items-center">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Michael T." class="w-10 h-10 rounded-full mr-3">
<div>
<h4 class="font-bold">Michael T.</h4>
<p class="text-gray-500 text-sm">Katy, TX</p>
</div>
</div>
</div>
<!-- Testimonial 3 -->
<div class="bg-white p-6 rounded-lg shadow-md">
<div class="flex items-center mb-4">
<div class="text-yellow-400 mr-2">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
<span class="text-gray-600">5.0</span>
</div>
<p class="text-gray-600 mb-4">"From estimate to completion, the service was exceptional. They identified issues others had missed and provided a fair, transparent quote."</p>
<div class="flex items-center">
<img src="https://randomuser.me/api/portraits/women/68.jpg" alt="Lisa M." class="w-10 h-10 rounded-full mr-3">
<div>
<h4 class="font-bold">Lisa M.</h4>
<p class="text-gray-500 text-sm">Sugar Land, TX</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="py-16 bg-blue-800 text-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">Contact Us</h2>
<div class="flex flex-col lg:flex-row gap-8">
<div class="lg:w-1/2">
<h3 class="text-xl font-bold mb-4">Get a Free Roofing Estimate</h3>
<form id="contactForm" class="space-y-4" onsubmit="submitContactForm(event)">
<div>
<label for="name" class="block mb-1">Full Name</label>
<input type="text" id="name" class="w-full px-4 py-2 rounded-md text-gray-800" required>
</div>
<div>
<label for="email" class="block mb-1">Email Address</label>
<input type="email" id="email" class="w-full px-4 py-2 rounded-md text-gray-800" required>
</div>
<div>
<label for="phone" class="block mb-1">Phone Number</label>
<input type="tel" id="phone" class="w-full px-4 py-2 rounded-md text-gray-800" required>
</div>
<div>
<label for="service" class="block mb-1">Service Needed</label>
<select id="service" class="w-full px-4 py-2 rounded-md text-gray-800">
<option value="">Select a service</option>
<option value="replacement">Roof Replacement</option>
<option value="repair">Roof Repair</option>
<option value="inspection">Roof Inspection</option>
<option value="other">Other</option>
</select>
</div>
<div>
<label for="message" class="block mb-1">Message</label>
<textarea id="message" rows="4" class="w-full px-4 py-2 rounded-md text-gray-800"></textarea>
</div>
<button type="submit" class="bg-white hover:bg-gray-100 text-blue-800 px-6 py-3 rounded-md font-medium w-full">Submit Request</button>
</form>
</div>
<div class="lg:w-1/2">
<h3 class="text-xl font-bold mb-4">Our Contact Information</h3>
<div class="space-y-6">
<div class="flex items-start">
<i class="fas fa-map-marker-alt text-2xl mr-4 mt-1"></i>
<div>
<h4 class="font-bold mb-1">Address</h4>
<p>1234 Roofing Lane<br>Houston, TX 77002</p>
</div>
</div>
<div class="flex items-start">
<i class="fas fa-phone text-2xl mr-4 mt-1"></i>
<div>
<h4 class="font-bold mb-1">Phone</h4>
<p>(281) 234-5678</p>
<p>Mon-Fri: 8:00 AM - 5:00 PM</p>
</div>
</div>
<div class="flex items-start">
<i class="fas fa-envelope text-2xl mr-4 mt-1"></i>
<div>
<h4 class="font-bold mb-1">Email</h4>
<p>[email protected]</p>
</div>
</div>
<div class="flex items-start">
<i class="fas fa-clock text-2xl mr-4 mt-1"></i>
<div>
<h4 class="font-bold mb-1">Business Hours</h4>
<p>Monday - Friday: 8:00 AM - 5:00 PM</p>
<p>Saturday: 9:00 AM - 1:00 PM</p>
<p>Sunday: Closed</p>
</div>
</div>
</div>
<div class="mt-8">
<h4 class="font-bold mb-3">Follow Us</h4>
<div class="flex space-x-4">
<a href="#" class="bg-white text-blue-800 w-10 h-10 rounded-full flex items-center justify-center hover:bg-gray-100">
<i class="fab fa-facebook-f"></i>
</a>
<a href="#" class="bg-white text-blue-800 w-10 h-10 rounded-full flex items-center justify-center hover:bg-gray-100">
<i class="fab fa-twitter"></i>
</a>
<a href="#" class="bg-white text-blue-800 w-10 h-10 rounded-full flex items-center justify-center hover:bg-gray-100">
<i class="fab fa-instagram"></i>
</a>
<a href="#" class="bg-white text-blue-800 w-10 h-10 rounded-full flex items-center justify-center hover:bg-gray-100">
<i class="fab fa-linkedin-in"></i>
</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-900 text-white py-8">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<img src="https://preview--roofing-revamp-houston.lovable.app/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Flogo.7d1360e3.png&w=128&q=75" alt="Houston Roofing Experts" class="h-12 mb-4">
<p class="text-gray-400">Quality roofing services for the Houston area since 2003.</p>
</div>
<div>
<h3 class="text-lg font-bold mb-4">Services</h3>
<ul class="space-y-2 text-gray-400">
<li><a href="#" class="hover:text-white">Roof Replacement</a></li>
<li><a href="#" class="hover:text-white">Roof Repair</a></li>
<li><a href="#" class="hover:text-white">Roof Inspections</a></li>
<li><a href="#" class="hover:text-white">Emergency Services</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-bold mb-4">Quick Links</h3>
<ul class="space-y-2 text-gray-400">
<li><a href="#" class="hover:text-white">About Us</a></li>
<li><a href="#" class="hover:text-white">Testimonials</a></li>
<li><a href="#" class="hover:text-white">Contact</a></li>
<li><a href="#" class="hover:text-white">Client Portal</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-bold mb-4">Contact</h3>
<ul class="space-y-2 text-gray-400">
<li class="flex items-start">
<i class="fas fa-map-marker-alt mr-2 mt-1"></i>
<span>1234 Roofing Lane, Houston, TX 77002</span>
</li>
<li class="flex items-center">
<i class="fas fa-phone mr-2"></i>
<span>(281) 234-5678</span>
</li>
</div>
</footer>
<!-- Dashboard Modal (hidden by default) -->
<div id="dashboardModal" class="fixed inset-0 bg-gray-900 bg-opacity-75 z-50 hidden">
<div class="absolute inset-0 flex">
<!-- Sidebar -->
<div class="bg-gray-800 text-white w-64 flex-shrink-0 dashboard-nav">
<div class="p-4 border-b border-gray-700">
<h2 class="text-xl font-bold">Houston Roofing Experts</h2>
<p class="text-gray-400 text-sm">Client Portal</p>
</div>
<div class="p-4">
<div class="flex items-center mb-6">
<img src="https://randomuser.me/api/portraits/men/75.jpg" alt="User" class="w-10 h-10 rounded-full mr-3">
<div>
<h3 class="font-medium">John Smith</h3>
<p class="text-gray-400 text-xs">Admin</p>
</div>
</div>
<nav class="space-y-2">
<a href="#" onclick="showDashboardSection('dashboard')" class="flex items-center p-2 rounded-md bg-gray-700">
<i class="fas fa-tachometer-alt mr-3"></i>
Dashboard
</a>
<a href="#" onclick="showDashboardSection('crm')" class="flex items-center p-2 rounded-md hover:bg-gray-700">
<i class="fas fa-users mr-3"></i>
CRM
</a>
<a href="#" onclick="showDashboardSection('projects')" class="flex items-center p-2 rounded-md hover:bg-gray-700">
<i class="fas fa-project-diagram mr-3"></i>
Projects
</a>
<a href="#" onclick="showDashboardSection('calendar')" class="flex items-center p-2 rounded-md hover:bg-gray-700">
<i class="fas fa-calendar-alt mr-3"></i>
Calendar
</a>
<a href="#" onclick="showDashboardSection('marketing')" class="flex items-center p-2 rounded-md hover:bg-gray-700">
<i class="fas fa-envelope mr-3"></i>
Marketing
</a>
<a href="#" onclick="showDashboardSection('measurement')" class="flex items-center p-2 rounded-md hover:bg-gray-700">
<i class="fas fa-ruler-combined mr-3"></i>
Roof Measurement
</a>
<a href="#" onclick="showDashboardSection('payments')" class="flex items-center p-2 rounded-md hover:bg-gray-700">
<i class="fas fa-credit-card mr-3"></i>
Payments
</a>
<a href="#" onclick="showDashboardSection('clientPortal')" class="flex items-center p-2 rounded-md hover:bg-gray-700">
<i class="fas fa-user-shield mr-3"></i>
Client Portal
</a>
<a href="#" onclick="showDashboardSection('settings')" class="flex items-center p-2 rounded-md hover:bg-gray-700">
<i class="fas fa-cog mr-3"></i>
Settings
</a>
</nav>
</div>
<div class="absolute bottom-0 w-full p-4 border-t border-gray-700">
<button onclick="hideDashboard()" class="flex items-center text-gray-400 hover:text-white w-full">
<i class="fas fa-sign-out-alt mr-3"></i>
Logout
</button>
</div>
</div>
<!-- Main Content -->
<div class="bg-gray-100 flex-1 overflow-y-auto">
<div class="p-6">
<!-- Dashboard Header -->
<div class="flex justify-between items-center mb-6">
<h2 id="dashboardTitle" class="text-2xl font-bold text-gray-800">Dashboard</h2>
<div class="flex items-center space-x-4">
<div class="relative">
<input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border rounded-md">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
</div>
<button class="p-2 rounded-full bg-white shadow-md">
<i class="fas fa-bell text-gray-600"></i>
</button>
</div>
</div>
<!-- Dashboard Content Sections -->
<div id="dashboardSection" class="space-y-6">
<!-- Default Dashboard Content -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="bg-white p-6 rounded-lg shadow">
<div class="flex items-center justify-between">
<h3 class="text-lg font-medium text-gray-700">New Leads</h3>
<span class="bg-blue-100 text-blue-800 px-3 py-1 rounded-full text-sm font-medium">24</span>
</div>
<p class="text-gray-500 mt-2">This week</p>
<div class="mt-4">
<div class="h-2 bg-gray-200 rounded-full">
<div class="h-2 bg-blue-500 rounded-full" style="width: 70%"></div>
</div>
<p class="text-right text-sm text-gray-500 mt-1">+12% from last week</p>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow">
<div class="flex items-center justify-between">
<h3 class="text-lg font-medium text-gray-700">Active Projects</h3>
<span class="bg-green-100 text-green-800 px-3 py-1 rounded-full text-sm font-medium">15</span>
</div>
<p class="text-gray-500 mt-2">Currently in progress</p>
<div class="mt-4">
<div class="h-2 bg-gray-200 rounded-full">
<div class="h-2 bg-green-500 rounded-full" style="width: 45%"></div>
</div>
<p class="text-right text-sm text-gray-500 mt-1">+5% from last week</p>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow">
<div class="flex items-center justify-between">
<h3 class="text-lg font-medium text-gray-700">Revenue</h3>
<span class="bg-purple-100 text-purple-800 px-3 py-1 rounded-full text-sm font-medium">$48,250</span>
</div>
<p class="text-gray-500 mt-2">This month</p>
<div class="mt-4">
<div class="h-2 bg-gray-200 rounded-full">
<div class="h-2 bg-purple-500 rounded-full" style="width: 60%"></div>
</div>
<p class="text-right text-sm text-gray-500 mt-1">+18% from last month</p>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-medium text-gray-700">Recent Activity</h3>
<a href="#" class="text-blue-600 text-sm font-medium">View All</a>
</div>
<div class="space-y-4">
<div class="flex items-start">
<div class="bg-blue-100 text-blue-800 p-2 rounded-full mr-4">
<i class="fas fa-phone"></i>
</div>
<div class="flex-1">
<p class="font-medium">New lead from John Doe</p>
<p class="text-gray-500 text-sm">Phone call about roof inspection</p>
<p class="text-gray-400 text-xs mt-1">10 minutes ago</p>
</div>
<button class="text-blue-600 hover:text-blue-800">
<i class="fas fa-ellipsis-v"></i>
</button>
</div>
<div class="flex items-start">
<div class="bg-green-100 text-green-800 p-2 rounded-full mr-4">
<i class="fas fa-check"></i>
</div>
<div class="flex-1">
<p class="font-medium">Project completed</p>
<p class="text-gray-500 text-sm">123 Main St - Roof replacement</p>
<p class="text-gray-400 text-xs mt-1">2 hours ago</p>
</div>
<button class="text-blue-600 hover:text-blue-800">
<i class="fas fa-ellipsis-v"></i>
</button>
</div>
<div class="flex items-start">
<div class="bg-yellow-100 text-yellow-800 p-2 rounded-full mr-4">
<i class="fas fa-envelope"></i>
</div>
<div class="flex-1">
<p class="font-medium">Email sent to Sarah Johnson</p>
<p class="text-gray-500 text-sm">Estimate for roof repair</p>
<p class="text-gray-400 text-xs mt-1">Yesterday</p>
</div>
<button class="text-blue-600 hover:text-blue-800">
<i class="fas fa-ellipsis-v"></i>
</button>
</div>
</div>
</div>
</div>
<!-- CRM Section (hidden by default) -->
<div id="crmSection" class="hidden">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-bold text-gray-800">Customer Relationship Management</h2>
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md" onclick="showAddLeadModal()">
<i class="fas fa-plus mr-2"></i> Add New Lead
</button>
</div>
<div class="bg-white rounded-lg shadow overflow-hidden mb-6">
<div class="p-4 border-b border-gray-200">
<div class="flex items-center justify-between">
<div class="flex space-x-4">
<button class="px-4 py-2 bg-blue-600 text-white rounded-md">All Leads</button>
<button class="px-4 py-2 bg-white border border-gray-300 rounded-md hover:bg-gray-50">New</button>
<button class="px-4 py-2 bg-white border border-gray-300 rounded-md hover:bg-gray-50">Contacted</button>
<button class="px-4 py-2 bg-white border border-gray-300 rounded-md hover:bg-gray-50">Estimate Sent</button>
</div>
<div class="flex items-center space-x-2">
<div class="relative">
<input type="text" placeholder="Search leads..." class="pl-10 pr-4 py-2 border rounded-md w-64">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
</div>
<button class="p-2 border rounded-md hover:bg-gray-50">
<i class="fas fa-filter"></i>
</button>
</div>
</div>
</div>
<div class="overflow-x-auto">
<div class="flex p-4 space-x-4">
<!-- New Leads Column -->
<div class="crm-pipeline-stage bg-gray-50 rounded-lg p-4">
<div class="flex justify-between items-center mb-4">
<h3 class="font-medium">New Leads (8)</h3>
<button class="text-blue-600 hover:text-blue-800">
<i class="fas fa-ellipsis-v"></i>
</button>
</div>
<div class="space-y-4">
<!-- Lead Card -->
<div class="bg-white p-4 rounded-lg shadow border border-gray-200">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium">Michael Brown</h4>
<p class="text-gray-500 text-sm">Residential roof inspection</p>
</div>
<span class="bg-blue-100 text-blue-800 px-2 py-1 rounded-full text-xs">New</span>
</div>
<div class="mt-3 flex items-center text-sm text-gray-500">
<i class="fas fa-phone mr-2"></i>
<span>(713) 555-1234</span>
</div>
<div class="mt-2 flex items-center text-sm text-gray-500">
<i class="fas fa-envelope mr-2"></i>
<span>[email protected]</span>
</div>
<div class="mt-3 flex justify-between items-center">
<span class="text-xs text-gray-400">Today, 10:30 AM</span>
<button class="text-blue-600 text-sm font-medium" onclick="showLeadDetails('lead1')">View</button>
</div>
</div>
<!-- Lead Card -->
<div class="bg-white p-4 rounded-lg shadow border border-gray-200">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium">Sarah Wilson</h4>
<p class="text-gray-500 text-sm">Commercial roof repair</p>
</div>
<span class="bg-blue-100 text-blue-800 px-2 py-1 rounded-full text-xs">New</span>
</div>
<div class="mt-3 flex items-center text-sm text-gray-500">
<i class="fas fa-phone mr-2"></i>
<span>(281) 555-5678</span>
</div>
<div class="mt-2 flex items-center text-sm text-gray-500">
<i class="fas fa-envelope mr-2"></i>
<span>[email protected]</span>
</div>
<div class="mt-3 flex justify-between items-center">
<span class="text-xs text-gray-400">Today, 9:15 AM</span>
<button class="text-blue-600 text-sm font-medium" onclick="showLeadDetails('lead2')">View</button>
</div>
</div>
</div>
</div>
<!-- Contacted Column -->
<div class="crm-pipeline-stage bg-gray-50 rounded-lg p-4">
<div class="flex justify-between items-center mb-4">
<h3 class="font-medium">Contacted (5)</h3>
<button class="text-blue-600 hover:text-blue-800">
<i class="fas fa-ellipsis-v"></i>
</button>
</div>
<div class="space-y-4">
<!-- Lead Card -->
<div class="bg-white p-4 rounded-lg shadow border border-gray-200">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium">David Johnson</h4>
<p class="text-gray-500 text-sm">Roof replacement</p>
</div>
<span class="bg-yellow-100 text-yellow-800 px-2 py-1 rounded-full text-xs">Contacted</span>
</div>
<div class="mt-3 flex items-center text-sm text-gray-500">
<i class="fas fa-phone mr-2"></i>
<span>(832) 555-9012</span>
</div>
<div class="mt-2 flex items-center text-sm text-gray-500">
<i class="fas fa-envelope mr-2"></i>
<span>[email protected]</span>
</div>
<div class="mt-3 flex justify-between items-center">
<span class="text-xs text-gray-400">Yesterday, 2:45 PM</span>
<button class="text-blue-600 text-sm font-medium" onclick="showLeadDetails('lead3')">View</button>
</div>
</div>
<!-- Lead Card -->
<div class="bg-white p-4 rounded-lg shadow border border-gray-200">
<div class="flex justify-between items-start">
</div>
</div>
</div>
</div>
</div>
<!-- JavaScript for all functionality -->
<script>
// Mobile menu toggle
function toggleMobileMenu() {
const mobileMenu = document.getElementById('mobileMenu');
mobileMenu.classList.toggle('hidden');
}
// AI Chat functionality
function toggleAIChat() {
const aiChatContainer = document.getElementById('aiChatContainer');
aiChatContainer.classList.toggle('hidden');
}
function sendAIChatMessage() {
const input = document.getElementById('aiChatInput');
const messagesContainer = document.getElementById('aiChatMessages');
const typingIndicator = document.getElementById('aiTypingIndicator');
if (input.value.trim() === '') return;
// Add user message
const userMessage = document.createElement('div');
userMessage.className = 'chat-message bg-gray-200 text-gray-800 rounded-lg p-3 mb-3 ml-auto';
userMessage.innerHTML = `<p>${input.value}</p>`;
messagesContainer.appendChild(userMessage);
// Show typing indicator
typingIndicator.classList.remove('hidden');
// Clear input
input.value = '';
// Scroll to bottom
messagesContainer.scrollTop = messagesContainer.scrollHeight;
// Simulate AI response after delay
setTimeout(() => {
typingIndicator.classList.add('hidden');
// Add AI response
const aiMessage = document.createElement('div');
aiMessage.className = 'chat-message bg-blue-100 text-blue-800 rounded-lg p-3 mb-3';
// Simple response logic
const userText = input.value.toLowerCase();
let response = "Thank you for your question. Our team will get back to you shortly.";
if (userText.includes('estimate') || userText.includes('price') || userText.includes('cost')) {
response = "For a quick estimate, please provide:<br>1. Roof size (approx. square footage)<br>2. Type of roof (shingle, metal, tile)<br>3. Any specific issues (leaks, storm damage, etc.)<br><br>Or you can <a href='#contact' class='text-blue-600 font-medium'>request a free estimate</a> from our team.";
} else if (userText.includes('service') || userText.includes('offer')) {
response = "We offer:<br>- Roof replacement<br>- Roof repair<br- Roof inspections<br>- Emergency services<br><br>Learn more on our <a href='#services' class='text-blue-600 font-medium'>services page</a>.";
} else if (userText.includes('schedule') || userText.includes('appointment')) {
response = "You can schedule an inspection by:<br>1. Calling us at <a href='tel:+12812345678' class='text-blue-600 font-medium'>(281) 234-5678</a><br>2. Using our <a href='#contact' class='text-blue-600 font-medium'>contact form</a><br>3. Logging into your <a href='#' onclick='showDashboard()' class='text-blue-600 font-medium'>client portal</a>";
}
aiMessage.innerHTML = `<p>${response}</p>`;
messagesContainer.appendChild(aiMessage);
// Scroll to bottom
messagesContainer.scrollTop = messagesContainer.scrollHeight;
}, 1500);
}
// Contact form submission
function submitContactForm(event) {
event.preventDefault();
const name = document.getElementById('name').value;
const email = document.getElementById('email').value;
const phone = document.getElementById('phone').value;
const service = document.getElementById('service').value;
const message = document.getElementById('message').value;
// In a real app, you would send this data to your server
console.log('Form submitted:', { name, email, phone, service, message });
// Show success message
alert(`Thank you, ${name}! Your request has been submitted. We'll contact you shortly at ${phone} or ${email}.`);
// Reset form
document.getElementById('contactForm').reset();
}
// Dashboard functionality
function showDashboard() {
document.getElementById('dashboardModal').classList.remove('hidden');
document.body.style.overflow = 'hidden';
}
function hideDashboard() {
document.getElementById('dashboardModal').classList.add('hidden');
document.body.style.overflow = 'auto';
}
function showDashboardSection(sectionId) {
// Hide all sections
document.getElementById('dashboardSection').classList.add('hidden');
document.getElementById('crmSection').classList.add('hidden');
document.getElementById('projectsSection').classList.add('hidden');
document.getElementById('calendarSection').classList.add('hidden');
document.getElementById('marketingSection').classList.add('hidden');
document.getElementById('measurementSection').classList.add('hidden');
document.getElementById('paymentsSection').classList.add('hidden');
document.getElementById('clientPortalSection').classList.add('hidden');
document.getElementById('settingsSection').classList.add('hidden');
// Show selected section
document.getElementById(`${sectionId}Section`).classList.remove('hidden');
// Update title
const titles = {
'dashboard': 'Dashboard',
'crm': 'Customer Relationship Management',
'projects': 'Project Management',
'calendar': 'Calendar',
'marketing': 'Marketing Automation',
'measurement': 'Roof Measurement',
'payments': 'Payment Processing',
'clientPortal': 'Client Portal',
'settings': 'Settings'
};
document.getElementById('dashboardTitle').textContent = titles[sectionId];
}
function showAddLeadModal() {
alert('In a real application, this would open a modal to add a new lead with fields for name, contact info, source, etc.');
}
function showLeadDetails(leadId) {
alert(`In a real application, this would show detailed information about lead ${leadId} including contact history, notes, and next steps.`);
}
function showAddProjectModal() {
alert('In a real application, this would open a modal to create a new project with fields for client, address, scope of work, timeline, etc.');
}
function showProjectDetails(projectId) {
alert(`In a real application, this would show detailed information about project ${projectId} including tasks, timeline, team members, and documents.`);
}
// Initialize Stripe payment form
document.addEventListener('DOMContentLoaded', function() {
// This would be initialized with your Stripe publishable key
const stripe = Stripe('pk_test_51N...');
// In a real app, you would set up payment form handlers here
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Cashlambin/gstorm" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>