diff --git a/_config.yml b/_config.yml
new file mode 100644
index 00000000..c4192631
--- /dev/null
+++ b/_config.yml
@@ -0,0 +1 @@
+theme: jekyll-theme-cayman
\ No newline at end of file
diff --git a/public/images/free-store-icon-2017-thumb.png b/public/images/free-store-icon-2017-thumb.png
new file mode 100644
index 00000000..92a46a45
Binary files /dev/null and b/public/images/free-store-icon-2017-thumb.png differ
diff --git a/public/index.html b/public/index.html
index 5f8fbe0d..ffb76774 100755
--- a/public/index.html
+++ b/public/index.html
@@ -5,15 +5,19 @@
-
-
PlatziStore
+
Platzi Store
+
Todos los productos Obtenidos
diff --git a/public/styles.css b/public/styles.css
index ada53a1a..0d9171be 100755
--- a/public/styles.css
+++ b/public/styles.css
@@ -46,6 +46,18 @@ body {
justify-content: space-between;
}
+#lastMsg {
+ text-align: center;
+}
+
+.hide {
+ display: none;
+}
+
+.show {
+ display: block;
+}
+
@keyframes fade {
from {
opacity: 0;
diff --git a/src/index.js b/src/index.js
index eb2631c2..1f4f310a 100755
--- a/src/index.js
+++ b/src/index.js
@@ -1,31 +1,119 @@
const $app = document.getElementById('app');
const $observe = document.getElementById('observe');
const API = 'https://api.escuelajs.co/api/v1/products';
+const $lastMsg = document.getElementById('lastMsg');
-const getData = api => {
- fetch(api)
+const MAX_PRODUCTS_LIST = 200;
+const MAX_NUM_ITEMS = 10;
+const START_ITEM = 1;
+let page = 1;
+let marginTop = 100;
+let loadMoreProducts = false;
+
+/**
+ * Returns the index of the first product according to the page number
+ * @returns A number
+ */
+const startOfQuantity = () => {
+ if (page < 2) {
+ return START_ITEM - 1;
+ }
+ else {
+ return MAX_NUM_ITEMS * (page - 1) + (START_ITEM - 1);
+ }
+}
+
+/**
+ * Returns the index of the last product according to the page number
+ * @returns
+ */
+const endOfQuantity = () => {
+ return MAX_NUM_ITEMS * page + (START_ITEM - 1);
+}
+
+const itemCard = (item) => {
+ return '