From 914f53f356dd012fc1943cb75ff3117aa2f0090e Mon Sep 17 00:00:00 2001 From: AndreasChristensen89 Date: Wed, 13 Apr 2022 18:22:32 +0000 Subject: [PATCH 01/10] Add json, add loop + bootstap cards --- index.html | 26 + products.js | 53 + products.json | 3949 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 4028 insertions(+) create mode 100644 index.html create mode 100644 products.js create mode 100644 products.json diff --git a/index.html b/index.html new file mode 100644 index 00000000..0e447f0c --- /dev/null +++ b/index.html @@ -0,0 +1,26 @@ + + + + + + + + + + + Unisport Fontend Test + + +
+
+

+ Alle Produkter +

+
+
+ +
+
+ + + \ No newline at end of file diff --git a/products.js b/products.js new file mode 100644 index 00000000..e7774ff2 --- /dev/null +++ b/products.js @@ -0,0 +1,53 @@ +fetch('products.json') + .then(function (response) { + return response.json(); + }) + .then(function (data) { + appendData(data); + }) + .catch(function (err) { + console.log('error: ' + err); + }); + +function appendData(data) { + var mainContainer = document.getElementById("productRow"); + for (var i = 0; i < data.length; i++) { + var card = document.createElement("div"); + card.classList.add("card"); + card.style.width = '18rem'; + mainContainer.appendChild(card); + + var img = document.createElement("img"); + img.classList.add("card-img-top"); + img.src = data[i].image; + card.appendChild(img); + + var cardBody = document.createElement("div"); + cardBody.classList.add("card-body"); + card.appendChild(cardBody); + + var cardTitle = document.createElement("h5"); + cardTitle.classList.add("card-title"); + cardTitle.innerText = data[i].name; + cardBody.appendChild(cardTitle); + + var cardParagraph = document.createElement("p"); + cardParagraph.classList.add("card-text"); + cardParagraph.innerText = data[i].prices.max_price + ' dkk'; + cardBody.appendChild(cardParagraph); + + // div.innerHTML = 'Name: ' + data[i].name; + // mainContainer.appendChild(div); + + + } +} + +{/*
+ Card image cap +
+
Card title
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Go somewhere +
+
*/} \ No newline at end of file diff --git a/products.json b/products.json new file mode 100644 index 00000000..311f0084 --- /dev/null +++ b/products.json @@ -0,0 +1,3949 @@ +[ + { + "id": "200776", + "prices": { + "max_price": 499, + "min_price": 499, + "currency": "DKK", + "discount_percentage": 0, + "recommended_retail_price": 499 + }, + "name": "Danmark Hjemmebanetrøje 2021/22", + "relative_url": "/fodboldtroejer/danmark-hjemmebanetroje-euro-2020-oktober/200776/", + "image": "https://thumblr.uniid.it/product/200776/e18bfa90d2a5.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 499, + "name": "Small", + "order_by": 4, + "stock_info": "Kun 1 tilbage", + "is_marketplace": false, + "pk": 2, + "name_short": "Small" + }, + { + "price": 499, + "name": "Medium", + "order_by": 5, + "stock_info": "", + "is_marketplace": false, + "pk": 3, + "name_short": "Medium" + }, + { + "price": 499, + "name": "Large", + "order_by": 6, + "stock_info": "", + "is_marketplace": false, + "pk": 1, + "name_short": "Large" + }, + { + "price": 499, + "name": "X-Large", + "order_by": 7, + "stock_info": "", + "is_marketplace": false, + "pk": 5, + "name_short": "X-Large" + }, + { + "price": 499, + "name": "XX-Large", + "order_by": 8, + "stock_info": "", + "is_marketplace": false, + "pk": 6, + "name_short": "XX-Large" + }, + { + "price": 499, + "name": "3XL", + "order_by": 9, + "stock_info": "", + "is_marketplace": false, + "pk": 36, + "name_short": "XXX-Large" + }, + { + "price": 499, + "name": "4XL", + "order_by": 10, + "stock_info": "", + "is_marketplace": false, + "pk": 37, + "name_short": "4X-Large" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldtroejer/danmark-hjemmebanetroje-euro-2020-oktober/200776/", + "attributes": { + "color": [ + "Red" + ], + "gender": [ + "Men's" + ], + "item_type": "Football shirts", + "players": [ + "N/A" + ], + "league": "EURO", + "teamsport": "N/A", + "club_national": "National", + "print_type": "N/A", + "team": "N/A", + "shirt_season": "2021/22", + "pricepoint": "Fan shirts", + "nationality": "Denmark", + "sleeve": "Short sleeves", + "kit": "Home Kits", + "segment": "License", + "print_color": "N/A", + "brand": "Hummel", + "age": [ + "Adults" + ], + "sorting_shirts": "N/A", + "quarter": "Carry Over" + } + }, + { + "id": "223466", + "prices": { + "max_price": 699, + "min_price": 699, + "currency": "DKK", + "discount_percentage": 0, + "recommended_retail_price": 699 + }, + "name": "Manchester United Hjemmebanetrøje 2021/22", + "relative_url": "/fodboldtrjer/manchester-united-hjemmebanetroje-202122/223466/", + "image": "https://thumblr.uniid.it/product/223466/2501d7b547b8.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 699, + "name": "X-Small", + "order_by": 3, + "stock_info": "", + "is_marketplace": true, + "pk": 162, + "name_short": "X-Small" + }, + { + "price": 699, + "name": "Small", + "order_by": 4, + "stock_info": "Kun 1 tilbage", + "is_marketplace": false, + "pk": 2, + "name_short": "Small" + }, + { + "price": 699, + "name": "Medium", + "order_by": 5, + "stock_info": "", + "is_marketplace": false, + "pk": 3, + "name_short": "Medium" + }, + { + "price": 699, + "name": "Large", + "order_by": 6, + "stock_info": "", + "is_marketplace": false, + "pk": 1, + "name_short": "Large" + }, + { + "price": 699, + "name": "X-Large", + "order_by": 7, + "stock_info": "", + "is_marketplace": false, + "pk": 5, + "name_short": "X-Large" + }, + { + "price": 699, + "name": "XX-Large", + "order_by": 8, + "stock_info": "", + "is_marketplace": false, + "pk": 6, + "name_short": "XX-Large" + }, + { + "price": 699, + "name": "3XL", + "order_by": 9, + "stock_info": "", + "is_marketplace": false, + "pk": 36, + "name_short": "XXX-Large" + }, + { + "price": 699, + "name": "4XL", + "order_by": 10, + "stock_info": "", + "is_marketplace": false, + "pk": 37, + "name_short": "4X-Large" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldtrjer/manchester-united-hjemmebanetroje-202122/223466/", + "attributes": { + "color": [ + "Red" + ], + "gender": [ + "Men's" + ], + "item_type": "Football shirts", + "players": [ + "N/A" + ], + "league": "N/A", + "teamsport": "N/A", + "club_national": "Clubs", + "team": "Manchester United", + "shirt_season": "2021/22", + "pricepoint": "Fan shirts", + "material": [ + "Polyester" + ], + "nationality": "England", + "sleeve": "Short sleeves", + "kit": "Home Kits", + "segment": "License", + "brand": "adidas", + "sorting_shirts": "N/A", + "age": [ + "Adults" + ], + "quarter": "Carry Over" + } + }, + { + "id": "217763", + "prices": { + "max_price": 549.95, + "min_price": 549.95, + "currency": "DKK", + "discount_percentage": 0, + "recommended_retail_price": 549.95 + }, + "name": "Paris Saint-Germain Hjemmebanetrøje Jordan x PSG 2021/22 Børn", + "relative_url": "/fodboldtroejer/paris-saint-germain-hjemmebanetrje-jordan-x-psg-202122-brn/217763/", + "image": "https://thumblr.uniid.it/product/217763/6ffa983874db.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [ + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Kun medlemmer", + "active": true, + "id": 100, + "priority": 10 + }, + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Børn", + "active": true, + "id": 48, + "priority": 7 + } + ], + "is_customizable": true, + "is_exclusive": true, + "stock": [ + { + "price": 549.95, + "name": "XS: 122-128 cm", + "order_by": 0, + "stock_info": "", + "is_marketplace": true, + "pk": 1855, + "name_short": "6-8 Years" + }, + { + "price": 549.95, + "name": "S: 128-137 cm", + "order_by": 1, + "stock_info": "", + "is_marketplace": true, + "pk": 1856, + "name_short": "8-10 Years" + }, + { + "price": 549.95, + "name": "M: 137-147 cm", + "order_by": 2, + "stock_info": "", + "is_marketplace": true, + "pk": 1857, + "name_short": "10-12 Years" + }, + { + "price": 549.95, + "name": "L: 147-158 cm", + "order_by": 3, + "stock_info": "", + "is_marketplace": true, + "pk": 1858, + "name_short": "12-14 Years" + }, + { + "price": 549.95, + "name": "XL: 158-170 cm", + "order_by": 4, + "stock_info": "", + "is_marketplace": true, + "pk": 1859, + "name_short": "14-16 Years" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldtroejer/paris-saint-germain-hjemmebanetrje-jordan-x-psg-202122-brn/217763/", + "attributes": { + "gender": [ + "Men's", + "Women" + ], + "color": [ + "Blue" + ], + "players": [ + "N/A" + ], + "item_type": "Football shirts", + "league": "N/A", + "teamsport": "N/A", + "club_national": "Clubs", + "team": "Paris Saint Germain", + "shirt_season": "2021/22", + "pricepoint": "Fan shirts", + "nationality": "France", + "sleeve": "Short sleeves", + "segment": "License", + "kit": "Home Kits", + "brand": "Nike", + "age": [ + "Kids" + ], + "sorting_shirts": "N/A", + "quarter": "Carry Over" + } + }, + { + "id": "217769", + "prices": { + "max_price": 1499, + "min_price": 1499, + "currency": "DKK", + "discount_percentage": 25, + "recommended_retail_price": 1999 + }, + "name": "Nike Mercurial Vapor 14 Elite FG Impulse - Turkis/Grøn", + "relative_url": "/fodboldstoevler/nike-mercurial-vapor-14-elite-fg-impulse-turkisgrn/217769/", + "image": "https://thumblr.uniid.it/product/217769/a5a64970dc09.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [ + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Kun medlemmer", + "active": true, + "id": 100, + "priority": 10 + } + ], + "is_customizable": true, + "is_exclusive": true, + "stock": [ + { + "price": 1499, + "name": "EU 36/US 4Y", + "order_by": 33, + "stock_info": "", + "is_marketplace": false, + "pk": 415, + "name_short": "EU 36" + }, + { + "price": 1499, + "name": "EU 36½/US 4½Y", + "order_by": 34, + "stock_info": "", + "is_marketplace": false, + "pk": 416, + "name_short": "EU 36½" + }, + { + "price": 1499, + "name": "EU 38½/US 6", + "order_by": 40, + "stock_info": "", + "is_marketplace": false, + "pk": 419, + "name_short": "EU 38½" + }, + { + "price": 1499, + "name": "EU 40½/US 7½", + "order_by": 43, + "stock_info": "", + "is_marketplace": false, + "pk": 422, + "name_short": "EU 40½" + }, + { + "price": 1499, + "name": "EU 47½/US 13", + "order_by": 54, + "stock_info": "", + "is_marketplace": false, + "pk": 433, + "name_short": "EU 47½" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstoevler/nike-mercurial-vapor-14-elite-fg-impulse-turkisgrn/217769/", + "attributes": { + "boot_collection": "Mercurial Vapor", + "boot_benefit": "Speed", + "gender": [ + "Women", + "Men's" + ], + "color": [ + "Turquoise", + "Blue" + ], + "players": [ + "N/A" + ], + "item_type": "Football boots", + "boot_material": "Knit", + "sort_date": "2021-05-01", + "brand_collection": "Nike Impulse", + "pricepoint": "Pro players choice", + "boot_model": "Elite", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "Black", + "position": [ + "Midfielders", + "Strikers", + "Wingers" + ], + "brand": "Nike", + "age": [ + "Adults" + ], + "boot_surface": [ + "Grass (FG)" + ], + "quarter": "Q1" + } + }, + { + "id": "213591", + "prices": { + "max_price": 1299, + "min_price": 1299, + "currency": "DKK", + "discount_percentage": 35, + "recommended_retail_price": 1999 + }, + "name": "Nike Mercurial Vapor 14 Elite FG Spectrum - Rød/Sølv", + "relative_url": "/fodboldstoevler/nike-mercurial-vapor-14-elite-fg-spectrum-rdslv/213591/", + "image": "https://thumblr.uniid.it/product/213591/20f5b6a50639.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 1299, + "name": "EU 36/US 4Y", + "order_by": 33, + "stock_info": "", + "is_marketplace": false, + "pk": 415, + "name_short": "EU 36" + }, + { + "price": 1299, + "name": "EU 36½/US 4½Y", + "order_by": 34, + "stock_info": "", + "is_marketplace": false, + "pk": 416, + "name_short": "EU 36½" + }, + { + "price": 1299, + "name": "EU 38½/US 6", + "order_by": 40, + "stock_info": "", + "is_marketplace": false, + "pk": 419, + "name_short": "EU 38½" + }, + { + "price": 1299, + "name": "EU 39/US 6½", + "order_by": 41, + "stock_info": "Kun 1 tilbage", + "is_marketplace": false, + "pk": 420, + "name_short": "EU 39" + }, + { + "price": 1299, + "name": "EU 47½/US 13", + "order_by": 54, + "stock_info": "", + "is_marketplace": false, + "pk": 433, + "name_short": "EU 47½" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstoevler/nike-mercurial-vapor-14-elite-fg-spectrum-rdslv/213591/", + "attributes": { + "boot_collection": "Mercurial Vapor", + "boot_benefit": "Speed", + "gender": [ + "Women", + "Men's" + ], + "color": [ + "Red" + ], + "players": [ + "N/A" + ], + "item_type": "Football boots", + "boot_material": "Knit", + "brand_collection": "Nike Spectrum", + "sort_date": "2021-02-16", + "pricepoint": "Pro players choice", + "boot_model": "Elite", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "White", + "position": [ + "Midfielders", + "Strikers", + "Wingers" + ], + "brand": "Nike", + "age": [ + "Adults" + ], + "boot_surface": [ + "Grass (FG)" + ], + "quarter": "Q1" + } + }, + { + "id": "223214", + "prices": { + "max_price": 2209, + "min_price": 2209, + "currency": "DKK", + "discount_percentage": 0, + "recommended_retail_price": 2399 + }, + "name": "adidas F50 Ghosted FG UCL - Sølv/Pink/Navy LIMITED EDITION", + "relative_url": "/fodboldstovler/f50-ghosted-ucl-silvmtshopnkconavy/223214/", + "image": "https://thumblr.uniid.it/product/223214/b54757abeb44.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 2209, + "name": "EU 46/UK 11", + "order_by": 60, + "stock_info": "Kun 1 tilbage", + "is_marketplace": false, + "pk": 52, + "name_short": "EU 46" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstovler/f50-ghosted-ucl-silvmtshopnkconavy/223214/", + "attributes": { + "boot_collection": "X Speedflow", + "boot_benefit": "Speed", + "color": [ + "Silver" + ], + "gender": [ + "Men's", + "Women" + ], + "item_type": "Football boots", + "players": [ + "N/A" + ], + "boot_material": "Synthetic", + "sort_date": "2021-09-01", + "brand_collection": "N/A", + "pricepoint": "For superstars", + "boot_model": "+", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "Black", + "position": [ + "Midfielders", + "Wingers", + "Strikers" + ], + "brand": "adidas", + "boot_surface": [ + "Grass (FG)" + ], + "age": [ + "Adults" + ], + "quarter": "Q3" + } + }, + { + "id": "217706", + "prices": { + "max_price": 1319, + "min_price": 1319, + "currency": "DKK", + "discount_percentage": 40, + "recommended_retail_price": 2199 + }, + "name": "Nike Phantom GT Elite FG 3D - Blå/Pink/Gul LIMITED EDITION", + "relative_url": "/fodboldstoevler/nike-phantom-gt-elite-fg-3d-blapinkgul-limited-edition/217706/", + "image": "https://thumblr.uniid.it/product/217706/3f51cd9bf6b7.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 1319, + "name": "EU 36/US 4Y", + "order_by": 33, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 415, + "name_short": "EU 36" + }, + { + "price": 1319, + "name": "EU 36½/US 4½Y", + "order_by": 34, + "stock_info": "", + "is_marketplace": false, + "pk": 416, + "name_short": "EU 36½" + }, + { + "price": 1319, + "name": "EU 38/US 5½Y", + "order_by": 36, + "stock_info": "Kun 1 tilbage", + "is_marketplace": false, + "pk": 418, + "name_short": "EU 38" + }, + { + "price": 1319, + "name": "EU 38½/US 6", + "order_by": 40, + "stock_info": "", + "is_marketplace": false, + "pk": 419, + "name_short": "EU 38½" + }, + { + "price": 1319, + "name": "EU 39/US 6½", + "order_by": 41, + "stock_info": "Kun 1 tilbage", + "is_marketplace": false, + "pk": 420, + "name_short": "EU 39" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstoevler/nike-phantom-gt-elite-fg-3d-blapinkgul-limited-edition/217706/", + "attributes": { + "boot_collection": "Phantom GT", + "boot_benefit": "Control", + "gender": [ + "Women", + "Men's" + ], + "color": [ + "Blue" + ], + "players": [ + "N/A" + ], + "item_type": "Football boots", + "boot_material": "Knit", + "sort_date": "2021-04-01", + "brand_collection": "Nike Phantom 3D", + "pricepoint": "Pro players choice", + "boot_model": "Elite", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "White", + "position": [ + "Midfielders", + "Strikers", + "Wingers" + ], + "brand": "Nike", + "boot_surface": [ + "Grass (FG)" + ], + "age": [ + "Adults" + ], + "quarter": "Q1" + } + }, + { + "id": "222189", + "prices": { + "max_price": 1759, + "min_price": 1759, + "currency": "DKK", + "discount_percentage": 20, + "recommended_retail_price": 2199 + }, + "name": "adidas X Speedflow + FG Meteorite - Rød/Sort/Rød", + "relative_url": "/fodboldstvler/adidas-x-speedflow-fg-meteorite-rodsortrod/222189/", + "image": "https://thumblr.uniid.it/product/222189/45a4898b30b0.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 1759, + "name": "EU 36/UK 3½", + "order_by": 32, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 38, + "name_short": "EU 36" + }, + { + "price": 1759, + "name": "EU 39⅓/UK 6", + "order_by": 43, + "stock_info": "", + "is_marketplace": false, + "pk": 43, + "name_short": "EU 39½" + }, + { + "price": 1759, + "name": "EU 40/UK 6½", + "order_by": 44, + "stock_info": "", + "is_marketplace": false, + "pk": 44, + "name_short": "EU 40" + }, + { + "price": 1759, + "name": "EU 41⅓/UK 7½", + "order_by": 49, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 45, + "name_short": "EU 41½" + }, + { + "price": 1759, + "name": "EU 42/UK 8", + "order_by": 50, + "stock_info": "", + "is_marketplace": false, + "pk": 46, + "name_short": "EU 42" + }, + { + "price": 1759, + "name": "EU 46/UK 11", + "order_by": 60, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 52, + "name_short": "EU 46" + }, + { + "price": 1759, + "name": "EU 46⅔/UK 11½", + "order_by": 63, + "stock_info": "", + "is_marketplace": false, + "pk": 53, + "name_short": "EU 46½" + }, + { + "price": 1759, + "name": "EU 47⅓/UK 12", + "order_by": 64, + "stock_info": "", + "is_marketplace": false, + "pk": 54, + "name_short": "EU 47½" + }, + { + "price": 1759, + "name": "EU 48/UK 12½", + "order_by": 65, + "stock_info": "", + "is_marketplace": false, + "pk": 55, + "name_short": "EU 48" + }, + { + "price": 1759, + "name": "EU 48⅔/UK 13", + "order_by": 67, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 56, + "name_short": "EU 48½" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstvler/adidas-x-speedflow-fg-meteorite-rodsortrod/222189/", + "attributes": { + "boot_collection": "X Speedflow", + "color": [ + "Red" + ], + "gender": [ + "Men's", + "Women" + ], + "boot_benefit": "Speed", + "players": [ + "Lionel Messi" + ], + "item_type": "Football boots", + "club_national": "N/A", + "boot_material": "Knit", + "brand_collection": "adidas Meteorite", + "sort_date": "2021-07-01", + "pricepoint": "For superstars", + "boot_model": "+", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "White", + "position": [ + "Wingers", + "Strikers", + "Midfielders" + ], + "brand": "adidas", + "boot_surface": [ + "Grass (FG)" + ], + "age": [ + "Adults" + ], + "quarter": "Q3" + } + }, + { + "id": "213590", + "prices": { + "max_price": 1199, + "min_price": 1199, + "currency": "DKK", + "discount_percentage": 40, + "recommended_retail_price": 1999 + }, + "name": "Nike Mercurial Vapor 14 Elite FG Black x Prism - Sort/Gul/Rød", + "relative_url": "/fodboldstoevler/nike-mercurial-vapor-14-elite-fg-black-x-prism-sortgulrd/213590/", + "image": "https://thumblr.uniid.it/product/213590/242000fcf642.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [ + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Kun medlemmer", + "active": true, + "id": 100, + "priority": 10 + } + ], + "is_customizable": true, + "is_exclusive": true, + "stock": [ + { + "price": 1199, + "name": "EU 36/US 4Y", + "order_by": 33, + "stock_info": "", + "is_marketplace": false, + "pk": 415, + "name_short": "EU 36" + }, + { + "price": 1199, + "name": "EU 36½/US 4½Y", + "order_by": 34, + "stock_info": "", + "is_marketplace": false, + "pk": 416, + "name_short": "EU 36½" + }, + { + "price": 1199, + "name": "EU 37½/US 5Y", + "order_by": 35, + "stock_info": "", + "is_marketplace": false, + "pk": 417, + "name_short": "EU 37½" + }, + { + "price": 1199, + "name": "EU 38/US 5½Y", + "order_by": 36, + "stock_info": "", + "is_marketplace": false, + "pk": 418, + "name_short": "EU 38" + }, + { + "price": 1199, + "name": "EU 38½/US 6", + "order_by": 40, + "stock_info": "", + "is_marketplace": false, + "pk": 419, + "name_short": "EU 38½" + }, + { + "price": 1199, + "name": "EU 39/US 6½", + "order_by": 41, + "stock_info": "", + "is_marketplace": false, + "pk": 420, + "name_short": "EU 39" + }, + { + "price": 1199, + "name": "EU 40½/US 7½", + "order_by": 43, + "stock_info": "", + "is_marketplace": false, + "pk": 422, + "name_short": "EU 40½" + }, + { + "price": 1199, + "name": "EU 45½/US 11½", + "order_by": 51, + "stock_info": "Kun 1 tilbage", + "is_marketplace": false, + "pk": 430, + "name_short": "EU 45½" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstoevler/nike-mercurial-vapor-14-elite-fg-black-x-prism-sortgulrd/213590/", + "attributes": { + "boot_collection": "Mercurial Vapor", + "color": [ + "Black" + ], + "gender": [ + "Men's", + "Women" + ], + "boot_benefit": "Speed", + "item_type": "Football boots", + "players": [ + "N/A" + ], + "boot_material": "Knit", + "sort_date": "2021-02-15", + "brand_collection": "Nike Black x Prism", + "pricepoint": "Pro players choice", + "boot_model": "Elite", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "White", + "position": [ + "Wingers", + "Strikers", + "Midfielders" + ], + "brand": "Nike", + "boot_surface": [ + "Grass (FG)" + ], + "age": [ + "Adults" + ], + "quarter": "Q1" + } + }, + { + "id": "222649", + "prices": { + "max_price": 699, + "min_price": 699, + "currency": "DKK", + "discount_percentage": 0, + "recommended_retail_price": 699 + }, + "name": "Manchester United Hjemmebanetrøje 2021/22 Kvinde", + "relative_url": "/fodboldtrjer/manchester-united-hjemmebanetroje-202122-kvinde/222649/", + "image": "https://thumblr.uniid.it/product/222649/8a8a6b5c6253.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [ + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Kvinde", + "active": true, + "id": 65, + "priority": 6 + } + ], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 699, + "name": "XX-Small", + "order_by": 2, + "stock_info": "Få på lager", + "is_marketplace": true, + "pk": 288, + "name_short": "XX-Small" + }, + { + "price": 699, + "name": "X-Small", + "order_by": 3, + "stock_info": "", + "is_marketplace": true, + "pk": 162, + "name_short": "X-Small" + }, + { + "price": 699, + "name": "Small", + "order_by": 4, + "stock_info": "", + "is_marketplace": true, + "pk": 2, + "name_short": "Small" + }, + { + "price": 699, + "name": "Medium", + "order_by": 5, + "stock_info": "", + "is_marketplace": true, + "pk": 3, + "name_short": "Medium" + }, + { + "price": 699, + "name": "Large", + "order_by": 6, + "stock_info": "", + "is_marketplace": true, + "pk": 1, + "name_short": "Large" + }, + { + "price": 699, + "name": "X-Large", + "order_by": 7, + "stock_info": "", + "is_marketplace": true, + "pk": 5, + "name_short": "X-Large" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldtrjer/manchester-united-hjemmebanetroje-202122-kvinde/222649/", + "attributes": { + "gender": [ + "Women" + ], + "color": [ + "Red" + ], + "players": [ + "N/A" + ], + "item_type": "Football shirts", + "league": "N/A", + "teamsport": "N/A", + "club_national": "Clubs", + "team": "Manchester United", + "shirt_season": "2021/22", + "pricepoint": "Fan shirts", + "nationality": "England", + "material": [ + "Polyester" + ], + "sleeve": "Short sleeves", + "segment": "License", + "kit": "Home Kits", + "brand": "adidas", + "age": [ + "Adults" + ], + "sorting_shirts": "N/A", + "quarter": "Carry Over" + } + }, + { + "id": "200777", + "prices": { + "max_price": 449, + "min_price": 449, + "currency": "DKK", + "discount_percentage": 0, + "recommended_retail_price": 449 + }, + "name": "Danmark Hjemmebanetrøje 2021/22 Børn", + "relative_url": "/fodboldtroejer/danmark-hjemmebanetrje-euro-2020-brn/200777/", + "image": "https://thumblr.uniid.it/product/200777/05cd00af369b.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [ + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Børn", + "active": true, + "id": 48, + "priority": 7 + } + ], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 449, + "name": "116 cm", + "order_by": 4, + "stock_info": "", + "is_marketplace": false, + "pk": 316, + "name_short": "6-8 Years" + }, + { + "price": 449, + "name": "128 cm", + "order_by": 6, + "stock_info": "", + "is_marketplace": false, + "pk": 296, + "name_short": "8-10 Years" + }, + { + "price": 449, + "name": "140 cm", + "order_by": 7, + "stock_info": "", + "is_marketplace": false, + "pk": 317, + "name_short": "10-12 Years" + }, + { + "price": 449, + "name": "152 cm", + "order_by": 8, + "stock_info": "", + "is_marketplace": false, + "pk": 297, + "name_short": "12-14 Years" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldtroejer/danmark-hjemmebanetrje-euro-2020-brn/200777/", + "attributes": { + "color": [ + "Red" + ], + "gender": [ + "Men's" + ], + "item_type": "Football shirts", + "players": [ + "N/A" + ], + "league": "EURO", + "teamsport": "N/A", + "club_national": "National", + "print_type": "N/A", + "team": "N/A", + "shirt_season": "2021/22", + "pricepoint": "Fan shirts", + "nationality": "Denmark", + "sleeve": "Short sleeves", + "kit": "Home Kits", + "segment": "License", + "print_color": "N/A", + "brand": "Hummel", + "age": [ + "Kids" + ], + "sorting_shirts": "N/A", + "quarter": "Carry Over" + } + }, + { + "id": "225707", + "prices": { + "max_price": 1299, + "min_price": 1299, + "currency": "DKK", + "discount_percentage": 35, + "recommended_retail_price": 1999 + }, + "name": "Nike Phantom GT 2 Elite FG UV - Navy/Hvid/Lilla", + "relative_url": "/fodboldstovler/nike-phantom-gt-2-elite-fg-uv-navyhvidlilla/225707/", + "image": "https://thumblr.uniid.it/product/225707/a60e530fe68f.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [ + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Kun medlemmer", + "active": true, + "id": 100, + "priority": 10 + } + ], + "is_customizable": true, + "is_exclusive": true, + "stock": [ + { + "price": 1299, + "name": "EU 36/US 4Y", + "order_by": 33, + "stock_info": "", + "is_marketplace": false, + "pk": 415, + "name_short": "EU 36" + }, + { + "price": 1299, + "name": "EU 36½/US 4½Y", + "order_by": 34, + "stock_info": "", + "is_marketplace": false, + "pk": 416, + "name_short": "EU 36½" + }, + { + "price": 1299, + "name": "EU 38½/US 6", + "order_by": 40, + "stock_info": "Kun 1 tilbage", + "is_marketplace": false, + "pk": 419, + "name_short": "EU 38½" + }, + { + "price": 1299, + "name": "EU 39/US 6½", + "order_by": 41, + "stock_info": "Kun 1 tilbage", + "is_marketplace": false, + "pk": 420, + "name_short": "EU 39" + }, + { + "price": 1299, + "name": "EU 40½/US 7½", + "order_by": 43, + "stock_info": "", + "is_marketplace": false, + "pk": 422, + "name_short": "EU 40½" + }, + { + "price": 1299, + "name": "EU 41/US 8", + "order_by": 44, + "stock_info": "", + "is_marketplace": false, + "pk": 423, + "name_short": "EU 41" + }, + { + "price": 1299, + "name": "EU 42½/US 9", + "order_by": 46, + "stock_info": "Kun 1 tilbage", + "is_marketplace": false, + "pk": 425, + "name_short": "EU 42½" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstovler/nike-phantom-gt-2-elite-fg-uv-navyhvidlilla/225707/", + "attributes": { + "boot_collection": "Phantom GT", + "color": [ + "Purple", + "Blue" + ], + "boot_benefit": "Control", + "gender": [ + "Women", + "Men's" + ], + "players": [ + "N/A" + ], + "item_type": "Football boots", + "boot_material": "Knit", + "brand_collection": "N/A", + "sort_date": "2021-08-01", + "pricepoint": "Pro players choice", + "boot_model": "Elite", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "White", + "position": [ + "Strikers", + "Wingers", + "Midfielders" + ], + "brand": "Nike", + "age": [ + "Adults" + ], + "boot_surface": [ + "Grass (FG)" + ], + "quarter": "Q3" + } + }, + { + "id": "198079", + "prices": { + "max_price": 149, + "min_price": 149, + "currency": "DKK", + "discount_percentage": 40, + "recommended_retail_price": 249 + }, + "name": "Nike Træningsbukser Dry Park 20 - Sort/Hvid", + "relative_url": "/fodboldudstyr/nike-trningsbukser-dry-park-20-sorthvid/198079/", + "image": "https://thumblr.uniid.it/product/198079/64a935edb9cc.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [ + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Kun medlemmer", + "active": true, + "id": 100, + "priority": 10 + } + ], + "is_customizable": false, + "is_exclusive": true, + "stock": [ + { + "price": 149, + "name": "Small", + "order_by": 4, + "stock_info": "", + "is_marketplace": false, + "pk": 2, + "name_short": "Small" + }, + { + "price": 149, + "name": "Medium", + "order_by": 5, + "stock_info": "", + "is_marketplace": false, + "pk": 3, + "name_short": "Medium" + }, + { + "price": 149, + "name": "Large", + "order_by": 6, + "stock_info": "", + "is_marketplace": false, + "pk": 1, + "name_short": "Large" + }, + { + "price": 149, + "name": "X-Large", + "order_by": 7, + "stock_info": "", + "is_marketplace": false, + "pk": 5, + "name_short": "X-Large" + }, + { + "price": 149, + "name": "XX-Large", + "order_by": 8, + "stock_info": "", + "is_marketplace": false, + "pk": 6, + "name_short": "XX-Large" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldudstyr/nike-trningsbukser-dry-park-20-sorthvid/198079/", + "attributes": { + "apparel_collection": "Nike Park", + "color": [ + "Black" + ], + "gender": [ + "Men's" + ], + "item_type": "Training pants", + "league": "N/A", + "teamsport": "N/A", + "club_national": "N/A", + "team": "N/A", + "brand_collection": "N/A", + "shirt_season": "N/A", + "nationality": "N/A", + "segment": "Team Sport", + "kit": "N/A", + "perfect_for": "Performance", + "brand": "Nike", + "pant_length": "Long", + "age": [ + "Adults" + ], + "quarter": "Carry Over" + } + }, + { + "id": "222191", + "prices": { + "max_price": 1759, + "min_price": 1759, + "currency": "DKK", + "discount_percentage": 20, + "recommended_retail_price": 2199 + }, + "name": "adidas X Speedflow + FG Numbers Up - Grå/Hvid/Gul", + "relative_url": "/fodboldstovler/adidas-x-speedflow-fg-numbers-up-grahvidgul/222191/", + "image": "https://thumblr.uniid.it/product/222191/e4289b157dcc.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 1759, + "name": "EU 38⅔/UK 5½", + "order_by": 40, + "stock_info": "Kun 1 tilbage", + "is_marketplace": false, + "pk": 42, + "name_short": "EU 38½" + }, + { + "price": 1759, + "name": "EU 39⅓/UK 6", + "order_by": 43, + "stock_info": "Kun 1 tilbage", + "is_marketplace": false, + "pk": 43, + "name_short": "EU 39½" + }, + { + "price": 1759, + "name": "EU 46/UK 11", + "order_by": 60, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 52, + "name_short": "EU 46" + }, + { + "price": 1759, + "name": "EU 46⅔/UK 11½", + "order_by": 63, + "stock_info": "", + "is_marketplace": false, + "pk": 53, + "name_short": "EU 46½" + }, + { + "price": 1759, + "name": "EU 47⅓/UK 12", + "order_by": 64, + "stock_info": "", + "is_marketplace": false, + "pk": 54, + "name_short": "EU 47½" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstovler/adidas-x-speedflow-fg-numbers-up-grahvidgul/222191/", + "attributes": { + "boot_collection": "X Speedflow", + "color": [ + "Grey" + ], + "gender": [ + "Men's", + "Women" + ], + "boot_benefit": "Speed", + "players": [ + "N/A" + ], + "item_type": "Football boots", + "boot_material": "Knit", + "brand_collection": "adidas Numbers Up", + "sort_date": "2021-08-01", + "pricepoint": "For superstars", + "boot_model": "+", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "White", + "position": [ + "Wingers", + "Strikers", + "Midfielders" + ], + "brand": "adidas", + "boot_surface": [ + "Grass (FG)" + ], + "age": [ + "Adults" + ], + "quarter": "Q3" + } + }, + { + "id": "226547", + "prices": { + "max_price": 1399, + "min_price": 1399, + "currency": "DKK", + "discount_percentage": 30, + "recommended_retail_price": 1999 + }, + "name": "Nike Mercurial Vapor 14 Elite FG Motivation - Neon/Rød/Sort", + "relative_url": "/fodboldstovler/nike-mercurial-vapor-14-elite-fg-motivation-neonrodsort/226547/", + "image": "https://thumblr.uniid.it/product/226547/ec485198547b.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 1399, + "name": "EU 36/US 4Y", + "order_by": 33, + "stock_info": "", + "is_marketplace": false, + "pk": 415, + "name_short": "EU 36" + }, + { + "price": 1399, + "name": "EU 36½/US 4½Y", + "order_by": 34, + "stock_info": "", + "is_marketplace": false, + "pk": 416, + "name_short": "EU 36½" + }, + { + "price": 1399, + "name": "EU 37½/US 5Y", + "order_by": 35, + "stock_info": "Kun 1 tilbage", + "is_marketplace": false, + "pk": 417, + "name_short": "EU 37½" + }, + { + "price": 1399, + "name": "EU 38/US 5½Y", + "order_by": 36, + "stock_info": "", + "is_marketplace": false, + "pk": 418, + "name_short": "EU 38" + }, + { + "price": 1399, + "name": "EU 39/US 6½Y", + "order_by": 38, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 1826, + "name_short": "EU 39" + }, + { + "price": 1399, + "name": "EU 38½/US 6", + "order_by": 40, + "stock_info": "", + "is_marketplace": false, + "pk": 419, + "name_short": "EU 38½" + }, + { + "price": 1399, + "name": "EU 40½/US 7½", + "order_by": 43, + "stock_info": "", + "is_marketplace": false, + "pk": 422, + "name_short": "EU 40½" + }, + { + "price": 1399, + "name": "EU 41/US 8", + "order_by": 44, + "stock_info": "", + "is_marketplace": false, + "pk": 423, + "name_short": "EU 41" + }, + { + "price": 1399, + "name": "EU 47/US 12½", + "order_by": 53, + "stock_info": "", + "is_marketplace": false, + "pk": 432, + "name_short": "EU 47" + }, + { + "price": 1399, + "name": "EU 47½/US 13", + "order_by": 54, + "stock_info": "", + "is_marketplace": false, + "pk": 433, + "name_short": "EU 47½" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstovler/nike-mercurial-vapor-14-elite-fg-motivation-neonrodsort/226547/", + "attributes": { + "boot_collection": "Mercurial Vapor", + "color": [ + "Green", + "Yellow" + ], + "gender": [ + "Men's", + "Women" + ], + "boot_benefit": "Speed", + "item_type": "Football boots", + "players": [ + "N/A" + ], + "boot_material": "Knit", + "sort_date": "2021-07-15", + "brand_collection": "Nike Motivation", + "pricepoint": "Pro players choice", + "boot_model": "Elite", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "Black", + "position": [ + "Wingers", + "Strikers", + "Midfielders" + ], + "brand": "Nike", + "boot_surface": [ + "Grass (FG)" + ], + "age": [ + "Adults" + ], + "quarter": "Q3" + } + }, + { + "id": "213576", + "prices": { + "max_price": 1599, + "min_price": 1599, + "currency": "DKK", + "discount_percentage": 20, + "recommended_retail_price": 1999 + }, + "name": "Nike Mercurial Vapor 14 Elite FG Dragonfly - Hvid/Sølv/Lilla LIMITED EDITION", + "relative_url": "/fodboldstoevler/nike-mercurial-vapor-14-elite-fg-dragonfly-hvidslvlilla-limited-edition/213576/", + "image": "https://thumblr.uniid.it/product/213576/165e2f2d1d65.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 1599, + "name": "EU 36/US 4Y", + "order_by": 33, + "stock_info": "Kun 1 tilbage", + "is_marketplace": false, + "pk": 415, + "name_short": "EU 36" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstoevler/nike-mercurial-vapor-14-elite-fg-dragonfly-hvidslvlilla-limited-edition/213576/", + "attributes": { + "boot_collection": "Mercurial Vapor", + "color": [ + "White" + ], + "gender": [ + "Men's", + "Women" + ], + "boot_benefit": "Speed", + "players": [ + "N/A" + ], + "item_type": "Football boots", + "boot_material": "Knit", + "brand_collection": "Nike Dragonfly", + "sort_date": "2021-02-01", + "pricepoint": "Pro players choice", + "boot_model": "Elite", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "Black", + "position": [ + "Wingers", + "Strikers", + "Midfielders" + ], + "brand": "Nike", + "age": [ + "Adults" + ], + "boot_surface": [ + "Grass (FG)" + ], + "quarter": "Q1" + } + }, + { + "id": "223226", + "prices": { + "max_price": 1649, + "min_price": 1649, + "currency": "DKK", + "discount_percentage": 25, + "recommended_retail_price": 2199 + }, + "name": "adidas X Speedflow + FG Adizero Prime X - Blå/Hvid/Rød LIMITED EDITION", + "relative_url": "/fodboldstovler/adidas-x-speedflow-fg-adizero-prime-x-blahvidrod-limited-edition/223226/", + "image": "https://thumblr.uniid.it/product/223226/8103495abccd.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 1649, + "name": "EU 46/UK 11", + "order_by": 60, + "stock_info": "", + "is_marketplace": false, + "pk": 52, + "name_short": "EU 46" + }, + { + "price": 1649, + "name": "EU 46⅔/UK 11½", + "order_by": 63, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 53, + "name_short": "EU 46½" + }, + { + "price": 1649, + "name": "EU 47⅓/UK 12", + "order_by": 64, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 54, + "name_short": "EU 47½" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstovler/adidas-x-speedflow-fg-adizero-prime-x-blahvidrod-limited-edition/223226/", + "attributes": { + "boot_collection": "X Speedflow", + "color": [ + "Blue" + ], + "boot_benefit": "Speed", + "gender": [ + "Men's", + "Women" + ], + "item_type": "Football boots", + "players": [ + "N/A" + ], + "club_national": "N/A", + "boot_material": "Knit", + "sort_date": "2021-08-15", + "brand_collection": "N/A", + "pricepoint": "For superstars", + "boot_model": "+", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "Black", + "position": [ + "Midfielders", + "Wingers", + "Strikers" + ], + "brand": "adidas", + "boot_surface": [ + "Grass (FG)" + ], + "age": [ + "Adults" + ], + "quarter": "Q3" + } + }, + { + "id": "223002", + "prices": { + "max_price": 529, + "min_price": 529, + "currency": "DKK", + "discount_percentage": 0, + "recommended_retail_price": 529 + }, + "name": "Ajax 3. Trøje 2021/22 Børn", + "relative_url": "/fodboldtrojer/ajax-3-troje-202122-born/223002/", + "image": "https://thumblr.uniid.it/product/223002/621cf3ce9391.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [ + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Børn", + "active": true, + "id": 48, + "priority": 7 + } + ], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 529, + "name": "128 cm", + "order_by": 6, + "stock_info": "", + "is_marketplace": false, + "pk": 197, + "name_short": "6-8 Years" + }, + { + "price": 529, + "name": "140 cm", + "order_by": 7, + "stock_info": "", + "is_marketplace": false, + "pk": 196, + "name_short": "8-10 Years" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldtrojer/ajax-3-troje-202122-born/223002/", + "attributes": { + "gender": [ + "Men's" + ], + "color": [ + "Black" + ], + "players": [ + "N/A" + ], + "item_type": "Football shirts", + "league": "N/A", + "teamsport": "N/A", + "club_national": "Clubs", + "team": "Ajax Amsterdam", + "shirt_season": "2021/22", + "pricepoint": "Fan shirts", + "nationality": "Netherlands", + "material": [ + "Polyester" + ], + "sleeve": "Short sleeves", + "kit": "Third Kits", + "segment": "License", + "brand": "adidas", + "age": [ + "Kids" + ], + "sorting_shirts": "N/A", + "quarter": "Carry Over" + } + }, + { + "id": "217710", + "prices": { + "max_price": 1399, + "min_price": 1399, + "currency": "DKK", + "discount_percentage": 30, + "recommended_retail_price": 1999 + }, + "name": "Nike Mercurial Vapor 14 Elite FG Silver Safari - Hvid/Sort/Sølv/Neon", + "relative_url": "/fodboldstoevler/nike-mercurial-vapor-14-elite-fg-silver-safari-hvidsortslvneon/217710/", + "image": "https://thumblr.uniid.it/product/217710/2032239ccd25.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 1399, + "name": "EU 36/US 4Y", + "order_by": 33, + "stock_info": "", + "is_marketplace": false, + "pk": 415, + "name_short": "EU 36" + }, + { + "price": 1399, + "name": "EU 36½/US 4½Y", + "order_by": 34, + "stock_info": "", + "is_marketplace": false, + "pk": 416, + "name_short": "EU 36½" + }, + { + "price": 1399, + "name": "EU 38/US 5½Y", + "order_by": 36, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 418, + "name_short": "EU 38" + }, + { + "price": 1399, + "name": "EU 38½/US 6", + "order_by": 40, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 419, + "name_short": "EU 38½" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstoevler/nike-mercurial-vapor-14-elite-fg-silver-safari-hvidsortslvneon/217710/", + "attributes": { + "boot_collection": "Mercurial Vapor", + "color": [ + "White" + ], + "gender": [ + "Men's", + "Women" + ], + "boot_benefit": "Speed", + "item_type": "Football boots", + "players": [ + "Cristiano Ronaldo" + ], + "boot_material": "Knit", + "brand_collection": "Nike Mercurial Silver Safari", + "sort_date": "2021-04-01", + "pricepoint": "Pro players choice", + "boot_model": "Elite", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "Neon Yellow", + "position": [ + "Wingers", + "Strikers", + "Midfielders" + ], + "brand": "Nike", + "boot_surface": [ + "Grass (FG)" + ], + "age": [ + "Adults" + ], + "quarter": "Q1" + } + }, + { + "id": "226546", + "prices": { + "max_price": 1899, + "min_price": 1899, + "currency": "DKK", + "discount_percentage": 0, + "recommended_retail_price": 1999 + }, + "name": "Nike Mercurial Vapor 14 Elite FG Rawdacious - Hvid/Rød/Pink", + "relative_url": "/fodboldstovler/nike-mercurial-vapor-14-elite-fg-rawdacious-hvidrodpink/226546/", + "image": "https://thumblr.uniid.it/product/226546/871afeadbd79.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [ + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Kun medlemmer", + "active": true, + "id": 100, + "priority": 10 + } + ], + "is_customizable": true, + "is_exclusive": true, + "stock": [ + { + "price": 1899, + "name": "EU 36½/US 4½Y", + "order_by": 34, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 416, + "name_short": "EU 36½" + }, + { + "price": 1899, + "name": "EU 40/US 7", + "order_by": 42, + "stock_info": "", + "is_marketplace": false, + "pk": 421, + "name_short": "EU 40" + }, + { + "price": 1899, + "name": "EU 47½/US 13", + "order_by": 54, + "stock_info": "", + "is_marketplace": false, + "pk": 433, + "name_short": "EU 47½" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstovler/nike-mercurial-vapor-14-elite-fg-rawdacious-hvidrodpink/226546/", + "attributes": { + "boot_collection": "Mercurial Vapor", + "boot_benefit": "Speed", + "color": [ + "White" + ], + "gender": [ + "Men's", + "Women" + ], + "players": [ + "N/A" + ], + "item_type": "Football boots", + "boot_material": "Knit", + "brand_collection": "Nike Rawdacious", + "sort_date": "2021-07-01", + "pricepoint": "Pro players choice", + "boot_model": "Elite", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "Black", + "position": [ + "Strikers", + "Wingers", + "Midfielders" + ], + "brand": "Nike", + "age": [ + "Adults" + ], + "boot_surface": [ + "Grass (FG)" + ], + "quarter": "Q3" + } + }, + { + "id": "217740", + "prices": { + "max_price": 749, + "min_price": 749, + "currency": "DKK", + "discount_percentage": 0, + "recommended_retail_price": 749 + }, + "name": "Liverpool Hjemmebanetrøje 2021/22", + "relative_url": "/fodboldtroejer/liverpool-hjemmebanetroje-202122/217740/", + "image": "https://thumblr.uniid.it/product/217740/7bbe8c66aff4.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 749, + "name": "X-Small", + "order_by": 3, + "stock_info": "", + "is_marketplace": false, + "pk": 162, + "name_short": "X-Small" + }, + { + "price": 749, + "name": "Small", + "order_by": 4, + "stock_info": "", + "is_marketplace": false, + "pk": 2, + "name_short": "Small" + }, + { + "price": 749, + "name": "Medium", + "order_by": 5, + "stock_info": "", + "is_marketplace": false, + "pk": 3, + "name_short": "Medium" + }, + { + "price": 749, + "name": "Large", + "order_by": 6, + "stock_info": "", + "is_marketplace": false, + "pk": 1, + "name_short": "Large" + }, + { + "price": 749, + "name": "X-Large", + "order_by": 7, + "stock_info": "", + "is_marketplace": false, + "pk": 5, + "name_short": "X-Large" + }, + { + "price": 749, + "name": "XX-Large", + "order_by": 8, + "stock_info": "", + "is_marketplace": false, + "pk": 6, + "name_short": "XX-Large" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldtroejer/liverpool-hjemmebanetroje-202122/217740/", + "attributes": { + "color": [ + "Red" + ], + "gender": [ + "Men's" + ], + "players": [ + "N/A" + ], + "item_type": "Football shirts", + "league": "N/A", + "teamsport": "N/A", + "club_national": "Clubs", + "team": "Liverpool", + "shirt_season": "2021/22", + "pricepoint": "Fan shirts", + "nationality": "England", + "sleeve": "Short sleeves", + "segment": "License", + "kit": "Home Kits", + "brand": "Nike", + "sorting_shirts": "N/A", + "age": [ + "Adults" + ], + "quarter": "Carry Over" + } + }, + { + "id": "226350", + "prices": { + "max_price": 749, + "min_price": 749, + "currency": "DKK", + "discount_percentage": 0, + "recommended_retail_price": 749 + }, + "name": "Liverpool Udebanetrøje 2021/22", + "relative_url": "/fodboldtrojer/liverpool-udebanetrje-202122/226350/", + "image": "https://thumblr.uniid.it/product/226350/7db9596bc84a.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 749, + "name": "X-Small", + "order_by": 3, + "stock_info": "", + "is_marketplace": false, + "pk": 162, + "name_short": "X-Small" + }, + { + "price": 749, + "name": "Small", + "order_by": 4, + "stock_info": "", + "is_marketplace": false, + "pk": 2, + "name_short": "Small" + }, + { + "price": 749, + "name": "Medium", + "order_by": 5, + "stock_info": "", + "is_marketplace": false, + "pk": 3, + "name_short": "Medium" + }, + { + "price": 749, + "name": "Large", + "order_by": 6, + "stock_info": "", + "is_marketplace": false, + "pk": 1, + "name_short": "Large" + }, + { + "price": 749, + "name": "X-Large", + "order_by": 7, + "stock_info": "", + "is_marketplace": false, + "pk": 5, + "name_short": "X-Large" + }, + { + "price": 749, + "name": "XX-Large", + "order_by": 8, + "stock_info": "Kun 1 tilbage", + "is_marketplace": false, + "pk": 6, + "name_short": "XX-Large" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldtrojer/liverpool-udebanetrje-202122/226350/", + "attributes": { + "color": [ + "White", + "Brown" + ], + "gender": [ + "Men's" + ], + "item_type": "Football shirts", + "players": [ + "N/A" + ], + "league": "N/A", + "teamsport": "N/A", + "club_national": "Clubs", + "team": "Liverpool", + "shirt_season": "2021/22", + "pricepoint": "Fan shirts", + "nationality": "England", + "sleeve": "Short sleeves", + "segment": "License", + "kit": "Away Kits", + "brand": "Nike", + "sorting_shirts": "N/A", + "age": [ + "Adults" + ], + "quarter": "Carry Over" + } + }, + { + "id": "190711", + "prices": { + "max_price": 119, + "min_price": 119, + "currency": "DKK", + "discount_percentage": 40, + "recommended_retail_price": 199 + }, + "name": "Hummel Træningsbukser Core - Sort/Hvid Børn", + "relative_url": "/fodboldudstyr/hummel-trningsbukser-core-sorthvid-brn/190711/", + "image": "https://thumblr.uniid.it/product/190711/fdf7b91f2e32.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [ + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Kun medlemmer", + "active": true, + "id": 100, + "priority": 10 + }, + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Børn", + "active": true, + "id": 48, + "priority": 7 + } + ], + "is_customizable": false, + "is_exclusive": true, + "stock": [ + { + "price": 119, + "name": "116 cm", + "order_by": 4, + "stock_info": "", + "is_marketplace": false, + "pk": 316, + "name_short": "6-8 Years" + }, + { + "price": 119, + "name": "164 cm", + "order_by": 9, + "stock_info": "", + "is_marketplace": false, + "pk": 16, + "name_short": "14-16 Years" + }, + { + "price": 119, + "name": "176 cm", + "order_by": 11, + "stock_info": "", + "is_marketplace": false, + "pk": 365, + "name_short": "14-16 Years" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldudstyr/hummel-trningsbukser-core-sorthvid-brn/190711/", + "attributes": { + "apparel_collection": "N/A", + "color": [ + "Black" + ], + "gender": [ + "Men's" + ], + "item_type": "Training pants", + "league": "N/A", + "teamsport": "N/A", + "club_national": "N/A", + "team": "N/A", + "brand_collection": "N/A", + "shirt_season": "N/A", + "nationality": "N/A", + "segment": "Team Sport", + "kit": "N/A", + "perfect_for": "Performance", + "brand": "Hummel", + "age": [ + "Kids" + ], + "pant_length": "Long", + "quarter": "Q3" + } + }, + { + "id": "217758", + "prices": { + "max_price": 749.95, + "min_price": 749, + "currency": "DKK", + "discount_percentage": 0, + "recommended_retail_price": 749.95 + }, + "name": "Paris Saint-Germain Hjemmebanetrøje Jordan x PSG 2021/22", + "relative_url": "/fodboldtroejer/nike-paris-saint-germain-hjemmebanetrje-jordan-x-psg-202122/217758/", + "image": "https://thumblr.uniid.it/product/217758/3df90b3e5225.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [ + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Kun medlemmer", + "active": true, + "id": 100, + "priority": 10 + } + ], + "is_customizable": true, + "is_exclusive": true, + "stock": [ + { + "price": 749.95, + "name": "Small", + "order_by": 4, + "stock_info": "", + "is_marketplace": true, + "pk": 2, + "name_short": "Small" + }, + { + "price": 749, + "name": "Medium", + "order_by": 5, + "stock_info": "", + "is_marketplace": false, + "pk": 3, + "name_short": "Medium" + }, + { + "price": 749, + "name": "Large", + "order_by": 6, + "stock_info": "", + "is_marketplace": false, + "pk": 1, + "name_short": "Large" + }, + { + "price": 749, + "name": "X-Large", + "order_by": 7, + "stock_info": "", + "is_marketplace": false, + "pk": 5, + "name_short": "X-Large" + }, + { + "price": 749, + "name": "XX-Large", + "order_by": 8, + "stock_info": "", + "is_marketplace": false, + "pk": 6, + "name_short": "XX-Large" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldtroejer/nike-paris-saint-germain-hjemmebanetrje-jordan-x-psg-202122/217758/", + "attributes": { + "color": [ + "Blue" + ], + "gender": [ + "Men's" + ], + "item_type": "Football shirts", + "players": [ + "N/A" + ], + "league": "N/A", + "teamsport": "N/A", + "club_national": "Clubs", + "team": "Paris Saint Germain", + "shirt_season": "2021/22", + "pricepoint": "Fan shirts", + "nationality": "France", + "sleeve": "Short sleeves", + "kit": "Home Kits", + "segment": "License", + "brand": "Nike", + "age": [ + "Adults" + ], + "sorting_shirts": "N/A", + "quarter": "Carry Over" + } + }, + { + "id": "226542", + "prices": { + "max_price": 1399, + "min_price": 1399, + "currency": "DKK", + "discount_percentage": 30, + "recommended_retail_price": 1999 + }, + "name": "Nike Mercurial Vapor 14 Elite FG Renew - Sort/Grå", + "relative_url": "/fodboldstvler/nike-mercurial-vapor-14-elite-fg-renew-sortgra/226542/", + "image": "https://thumblr.uniid.it/product/226542/aa1114d09f4b.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [ + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Kun medlemmer", + "active": true, + "id": 100, + "priority": 10 + } + ], + "is_customizable": true, + "is_exclusive": true, + "stock": [ + { + "price": 1399, + "name": "EU 36/US 4Y", + "order_by": 33, + "stock_info": "", + "is_marketplace": false, + "pk": 415, + "name_short": "EU 36" + }, + { + "price": 1399, + "name": "EU 36½/US 4½Y", + "order_by": 34, + "stock_info": "", + "is_marketplace": false, + "pk": 416, + "name_short": "EU 36½" + }, + { + "price": 1399, + "name": "EU 37½/US 5Y", + "order_by": 35, + "stock_info": "", + "is_marketplace": false, + "pk": 417, + "name_short": "EU 37½" + }, + { + "price": 1399, + "name": "EU 38/US 5½Y", + "order_by": 36, + "stock_info": "", + "is_marketplace": false, + "pk": 418, + "name_short": "EU 38" + }, + { + "price": 1399, + "name": "EU 38½/US 6", + "order_by": 40, + "stock_info": "", + "is_marketplace": false, + "pk": 419, + "name_short": "EU 38½" + }, + { + "price": 1399, + "name": "EU 39/US 6½", + "order_by": 41, + "stock_info": "", + "is_marketplace": false, + "pk": 420, + "name_short": "EU 39" + }, + { + "price": 1399, + "name": "EU 40/US 7", + "order_by": 42, + "stock_info": "", + "is_marketplace": false, + "pk": 421, + "name_short": "EU 40" + }, + { + "price": 1399, + "name": "EU 40½/US 7½", + "order_by": 43, + "stock_info": "", + "is_marketplace": false, + "pk": 422, + "name_short": "EU 40½" + }, + { + "price": 1399, + "name": "EU 41/US 8", + "order_by": 44, + "stock_info": "", + "is_marketplace": false, + "pk": 423, + "name_short": "EU 41" + }, + { + "price": 1399, + "name": "EU 42/US 8½", + "order_by": 45, + "stock_info": "", + "is_marketplace": false, + "pk": 424, + "name_short": "EU 42" + }, + { + "price": 1399, + "name": "EU 45/US 11", + "order_by": 50, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 429, + "name_short": "EU 45" + }, + { + "price": 1399, + "name": "EU 47/US 12½", + "order_by": 53, + "stock_info": "", + "is_marketplace": false, + "pk": 432, + "name_short": "EU 47" + }, + { + "price": 1399, + "name": "EU 47½/US 13", + "order_by": 54, + "stock_info": "", + "is_marketplace": false, + "pk": 433, + "name_short": "EU 47½" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstvler/nike-mercurial-vapor-14-elite-fg-renew-sortgra/226542/", + "attributes": { + "boot_collection": "Mercurial Vapor", + "color": [ + "Black" + ], + "gender": [ + "Men's", + "Women" + ], + "boot_benefit": "Speed", + "item_type": "Football boots", + "players": [ + "N/A" + ], + "boot_material": "Knit", + "brand_collection": "Nike Renew", + "sort_date": "2021-06-15", + "pricepoint": "Pro players choice", + "boot_model": "Elite", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "White", + "position": [ + "Wingers", + "Strikers", + "Midfielders" + ], + "brand": "Nike", + "boot_surface": [ + "Grass (FG)" + ], + "age": [ + "Adults" + ], + "quarter": "Q3" + } + }, + { + "id": "222824", + "prices": { + "max_price": 529, + "min_price": 529, + "currency": "DKK", + "discount_percentage": 0, + "recommended_retail_price": 529 + }, + "name": "Manchester United Udebanetrøje 2021/22 Børn", + "relative_url": "/fodboldtrojer/manchester-united-udebanetroje-202122-born-forudbestilling/222824/", + "image": "https://thumblr.uniid.it/product/222824/1f08bba31c14.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [ + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Børn", + "active": true, + "id": 48, + "priority": 7 + } + ], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 529, + "name": "128 cm", + "order_by": 6, + "stock_info": "Få på lager", + "is_marketplace": true, + "pk": 197, + "name_short": "6-8 Years" + }, + { + "price": 529, + "name": "140 cm", + "order_by": 7, + "stock_info": "", + "is_marketplace": true, + "pk": 196, + "name_short": "8-10 Years" + }, + { + "price": 529, + "name": "152 cm", + "order_by": 8, + "stock_info": "", + "is_marketplace": true, + "pk": 198, + "name_short": "10-12 Years" + }, + { + "price": 529, + "name": "164 cm", + "order_by": 9, + "stock_info": "", + "is_marketplace": true, + "pk": 199, + "name_short": "12-14 Years" + }, + { + "price": 529, + "name": "176 cm", + "order_by": 10, + "stock_info": "", + "is_marketplace": true, + "pk": 12, + "name_short": "14-16 Years" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldtrojer/manchester-united-udebanetroje-202122-born-forudbestilling/222824/", + "attributes": { + "color": [ + "Blue" + ], + "gender": [ + "Men's" + ], + "players": [ + "N/A" + ], + "item_type": "Football shirts", + "league": "N/A", + "teamsport": "N/A", + "club_national": "Clubs", + "team": "Manchester United", + "print_type": "Premier League", + "shirt_season": "2021/22", + "pricepoint": "Fan shirts", + "nationality": "England", + "material": [ + "Polyester" + ], + "sleeve": "Short sleeves", + "kit": "Away Kits", + "segment": "License", + "print_color": "N/A", + "brand": "adidas", + "sorting_shirts": "N/A", + "age": [ + "Kids" + ], + "quarter": "Carry Over" + } + }, + { + "id": "222192", + "prices": { + "max_price": 1649, + "min_price": 1649, + "currency": "DKK", + "discount_percentage": 25, + "recommended_retail_price": 2199 + }, + "name": "adidas X Speedflow + FG Escapelight - Sort/Blå/Gul", + "relative_url": "/fodboldstovler/adidas-x-speedflow-fg-escapelight-sortblagul/222192/", + "image": "https://thumblr.uniid.it/product/222192/6b68981cf2bb.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [ + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Kun medlemmer", + "active": true, + "id": 100, + "priority": 10 + } + ], + "is_customizable": true, + "is_exclusive": true, + "stock": [ + { + "price": 1649, + "name": "EU 36/UK 3½", + "order_by": 32, + "stock_info": "", + "is_marketplace": false, + "pk": 38, + "name_short": "EU 36" + }, + { + "price": 1649, + "name": "EU 36⅔/UK 4", + "order_by": 34, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 39, + "name_short": "EU 36½" + }, + { + "price": 1649, + "name": "EU 39⅓/UK 6", + "order_by": 43, + "stock_info": "", + "is_marketplace": false, + "pk": 43, + "name_short": "EU 39½" + }, + { + "price": 1649, + "name": "EU 40/UK 6½", + "order_by": 44, + "stock_info": "", + "is_marketplace": false, + "pk": 44, + "name_short": "EU 40" + }, + { + "price": 1649, + "name": "EU 46⅔/UK 11½", + "order_by": 63, + "stock_info": "", + "is_marketplace": false, + "pk": 53, + "name_short": "EU 46½" + }, + { + "price": 1649, + "name": "EU 47⅓/UK 12", + "order_by": 64, + "stock_info": "", + "is_marketplace": false, + "pk": 54, + "name_short": "EU 47½" + }, + { + "price": 1649, + "name": "EU 48/UK 12½", + "order_by": 65, + "stock_info": "", + "is_marketplace": false, + "pk": 55, + "name_short": "EU 48" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstovler/adidas-x-speedflow-fg-escapelight-sortblagul/222192/", + "attributes": { + "boot_collection": "X Speedflow", + "color": [ + "Black" + ], + "gender": [ + "Men's", + "Women" + ], + "boot_benefit": "Speed", + "item_type": "Football boots", + "players": [ + "N/A" + ], + "club_national": "N/A", + "boot_material": "Knit", + "sort_date": "2021-06-15", + "brand_collection": "adidas Escapelight", + "pricepoint": "For superstars", + "boot_model": "+", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "White", + "position": [ + "Wingers", + "Strikers", + "Midfielders" + ], + "brand": "adidas", + "age": [ + "Adults" + ], + "boot_surface": [ + "Grass (FG)" + ], + "quarter": "Q3" + } + }, + { + "id": "225701", + "prices": { + "max_price": 1999, + "min_price": 1999, + "currency": "DKK", + "discount_percentage": 0, + "recommended_retail_price": 1999 + }, + "name": "Nike Phantom GT 2 Elite FG Rawdacious - Hvid/Rød/Pink", + "relative_url": "/fodboldstovler/nike-phantom-gt-2-elite-fg-rawdacious-hvidrodpink/225701/", + "image": "https://thumblr.uniid.it/product/225701/1b07c59de3c0.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 1999, + "name": "EU 38½/US 6", + "order_by": 40, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 419, + "name_short": "EU 38½" + }, + { + "price": 1999, + "name": "EU 40/US 7", + "order_by": 42, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 421, + "name_short": "EU 40" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstovler/nike-phantom-gt-2-elite-fg-rawdacious-hvidrodpink/225701/", + "attributes": { + "boot_collection": "Phantom GT", + "gender": [ + "Women", + "Men's" + ], + "color": [ + "White" + ], + "boot_benefit": "Control", + "item_type": "Football boots", + "players": [ + "N/A" + ], + "boot_material": "Knit", + "sort_date": "2021-07-01", + "brand_collection": "Nike Rawdacious", + "pricepoint": "Pro players choice", + "boot_model": "Elite", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "Black", + "position": [ + "Midfielders", + "Wingers", + "Strikers" + ], + "brand": "Nike", + "boot_surface": [ + "Grass (FG)" + ], + "age": [ + "Adults" + ], + "quarter": "Q3" + } + }, + { + "id": "226114", + "prices": { + "max_price": 749.95, + "min_price": 749.95, + "currency": "DKK", + "discount_percentage": 0, + "recommended_retail_price": 749.95 + }, + "name": "Barcelona 3. Trøje 2021/22", + "relative_url": "/fodboldtrojer/fcb-mnk-df-stad-jsy-ss-3r-hyper-royalvarsity-maize/226114/", + "image": "https://thumblr.uniid.it/product/226114/7a0eda8fd606.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 749.95, + "name": "X-Small", + "order_by": 3, + "stock_info": "", + "is_marketplace": true, + "pk": 162, + "name_short": "X-Small" + }, + { + "price": 749.95, + "name": "Small", + "order_by": 4, + "stock_info": "", + "is_marketplace": true, + "pk": 2, + "name_short": "Small" + }, + { + "price": 749.95, + "name": "Medium", + "order_by": 5, + "stock_info": "", + "is_marketplace": true, + "pk": 3, + "name_short": "Medium" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldtrojer/fcb-mnk-df-stad-jsy-ss-3r-hyper-royalvarsity-maize/226114/", + "attributes": { + "color": [ + "Blue" + ], + "gender": [ + "Men's" + ], + "players": [ + "N/A" + ], + "item_type": "Football shirts", + "league": "N/A", + "teamsport": "N/A", + "club_national": "Clubs", + "team": "FC Barcelona", + "print_type": "N/A", + "shirt_season": "2021/22", + "pricepoint": "Fan shirts", + "nationality": "Spain", + "sleeve": "Short sleeves", + "kit": "Third Kits", + "segment": "License", + "print_color": "Yellow", + "brand": "Nike", + "sorting_shirts": "N/A", + "age": [ + "Adults" + ], + "quarter": "Carry Over" + } + }, + { + "id": "202481", + "prices": { + "max_price": 169, + "min_price": 169, + "currency": "DKK", + "discount_percentage": 0, + "recommended_retail_price": 169 + }, + "name": "Nike Sokker Cushion 6-Pak - Hvid/Sort", + "relative_url": "/fodbold365/nike-sokker-cushion-6-pak-hvidsort/202481/", + "image": "https://thumblr.uniid.it/product/202481/4172cc5eeeef.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [], + "is_customizable": false, + "is_exclusive": false, + "stock": [ + { + "price": 169, + "name": "M: 38-42", + "order_by": 3, + "stock_info": "", + "is_marketplace": false, + "pk": 1464, + "name_short": "38-42" + }, + { + "price": 169, + "name": "L: 42-46", + "order_by": 4, + "stock_info": "", + "is_marketplace": false, + "pk": 1465, + "name_short": "42-46" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodbold365/nike-sokker-cushion-6-pak-hvidsort/202481/", + "attributes": { + "apparel_collection": "N/A", + "color": [ + "White" + ], + "gender": [ + "Men's" + ], + "item_type": "Socks", + "league": "N/A", + "teamsport": "N/A", + "club_national": "N/A", + "team": "N/A", + "brand_collection": "N/A", + "shirt_season": "N/A", + "nationality": "N/A", + "segment": "Everyday", + "kit": "N/A", + "season": [ + "N/A" + ], + "perfect_for": "Lifestyle", + "brand": "Nike", + "age": [ + "Adults" + ], + "quarter": "Carry Over" + } + }, + { + "id": "225705", + "prices": { + "max_price": 1499, + "min_price": 1499, + "currency": "DKK", + "discount_percentage": 25, + "recommended_retail_price": 1999 + }, + "name": "Nike Phantom GT 2 Elite FG Motivation - Hvid/Rød/Neon/Sort", + "relative_url": "/fodboldstovler/nike-phantom-gt-2-elite-fg-motivation-hvidrodneonsort/225705/", + "image": "https://thumblr.uniid.it/product/225705/3b3d55673175.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [ + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Kun medlemmer", + "active": true, + "id": 100, + "priority": 10 + } + ], + "is_customizable": true, + "is_exclusive": true, + "stock": [ + { + "price": 1499, + "name": "EU 36/US 4Y", + "order_by": 33, + "stock_info": "", + "is_marketplace": false, + "pk": 415, + "name_short": "EU 36" + }, + { + "price": 1499, + "name": "EU 36½/US 4½Y", + "order_by": 34, + "stock_info": "", + "is_marketplace": false, + "pk": 416, + "name_short": "EU 36½" + }, + { + "price": 1499, + "name": "EU 37½/US 5Y", + "order_by": 35, + "stock_info": "", + "is_marketplace": false, + "pk": 417, + "name_short": "EU 37½" + }, + { + "price": 1499, + "name": "EU 38/US 5½Y", + "order_by": 36, + "stock_info": "", + "is_marketplace": false, + "pk": 418, + "name_short": "EU 38" + }, + { + "price": 1499, + "name": "EU 38½/US 6", + "order_by": 40, + "stock_info": "", + "is_marketplace": false, + "pk": 419, + "name_short": "EU 38½" + }, + { + "price": 1499, + "name": "EU 39/US 6½", + "order_by": 41, + "stock_info": "", + "is_marketplace": false, + "pk": 420, + "name_short": "EU 39" + }, + { + "price": 1499, + "name": "EU 40/US 7", + "order_by": 42, + "stock_info": "", + "is_marketplace": false, + "pk": 421, + "name_short": "EU 40" + }, + { + "price": 1499, + "name": "EU 40½/US 7½", + "order_by": 43, + "stock_info": "", + "is_marketplace": false, + "pk": 422, + "name_short": "EU 40½" + }, + { + "price": 1499, + "name": "EU 41/US 8", + "order_by": 44, + "stock_info": "", + "is_marketplace": false, + "pk": 423, + "name_short": "EU 41" + }, + { + "price": 1499, + "name": "EU 42½/US 9", + "order_by": 46, + "stock_info": "", + "is_marketplace": false, + "pk": 425, + "name_short": "EU 42½" + }, + { + "price": 1499, + "name": "EU 47½/US 13", + "order_by": 54, + "stock_info": "", + "is_marketplace": false, + "pk": 433, + "name_short": "EU 47½" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstovler/nike-phantom-gt-2-elite-fg-motivation-hvidrodneonsort/225705/", + "attributes": { + "boot_collection": "Phantom GT", + "boot_benefit": "Control", + "gender": [ + "Women", + "Men's" + ], + "color": [ + "White" + ], + "players": [ + "N/A" + ], + "item_type": "Football boots", + "boot_material": "Knit", + "sort_date": "2021-07-15", + "brand_collection": "Nike Motivation", + "pricepoint": "Pro players choice", + "boot_model": "Elite", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "Black", + "position": [ + "Midfielders", + "Strikers", + "Wingers" + ], + "brand": "Nike", + "age": [ + "Adults" + ], + "boot_surface": [ + "Grass (FG)" + ], + "quarter": "Q3" + } + }, + { + "id": "222316", + "prices": { + "max_price": 1269, + "min_price": 1269, + "currency": "DKK", + "discount_percentage": 25, + "recommended_retail_price": 1699 + }, + "name": "adidas X Speedflow .1 FG Meteorite - Rød/Sort/Rød", + "relative_url": "/fodboldstvler/adidas-x-speedflow-1-fg-meteorite-rodsortrod/222316/", + "image": "https://thumblr.uniid.it/product/222316/d26e18fa6919.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 1269, + "name": "EU 36/UK 3½", + "order_by": 32, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 38, + "name_short": "EU 36" + }, + { + "price": 1269, + "name": "EU 36⅔/UK 4", + "order_by": 34, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 39, + "name_short": "EU 36½" + }, + { + "price": 1269, + "name": "EU 46⅔/UK 11½", + "order_by": 63, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 53, + "name_short": "EU 46½" + }, + { + "price": 1269, + "name": "EU 47⅓/UK 12", + "order_by": 64, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 54, + "name_short": "EU 47½" + }, + { + "price": 1269, + "name": "EU 48/UK 12½", + "order_by": 65, + "stock_info": "", + "is_marketplace": false, + "pk": 55, + "name_short": "EU 48" + }, + { + "price": 1269, + "name": "EU 48⅔/UK 13", + "order_by": 67, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 56, + "name_short": "EU 48½" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstvler/adidas-x-speedflow-1-fg-meteorite-rodsortrod/222316/", + "attributes": { + "boot_collection": "X Speedflow", + "color": [ + "Red" + ], + "gender": [ + "Men's", + "Women" + ], + "boot_benefit": "Speed", + "players": [ + "Lionel Messi" + ], + "item_type": "Football boots", + "club_national": "N/A", + "boot_material": "Knit", + "brand_collection": "adidas Meteorite", + "sort_date": "2021-07-01", + "pricepoint": "Pro players choice", + "boot_model": ".1", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "White", + "position": [ + "Wingers", + "Strikers", + "Midfielders" + ], + "brand": "adidas", + "boot_surface": [ + "Grass (FG)" + ], + "age": [ + "Adults" + ], + "quarter": "Q3" + } + }, + { + "id": "222314", + "prices": { + "max_price": 1439, + "min_price": 1439, + "currency": "DKK", + "discount_percentage": 15, + "recommended_retail_price": 1699 + }, + "name": "adidas X Speedflow .1 FG Escapelight - Sort/Blå/Gul", + "relative_url": "/fodboldstovler/adidas-x-speedflow-1-fg-escapelight-sortblagul/222314/", + "image": "https://thumblr.uniid.it/product/222314/d8f78a998e3c.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [ + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Kun medlemmer", + "active": true, + "id": 100, + "priority": 10 + } + ], + "is_customizable": true, + "is_exclusive": true, + "stock": [ + { + "price": 1439, + "name": "EU 36/UK 3½", + "order_by": 32, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 38, + "name_short": "EU 36" + }, + { + "price": 1439, + "name": "EU 39⅓/UK 6", + "order_by": 43, + "stock_info": "", + "is_marketplace": false, + "pk": 43, + "name_short": "EU 39½" + }, + { + "price": 1439, + "name": "EU 40/UK 6½", + "order_by": 44, + "stock_info": "", + "is_marketplace": false, + "pk": 44, + "name_short": "EU 40" + }, + { + "price": 1439, + "name": "EU 40⅔/UK 7", + "order_by": 47, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 11, + "name_short": "EU 40½" + }, + { + "price": 1439, + "name": "EU 46/UK 11", + "order_by": 60, + "stock_info": "", + "is_marketplace": false, + "pk": 52, + "name_short": "EU 46" + }, + { + "price": 1439, + "name": "EU 46⅔/UK 11½", + "order_by": 63, + "stock_info": "", + "is_marketplace": false, + "pk": 53, + "name_short": "EU 46½" + }, + { + "price": 1439, + "name": "EU 47⅓/UK 12", + "order_by": 64, + "stock_info": "Kun 1 tilbage", + "is_marketplace": false, + "pk": 54, + "name_short": "EU 47½" + }, + { + "price": 1439, + "name": "EU 48/UK 12½", + "order_by": 65, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 55, + "name_short": "EU 48" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstovler/adidas-x-speedflow-1-fg-escapelight-sortblagul/222314/", + "attributes": { + "boot_collection": "X Speedflow", + "color": [ + "Black" + ], + "gender": [ + "Men's", + "Women" + ], + "boot_benefit": "Speed", + "item_type": "Football boots", + "players": [ + "N/A" + ], + "club_national": "N/A", + "boot_material": "Knit", + "sort_date": "2021-06-15", + "brand_collection": "adidas Escapelight", + "pricepoint": "Pro players choice", + "boot_model": ".1", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "White", + "position": [ + "Wingers", + "Strikers", + "Midfielders" + ], + "brand": "adidas", + "boot_surface": [ + "Grass (FG)" + ], + "age": [ + "Adults" + ], + "quarter": "Q3" + } + }, + { + "id": "206016", + "prices": { + "max_price": 269, + "min_price": 269, + "currency": "DKK", + "discount_percentage": 46, + "recommended_retail_price": 499 + }, + "name": "Nike Mercurial Vapor 13 Academy MG Black X Chile Red - Sort/Rød/Grå Børn", + "relative_url": "/fodboldstoevler/nike-mercurial-vapor-13-academy-mg-black-x-chile-red-sortrdgra-brn/206016/", + "image": "https://thumblr.uniid.it/product/206016/673a83b5b307.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [ + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Kun medlemmer", + "active": true, + "id": 100, + "priority": 10 + }, + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Børn", + "active": true, + "id": 48, + "priority": 7 + } + ], + "is_customizable": true, + "is_exclusive": true, + "stock": [ + { + "price": 269, + "name": "EU 33/US 1½Y", + "order_by": 28, + "stock_info": "", + "is_marketplace": false, + "pk": 411, + "name_short": "EU 33" + }, + { + "price": 269, + "name": "EU 34/US 2½Y", + "order_by": 30, + "stock_info": "Kun 1 tilbage", + "is_marketplace": false, + "pk": 413, + "name_short": "EU 34" + }, + { + "price": 269, + "name": "EU 35½/US 3½Y", + "order_by": 32, + "stock_info": "", + "is_marketplace": false, + "pk": 292, + "name_short": "EU 35½" + }, + { + "price": 269, + "name": "EU 36½/US 4½Y", + "order_by": 34, + "stock_info": "", + "is_marketplace": false, + "pk": 416, + "name_short": "EU 36½" + }, + { + "price": 269, + "name": "EU 38/US 5½Y", + "order_by": 36, + "stock_info": "", + "is_marketplace": false, + "pk": 418, + "name_short": "EU 38" + }, + { + "price": 269, + "name": "EU 38½/US 6Y", + "order_by": 37, + "stock_info": "", + "is_marketplace": false, + "pk": 1237, + "name_short": "EU 38½" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstoevler/nike-mercurial-vapor-13-academy-mg-black-x-chile-red-sortrdgra-brn/206016/", + "attributes": { + "boot_collection": "Mercurial Vapor", + "gender": [ + "Women", + "Men's" + ], + "color": [ + "Black" + ], + "boot_benefit": "Speed", + "item_type": "Football boots", + "players": [ + "N/A" + ], + "boot_material": "Synthetic", + "brand_collection": "Nike Football Black x Chile Red", + "sort_date": "2020-08-01", + "pricepoint": "Best sellers", + "boot_model": "Academy", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "White", + "position": [ + "Wingers", + "Strikers", + "Midfielders" + ], + "brand": "Nike", + "age": [ + "Kids" + ], + "boot_surface": [ + "Artificial grass (AG)", + "Grass (FG)" + ], + "quarter": "Q3" + } + }, + { + "id": "226102", + "prices": { + "max_price": 549.95, + "min_price": 549, + "currency": "DKK", + "discount_percentage": 0, + "recommended_retail_price": 549.95 + }, + "name": "Paris Saint-Germain Udebanetrøje 2021/22 Børn", + "relative_url": "/fodboldtrojer/paris-saint-germain-udebanetroje-202122-born/226102/", + "image": "https://thumblr.uniid.it/product/226102/26ad61050306.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [ + { + "color": "#ffffff", + "background_color": "#000000", + "name": "Børn", + "active": true, + "id": 48, + "priority": 7 + } + ], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 549, + "name": "XS: 122-128 cm", + "order_by": 0, + "stock_info": "", + "is_marketplace": false, + "pk": 1855, + "name_short": "6-8 Years" + }, + { + "price": 549.95, + "name": "S: 128-137 cm", + "order_by": 1, + "stock_info": "", + "is_marketplace": true, + "pk": 1856, + "name_short": "8-10 Years" + }, + { + "price": 549.95, + "name": "M: 137-147 cm", + "order_by": 2, + "stock_info": "", + "is_marketplace": true, + "pk": 1857, + "name_short": "10-12 Years" + }, + { + "price": 549.95, + "name": "L: 147-158 cm", + "order_by": 3, + "stock_info": "", + "is_marketplace": true, + "pk": 1858, + "name_short": "12-14 Years" + }, + { + "price": 549.95, + "name": "XL: 158-170 cm", + "order_by": 4, + "stock_info": "", + "is_marketplace": true, + "pk": 1859, + "name_short": "14-16 Years" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldtrojer/paris-saint-germain-udebanetroje-202122-born/226102/", + "attributes": { + "gender": [ + "Men's" + ], + "color": [ + "White" + ], + "players": [ + "N/A" + ], + "item_type": "Football shirts", + "league": "N/A", + "teamsport": "N/A", + "club_national": "Clubs", + "print_type": "N/A", + "team": "Paris Saint Germain", + "shirt_season": "2021/22", + "pricepoint": "Fan shirts", + "nationality": "France", + "sleeve": "Short sleeves", + "segment": "License", + "kit": "Away Kits", + "print_color": "Black", + "brand": "Nike", + "age": [ + "Kids" + ], + "sorting_shirts": "N/A", + "quarter": "Carry Over" + } + }, + { + "id": "213587", + "prices": { + "max_price": 1199, + "min_price": 1199, + "currency": "DKK", + "discount_percentage": 40, + "recommended_retail_price": 1999 + }, + "name": "Nike Phantom GT Elite FG Spectrum - Blå/Sølv/Grøn", + "relative_url": "/fodboldstoevler/nike-phantom-gt-elite-fg-spectrum-blaslvgrn/213587/", + "image": "https://thumblr.uniid.it/product/213587/34f3f3b4696f.jpg", + "delivery": "1-3 hverdage", + "online": true, + "labels": [], + "is_customizable": true, + "is_exclusive": false, + "stock": [ + { + "price": 1199, + "name": "EU 36/US 4Y", + "order_by": 33, + "stock_info": "", + "is_marketplace": false, + "pk": 415, + "name_short": "EU 36" + }, + { + "price": 1199, + "name": "EU 36½/US 4½Y", + "order_by": 34, + "stock_info": "", + "is_marketplace": false, + "pk": 416, + "name_short": "EU 36½" + }, + { + "price": 1199, + "name": "EU 37½/US 5Y", + "order_by": 35, + "stock_info": "Få på lager", + "is_marketplace": false, + "pk": 417, + "name_short": "EU 37½" + }, + { + "price": 1199, + "name": "EU 38½/US 6", + "order_by": 40, + "stock_info": "", + "is_marketplace": false, + "pk": 419, + "name_short": "EU 38½" + } + ], + "currency": "DKK", + "url": "https://www.unisport.dk/fodboldstoevler/nike-phantom-gt-elite-fg-spectrum-blaslvgrn/213587/", + "attributes": { + "boot_collection": "Phantom GT", + "boot_benefit": "Control", + "gender": [ + "Women", + "Men's" + ], + "color": [ + "Blue" + ], + "players": [ + "N/A" + ], + "item_type": "Football boots", + "boot_material": "Knit", + "brand_collection": "Nike Spectrum", + "sort_date": "2021-02-16", + "pricepoint": "Pro players choice", + "boot_model": "Elite", + "boot_with_sock": "Without sock", + "segment": "Footwear", + "warehouse_customization_color": "Black", + "position": [ + "Midfielders", + "Strikers", + "Wingers" + ], + "brand": "Nike", + "boot_surface": [ + "Grass (FG)" + ], + "age": [ + "Adults" + ], + "quarter": "Q1" + } + } + ] \ No newline at end of file From c7e673270fc63122728821c3369ed59f6fcd07ca Mon Sep 17 00:00:00 2001 From: AndreasChristensen89 Date: Thu, 14 Apr 2022 10:59:19 +0000 Subject: [PATCH 02/10] Add bootstrap styling, add css file --- index.html | 26 +++++++++++++++++----- products.css | 36 ++++++++++++++++++++++++++++++ products.js | 62 ++++++++++++++++++++++++++++------------------------ 3 files changed, 90 insertions(+), 34 deletions(-) create mode 100644 products.css diff --git a/index.html b/index.html index 0e447f0c..99e957ec 100644 --- a/index.html +++ b/index.html @@ -5,22 +5,36 @@ - + + + Unisport Fontend Test
+ +
+
+

+ Alle Produkter +

+
+
+
-

- Alle Produkter -

+
+

Her hos Unisport lægger vi en masse energi i vores udvalg. + Alle varer er godkendt af xxx, og lever alle op til strenge + skandinaviske krav omkring byggelse, komfort, og sikkerhed.

+
-
+ +
- + \ No newline at end of file diff --git a/products.css b/products.css new file mode 100644 index 00000000..7617b881 --- /dev/null +++ b/products.css @@ -0,0 +1,36 @@ +body { + font-family: 'Lato'; +} + +#interviewer-heading { + color: rgb(37 185 37); +} + +.product-height { + height: 420px; + max-width: 300px; +} + +.box-shadow { + box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, .3), 0 0.0625rem 0.125rem rgba(0, 0, 0, .2); +} + +.all-products-img { + height: 215px; + width: 215px; +} + +.product-name { + font-size: 11pt; + font-weight: 600; + max-width: 200px; +} + +.price { + color: rgb(37 185 37); + font-size: x-large; +} + +.sizes { + font-size: small; +} \ No newline at end of file diff --git a/products.js b/products.js index e7774ff2..f8659c6d 100644 --- a/products.js +++ b/products.js @@ -12,13 +12,16 @@ fetch('products.json') function appendData(data) { var mainContainer = document.getElementById("productRow"); for (var i = 0; i < data.length; i++) { + var topDiv = document.createElement("div"); + topDiv.classList.add("col-7", "col-sm-6", "col-md-6", "col-lg-4", "px-1", "mx-auto"); + mainContainer.appendChild(topDiv); + var card = document.createElement("div"); - card.classList.add("card"); - card.style.width = '18rem'; - mainContainer.appendChild(card); + card.classList.add("card", "border", "product-height", "my-2", "box-shadow"); + topDiv.appendChild(card); var img = document.createElement("img"); - img.classList.add("card-img-top"); + img.classList.add("card-img-top", "img-fluid", "all-products-img", "mx-auto", "pt-2"); img.src = data[i].image; card.appendChild(img); @@ -26,28 +29,31 @@ function appendData(data) { cardBody.classList.add("card-body"); card.appendChild(cardBody); - var cardTitle = document.createElement("h5"); - cardTitle.classList.add("card-title"); - cardTitle.innerText = data[i].name; - cardBody.appendChild(cardTitle); - - var cardParagraph = document.createElement("p"); - cardParagraph.classList.add("card-text"); - cardParagraph.innerText = data[i].prices.max_price + ' dkk'; - cardBody.appendChild(cardParagraph); - - // div.innerHTML = 'Name: ' + data[i].name; - // mainContainer.appendChild(div); - - + var title = document.createElement("h5"); + title.classList.add("lead", "product-name", "mx-auto"); + title.innerText = data[i].name; + cardBody.appendChild(title); + + var price = document.createElement("p"); + price.classList.add("card-text", "price"); + price.innerText = data[i].prices.max_price + ' dkk'; + cardBody.appendChild(price); + + var sizes = document.createElement("p"); + sizes.classList.add("card-text", "sizes"); + sizes.innerText = "Størrelser: "; + if (data[i].stock.length > 4) { + sizes.innerText = "Adskillige størrelser tilgængelige" + } else { + for (var j = 0; j < data[i].stock.length; j++) { + if (j == data[i].stock.length - 1) { + sizes.innerText += data[i].stock[j].name; + } else { + sizes.innerText += data[i].stock[j].name + ", "; + } + } + } + cardBody.appendChild(sizes); } -} - -{/*
- Card image cap -
-
Card title
-

Some quick example text to build on the card title and make up the bulk of the card's content.

- Go somewhere -
-
*/} \ No newline at end of file + +} \ No newline at end of file From 38c72bf33b8bd7529414d2733fb59a8d9531c151 Mon Sep 17 00:00:00 2001 From: AndreasChristensen89 Date: Thu, 14 Apr 2022 12:43:01 +0000 Subject: [PATCH 03/10] Sort json file, add discount mark, add navbar --- index.html | 52 ++++++++++++++++++++++++++++++++++++++++++++++++---- products.css | 14 ++++++++++++++ products.js | 37 ++++++++++++++++++++++++++++++++----- 3 files changed, 94 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index 99e957ec..2c7d0e82 100644 --- a/index.html +++ b/index.html @@ -1,21 +1,64 @@ + - + - - + + Unisport Fontend Test + +
-
+

Alle Produkter @@ -37,4 +80,5 @@

+ \ No newline at end of file diff --git a/products.css b/products.css index 7617b881..13faa4d5 100644 --- a/products.css +++ b/products.css @@ -33,4 +33,18 @@ body { .sizes { font-size: small; +} + +.label-container { + position: absolute; + top: 0px; + left: 0; + font-size: 14px; + z-index: 5; + text-align: left; + background-color: rgb(37 185 37); + color: white; + border-bottom-right-radius: 10%; + padding: 0.75rem; + } \ No newline at end of file diff --git a/products.js b/products.js index f8659c6d..0f16e8b0 100644 --- a/products.js +++ b/products.js @@ -1,3 +1,4 @@ +// get json fetch('products.json') .then(function (response) { return response.json(); @@ -9,17 +10,43 @@ fetch('products.json') console.log('error: ' + err); }); +// pass json array to function to use data in loop function appendData(data) { - var mainContainer = document.getElementById("productRow"); + + // function to sort json objects + function GetSortOrder() { + return function(a, b) { + if (a.prices.discount_percentage > b.prices.discount_percentage) { + return 1; + } else if (a.prices.discount_percentage < b.prices.discount_percentage) { + return -1; + } + return 0; + } + } + // pass json array using function to sort + data.sort(GetSortOrder()); + // reverse to highest discount comes first + data.reverse(); + + // reference main row and add elements using bootstrap cards and additional styling + var mainRow = document.getElementById("productRow"); for (var i = 0; i < data.length; i++) { var topDiv = document.createElement("div"); topDiv.classList.add("col-7", "col-sm-6", "col-md-6", "col-lg-4", "px-1", "mx-auto"); - mainContainer.appendChild(topDiv); + mainRow.appendChild(topDiv); var card = document.createElement("div"); card.classList.add("card", "border", "product-height", "my-2", "box-shadow"); topDiv.appendChild(card); + var discountMark = document.createElement("div"); + discountMark.classList.add("label-container", "text-center"); + discountMark.innerText = data[i].prices.discount_percentage + "%"; + if (data[i].prices.discount_percentage > 0) { + card.appendChild(discountMark); + } + var img = document.createElement("img"); img.classList.add("card-img-top", "img-fluid", "all-products-img", "mx-auto", "pt-2"); img.src = data[i].image; @@ -41,9 +68,9 @@ function appendData(data) { var sizes = document.createElement("p"); sizes.classList.add("card-text", "sizes"); - sizes.innerText = "Størrelser: "; + sizes.innerHTML = "Størrelser: "; if (data[i].stock.length > 4) { - sizes.innerText = "Adskillige størrelser tilgængelige" + sizes.innerText = "Mange størrelser tilgængelige" } else { for (var j = 0; j < data[i].stock.length; j++) { if (j == data[i].stock.length - 1) { @@ -55,5 +82,5 @@ function appendData(data) { } cardBody.appendChild(sizes); } - + } \ No newline at end of file From 10b3fd5a1a32ba19e3c5441f22f3f14e7f7e957e Mon Sep 17 00:00:00 2001 From: AndreasChristensen89 Date: Thu, 14 Apr 2022 12:45:21 +0000 Subject: [PATCH 04/10] Add footer, needs work --- index.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/index.html b/index.html index 2c7d0e82..263e1bfb 100644 --- a/index.html +++ b/index.html @@ -78,6 +78,21 @@

+ +
+

Made by Dre

+

Follow me: + + + + +

+
From cee4ec10cbc3a8d6e18ef818653529f0412f63b8 Mon Sep 17 00:00:00 2001 From: AndreasChristensen89 Date: Fri, 15 Apr 2022 12:39:16 +0000 Subject: [PATCH 05/10] Add additional styling and tweaks, member+discount --- README.md | 24 ++++++++++++ index.html | 34 +++++++++-------- products.css | 104 +++++++++++++++++++++++++++++++++++++++++++++++---- products.js | 85 +++++++++++++++++++++++++++++++---------- 4 files changed, 203 insertions(+), 44 deletions(-) diff --git a/README.md b/README.md index 14616dd3..4ded2f50 100644 --- a/README.md +++ b/README.md @@ -16,3 +16,27 @@ https://help.github.com/articles/fork-a-repo/ https://help.github.com/articles/using-pull-requests/ + +Solution by Andreas Christensen + +My regular solution +During my time as a student I would use Django to display items, meaning I would get the queryset from the backend in the view code, then use a template loop to display all the items. The JSON file would be imported into a datamodel that fits the data fields of the products, and I would then be able to generate queries from this. In the template I would be able to insert a filter which would use Q functionality to reload the page a generate a new queryset according to filter input. + +My posted solution +In my posted solution I'm using only front-end, so I added the JSON file in the main directory. I'm doing most of the work in the Javascript file as I need to add to add the loop there, so I'm extracting the JSON contents into a data array which I can use in the loop. + +JS file +The JSON data first is sorted according to discount percentage and has the object with the highest discount first. + +The array is then looped through, adding a card for every object. I decided to use Boostrap cards to present the products, mixed in with personal styling. + +Inside the card an info box is added in the top left corner which holds the potential discount tag and members only tag. These tags are added in the following. + +Following this a product image is added + + + +I can see in the JSON file that there is a max price, a minimum price, and a recommended retail price. The min and max are identical, so I decided to display the max price. + +Nexus 4 is weird + diff --git a/index.html b/index.html index 263e1bfb..716ab3db 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - + @@ -9,6 +9,7 @@ integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> + @@ -19,7 +20,7 @@ -