diff --git a/index.html b/index.html index 095fb3a453..fc9bda2eef 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,8 @@
-+ {product.name} +
+{`${product.price}$`}
+ + + +Screen
++ {product.screen} +
+Capacity
++ {product.capacity} +
+Ram
+{product.ram}
+Aviables colors
+Select capacity
+ +{`${product.priceDiscount}$`}
+ +Screen
+{product.screen}
+Resolution
+{product.resolution}
+Processor
+{product.processor}
+RAM
+{product.ram}
++ {location.pathname.includes('/tablets') + ? 'Tablets' + : location.pathname.includes('/phones') + ? 'Mobile phones' + : location.pathname.includes('/accessories') + ? 'Accessories' + : ''} +
+ + + + +Back
++ A transformative triple‑camera system that adds tons of capability + without complexity. +
++ An unprecedented leap in battery life. And a mind‑blowing chip that + doubles down on machine learning and pushes the boundaries of what a + smartphone can do. Welcome to the first iPhone powerful enough to be + called Pro. +
+ ++ Meet the first triple‑camera system to combine cutting‑edge + technology with the legendary simplicity of iPhone. Capture up to + four times more scene. Get beautiful images in drastically lower + light. Shoot the highest‑quality video in a smartphone — then edit + with the same tools you love for photos. You’ve never shot with + anything like it. +
+ ++ iPhone 11 Pro lets you capture videos that are beautifully true to + life, with greater detail and smoother motion. Epic processing power + means it can shoot 4K video with extended dynamic range and + cinematic video stabilization — all at 60 fps. You get more creative + control, too, with four times more scene and powerful new editing + tools to play with. +
+Screen
+{product.screen}
+Resolution
+{product.resolution}
+Processor
+{product.processor}
+RAM
+{product.ram}
+Built in memory
+{product.capacity}
+Camera
+{product.camera}
+Zoom
+{product.zoom}
+Cell
++ {el} +
+ ))} +{product.name}
+{`${product.price}$`}
+ + + +Screen
+{product.screen}
+Capacity
+{product.capacity}
+Ram
+{product.ram}
++ {location.pathname.includes('/tablets') + ? 'Tablets' + : location.pathname.includes('/phones') + ? 'Mobile phones' + : location.pathname.includes('/accessories') + ? 'Accessories' + : ''} +
+{product.length} models
+ +95 models
+24 models
+100 models
+Sort by
+{ + removeSearchParam('sort'); + setNewestList(false); + }} + className="sort-list--select-text" + > + Newest +
+{ + updateSearchParam('sort', 'Alphabetically'); + setNewestList(false); + }} + className="sort-list--select-text" + > + Alphabetically +
+{ + updateSearchParam('sort', 'Cheapest'); + setNewestList(false); + }} + className="sort-list--select-text" + > + Cheapest +
+Items on page
+{ + updateSearchParam('perPage', '4'); + setAllList(false); + }} + className="sort-list--select-text" + > + 4 +
+{ + updateSearchParam('perPage', '8'); + setAllList(false); + }} + className="sort-list--select-text" + > + 8 +
+{ + updateSearchParam('perPage', '16'); + setAllList(false); + }} + className="sort-list--select-text" + > + 16 +
+{ + removeSearchParam('perPage'); + setAllList(false); + }} + className="sort-list--select-text" + > + All +
+{ + navigate(`${location.state.from}`); + }} + className="details__back--text" + > + Back +
+{totalItems()} items
+ +{el.name}
+{quantities[index]}
+ ++ ${el.price * quantities[index]} +
+Total for {totalItems()} items
+ + ++ {location.pathname.includes('/tablets') + ? 'Tablets' + : location.pathname.includes('/phones') + ? 'Phones' + : location.pathname.includes('/accessories') + ? 'Accessories' + : location.pathname.includes('/favourites') + ? 'Favourites' + : ''} +
+{favorites.length} items
+ +{product.name}
+{`${product.price}$`}
+ + + +Screen
+{product.screen}
+Capacity
+{product.capacity}
+Ram
+{product.ram}
+Loading...
; + } + + if (error) { + return{error}
; + } + + if (!product) { + returnProduct not found
; + } + + return ( +