Skip to content

Latest commit

 

History

History
507 lines (381 loc) · 14.2 KB

File metadata and controls

507 lines (381 loc) · 14.2 KB

AI AI-Landing-Page-Template - User Guide

Table of Contents

  1. Introduction
  2. Getting Started
  3. File Structure
  4. Customization Guide
  5. Section Editing
  6. Adding Content
  7. Styling & Themes
  8. JavaScript Functionality
  9. Responsive Design
  10. Browser Compatibility
  11. Performance Optimization
  12. Deployment
  13. SEO Recommendations
  14. Maintenance
  15. Troubleshooting
  16. FAQs

Introduction

The AI AI-Landing-Page-Template is a modern, responsive HTML template designed to showcase AI tools and services. This user guide provides comprehensive information on how to customize and deploy the template for your specific needs.

Key Features

  • Responsive Design: Works on all devices (mobile, tablet, desktop)
  • Dark/Light Mode: Built-in theme switcher with preference saving
  • Modern UI: Clean design with animations and smooth transitions
  • Customizable: Easy to modify with CSS variables and modular sections
  • Performance Optimized: Fast loading with minimal dependencies
  • Interactive Elements: Including accordion, forms, and animations

Getting Started

Prerequisites

  • Basic knowledge of HTML, CSS, and JavaScript
  • A code editor (VS Code, Sublime Text, etc.)
  • A modern web browser for testing

Installation

  1. Download the template files
  2. Extract the ZIP file to your desired location
  3. Open the folder in your code editor

File Structure

/ai-assistant-pro/
│
├── index.html           # Main HTML file
├── css/
│   └── styles.css       # Main stylesheet
├── js/
│   └── script.js        # JavaScript functionality
├── documentation.md     # Technical documentation
└── user-guide.md        # This user guide

Important Note: This template does not require an images directory as all images are linked online from external sources and don't need downloading.

Customization Guide

Basic Customization Steps

  1. Update Content: Edit the text in index.html
  2. Replace Images: Change the image URLs in the HTML file to your own preferred images
  3. Adjust Colors: Modify the CSS variables in styles.css
  4. Configure Features: Add, remove, or modify feature cards
  5. Set Up Form: Connect the newsletter form to your backend

Section Editing

Header Section

The header section contains the logo, navigation menu, and dark mode toggle.

<header class="header">
    <div class="container">
        <nav class="nav">
            <!-- Logo -->
            <a href="#" class="logo">
                <img src="path-to-your-logo" alt="Your Logo" height="30">
                <span>Your Brand Name</span>
            </a>
            
            <!-- Dark Mode Toggle & Mobile Menu -->
            <div class="nav-right">
                <button id="darkModeToggle" class="dark-mode-toggle">
                    <i class="fas fa-moon"></i>
                </button>
                <button class="mobile-menu-toggle">
                    <span></span>
                    <span></span>
                    <span></span>
                </button>
            </div>
            
            <!-- Navigation Links -->
            <ul class="nav-menu">
                <li><a href="#features" class="nav-link">Features</a></li>
                <li><a href="#how-it-works" class="nav-link">How It Works</a></li>
                <li><a href="#pricing" class="nav-link">Pricing</a></li>
                <li><a href="#testimonials" class="nav-link">Testimonials</a></li>
                <li><a href="#faq" class="nav-link">FAQ</a></li>
            </ul>
        </nav>
    </div>
</header>

Customization Options:

  • Change the logo image
  • Update the brand name
  • Modify navigation links
  • Adjust styling in CSS

Hero Section

The hero section is the first thing visitors see and contains your main heading, tagline, and call-to-action buttons.

<section id="hero" class="hero">
    <div class="container">
        <div class="hero-wrapper">
            <div class="hero-content" data-aos="fade-right">
                <h1>Transform Your Workflow with AI</h1>
                <p>AI Assistant Pro helps you automate tasks, save time, and boost productivity with intelligent AI technology.</p>
                <div class="hero-buttons">
                    <a href="#pricing" class="btn btn-primary">Start Free Trial</a>
                    <a href="#how-it-works" class="btn btn-secondary">How It Works</a>
                </div>
            </div>
            <div class="hero-image" data-aos="fade-left">
                <img src="path-to-hero-image" alt="AI Assistant Pro Hero Image">
            </div>
        </div>
    </div>
</section>

Customization Options:

  • Change heading and paragraph text
  • Update CTA button text and links
  • Replace the hero image
  • Adjust animation settings

Features Section

The features section showcases the main benefits and features of your product.

<section id="features" class="section">
    <div class="container">
        <div class="section-header" data-aos="fade-up">
            <h2>Key Features</h2>
            <p>Discover what makes AI Assistant Pro the best choice for your business</p>
        </div>
        
        <div class="features-grid">
            <!-- Feature Card (repeat for each feature) -->
            <div class="feature-card" data-aos="fade-up">
                <div class="feature-icon">
                    <img src="path-to-icon" alt="Feature Icon">
                </div>
                <h3>Feature Name</h3>
                <p>Feature description goes here</p>
            </div>
            <!-- Additional feature cards... -->
        </div>
    </div>
</section>

Customization Options:

  • Add or remove feature cards
  • Change feature icons, titles, and descriptions
  • Adjust the grid layout in CSS
  • Modify animation delay for staggered appearance

Continue this pattern for additional sections (How It Works, Pricing, Testimonials, FAQ, and Footer).

Adding Content

Adding a New Section

To add a new section to the page:

  1. Create a new section in the HTML file:
<section id="new-section" class="section">
    <div class="container">
        <div class="section-header" data-aos="fade-up">
            <h2>Section Title</h2>
            <p>Section description</p>
        </div>
        
        <!-- Section content goes here -->
        
    </div>
</section>
  1. Add corresponding styles in the CSS file
  2. Update the navigation menu to include a link to the new section

Replacing Images

All images in this template are linked from online sources (like Flaticon) and don't require downloading. To replace an image:

  1. Locate the image tag in the HTML file that you want to replace:
<!-- Example of an image in the feature section -->
<img src="https://cdn-icons-png.flaticon.com/512/2021/2021898.png" alt="Automation Icon">
  1. Replace the URL in the src attribute with your own image URL:
<img src="https://your-image-hosting-service.com/your-image.png" alt="Automation Icon">
  1. Update the alt attribute to accurately describe your new image

You can use any image hosting service for your images:

  • Cloudinary
  • Imgur
  • AWS S3
  • Your own web server
  • Or any other image hosting solution

The key areas where you might want to replace images include:

  • Logo (in the header)
  • Hero section image
  • Feature icons
  • How It Works section images
  • Testimonial author avatars

Adding Navigation Items

To add a new navigation item:

<ul class="nav-menu">
    <!-- Existing items... -->
    <li><a href="#new-section" class="nav-link">New Section</a></li>
</ul>

Adding Feature Cards

To add a new feature card:

<div class="feature-card" data-aos="fade-up" data-aos-delay="100">
    <div class="feature-icon">
        <img src="path-to-icon" alt="Feature Name">
    </div>
    <h3>Feature Name</h3>
    <p>Feature description goes here</p>
</div>

Adding FAQ Items

To add a new FAQ item:

<div class="faq-item">
    <div class="faq-question">
        <h3>Question goes here?</h3>
        <i class="fas fa-chevron-down"></i>
    </div>
    <div class="faq-answer">
        <p>Answer goes here. Provide a detailed explanation.</p>
    </div>
</div>

Styling and Themes

Color Scheme

The template uses CSS variables for easy color customization. To change the color scheme, edit the CSS variables in the :root selector:

:root {
    /* Colors */
    --primary-color: #6366f1;  /* Bright indigo */
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;  /* Pink */
    --secondary-light: #f472b6;
    --secondary-dark: #db2777;
    --accent-color: #06b6d4;  /* Cyan */
    /* Other colors... */
}

Dark Mode

The template includes built-in dark mode functionality. The dark mode variables are defined in the CSS:

[data-theme="dark"] {
    --white: #111827;
    --gray-50: #1f2937;
    --gray-100: #374151;
    /* Other dark mode color overrides... */
}

To customize the dark mode appearance, modify these variables.

JavaScript Functionality

Dark Mode Toggle

The dark mode toggle is controlled by JavaScript in script.js. The code sets the theme based on user preference and saves it to local storage.

Mobile Menu

The mobile menu toggle is handled by JavaScript, showing/hiding the navigation menu on mobile devices.

Smooth Scrolling

The template includes smooth scrolling for anchor links, making navigation more pleasant.

FAQ Accordion

The FAQ section uses JavaScript to create an accordion effect, showing/hiding answers when questions are clicked.

Animation on Scroll

The template uses the AOS (Animate On Scroll) library for scroll-triggered animations. Customize animations by modifying the data-aos attributes in HTML elements.

Responsive Design

The template is designed to be fully responsive, adapting to different screen sizes:

Mobile (< 768px)

  • Single column layout
  • Mobile navigation menu
  • Adjusted font sizes and spacing

Tablet (768px - 1024px)

  • Two-column layout where appropriate
  • Full navigation visible

Desktop (> 1024px)

  • Full layout with optimal spacing
  • Enhanced hover effects

Browser Compatibility

The template is compatible with modern browsers:

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)
  • Opera (latest)

Internet Explorer is not supported.

Performance Optimization

Image Optimization

To optimize performance:

  1. Use appropriate image formats (SVG for icons, WebP for photos)
  2. Compress images using tools like TinyPNG
  3. Specify image dimensions in HTML
  4. Consider using lazy loading for images below the fold

Code Minification

For production:

  1. Minify CSS and JavaScript files
  2. Remove unused CSS
  3. Consider bundling files for fewer HTTP requests

Deployment

Basic Deployment Steps

  1. Finalize all customizations
  2. Test thoroughly on different devices and browsers
  3. Optimize all assets for production
  4. Upload files to your web hosting via FTP or Git
  5. Set up proper redirects if needed
  6. Test the live site

Recommended Hosting Options

  • Netlify
  • Vercel
  • GitHub Pages
  • Traditional web hosting

SEO Recommendations

To improve SEO for your landing page:

  1. Update the <title> tag with your product name
  2. Add a descriptive meta description
  3. Use proper heading structure (H1, H2, H3)
  4. Add alt text to all images
  5. Include structured data where appropriate
  6. Ensure the site is mobile-friendly
  7. Optimize page speed

Maintenance

Regular Maintenance Tasks

  1. Update content as your product evolves
  2. Check for broken links
  3. Test form functionality
  4. Update copyright year
  5. Refresh testimonials periodically
  6. Check for browser compatibility issues with new browser versions

Troubleshooting

Common Issues

Dark Mode Not Working

  • Check if the JavaScript is properly loaded
  • Verify the dark mode toggle button has the correct ID
  • Check browser console for errors

Animations Not Showing

  • Ensure AOS library is properly loaded
  • Verify that AOS is initialized in the JavaScript
  • Check if elements have the correct AOS attributes

Mobile Menu Issues

  • Verify the mobile menu toggle has the correct class
  • Check if the event listener is properly attached
  • Test on various mobile devices

Form Submission Errors

  • Check form validation in JavaScript
  • Verify input fields have the correct attributes
  • Test the form with various inputs

FAQs

How do I change the favicon?

Add your favicon to the root directory and update the link in the <head> section of the HTML:

<link rel="icon" href="path-to-your-favicon.ico" type="image/x-icon">

Can I add more pages to this template?

Yes, you can create additional HTML files based on the main page and link to them from the navigation.

How do I connect the contact form to receive emails?

You'll need to use a backend service or API. Options include:

  • Formspree
  • Netlify Forms
  • Custom backend (PHP, Node.js, etc.)

How do I add Google Analytics?

Add the Google Analytics script to the <head> section of your HTML:

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=YOUR_GA_ID"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'YOUR_GA_ID');
</script>

How do I add custom fonts?

  1. Import the font in your CSS (either from Google Fonts or by hosting the font files):
@import url('https://fonts.googleapis.com/css2?family=Your+Font&display=swap');
  1. Update the font variables in your CSS:
:root {
    --body-font: 'Your Font', sans-serif;
    --heading-font: 'Your Font', sans-serif;
}

This user guide covers most aspects of using and customizing the AI AI-Landing-Page-Template template. For additional support or questions, please refer to the included documentation or contact our support team.