Untitled

Anonymous
Plain Text
08/27/2025 6:01 PM
4.4 KB
17
Indexable
Never
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>Learn Piano Notes</title>
  <style>
    #piano {
  display: flex;
  position: relative;
  height: 200px;
  margin-top: 2rem;
  user-select: none;
}

.key {
  border: 1px solid #000;
  box-sizing: border-box;
  cursor: pointer;
}

.white {
  width: 40px;
  height: 100%;
  background: #fff;
  z-index: 1;
  position: relative;
}

.black {
  width: 25px;
  height: 60%;
  background: #000;
  position: absolute;
  z-index: 2;
  margin-left: -12.5px;
}

/* Position black keys */
.key[data-note="Csharp"] { left: 30px; }
.key[data-note="Dsharp"] { left: 70px; }
.key[data-note="Fsharp"] { left: 150px; }
.key[data-note="Gsharp"] { left: 190px; }
.key[data-note="Asharp"] { left: 230px; }

/* Active key effect */
.key:active {
  background-color: #ff4b2b;
}

    /* Base styles */
    body {
      margin: 0;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background: #121212;
      color: #fff;
    }

    header {
      background: linear-gradient(135deg, #ff416c, #ff4b2b);
      padding: 2rem;
      text-align: center;
    }

    header h1 {
      margin: 0;
      font-size: 3rem;
      font-weight: bold;
    }

    nav {
      background: #1e1e1e;
      display: flex;
      justify-content: center;
      gap: 2rem;
      padding: 1rem;
    }

    nav a {
      color: #ffffffcc;
      text-decoration: none;
      font-weight: 600;
      transition: color 0.3s;
    }

    nav a:hover {
      color: #ff4b2b;
    }

    section {
      padding: 3rem 2rem;
      max-width: 800px;
      margin: 0 auto;
    }

    h2 {
      color: #ff4b2b;
      margin-bottom: 1rem;
    }

    footer {
      background: #1e1e1e;
      color: #aaa;
      text-align: center;
      padding: 1rem;
    }

    /* Contact form styles */
    form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    input, textarea {
      padding: 0.75rem;
      border: none;
      border-radius: 5px;
      font-size: 1rem;
    }

    button {
      padding: 0.75rem;
      background: #ff4b2b;
      border: none;
      color: #fff;
      font-size: 1rem;
      border-radius: 5px;
      cursor: pointer;
      transition: background 0.3s;
    }

    button:hover {
      background: #e03a1b;
    }
  </style>
</head>
<body>

  <header>
    <h1>Learn Piano Notes</h1>
  </header>

  <nav>
    <a href="#home">Home</a>
    <a href="#about">About</a>
    <a href="#contact">Contact</a>
  </nav>

  <section id="home">
    <h2>Welcome!</h2>
    <p>Welcome to your beginner-friendly guide to learning piano notes! 🎶 Whether you're just starting or brushing up, this site is designed to help you understand and recognize piano keys, scales, and notation 
    <div id="piano">
  <div class="key white" data-note="C"></div>
  <div class="key black" data-note="Csharp"></div>
  <div class="key white" data-note="D"></div>
  <div class="key black" data-note="Dsharp"></div>
  <div class="key white" data-note="E"></div>
  <div class="key white" data-note="F"></div>
  <div class="key black" data-note="Fsharp"></div>
  <div class="key white" data-note="G"></div>
  <div class="key black" data-note="Gsharp"></div>
  <div class="key white" data-note="A"></div>
  <div class="key black" data-note="Asharp"></div>
  <div class="key white" data-note="B"></div>
</div>
    step-by-step.</p>
    <p>Start with the basics and build your skills with simple, engaging lessons.</p>
  </section>

  <section id="about">
    <h2>About This Site</h2>
    <p>This site was created to help aspiring musicians get familiar with piano notes in a simple and modern way. We focus on visual learning, interactive examples, and easy explanations so anyone can begin their music journey.</p>
    <p>Our goal is to make music education accessible, fun, and motivating for everyone.</p>
  </section>

  <section id="contact">
    <h2>Contact</h2>
    <p>If you have questions, feedback, or suggestions, feel free to reach out using the form below.</p>
    <form>
      <input type="text" name="name" placeholder="Your Name" required />
      <input type="email" name="email" placeholder="Your Email" required />
      <textarea name="message" rows="5" placeholder="Your Message" required></textarea>
      <button type="submit">Send Message</button>
    </form>
  </section>

  <footer>
    &copy; 2025 Learn Piano Notes. All rights reserved.
  </footer>

</body>
</html>
Editor is loading...
Leave a Comment