Professional Chalkboard - MeggiTools
Run
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Professional Chalkboard</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" integrity="sha384-k6RqeWeci5ZR/Lv4MR0sA0FfDOMFFvWxGv9o5nJpbW2yA4uG5nFZ7F5v6O2jpeV4" crossorigin="anonymous"> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #2c3e50; margin: 0; font-family: 'Chalkboard', sans-serif; } .chalkboard { width: 80vw; height: 80vh; background: #2e8b57; border: 15px solid #3b3b3b; box-shadow: 0 10px 20px rgba(0,0,0,0.5); position: relative; overflow: hidden; padding: 20px; color: white; font-size: 1.5em; animation: slideIn 2s ease-out; } @keyframes slideIn { from { transform: translateY(-100%); } to { transform: translateY(0); } } .chalkboard::before, .chalkboard::after { content: ''; position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.2); z-index: 1; } .chalkboard::before { transform: rotate(2deg); } .chalkboard::after { transform: rotate(-2deg); } .content { position: relative; z-index: 2; text-align: center; animation: fadeIn 3s ease-in; overflow-y: auto; height: 100%; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .emoji { font-size: 2em; animation: bounce 2s infinite; } @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } .button { background: #e74c3c; border: none; padding: 10px 20px; color: white; font-size: 1em; border-radius: 5px; cursor: pointer; transition: background 0.3s ease; } .button:hover { background: #c0392b; } .icon { font-size: 1.5em; margin: 0 10px; transition: transform 0.3s ease; } .icon:hover { transform: scale(1.2); } .input-area { display: flex; flex-direction: column; align-items: center; margin-top: 20px; } .input-area input { padding: 10px; margin: 10px 0; width: 80%; font-size: 1em; } </style> </head> <body> <div class="chalkboard"> <div class="content"> <h1>Welcome to the Professional Chalkboard!</h1> <p class="emoji">📝✨</p> <p>Here, you can write anything you want. Feel free to express yourself!</p> <button type="button" class="button" onclick="addText()">Add Text</button> <div id="inputArea" class="input-area"></div> <div> <i class="fas fa-chalkboard-teacher icon"></i> <i class="fas fa-pencil-alt icon"></i> <i class="fas fa-eraser icon"></i> </div> </div> </div> <script> function addText() { const inputArea = document.getElementById('inputArea'); const input = document.createElement('input'); input.type = 'text'; input.placeholder = 'Write something...'; inputArea.appendChild(input); } </script> </body> </html>