JIT
Creating a salon management website with essential features
Generate a code for making salon management website with essential pages including services appointments payment products and other essential pages using html css and javascript

Salon Management Website

Here's a comprehensive salon management website with essential pages built using HTML, CSS, and JavaScript:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Elegance Salon - Management System</title>
    <style>
        /* Global Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            color: #333;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header Styles */
        header {
            background-color: #6a1b9a;
            color: white;
            padding: 20px 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .logo {
            font-size: 28px;
            font-weight: bold;
        }
        
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .nav-links {
            display: flex;
            list-style: none;
        }
        
        .nav-links li {
            margin-left: 30px;
        }
        
        .nav-links a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
        }
        
        .nav-links a:hover {
            color: #f8bbd0;
        }
        
        /* Hero Section */
        .hero {
            background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('salon-bg.jpg');
            background-size: cover;
            background-position: center;
            height: 400px;
            display: flex;
            align-items: center;
            text-align: center;
            color: white;
        }
        
        .hero-content {
            max-width: 800px;
            margin: 0 auto;
        }
        
        .hero h1 {
            font-size: 48px;
            margin-bottom: 20px;
        }
        
        .hero p {
            font-size: 20px;
            margin-bottom: 30px;
        }
        
        .btn {
            display: inline-block;
            background-color: #6a1b9a;
            color: white;
            padding: 12px 30px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: bold;
            transition: background-color 0.3s;
        }
        
        .btn:hover {
            background-color: #4a148c;
        }
        
        /* Dashboard Section */
        .dashboard {
            padding: 60px 0;
        }
        
        .dashboard h2 {
            text-align: center;
            margin-bottom: 40px;
            font-size: 36px;
            color: #6a1b9a;
        }
        
        .stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 40px;
        }
        
        .stat-card {
            background-color: white;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            text-align: center;
        }
        
        .stat-card h3 {
            font-size: 24px;
            margin-bottom: 10px;
            color: #6a19a0;
        }
        
        .stat-card p {
            font-size: 36px;
            font-weight: bold;
            color: #333;
        }
        
        /* Tables */
        .table-container {
            background-color: white;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin-bottom: 40px;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
        }
        
        th, td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }
        
        th {
            background-color: #f8f8f8;
            font-weight: 600;
        }
        
        tr:hover {
            background-color: #f5f5f5;
        }
        
        .action-btn {
            padding: 5px 10px;
            border: none;
            border-radius: 3px;
            cursor: pointer;
            margin-right: 5px;
        }
        
        .edit-btn {
            background-color: #2196F3;
            color: white;
        }
        
        .delete-btn {
            background-color: #f44336;
            color: white;
        }
        
        /* Forms */
        .form-container {
            background-color: white;
            padding: 30px;
            border-radius: 5px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            max-width: 600px;
            margin: 0 auto;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
        }
        
        .form-group input, 
        .form-group select, 
        .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
        }
        
        .form-group textarea {
            height: 100px;
        }
        
        /* Footer */
        footer {
            background-color: #333;
            color: white;
            padding: 30px 0;
            text-align: center;
        }
        
        /* Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
        }
        
        .modal-content {
            background-color: white;
            margin: 10% auto;
            padding: 20px;
            border-radius: 5px;
            width: 50%;
            max-width: 600px;
        }
        
        .close {
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .stats {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .nav-links {
                display: none;
            }
            
            .hero h1 {
                font-size: 36px;
            }
        }
    </style>
</head>
<body>
    <header>
        <div class="container">
            <nav>
                <div class="logo">Elegance Salon</div>
                <ul class="nav-links">
                    <li><a href="#dashboard">Dashboard</a></li>
                    <li><a href="#appointments">Appointments</a></li>
                    <li><a href="#services">Services</a></li>
                    <li><a href="#products">Products</a></li>
                    <li><a href="#payments">Payments</a></li>
                    <li><a href="#staff">Staff</a></li>
                </ul>
            </nav>
        </div>
    </header>
    
    <section class="hero">
        <div class="hero-content">
            <h1>Elegance Salon Management</h1>
            <p>Manage your salon operations efficiently with our comprehensive management system</p>
            <a href="#dashboard" class="btn">Get Started</a>
        </div>
    </section>
    
    <section id="dashboard" class="dashboard">
        <div class="container">
            <h2>Dashboard Overview</h2>
            
            <div class="stats">
                <div class="stat-card">
                    <h3>Today's Appointments</h3>
                    <p id="today-appointments">12</p>
                </div>
                <div class="stat-card">
                    <h3>Monthly Revenue</h3>
                    <p id="monthly-revenue">$8,450</p>
                </div>
                <div class="stat-card">
                    <h3>Active Staff</h3>
                    <p id="active-staff">5</p>
                </div>
                <div class="stat-card">
                    <h3>Services Offered</h3>
                    <p id="services-count">15</p>
                </div>
            </div>
            
            <div class="table-container">
                <h3>Upcoming Appointments</h3>
                <table id="upcoming-appointments">
                    <thead>
                        <tr>
                            <th>Client</th>
                            <th>Service</th>
                            <th>Staff</th>
                            <th>Date</th>
                            <th>Time</th>
                            <th>Status</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>Sarah Johnson</td>
                            <td>Hair Coloring</td>
                            <td>Lisa Smith</td>
                            <td>2023-06-15</td>
                            <td>10:00 AM</td>
                            <td>Confirmed</td>
                        </tr>
                        <tr>
                            <td>Michael Brown</td>
                            <td>Haircut</td>
                            <td>John Doe</td>
                            <td>2023-06-15</td>
                            <td>11:30 AM</td>
                            <td>Confirmed</td>
                        </tr>
                        <tr>
                            <td>Emily Davis</td>
                            <td>Manicure</td>
                            <td>Anna Wilson</td>
                            <td>2023-06-15</td>
                            <td>2:00 PM</td>
                            <td>Confirmed</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </section>
    
    <section id="appointments" class="dashboard" style="background-color: #f9f9f9;">
        <div class="container">
            <h2>Appointments</h2>
            
            <div style="text-align: right; margin-bottom: 20px;">
                <button id="new-appointment-btn" class="btn">New Appointment</button>
            </div>
            
            <div class="table-container">
                <table id="all-appointments">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>Client</th>
                            <th>Service</th>
                            <th>Staff</th>
                            <th>Date</th>
                            <th>Time</th>
                            <th>Status</th>
                            <th>Actions</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>1001</td>
                            <td>Sarah Johnson</td>
                            <td>Hair Coloring</td>
                            <td>Lisa Smith</td>
                            <td>2023-06-15</td>
                            <td>10:00 AM</td>
                            <td>Confirmed</td>
                            <td>
                                <button class="action*
Preview not available