Skip to content

Creation of html, css and javascript components for reuse and modularization of web pages.

Notifications You must be signed in to change notification settings

armandomzn/javascript-components

Repository files navigation

JavaScript Projects Showcase

Creation of HTML, CSS, and JavaScript components for reuse and modularization of web pages. This repository features a collection of reusable web development components that demonstrate different techniques and concepts in JavaScript, providing modular solutions for common UI elements and interactions.


Projects

random_color_generator Generate random colors using recursion for both RGB and HEX formats.

reviews A project to display random reviews with images, names, and text, with navigation functionality.

navbar-1 A responsive navigation bar that adjusts the links dynamically.

sidebar-1 An interactive sidebar with a modal feature for displaying additional content.

modal A simple modal that opens to display content dynamically.

accordion An accordion component that opens only one element at a time.

7. Menu

menu A filtering menu that categorizes and displays dataset items.

smooth-scroll-1 Implement smooth scrolling with JavaScript and fixed navigation.

9. Tabs

tabs-1 Dynamic tabs where data is injected through JavaScript.

countdown A countdown timer that updates every 7 days after the page refreshes.

lorem A dynamic Lorem Ipsum text generator with form controls.

task_manager A simple task manager that uses local storage to persist tasks.

13. Slider

slider A sliding element component that dynamically updates the displayed content.

gallery-1 An image gallery where each element’s state is managed by a JavaScript class.

random_number A random number generator that updates elements in the DOM using setInterval.

dark-mode-1 A dark mode toggle using CSS variables for easy theme switching.

filters A filtering system that uses ES6 methods for data manipulation.

norris-joke A Chuck Norris jokes generator using the official Chuck Norris API.

random-user Fetching random user data from the Random User Generator API.

cocktail-api Fetching and displaying cocktail recipes based on API data.

strapi-menu-1 A dynamic menu that fetches data from a data.js file and adapts its layout based on the screen size. It truly stands out with its interactive submenus that appear when you hover over the links. On smaller screens, the navigation switches to a sidebar, offering a more compact and accessible layout for mobile devices.

pagination A pagination system fetching user data from GitHub API and displaying in paginated format.


Getting Started

You can clone this repository and explore each individual project. For each project, the index.html file will open the corresponding live example.

1. Clone the repository

git clone https://github.com/armandomzn/javascript-components.git

2. Navigate to a project folder

cd path/to/project-folder

3. Open the index.html file in your browser

Each project is self-contained and can be viewed by opening its respective index.html file in any modern browser.

Key Concepts Across Projects

  • DOM Manipulation: Many of these projects use basic and advanced DOM manipulation techniques, such as adding and removing elements, updating text, and responding to user interactions.
  • API Integration: Some projects, like the Cocktail API, Random Users API, and Norris Jokes, demonstrate how to fetch data from public APIs and display it dynamically.
  • CSS Styling: All projects are styled using pure CSS, with some utilizing CSS variables, media queries, and flexbox/grid for layout.
  • JavaScript Functions: Functions are used extensively for modularity and reuse across different projects. Common patterns include event listeners, data handling, and DOM updates.

About

Creation of html, css and javascript components for reuse and modularization of web pages.

Topics

Resources

Stars

Watchers

Forks