JIT
create php code for a glamour salon website layout
generate a code in php for following code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Glamour Salon - Home</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"> <link rel="stylesheet" href="css/style.css"> </head> <body> <header> <div class="logo"> <h1>Glamour<span>Salon</span></h1> </div> <nav> <ul> <li><a href="index.html" class="active">Home</a></li> <li><a href="about.html">About Us</a></li> <li><a href="services.html">Services</a></li> <li><a href="gallery.html">Gallery</a></li> <li><a href="appointment.html">Book Appointment</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> <div class="auth-buttons"> <button class="login-btn" id="loginBtn">Login</button> <button class="signup-btn" id="signupBtn">Sign Up</button> </div> </header> <main> <section class="hero"> <div class="hero-content"> <h2>Your Beauty, Our Passion</h2> <p>Experience luxury and relaxation at our premium salon</p> <a href="appointment.html" class="cta-btn">Book Now</a> </div> <div class="hero-image"> <img src="image1.png" alt="Salon Interior"> </div> </section> <section class="features"> <div class="feature-card"> <i class="fas fa-cut"></i> <h3>Expert Stylists</h3> <p>Our professionals are trained in the latest techniques</p> </div> <div class="feature-card"> <i class="fas fa-spa"></i> <h3>Premium Products</h3> <p>We use only the highest quality products</p> </div> <div class="feature-card"> <i class="fas fa-heart"></i> <h3>Personalized Care</h3> <p>Tailored services for your unique needs</p> </div> </section> </main> <div class="modal" id="authModal"> <div class="modal-content"> <span class="close-btn">&times;</span> <div class="auth-forms"> <div class="login-form" id="loginForm"> <h2>Login</h2> <form> <input type="email" placeholder="Email" required> <input type="password" placeholder="Password" required> <button type="submit">Login</button> </form> <p>Don't have an account? <a href="#" id="showSignup">Sign Up</a></p> </div> <div class="signup-form" id="signupForm"> <h2>Sign Up</h2> <form> <input type="text" placeholder="Full Name" required> <input type="email" placeholder="Email" required> <input type="password" placeholder="Password" required> <input type="password" placeholder="Confirm Password" required> <button type="submit">Sign Up</button> </form> <p>Already have an account? <a href="#" id="showLogin">Login</a></p> </div> </div> </div> </div> <footer> <div class="footer-content"> <div class="footer-section"> <h3>Quick Links</h3> <ul> <li><a href="index.html">Home</a></li> <li><a href="about.html">About Us</a></li> <li><a href="services.html">Services</a></li> <li><a href="gallery.html">Gallery</a></li> </ul> </div> <div class="footer-section"> <h3>Contact Info</h3> <p><i class="fas fa-map-marker-alt"></i> 123 Beauty St, City</p> <p><i class="fas fa-phone"></i> (123) 456-7890</p> <p><i class="fas fa-envelope"></i> info@glamoursalon.com</p> </div> <div class="footer-section"> <h3>Follow Us</h3> <div class="social-icons"> <a href="#"><i class="fab fa-facebook"></i></a> <a href="#"><i class="fab fa-instagram"></i></a> <a href="#"><i class="fab fa-twitter"></i></a> </div> </div> </div> <div class="footer-bottom"> <p>&copy; 2023 Glamour Salon. All rights reserved.</p> </div> </footer> <script> // DOM Elements const loginBtn = document.getElementById('loginBtn'); const signupBtn = document.getElementById('signupBtn'); const authModal = document.getElementById('authModal'); const closeBtn = document.querySelector('.close-btn'); const loginForm = document.getElementById('loginForm'); const signupForm = document.getElementById('signupForm'); const showSignup = document.getElementById('showSignup'); const showLogin = document.getElementById('showLogin'); // Modal functionality function openModal() { authModal.style.display = 'block'; } function closeModal() { authModal.style.display = 'none'; // Reset forms to login by default when closing loginForm.style.display = 'block'; signupForm.style.display = 'none'; } // Event Listeners loginBtn.addEventListener('click', () => { openModal(); loginForm.style.display = 'block'; signupForm.style.display = 'none'; }); signupBtn.addEventListener('click', () => { openModal(); loginForm.style.display = 'none'; signupForm.style.display = 'block'; }); closeBtn.addEventListener('click', closeModal); window.addEventListener('click', (e) => { if (e.target === authModal) { closeModal(); } }); // Toggle between login and signup forms showSignup.addEventListener('click', (e) => { e.preventDefault(); loginForm.style.display = 'none'; signupForm.style.display = 'block'; }); showLogin.addEventListener('click', (e) => { e.preventDefault(); loginForm.style.display = 'block'; signupForm.style.display = 'none'; }); // Form submission handlers loginForm.querySelector('form').addEventListener('submit', (e) => { e.preventDefault(); // Add login logic here alert('Login functionality will be implemented'); closeModal(); }); signupForm.querySelector('form').addEventListener('submit', (e) => { e.preventDefault(); // Add signup logic here alert('Signup functionality will be implemented'); closeModal(); }); // Smooth scrolling for navigation document.querySelectorAll('nav a').forEach(anchor => { anchor.addEventListener('click', function(e) { e.preventDefault(); const targetId = this.getAttribute('href'); if (targetId !== '#') { document.querySelector(targetId).scrollIntoView({ behavior: 'smooth' }); } }); }); // Active nav link highlighting const navLinks = document.querySelectorAll('nav ul li a'); const currentPage = window.location.pathname.split('/').pop() || 'index.html'; navLinks.forEach(link => { if (link.getAttribute('href') === currentPage) { link.classList.add('active'); } else { link.classList.remove('active'); } }); </script> </body> </html>

Here's the PHP version of your HTML code:

Updated files
v1