Skip to content

I wanted to copy the design of an existing site and give it some of my own style. I made a automotive car page to practice css.

License

Notifications You must be signed in to change notification settings

DiegoLibonati/Automotive-Car

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automotive-Car

Getting Started

  1. Clone the repository
  2. Join to the correct path of the clone
  3. Install LiveServer extension from Visual Studio Code [OPTIONAL]
  4. Click in "Go Live" from LiveServer extension

  1. Clone the repository
  2. Join to the correct path of the clone
  3. Open index.html in your favorite navigator

  1. Clone the repository
  2. Join to the correct path of the clone
  3. Execute: yarn install
  4. Execute: yarn dev

Description

I made a website about car repair, but basically what I did was to take a design from the internet and implement it on my own without seeing the original code. All this was because I wanted to keep practicing CSS.

Technologies used

  1. CSS3
  2. Typescript
  3. HTML5

Portfolio Link

https://www.diegolibonati.com.ar/#/project/Automotive-Car

Video

2024-01-11.12-49-14.mp4

Documentation

With btnOpenNav we get the button that will open the ship, with the btnCloseNav button we will close the ship and finally with the navContainer it will be that we will assign the class to open the ship or close:

const btnOpenNav = document.getElementById("btnOpen");
const btnCloseNav = document.getElementById("btnClose");
const navContainer = document.querySelector(".header_container-nav");

At this time we assign the click event. Depending on the button, a class will be added or removed from navContainer, whether or not the btnOpenNav button will be shown and not the btnCloseNav will be shown or not:

btnOpenNav.addEventListener("click", ()=>{

    navContainer.classList.add("show-nav");
    btnOpenNav.classList.add("noshow-btn");
    btnCloseNav.style.display = "block";

});

btnCloseNav.addEventListener("click", ()=>{

    navContainer.classList.remove("show-nav");
    btnOpenNav.classList.remove("noshow-btn");
    btnCloseNav.style.display = "none";

});

About

I wanted to copy the design of an existing site and give it some of my own style. I made a automotive car page to practice css.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published