-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/alsiam/al-projects
- Loading branch information
Showing
78 changed files
with
13,852 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Anon - An eCommerce Website | ||
|
||
![GitHub repo size](https://img.shields.io/github/repo-size/codewithsadee/anon-ecommerce-website) | ||
![GitHub stars](https://img.shields.io/github/stars/codewithsadee/anon-ecommerce-website?style=social) | ||
![GitHub forks](https://img.shields.io/github/forks/codewithsadee/anon-ecommerce-website?style=social) | ||
[![Twitter Follow](https://img.shields.io/twitter/follow/codewithsadee_?style=social)](https://twitter.com/intent/follow?screen_name=codewithsadee_) | ||
[![YouTube Video Views](https://img.shields.io/youtube/views/3l8Lob4ysI0?style=social)](https://youtu.be/3l8Lob4ysI0) | ||
|
||
Anon is a fully responsive ecommerce website, maximum compatiblities in all mobile devices, built using HTML, CSS, and JavaScript. | ||
|
||
## Demo | ||
|
||
![Anon Desktop Demo](./website-demo-image/desktop.png "Desktop Demo") | ||
![Anon Mobile Demo](./website-demo-image/mobile.png "Mobile Demo") | ||
|
||
## Prerequisites | ||
|
||
Before you begin, ensure you have met the following requirements: | ||
|
||
* [Git](https://git-scm.com/downloads "Download Git") must be installed on your operating system. | ||
|
||
## Installing Anon | ||
|
||
To install **Anon**, follow these steps: | ||
|
||
Linux and macOS: | ||
|
||
```bash | ||
sudo git clone https://github.com/codewithsadee/anon-ecommerce-website.git | ||
``` | ||
|
||
Windows: | ||
|
||
```bash | ||
git clone https://github.com/codewithsadee/anon-ecommerce-website.git | ||
``` | ||
|
||
## Contact | ||
|
||
If you want to contact me you can reach me at [Twitter](https://www.twitter.com/codewithsadee). | ||
|
||
## License | ||
|
||
This project is **free to use** and does not contains any license. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
'use strict'; | ||
|
||
// modal variables | ||
const modal = document.querySelector('[data-modal]'); | ||
const modalCloseBtn = document.querySelector('[data-modal-close]'); | ||
const modalCloseOverlay = document.querySelector('[data-modal-overlay]'); | ||
|
||
// modal function | ||
const modalCloseFunc = function () { modal.classList.add('closed') } | ||
|
||
// modal eventListener | ||
modalCloseOverlay.addEventListener('click', modalCloseFunc); | ||
modalCloseBtn.addEventListener('click', modalCloseFunc); | ||
|
||
|
||
|
||
|
||
|
||
// notification toast variables | ||
const notificationToast = document.querySelector('[data-toast]'); | ||
const toastCloseBtn = document.querySelector('[data-toast-close]'); | ||
|
||
// notification toast eventListener | ||
toastCloseBtn.addEventListener('click', function () { | ||
notificationToast.classList.add('closed'); | ||
}); | ||
|
||
|
||
|
||
|
||
|
||
// mobile menu variables | ||
const mobileMenuOpenBtn = document.querySelectorAll('[data-mobile-menu-open-btn]'); | ||
const mobileMenu = document.querySelectorAll('[data-mobile-menu]'); | ||
const mobileMenuCloseBtn = document.querySelectorAll('[data-mobile-menu-close-btn]'); | ||
const overlay = document.querySelector('[data-overlay]'); | ||
|
||
for (let i = 0; i < mobileMenuOpenBtn.length; i++) { | ||
|
||
// mobile menu function | ||
const mobileMenuCloseFunc = function () { | ||
mobileMenu[i].classList.remove('active'); | ||
overlay.classList.remove('active'); | ||
} | ||
|
||
mobileMenuOpenBtn[i].addEventListener('click', function () { | ||
mobileMenu[i].classList.add('active'); | ||
overlay.classList.add('active'); | ||
}); | ||
|
||
mobileMenuCloseBtn[i].addEventListener('click', mobileMenuCloseFunc); | ||
overlay.addEventListener('click', mobileMenuCloseFunc); | ||
|
||
} | ||
|
||
|
||
|
||
|
||
|
||
// accordion variables | ||
const accordionBtn = document.querySelectorAll('[data-accordion-btn]'); | ||
const accordion = document.querySelectorAll('[data-accordion]'); | ||
|
||
for (let i = 0; i < accordionBtn.length; i++) { | ||
|
||
accordionBtn[i].addEventListener('click', function () { | ||
|
||
const clickedBtn = this.nextElementSibling.classList.contains('active'); | ||
|
||
for (let i = 0; i < accordion.length; i++) { | ||
|
||
if (clickedBtn) break; | ||
|
||
if (accordion[i].classList.contains('active')) { | ||
|
||
accordion[i].classList.remove('active'); | ||
accordionBtn[i].classList.remove('active'); | ||
|
||
} | ||
|
||
} | ||
|
||
this.nextElementSibling.classList.toggle('active'); | ||
this.classList.toggle('active'); | ||
|
||
}); | ||
|
||
} |
Oops, something went wrong.