Make a html and css landing page with creatives animations for an AI edtech startup for…
- User
Make a html and css landing page with creatives animations for an AI edtech startup for generating exam paper with generative AI and evaluating handwritten answer sheet of a exam.
- Assistant
Certainly! Below is a complete HTML and CSS code for a landing page tailored for your AI EdTech startup. This landing page features creative animations, responsive design, and showcases the key functionalities of generating exam papers and evaluating handwritten answer sheets using generative AI.
Table of Contents
Features
- Responsive Design: Ensures the landing page looks great on all devices.
- Hero Section with Animated Text: Captivates visitors with engaging animations.
- Feature Highlights: Showcases the two main services with icons and descriptions.
- Call to Action (CTA): Encourages users to sign up or learn more.
- Smooth Scroll Animations: Enhances user experience as they navigate through sections.
- Footer: Contains contact information and social media links.
HTML Code
Create an
index.htmlfile and paste the following code:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>AI ExamGen - Revolutionizing Exam Creation & Evaluation</title> <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap" rel="stylesheet"> <!-- Link to external CSS --> <link rel="stylesheet" href="styles.css"> <!-- Font Awesome for Icons --> <script src="https://kit.fontawesome.com/a2e6d6d9f4.js" crossorigin="anonymous"></script> </head> <body> <header> <div class="container"> <div class="logo"> <h1>AI ExamGen</h1> </div> <nav> <ul> <li><a href="#hero">Home</a></li> <li><a href="#features">Features</a></li> <li><a href="#about">About</a></li> <li><a href="#contact">Contact</a></li> </ul> </nav> </div> </header> <section id="hero"> <div class="container"> <div class="hero-text"> <h2 class="fade-in">Transforming Education with AI</h2> <p class="fade-in">Generate high-quality exam papers and accurately evaluate handwritten answers effortlessly.</p> <a href="#features" class="btn">Get Started</a> </div> <div class="hero-image"> <img src="https://via.placeholder.com/500" alt="AI Illustration"> </div> </div> </section> <section id="features"> <div class="container"> <h2 class="section-title">Our Features</h2> <div class="features-grid"> <div class="feature-card fade-in"> <i class="fas fa-file-alt fa-3x"></i> <h3>Exam Paper Generation</h3> <p>Utilize our generative AI to create diverse and comprehensive exam papers tailored to your requirements.</p> </div> <div class="feature-card fade-in"> <i class="fas fa-marker fa-3x"></i> <h3>Handwritten Answer Evaluation</h3> <p>Automatically evaluate handwritten answer sheets with high accuracy, saving time and resources.</p> </div> <div class="feature-card fade-in"> <i class="fas fa-chart-line fa-3x"></i> <h3>Performance Analytics</h3> <p>Gain insights into student performance with detailed analytics and reports.</p> </div> <div class="feature-card fade-in"> <i class="fas fa-shield-alt fa-3x"></i> <h3>Secure & Reliable</h3> <p>Ensure data security and reliability with our state-of-the-art infrastructure.</p> </div> </div> </div> </section> <section id="about" class="blur-section"> <div class="container"> <h2 class="section-title">About Us</h2> <p>At AI ExamGen, we are dedicated to revolutionizing the education sector by integrating cutting-edge artificial intelligence technologies. Our mission is to simplify the process of exam creation and evaluation, empowering educators to focus more on teaching and less on administrative tasks.</p> </div> </section> <section id="contact"> <div class="container"> <h2 class="section-title">Get in Touch</h2> <form class="contact-form"> <input type="text" placeholder="Your Name" required> <input type="email" placeholder="Your Email" required> <textarea placeholder="Your Message" rows="5" required></textarea> <button type="submit" class="btn">Send Message</button> </form> </div> </section> <footer> <div class="container"> <p>© 2023 AI ExamGen. All rights reserved.</p> <div class="social-links"> <a href="#"><i class="fab fa-facebook-f"></i></a> <a href="#"><i class="fab fa-twitter"></i></a> <a href="#"><i class="fab fa-linkedin-in"></i></a> </div> </div> </footer> <!-- Optional JavaScript for Animations --> <script> // Simple fade-in effect on scroll window.addEventListener('scroll', function() { const elements = document.querySelectorAll('.fade-in'); const windowHeight = window.innerHeight; elements.forEach(el => { const elementTop = el.getBoundingClientRect().top; if (elementTop < windowHeight - 100) { el.classList.add('visible'); } }); }); </script> </body> </html>
CSS Code
Create a
styles.cssfile and paste the following code:/* Reset & Base Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Roboto', sans-serif; line-height: 1.6; color: #333; overflow-x: hidden; } a { text-decoration: none; color: inherit; } img { max-width: 100%; height: auto; } .container { width: 90%; max-width: 1200px; margin: 0 auto; } /* Header Styles */ header { background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; z-index: 1000; } header .container { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; } header .logo h1 { font-size: 1.8rem; color: #4A90E2; } nav ul { list-style: none; display: flex; } nav ul li { margin-left: 25px; } nav ul li a { font-weight: 500; transition: color 0.3s ease; } nav ul li a:hover { color: #4A90E2; } /* Hero Section */ #hero { height: 100vh; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); display: flex; align-items: center; padding-top: 80px; /* To account for fixed header */ } #hero .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; } .hero-text { flex: 1; min-width: 300px; opacity: 0; transform: translateY(50px); transition: opacity 1s ease, transform 1s ease; } .hero-text.visible { opacity: 1; transform: translateY(0); } .hero-text h2 { font-size: 3rem; margin-bottom: 20px; color: #333; } .hero-text p { font-size: 1.2rem; margin-bottom: 30px; color: #555; } .btn { display: inline-block; background: #4A90E2; color: #fff; padding: 12px 25px; border-radius: 25px; font-weight: 500; transition: background 0.3s ease; } .btn:hover { background: #357ABD; } .hero-image { flex: 1; min-width: 300px; text-align: center; opacity: 0; transform: translateY(50px); transition: opacity 1s ease, transform 1s ease; } .hero-image.visible { opacity: 1; transform: translateY(0); } /* Features Section */ #features { padding: 80px 0; background: #fff; } .section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; position: relative; } .section-title::after { content: ''; width: 60px; height: 4px; background: #4A90E2; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); } .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; } .feature-card { background: #f9f9f9; padding: 30px 20px; border-radius: 10px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; opacity: 0; transform: translateY(50px); } .feature-card.visible { opacity: 1; transform: translateY(0); } .feature-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); } .feature-card i { color: #4A90E2; margin-bottom: 20px; } .feature-card h3 { margin-bottom: 15px; color: #333; } .feature-card p { color: #555; font-size: 0.95rem; } /* About Section */ .blur-section { padding: 80px 0; background: linear-gradient(135deg, #c3cfe2 0%, #f5f7fa 100%); } .blur-section p { max-width: 800px; margin: 0 auto; font-size: 1.1rem; color: #555; line-height: 1.8; text-align: center; } /* Contact Section */ #contact { padding: 80px 0; background: #fff; } .contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; } .contact-form input, .contact-form textarea { padding: 15px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem; transition: border 0.3s ease; } .contact-form input:focus, .contact-form textarea:focus { border-color: #4A90E2; outline: none; } .contact-form button { align-self: center; } /* Footer */ footer { background: #333; color: #fff; padding: 30px 0; } footer .container { display: flex; flex-direction: column; align-items: center; } footer p { margin-bottom: 15px; } .social-links a { color: #fff; margin: 0 10px; font-size: 1.2rem; transition: color 0.3s ease; } .social-links a:hover { color: #4A90E2; } /* Animations */ .fade-in { opacity: 0; transform: translateY(20px); transition: opacity 1s ease, transform 1s ease; } .fade-in.visible { opacity: 1; transform: translateY(0); } @media (max-width: 768px) { header .container { flex-direction: column; } nav ul { flex-direction: column; align-items: center; } nav ul li { margin: 10px 0; } #hero .container { flex-direction: column-reverse; text-align: center; } .hero-image { margin-top: 30px; } }
Explanation of the Code
-
HTML Structure:
- Header: Contains the logo and navigation menu.
- Hero Section: The main banner with a catchy headline, descriptive text, CTA button, and an illustrative image.
- Features Section: Highlights the core services with icons and descriptions.
- About Section: Provides information about the startup.
- Contact Section: A simple contact form for inquiries.
- Footer: Includes copyright information and social media links.
-
CSS Styling:
- Reset & Base Styles: Ensures consistency across browsers by resetting default margins and paddings.
- Header Styles: Fixed header with a shadow effect for depth.
- Hero Section: Uses a gradient background with flexbox to position text and image side by side. Includes smooth fade-in animations.
- Features Section: Utilizes CSS Grid for responsive layout. Each feature card has hover effects and animations.
- About & Contact Sections: Clean and straightforward styling for readability.
- Footer: Dark background with contrasting text and interactive social icons.
- Animations: Simple fade-in effects triggered on scroll using JavaScript.
-
Animations:
- The
fade-inclass is used on elements that should animate into view. The JavaScript listens for thescrollevent and adds thevisibleclass when elements enter the viewport. - Hover effects on buttons and feature cards enhance interactivity.
- The
-
Responsive Design:
- Media queries ensure the layout adapts to smaller screens, stacking elements vertically and adjusting padding/margins as needed.
-
External Resources:
- Google Fonts: Uses the 'Roboto' font for a modern and clean look.
- Font Awesome: Provides scalable vector icons for features and social links.
-
Placeholder Images:
- The hero image uses a placeholder (
https://via.placeholder.com/500). Replace this URL with your actual image or illustration that represents your AI EdTech startup.
- The hero image uses a placeholder (
How to Use
-
File Structure:
- Create a project folder.
- Inside the folder, create two files:
index.html(paste the HTML code)styles.css(paste the CSS code)
-
Images and Assets:
- Replace the placeholder image URL in the HTML with your actual image.
- If you have a logo, you can replace the text logo with an image by using an
<img>tag inside the.logodiv.
-
Hosting Icons:
- The code uses Font Awesome for icons. Ensure you have an active internet connection for the icons to display correctly. Alternatively, you can download and host Font Awesome locally.
-
Customization:
- Colors: The primary color used is
#4A90E2(a shade of blue). You can change it to match your branding. - Texts: Update the headings, paragraphs, and button texts to align with your specific messaging.
- Sections: Add or remove sections as per your requirements.
- Colors: The primary color used is
-
Deployment:
- Once you're satisfied with the design, you can host your landing page on platforms like GitHub Pages, Netlify, Vercel, or any web hosting service of your choice.
Preview
To see a live preview of the landing page:
- Save the
index.htmlandstyles.cssfiles in the same directory. - Open the
index.htmlfile in your preferred web browser. - Scroll through the page to observe the animations and responsive behavior.
Feel free to modify and enhance the landing page to better suit your startup's unique needs and branding. If you have any questions or need further assistance, feel free to ask!