diff --git a/Aufgaben/Aufgabe_04_2020-05-20/.vs/Aufgabe_04_2020-05-20/v16/.suo b/Aufgaben/Aufgabe_04_2020-05-20/.vs/Aufgabe_04_2020-05-20/v16/.suo deleted file mode 100644 index 4689411..0000000 Binary files a/Aufgaben/Aufgabe_04_2020-05-20/.vs/Aufgabe_04_2020-05-20/v16/.suo and /dev/null differ diff --git a/Aufgaben/Aufgabe_04_2020-05-20/.vs/VSWorkspaceState.json b/Aufgaben/Aufgabe_04_2020-05-20/.vs/VSWorkspaceState.json deleted file mode 100644 index 6b61141..0000000 --- a/Aufgaben/Aufgabe_04_2020-05-20/.vs/VSWorkspaceState.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "ExpandedNodes": [ - "" - ], - "PreviewInSolutionExplorer": false -} \ No newline at end of file diff --git a/Aufgaben/Aufgabe_04_2020-05-20/.vs/slnx.sqlite b/Aufgaben/Aufgabe_04_2020-05-20/.vs/slnx.sqlite deleted file mode 100644 index 0e6028f..0000000 Binary files a/Aufgaben/Aufgabe_04_2020-05-20/.vs/slnx.sqlite and /dev/null differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/filler.png b/Aufgaben/Aufgabe_05_2020-05-27/files/filler.png new file mode 100644 index 0000000..c01cba8 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/filler.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-black.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-black.png new file mode 100644 index 0000000..a001d67 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-black.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-blue.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-blue.png new file mode 100644 index 0000000..fb7299a Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-blue.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-chess-square.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-chess-square.png new file mode 100644 index 0000000..975209c Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-chess-square.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-dark-1.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-dark-1.png new file mode 100644 index 0000000..c0c73e6 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-dark-1.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-dark-2.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-dark-2.png new file mode 100644 index 0000000..af89a6c Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-dark-2.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-dark-3.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-dark-3.png new file mode 100644 index 0000000..a70def1 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-dark-3.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-light-1.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-light-1.png new file mode 100644 index 0000000..3a4e110 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-light-1.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-light-2.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-light-2.png new file mode 100644 index 0000000..b1269d1 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-light-2.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-light-3.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-light-3.png new file mode 100644 index 0000000..2ca3be3 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-light-3.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-murica.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-murica.png new file mode 100644 index 0000000..aa3bd10 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green-murica.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green.jpg b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green.jpg new file mode 100644 index 0000000..6cb0e67 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green.jpg differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green.png new file mode 100644 index 0000000..6119d71 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-green.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-orange.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-orange.png new file mode 100644 index 0000000..3951eb3 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-orange.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-pink.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-pink.png new file mode 100644 index 0000000..a9b4dd4 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-pink.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-purple.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-purple.png new file mode 100644 index 0000000..b81eb87 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-purple.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-rainbow-square.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-rainbow-square.png new file mode 100644 index 0000000..294f948 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-rainbow-square.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-red.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-red.png new file mode 100644 index 0000000..a922a36 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-red.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-white.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-white.png new file mode 100644 index 0000000..211516d Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-white.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass-yellow.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-yellow.png new file mode 100644 index 0000000..fc31309 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass-yellow.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass_icon_left.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass_icon_left.png new file mode 100644 index 0000000..1aee3df Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass_icon_left.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/grass_icon_right.png b/Aufgaben/Aufgabe_05_2020-05-27/files/grass_icon_right.png new file mode 100644 index 0000000..ed73fc9 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/grass_icon_right.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-black.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-black.png new file mode 100644 index 0000000..c2ae66c Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-black.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-blue.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-blue.png new file mode 100644 index 0000000..2a32a4f Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-blue.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-chess.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-chess.png new file mode 100644 index 0000000..fec817a Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-chess.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-dark-1.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-dark-1.png new file mode 100644 index 0000000..69b824f Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-dark-1.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-dark-2.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-dark-2.png new file mode 100644 index 0000000..7b49da4 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-dark-2.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-dark-3.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-dark-3.png new file mode 100644 index 0000000..a3e0b57 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-dark-3.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-light-1.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-light-1.png new file mode 100644 index 0000000..5a11b60 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-light-1.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-light-2.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-light-2.png new file mode 100644 index 0000000..e21f59c Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-light-2.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-light-3.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-light-3.png new file mode 100644 index 0000000..b7a1834 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-light-3.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-murica.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-murica.png new file mode 100644 index 0000000..179a5ce Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green-murica.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green.jpg b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green.jpg new file mode 100644 index 0000000..3a9b101 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green.jpg differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green.png new file mode 100644 index 0000000..b58fa10 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-green.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-orange.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-orange.png new file mode 100644 index 0000000..cfb2d8d Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-orange.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-pink.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-pink.png new file mode 100644 index 0000000..a241575 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-pink.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-purple.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-purple.png new file mode 100644 index 0000000..323e522 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-purple.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-rainbow.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-rainbow.png new file mode 100644 index 0000000..221509a Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-rainbow.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-red.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-red.png new file mode 100644 index 0000000..c04d0b7 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-red.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-white.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-white.png new file mode 100644 index 0000000..c719072 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-white.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-yellow.png b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-yellow.png new file mode 100644 index 0000000..ab84021 Binary files /dev/null and b/Aufgaben/Aufgabe_05_2020-05-27/files/original/grass-yellow.png differ diff --git a/Aufgaben/Aufgabe_05_2020-05-27/product-big.css b/Aufgaben/Aufgabe_05_2020-05-27/product-big.css new file mode 100644 index 0000000..75c1953 --- /dev/null +++ b/Aufgaben/Aufgabe_05_2020-05-27/product-big.css @@ -0,0 +1,89 @@ +#übersicht { + display: flex; + flex-direction: column; + align-items: center; +} + +.container { + display: flex; + flex-direction: row; + justify-content: center; + flex-wrap: wrap; + margin: 10px 0px; + padding: 0px 10px; +} + +.container .product { + width: 300px; + display: flex; + flex-direction: column; + justify-content: center; + padding: 10px; + align-items: center; + border: solid #006a4e; + background-color: #b8d5cd; + border-radius: 40px; +} + +.container .product img { + width: 90%; + height: auto; + max-height: 300px; + border: solid #006a4e; + border-radius: 40px; + overflow: hidden; + object-fit: fill; +} + +.container .product p, h3 { + margin: 5px 0px; +} + +.container .product .title { + font-size: 20px; +} + +.container .product .shopIn { + display: flex; + flex-direction: row; + justify-content: start; + vertical-align: middle; +} + +.container .product .shopIn span,button{ + display: flex; + vertical-align: middle; + margin: 10px 10px; + font-size: 30px; +} + +.container .product .shopIn button>span.buttonModifier { + text-align: center; + margin: 0px; + padding: 3px; +} + +.container .product .shopIn button{ + border-radius: 30px; + border-color: #006a4e; + background-color: #2e856e; + width: 40px; + height: 40px; + text-align: center; + padding: 0px 10px; + color: #b8d5cd; + font-size: 30px; +} + +.container .product .size { + font-size: 20px; +} + +.container .product .description{ + display: flex; + flex-direction: column; + justify-content: center; + text-align: justify; + height: 150px; + font-size: 20px; +} \ No newline at end of file diff --git a/Aufgaben/Aufgabe_05_2020-05-27/product-medium.css b/Aufgaben/Aufgabe_05_2020-05-27/product-medium.css new file mode 100644 index 0000000..a5579e6 --- /dev/null +++ b/Aufgaben/Aufgabe_05_2020-05-27/product-medium.css @@ -0,0 +1,94 @@ +#übersicht { + display: flex; + flex-direction: column; + align-items: center; +} + +.container { + display: flex; + flex-direction: row; + justify-content: center; + flex-wrap: wrap; + margin: 10px 0px; + padding: 0px 10px; +} + +.container .product { + display: flex; + flex-direction: column; + justify-content: center; + padding: 10px; + align-items: center; + border: solid #006a4e; + background-color: #b8d5cd; + border-radius: 40px; + margin: 10px 20px; + width: 40%; +} + +.container .product img { + width: 90%; + height: width; + max-height: 400px; + border: solid #006a4e; + border-radius: 40px; + overflow: hidden; + object-fit: fill; +} + +.container .product p, h3 { + margin: 5px 0px; +} + +.container .product .title { + font-size: 30px; +} + +.container .product .shopIn { + display: flex; + flex-direction: row; + justify-content: start; + vertical-align: middle; +} + +.container .product .shopIn span,button{ + display: flex; + vertical-align: middle; + margin: 10px 10px; + font-size: 30px; +} + +.container .product .shopIn button>span.buttonModifier { + text-align: center; + margin: 0px; + padding: 3px; +} + +.container .product .shopIn button{ + border-radius: 30px; + border-color: #006a4e; + background-color: #2e856e; + width: 40px; + height: 40px; + text-align: center; + padding: 0px 10px; + color: #b8d5cd; + font-size: 30px; +} + +.container .product .size { + font-size: 25px; +} + +.container .product .description{ + display: flex; + flex-direction: column; + justify-content: center; + text-align: justify; + height: 150px; +} + +#bunt,#grün,#special { + font-size: 50px; + color: #006a4e; +} \ No newline at end of file diff --git a/Aufgaben/Aufgabe_05_2020-05-27/product-small.css b/Aufgaben/Aufgabe_05_2020-05-27/product-small.css new file mode 100644 index 0000000..3d0f2e0 --- /dev/null +++ b/Aufgaben/Aufgabe_05_2020-05-27/product-small.css @@ -0,0 +1,87 @@ +.container { + display: flex; + flex-direction: column; + justify-content: center; + margin: 10px 0px; + padding: 0px 10px; +} + +.container .product { + display: flex; + flex-direction: column; + justify-content: center; + padding: 10px; + align-items: center; + border: solid #006a4e; + background-color: #b8d5cd; + border-radius: 40px; + margin: 10px 0px; +} + +.container .product img { + width: 90%; + height: auto; + max-height: 300px; + border: solid #006a4e; + border-radius: 40px; + overflow: hidden; + object-fit: fill; +} + +.container .product p, h3 { + margin: 5px 0px; +} + +.container .product .title { + font-size: 20px; +} + +.container .product .shopIn { + display: flex; + flex-direction: row; + justify-content: start; + vertical-align: middle; +} + +.container .product .shopIn span,button{ + display: flex; + vertical-align: middle; + margin: 10px 10px; + font-size: 30px; +} + +.container .product .shopIn button>span.buttonModifier { + text-align: center; + margin: 0px; + padding: 3px; +} + +.container .product .shopIn button{ + border-radius: 30px; + border-color: #006a4e; + background-color: #2e856e; + width: 40px; + height: 40px; + text-align: center; + padding: 0px 10px; + color: #b8d5cd; + font-size: 30px; +} + +.container .product .size { + font-size: 20px; +} + +.container .product .description{ + display: flex; + flex-direction: column; + justify-content: center; + text-align: justify; + height: 100px; +} + +#bunt,#grün,#special { + text-align: center; + font-size: 30px; + color: #006a4e; +} \ No newline at end of file diff --git a/Aufgaben/Aufgabe_05_2020-05-27/product.css b/Aufgaben/Aufgabe_05_2020-05-27/product.css new file mode 100644 index 0000000..e84906b --- /dev/null +++ b/Aufgaben/Aufgabe_05_2020-05-27/product.css @@ -0,0 +1,76 @@ +.container { + display: flex; + flex-direction: column; + justify-content: center; + margin: 10px 0px; + padding: 0px 10px; +} + +.container .product { + display: flex; + flex-direction: column; + justify-content: center; + padding: 10px; + align-items: center; + border: solid #006a4e; + background-color: #b8d5cd; + border-radius: 40px; +} + +.container .product img { + width: 90%; + height: auto; + max-height: 300px; + border: solid #006a4e; + border-radius: 40px; + overflow: hidden; + object-fit: none; +} + +.container .product p, h3 { + margin: 5px 0px; +} + +.container .product .title { + font-size: 20px; +} + +.container .product .shopIn { + display: flex; + flex-direction: row; + justify-content: start; + vertical-align: middle; +} + +.container .product .shopIn span,button{ + display: flex; + vertical-align: middle; + margin: 10px 10px; + font-size: 30px; +} + +.container .product .shopIn button>span.buttonModifier { + text-align: center; + margin: 0px; + padding: 3px; +} + +.container .product .shopIn button{ +border-radius: 30px; +border-color: #006a4e; +background-color: #2e856e; +width: 40px; +height: 40px; +text-align: center; +padding: 0px 10px; +color: #b8d5cd; +font-size: 30px; +} + +.container .product .size { + font-size: 20px; +} + +.container .product .description{ + text-align: justify; +} \ No newline at end of file diff --git a/Aufgaben/Aufgabe_05_2020-05-27/script.js b/Aufgaben/Aufgabe_05_2020-05-27/script.js new file mode 100644 index 0000000..97a0453 --- /dev/null +++ b/Aufgaben/Aufgabe_05_2020-05-27/script.js @@ -0,0 +1,206 @@ +"use strict"; +// Datensammlung für Produkte +let categories = [ + { + title: "Special Offers!", + id: "special", + products: [ + { + title: "Color: Rainbow", + price: 3279.99, + size: "4m²", + imgName: "grass-rainbow-square.png", + description: "If you can't choose one color, go and catch them all!" + }, { + title: "Color: White", + price: 3279.99, + size: "4m²", + imgName: "grass-white.png", + description: "The appearance of many sparkling stars on your garden floor." + }, { + title: "Color: Black", + price: 3279.99, + size: "4m²", + imgName: "grass-black.png", + description: "Dark as the night. Be careful not to form a black hole!" + }, { + title: "Pattern: Murica", + price: 3279.99, + size: "4m²", + imgName: "grass-green-murica.png", + description: "Texas, Trump, Guns & Hamburgers" + }, { + title: "Pattern: Schachbrett", + price: 3279.99, + size: "4m²", + imgName: "grass-green-chess-square.png", + description: "Show your intellect on your own lawn and embarrass your opponents!" + } + ] + }, { + title: "Bunte Gräser", + id: "bunt", + products: [ + { + title: "Color: Green", + price: 2339.99, + size: "4m²", + imgName: "grass-green.png", + description: "The standard model in our range. Ensures a natural look and pleasant freshness in your living room!" + }, { + title: "Color: Desert", + price: 2339.99, + size: "4m²", + imgName: "grass-yellow.png", + description: "Summer, sun and oh my god, I'm hot! Are they pyramids in my garden ?!" + }, { + title: "Color: Beach", + price: 2339.99, + size: "4m²", + imgName: "grass-orange.png", + description: "Summer, sun and hot feelings!" + }, { + title: "Pattern: Hell", + price: 2339.99, + size: "4m²", + imgName: "grass-red.png", + description: "Look into the abyss that could await you after your death and invite guests to it!" + }, { + title: "Pattern: Unicorn", + price: 2339.99, + size: "4m²", + imgName: "grass-pink.png", + description: "PINK FLUFFY UNICORN, DANCING ON RAINBOWS (which you can also buy in here) !!!" + }, { + title: "Pattern: Grape", + price: 2339.99, + size: "4m²", + imgName: "grass-purple.png", + description: "It looks purple. Do you have to say more?" + }, { + title: "Pattern: Atlantic", + price: 2339.99, + size: "4m²", + imgName: "grass-blue.png", + description: "Blue like the ocean. A deep look and mysterious nature." + } + ] + }, { + title: "Green-Tones", + id: "grün", + products: [ + { + title: "Green: 3B", + price: 3499.99, + size: "10m²", + imgName: "grass-green-dark-3.png", + description: "Green in every way. Nothing more to know about it." + }, { + title: "Green: 2B", + price: 3499.99, + size: "10m²", + imgName: "grass-green-dark-2.png", + description: "Green in every way. Nothing more to know about it." + }, { + title: "Green: B", + price: 3499.99, + size: "10m²", + imgName: "grass-green-dark-1.png", + description: "Green in every way. Nothing more to know about it." + }, { + title: "Green: HB", + price: 2339.99, + size: "10m²", + imgName: "grass-green.png", + description: "The standard model in our range. Ensures a natural look and pleasant freshness in your living room!" + }, { + title: "Green: H", + price: 3499.99, + size: "10m²", + imgName: "grass-green-light-1.png", + description: "Green in every way. Nothing more to know about it." + }, { + title: "Green: 2H", + price: 3499.99, + size: "10m²", + imgName: "grass-green-light-2.png", + description: "Green in every way. Nothing more to know about it." + }, { + title: "Green: 3H", + price: 3499.99, + size: "10m²", + imgName: "grass-green-light-3.png", + description: "Green in every way. Nothing more to know about it." + } + ] + } +]; +printProducts(); +//create Structure; +function printProducts() { + for (let nummer = 0; nummer < categories.length; nummer++) { + let heading = document.createElement("h1"); + heading.setAttribute("id", categories[nummer].id); + heading.innerHTML = `${categories[nummer].title}`; + document.querySelector("#übersicht").appendChild(heading); + let container = document.createElement("div"); + container.classList.add("container"); + document.querySelector("#übersicht").appendChild(container); + for (let index = 0; index < categories[nummer].products.length; index++) { + let product = document.createElement("div"); + product.classList.add("product"); + product.innerHTML = ` +
Size: ${categories[nummer].products[index].size}
+${categories[nummer].products[index].description}
+Size: 4m²
tag class content +If you can't choose one color, go and catch them all!
tag content +Size: ${categories[nummer].products[index].size}
+${categories[nummer].products[index].description}
+Size: 4m²
tag class content +If you can't choose one color, go and catch them all!
tag content +