Skip to content

This project is a dynamic landing page for Tesla, featuring responsive navigation and interactive content updates. Users can click on different Tesla models to see updated information and background images.

Notifications You must be signed in to change notification settings

apvastava/Tesla-Landing-Page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tesla Landing Page

Description

This project is a simple landing page for Tesla, showcasing various models with dynamic content updates. Users can click on different Tesla models to see relevant information and background images update accordingly.

Technologies Used

  • HTML
  • CSS
  • JavaScript

Features

  • Responsive Navigation: A fixed navigation bar with links to different Tesla models.
  • Dynamic Content: Information such as acceleration, top speed, and range updates based on the selected model.
  • Background Image Transition: Smooth transition of background images for each model.

Code Overview

HTML

The HTML file (tesla.html) contains the structure of the page:

  • Head Section: Includes meta tags, title, CSS link, and favicon.
  • Body Section: Includes a header with navigation, information display, and JavaScript for dynamic updates.

CSS

The CSS file (tesla.css) contains styles for:

  • General styling: Font, margin, and padding reset.
  • Header: Background image, height, and transition effects.
  • Navigation: Positioning, styling for logo, links, and buttons.
  • Information Display: Styling for the car model information at the bottom of the page.

JavaScript

Embedded in the HTML file, the JavaScript handles:

  • Event Listeners: For click events on model links.
  • Content Updates: Changing text and background images based on the selected model.

Thank you for visiting!

About

This project is a dynamic landing page for Tesla, featuring responsive navigation and interactive content updates. Users can click on different Tesla models to see updated information and background images.

Topics

Resources

Stars

Watchers

Forks