diff --git a/.eslintrc.json b/.eslintrc.json index dd5dbdc7a..17f92484f 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -25,7 +25,7 @@ } ], "no-console": 1, - "quotes": ["error", "single", { "allowTemplateLiterals": true }], + "quotes": ["error", "double", { "allowTemplateLiterals": true }], "func-names": 0, "space-unary-ops": 2, "space-in-parens": "error", diff --git a/jonathan.txt b/jonathan.txt new file mode 100644 index 000000000..bbb703a14 --- /dev/null +++ b/jonathan.txt @@ -0,0 +1 @@ +Jonathan de Almeida \ No newline at end of file diff --git a/package.json b/package.json index 86646645b..f24a64c6c 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ "lint": "eslint *.js src/**/*.js", "format": "prettier --ignore-path ./.gitignore --write \"./**/*.{html,json,js,ts,css}\"", "test": "jest" - }, "author": "Shane Thompson", "license": "ISC", diff --git a/src/cart/index.html b/src/cart/index.html index f64b6f0c9..87399f39d 100644 --- a/src/cart/index.html +++ b/src/cart/index.html @@ -1,4 +1,4 @@ - + diff --git a/src/checkout/index.html b/src/checkout/index.html index 876458650..7ce7715e5 100644 --- a/src/checkout/index.html +++ b/src/checkout/index.html @@ -1,9 +1,7 @@ - + - - @@ -11,30 +9,22 @@ Sleep Outside | Checkout - -
-
- - - @@ -61,28 +51,17 @@ - - -
-
-
-

Review & Place your Order

-
-
- - - diff --git a/src/index.html b/src/index.html index 35ac63ce6..36bdab08f 100644 --- a/src/index.html +++ b/src/index.html @@ -1,4 +1,4 @@ - + @@ -9,20 +9,31 @@
- - - - - - - - + + + + + + + @@ -37,7 +48,7 @@ alt="image of a high mountain lake" />
@@ -55,48 +66,48 @@

Top Products

diff --git a/src/js/cart.js b/src/js/cart.js index a2fb3d8ef..742adc62d 100644 --- a/src/js/cart.js +++ b/src/js/cart.js @@ -1,12 +1,15 @@ import { getLocalStorage } from "./utils.mjs"; -function renderCartContents() { +export default function renderCartContents() { const cartItems = getLocalStorage("so-cart"); + console.log(cartItems); + const htmlItems = cartItems.map((item) => cartItemTemplate(item)); document.querySelector(".product-list").innerHTML = htmlItems.join(""); } function cartItemTemplate(item) { + console.log(item); const newItem = `
  • Excess. Get out and enjoy nature with Marmot's Ajax tent, featuring a smart design with durable, waterproof construction and two doors for easy access.", "SuggestedRetailPrice": 275.0, diff --git a/src/product_pages/cedar-ridge-rimrock-2.html b/src/product_pages/cedar-ridge-rimrock-2.html index c05810379..782252ae8 100644 --- a/src/product_pages/cedar-ridge-rimrock-2.html +++ b/src/product_pages/cedar-ridge-rimrock-2.html @@ -1,4 +1,4 @@ - + diff --git a/src/product_pages/marmot-ajax-3.html b/src/product_pages/marmot-ajax-3.html index 936f67541..2a501ac01 100644 --- a/src/product_pages/marmot-ajax-3.html +++ b/src/product_pages/marmot-ajax-3.html @@ -1,4 +1,4 @@ - + diff --git a/src/product_pages/northface-alpine-3.html b/src/product_pages/northface-alpine-3.html index 8d0ab07e3..c512994ef 100644 --- a/src/product_pages/northface-alpine-3.html +++ b/src/product_pages/northface-alpine-3.html @@ -1,4 +1,4 @@ - + diff --git a/src/product_pages/northface-talus-4.html b/src/product_pages/northface-talus-4.html index 891c22612..26ed18477 100644 --- a/src/product_pages/northface-talus-4.html +++ b/src/product_pages/northface-talus-4.html @@ -1,4 +1,4 @@ - + diff --git a/team.txt b/team.txt new file mode 100644 index 000000000..bbb703a14 --- /dev/null +++ b/team.txt @@ -0,0 +1 @@ +Jonathan de Almeida \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index 4a5eef384..a74921ad8 100644 --- a/vite.config.js +++ b/vite.config.js @@ -13,16 +13,16 @@ export default defineConfig({ checkout: resolve(__dirname, "src/checkout/index.html"), product1: resolve( __dirname, - "src/product_pages/cedar-ridge-rimrock-2.html" + "src/product_pages/cedar-ridge-rimrock-2.html", ), product2: resolve(__dirname, "src/product_pages/marmot-ajax-3.html"), product3: resolve( __dirname, - "src/product_pages/northface-alpine-3.html" + "src/product_pages/northface-alpine-3.html", ), product4: resolve( __dirname, - "src/product_pages/northface-talus-4.html" + "src/product_pages/northface-talus-4.html", ), }, },