Advertisement
Sweetening

Easy Detailing index.html

Nov 2nd, 2024
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Easy Detailing</title>
  7. <style>/* Basic styling */
  8. body {
  9. font-family: Arial, sans-serif;
  10. margin: 0;
  11. padding: 0;
  12. color: #333;
  13. }
  14.  
  15. header {
  16. background-color: #0073e6;
  17. color: #fff;
  18. padding: 1em;
  19. text-align: center;
  20. }
  21.  
  22. header h1 {
  23. margin: 0;
  24. }
  25.  
  26. nav a {
  27. color: #fff;
  28. margin: 0 1em;
  29. text-decoration: none;
  30. }
  31.  
  32. section {
  33. padding: 2em;
  34. text-align: center;
  35. }
  36.  
  37. form {
  38. display: flex;
  39. flex-direction: column;
  40. align-items: center;
  41. max-width: 400px;
  42. margin: 0 auto;
  43. }
  44.  
  45. label, input, select, textarea, button {
  46. margin-bottom: 0.5em;
  47. width: 100%;
  48. }
  49.  
  50. button {
  51. background-color: #0073e6;
  52. color: #fff;
  53. border: none;
  54. padding: 0.5em;
  55. cursor: pointer;
  56. }
  57.  
  58. footer {
  59. background-color: #333;
  60. color: #fff;
  61. text-align: center;
  62. padding: 1em;
  63. }
  64. </style>
  65. <script>// Contact form submission handler
  66. document.getElementById("contactForm").addEventListener("submit", function (event) {
  67. event.preventDefault();
  68. alert("Thank you for your message! We will contact you shortly.");
  69. });
  70.  
  71. // Payment handling function
  72. function makePayment() {
  73. const serviceType = document.getElementById("serviceType").value;
  74. const paymentAmount = document.getElementById("paymentAmount").value;
  75.  
  76. if (serviceType && paymentAmount) {
  77. alert(`Thank you for your payment of $${paymentAmount} for ${serviceType} service.`);
  78. } else {
  79. alert("Please select a service type and enter the payment amount.");
  80. }
  81. }
  82. </script>
  83. </head>
  84. <body>
  85. <!-- Header -->
  86. <header>
  87. <h1>Easy Detailing</h1>
  88. <nav>
  89. <a href="#home">Home</a>
  90. <a href="#services">Services</a>
  91. <a href="#contact">Contact</a>
  92. <a href="#order">Order Now</a>
  93. </nav>
  94. </header>
  95.  
  96. <!-- Home Section -->
  97. <section id="home">
  98. <h2>Welcome to Easy Detailing</h2>
  99. <p>Your trusted partner in car coating services.</p>
  100. </section>
  101.  
  102. <!-- Services Section -->
  103. <section id="services">
  104. <h2>Our Services</h2>
  105. <p>We offer top-notch car coating services to keep your vehicle looking brand new.</p>
  106. </section>
  107.  
  108. <!-- Contact Section -->
  109. <section id="contact">
  110. <h2>Contact Us</h2>
  111. <form id="contactForm">
  112. <label for="name">Name:</label>
  113. <input type="text" id="name" name="name" required>
  114. <label for="email">Email:</label>
  115. <input type="email" id="email" name="email" required>
  116. <label for="issue">Your Issue:</label>
  117. <textarea id="issue" name="issue" required></textarea>
  118. <button type="submit">Submit</button>
  119. </form>
  120. </section>
  121.  
  122. <!-- Order Section -->
  123. <section id="order">
  124. <h2>Order Our Service</h2>
  125. <form id="orderForm">
  126. <label for="serviceType">Service Type:</label>
  127. <select id="serviceType" name="serviceType" required>
  128. <option value="basic">Basic Coating</option>
  129. <option value="premium">Premium Coating</option>
  130. </select>
  131. <label for="paymentAmount">Amount:</label>
  132. <input type="text" id="paymentAmount" name="paymentAmount" required>
  133. <button type="button" onclick="makePayment()">Pay Now</button>
  134. </form>
  135. </section>
  136.  
  137. <!-- Footer -->
  138. <footer>
  139. <p>&copy; 2024 Easy Detailing. All rights reserved.</p>
  140. </footer>
  141. </body>
  142. </html>
  143.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement