Skip to content

Commit

Permalink
create shop module
Browse files Browse the repository at this point in the history
  • Loading branch information
HectorVilas committed Apr 25, 2023
1 parent e9cf3a5 commit f1c5a6e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions modules/pages/shop.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
export default function home() {
const shop = [categories(), banner(), catalog()];

return shop;
}

function categories() {
const section = document.createElement('section');

section.classList.add('shop-categories');

return section;
}

function banner() {
const section = document.createElement('section');

section.classList.add('shop-banner');

return section;
}

function catalog() {
const section = document.createElement('section');

section.classList.add('shop-catalog');

return section;
}

0 comments on commit f1c5a6e

Please sign in to comment.