Contact Us Bright Academy School
Preview
Edit
Download
Run
Download Options
HTML File
Download as .html file
CSS File
Download as .css file
JavaScript File
Download as .js file
Combined HTML
All code in one HTML file
Project ZIP
All files in a ZIP archive
Cancel
HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Contact Us | Bright Future Academy</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap" rel="stylesheet"> </head> <body> <a href="#" class="back-to-school"> <i class="fas fa-arrow-left"></i> Back to School </a> <div class="floating-element float-1"></div> <div class="floating-element float-2"></div> <i class="fas fa-pencil-alt pencil pencil-1"></i> <i class="fas fa-pencil-alt pencil pencil-2"></i> <div class="container"> <header> <div class="logo">Bright Future <span>Academy</span></div> <div class="school-icons"> <i class="fas fa-book"></i> <i class="fas fa-graduation-cap"></i> <i class="fas fa-pencil-alt"></i> <i class="fas fa-calculator"></i> <i class="fas fa-microscope"></i> <i class="fas fa-laptop"></i> </div> </header> <div class="form-container"> <div class="form-info"> <h2>Education for Tomorrow's Leaders</h2> <p>Our dedicated staff is here to answer your questions about our curriculum, extracurricular activities, and the enrollment process. We believe in nurturing each child's unique potential.</p> <ul class="contact-details"> <li> <i class="fas fa-phone"></i> <div> <h3>Call Us</h3> <p>(555) 123-4567</p> </div> </li> <li> <i class="fas fa-envelope"></i> <div> <h3>Email Us</h3> <p>admissions@brightfuture.edu</p> </div> </li> <li> <i class="fas fa-map-marker-alt"></i> <div> <h3>Visit Our Campus</h3> <p>123 Education Lane<br>Springfield, IL 62701</p> </div> </li> </ul> </div> <div class="contact-form"> <form id="schoolForm"> <div class="form-group"> <label for="name"><i class="fas fa-user"></i> Parent/Guardian Name *</label> <input type="text" id="name" placeholder="Full name" required> </div> <div class="form-group"> <label for="email"><i class="fas fa-envelope"></i> Email Address *</label> <input type="email" id="email" placeholder="Your email address" required> </div> <div class="form-group"> <label for="phone"><i class="fas fa-phone"></i> Phone Number *</label> <input type="tel" id="phone" placeholder="Your phone number" required> </div> <div class="form-group"> <label for="studentName"><i class="fas fa-child"></i> Student Name *</label> <input type="text" id="studentName" placeholder="Student's full name" required> </div> <div class="form-group"> <label><i class="fas fa-graduation-cap"></i> Grade Level *</label> <div class="grade-options"> <div class="grade-option" data-grade="preschool">Preschool</div> <div class="grade-option" data-grade="elementary">Elementary</div> <div class="grade-option" data-grade="middle">Middle School</div> <div class="grade-option" data-grade="high">High School</div> </div> <input type="hidden" id="gradeLevel" required> </div> <div class="form-group"> <label for="interest"><i class="fas fa-star"></i> Program of Interest</label> <select id="interest" class="school-select"> <option value="">Select a program</option> <option value="stem">STEM Program</option> <option value="arts">Arts & Music</option> <option value="sports">Athletics</option> <option value="ib">International Baccalaureate</option> <option value="ap">Advanced Placement</option> </select> </div> <div class="form-group"> <label for="message"><i class="fas fa-comment"></i> Questions & Comments</label> <textarea id="message" placeholder="Tell us about your child and any specific questions you have"></textarea> </div> <button type="submit" class="btn pulse">Request Information <i class="fas fa-graduation-cap"></i></button> <div class="success-message" id="successMessage"> <i class="fas fa-check-circle"></i> Thank you for your inquiry! Our admissions team will contact you shortly. </div> </form> </div> </div> <div class="footer"> <p>© 2023 Bright Future Academy. All rights reserved. | Preparing students for a bright future</p> </div> </div> </body> </html>
CSS
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Open Sans', sans-serif; } body { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); color: #2c3e50; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; } .container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 20px; animation: fadeIn 1s ease-out; } header { text-align: center; padding: 30px 0; position: relative; } .logo { font-family: 'Montserrat', sans-serif; font-size: 42px; font-weight: 700; color: #2c3e50; margin-bottom: 15px; display: inline-block; position: relative; } .logo span { color: #3498db; } .logo::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: linear-gradient(90deg, #3498db, #2c3e50); border-radius: 2px; } h1 { font-family: 'Montserrat', sans-serif; font-size: 2.8rem; color: #2c3e50; margin-bottom: 15px; text-shadow: 1px 1px 2px rgba(0,0,0,0.1); } .subtitle { font-size: 1.2rem; color: #7f8c8d; max-width: 600px; margin: 0 auto 30px; position: relative; display: inline-block; } .subtitle::before, .subtitle::after { content: '✎'; position: absolute; top: 50%; transform: translateY(-50%); color: #3498db; font-size: 14px; } .subtitle::before { left: -30px; } .subtitle::after { right: -30px; } .form-container { display: flex; flex-wrap: wrap; background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); margin-bottom: 40px; transform: translateY(0); transition: transform 0.4s ease, box-shadow 0.4s ease; } .form-container:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); } .form-info { flex: 1; min-width: 300px; background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%); color: white; padding: 50px 40px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; } .form-info::before { content: ''; position: absolute; top: -70px; right: -70px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); } .form-info::after { content: ''; position: absolute; bottom: -80px; left: -80px; width: 250px; height: 250px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); } .form-info h2 { font-family: 'Montserrat', sans-serif; font-size: 2.2rem; margin-bottom: 25px; position: relative; z-index: 1; } .form-info p { margin-bottom: 35px; font-size: 1.1rem; position: relative; z-index: 1; line-height: 1.8; } .contact-details { list-style: none; position: relative; z-index: 1; } .contact-details li { display: flex; align-items: center; margin-bottom: 25px; transition: transform 0.3s ease; } .contact-details li:hover { transform: translateX(10px); } .contact-details i { font-size: 1.5rem; margin-right: 15px; color: #3498db; background: white; width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease; } .contact-details li:hover i { transform: scale(1.1); background: #3498db; color: white; } .contact-form { flex: 1.5; min-width: 300px; padding: 50px 40px; background: white; position: relative; } .form-group { margin-bottom: 25px; position: relative; } label { display: block; margin-bottom: 10px; font-weight: 600; color: #2c3e50; transition: color 0.3s ease; display: flex; align-items: center; } label i { margin-right: 10px; color: #3498db; } input, select, textarea { width: 100%; padding: 16px 20px; border: 2px solid #e9ecef; border-radius: 8px; font-size: 16px; transition: all 0.3s ease; background: #f8f9fa; } input:focus, select:focus, textarea:focus { border-color: #3498db; outline: none; background: white; box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1); } input:hover, select:hover, textarea:hover { border-color: #bdc3c7; } textarea { min-height: 140px; resize: vertical; } .btn { background: linear-gradient(90deg, #3498db, #2c3e50); color: white; border: none; padding: 18px 35px; font-size: 18px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: all 0.4s ease; width: 100%; position: relative; overflow: hidden; } .btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: 0.5s; } .btn:hover { background: linear-gradient(90deg, #2c3e50, #3498db); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3); } .btn:hover::before { left: 100%; } .btn:active { transform: translateY(0); } .footer { text-align: center; padding: 20px; color: #7f8c8d; font-size: 0.9rem; animation: fadeIn 1s ease-out; } .success-message { display: none; background: linear-gradient(90deg, #2ecc71, #27ae60); color: white; text-align: center; padding: 20px; border-radius: 8px; margin-top: 25px; animation: fadeIn 0.5s ease-out; box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3); } /* Animations */ @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } } .pulse { animation: pulse 2s infinite; } /* School icons */ .school-icons { display: flex; justify-content: center; margin-top: 20px; gap: 20px; flex-wrap: wrap; } .school-icons i { font-size: 24px; color: white; background: #3498db; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3); } .school-icons i:hover { transform: translateY(-5px); background: #2c3e50; } /* Responsive Design */ @media (max-width: 768px) { .form-container { flex-direction: column; } .form-info, .contact-form { width: 100%; } h1 { font-size: 2.2rem; } .subtitle::before, .subtitle::after { display: none; } .logo { font-size: 28px; } .school-icons { gap: 15px; } } /* Floating elements */ .floating-element { position: absolute; width: 100px; height: 100px; background: rgba(52, 152, 219, 0.1); border-radius: 50%; z-index: 0; } .float-1 { top: 20%; left: 5%; animation: float 8s ease-in-out infinite; } .float-2 { bottom: 10%; right: 5%; animation: float 10s ease-in-out infinite 1s; } @keyframes float { 0% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(10deg); } 100% { transform: translateY(0) rotate(0deg); } } /* Book animation */ .book-icon { display: inline-block; margin-left: 10px; animation: flip 4s ease infinite; } @keyframes flip { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } } /* Custom select styling */ .school-select { background-image: linear-gradient(45deg, transparent 50%, #3498db 50%), linear-gradient(135deg, #3498db 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 15px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; -webkit-appearance: none; -moz-appearance: none; appearance: none; } /* Decorative elements */ .pencil { position: absolute; width: 40px; height: 40px; opacity: 0.7; z-index: 0; color: #3498db; } .pencil-1 { top: 15%; left: 8%; animation: write 10s ease infinite; } .pencil-2 { bottom: 15%; right: 8%; animation: write 12s ease infinite reverse; } @keyframes write { 0%, 100% { transform: translateX(0) translateY(0) rotate(0); } 25% { transform: translateX(20px) translateY(10px) rotate(5deg); } 50% { transform: translateX(-10px) translateY(20px) rotate(-5deg); } 75% { transform: translateX(10px) translateY(-10px) rotate(3deg); } } /* Grade level options */ .grade-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; } .grade-option { flex: 1; min-width: 100px; text-align: center; padding: 12px; background: #f8f9fa; border: 2px solid #e9ecef; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; } .grade-option:hover { background: #e9ecef; } .grade-option.selected { background: #3498db; color: white; border-color: #3498db; } /* Back to school button */ .back-to-school { position: absolute; top: 20px; left: 20px; background: #3498db; color: white; padding: 10px 15px; border-radius: 50px; text-decoration: none; display: flex; align-items: center; gap: 5px; transition: all 0.3s ease; } .back-to-school:hover { background: #2c3e50; transform: translateX(-5px); }
JavaScript
document.getElementById('schoolForm').addEventListener('submit', function(e) { e.preventDefault(); // Validate grade level selection if (!document.getElementById('gradeLevel').value) { alert('Please select a grade level'); return; } // In a real application, you would send the form data to a server here // For this example, we'll just show the success message document.getElementById('successMessage').style.display = 'block'; // Scroll to the success message document.getElementById('successMessage').scrollIntoView({ behavior: 'smooth' }); // Reset the form after submission setTimeout(function() { document.getElementById('schoolForm').reset(); // Clear grade selection document.querySelectorAll('.grade-option').forEach(option => { option.classList.remove('selected'); }); document.getElementById('successMessage').style.display = 'none'; }, 5000); }); // Add hover effects to form elements const formElements = document.querySelectorAll('input, select, textarea'); formElements.forEach(element => { element.addEventListener('focus', () => { element.parentElement.querySelector('label').style.color = '#3498db'; }); element.addEventListener('blur', () => { element.parentElement.querySelector('label').style.color = '#2c3e50'; }); }); // Grade level selection document.querySelectorAll('.grade-option').forEach(option => { option.addEventListener('click', function() { // Remove selected class from all options document.querySelectorAll('.grade-option').forEach(opt => { opt.classList.remove('selected'); }); // Add selected class to clicked option this.classList.add('selected'); // Set the value of the hidden input document.getElementById('gradeLevel').value = this.getAttribute('data-grade'); }); });
Output Preview
Desktop
Mobile
Fullscreen