Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.9 kB
1
Indexable
Never
<html>
  <head>
    <title>Health Coaching</title>
    <style>
      /* Add some style to the website */
      body {
        font-family: Arial, sans-serif;
      }
      .container {
        max-width: 800px;
        margin: 0 auto;
        text-align: center;
      }
      h1 {
        color: #333;
      }
      .btn {
        background-color: #4caf50;
        color: white;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
      }
      .btn:hover {
        background-color: #46a049;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <!-- Add a header and some introductory text -->
      <h1>Welcome to Health Coaching</h1>
      <p>Are you looking to improve your health and wellbeing? Our team of certified health coaches can help you reach your goals and live a healthier life.</p>

      <!-- Add a button that opens a contact form when clicked -->
      <button class="btn" onclick="openContactForm()">Contact Us</button>
    </div>

    <!-- Add a contact form that is hidden by default -->
    <div id="contact-form" style="display: none;">
      <form>
        <label for="name">Name:</label><br>
        <input type="text" id="name" name="name"><br>
        <label for="email">Email:</label><br>
        <input type="email" id="email" name="email"><br>
        <label for="message">Message:</label><br>
        <textarea id="message" name="message"></textarea><br>
        <input type="submit" value="Submit">
      </form> 
    </div>

    <!-- Add some JavaScript to toggle the visibility of the contact form -->
    <script>
      function openContactForm() {
        var form = document.getElementById("contact-form");
        if (form.style.display === "none") {
          form.style.display = "block";
        } else {
          form.style.display = "none";
        }
      }
    </script>
  </body>
</html>