Confirm Your Membership
+${image.name}
- Thank you for signing up for a membership! - Please review the membership details below: + ${image.description}
--
-
- Membership: Individual -
- Price: $10 -
diff --git a/web-apps/store-front/css/grid.css b/web-apps/store-front/css/grid.css index 3fd2463..dab9eb3 100644 --- a/web-apps/store-front/css/grid.css +++ b/web-apps/store-front/css/grid.css @@ -22,3 +22,4 @@ grid-template-columns: 20% 20% 20% 20% 20%; } } + diff --git a/web-apps/store-front/js/.#grid-of-photos.js b/web-apps/store-front/js/.#grid-of-photos.js deleted file mode 120000 index f112fc5..0000000 --- a/web-apps/store-front/js/.#grid-of-photos.js +++ /dev/null @@ -1 +0,0 @@ -andrea@lv5.321700:1727085997 \ No newline at end of file diff --git a/web-apps/store-front/js/grid-of-photos.js b/web-apps/store-front/js/grid-of-photos.js index 3e0c487..3d362d0 100644 --- a/web-apps/store-front/js/grid-of-photos.js +++ b/web-apps/store-front/js/grid-of-photos.js @@ -8,15 +8,19 @@ class GridOfPhotos extends HTMLElement { constructor () { // Inherit parent class properties super(); - + // LIsten for events this.addEventListener('click', this); + this.addEventListener('keydown', this); } /** * Runs each time the element is appended to or moved in the DOM */ async connectedCallback () { + + // Create the dialog element + this.dialog = document.createElement('dialog'); // Fetch the photos from the API this.photos = await this.fetchPhotos(); @@ -29,7 +33,7 @@ class GridOfPhotos extends HTMLElement { // Render the element this.innerHTML = `
- Thank you for signing up for a membership! - Please review the membership details below: + ${image.description}
-