diff --git a/Mood Board Generator/index.html b/Mood Board Generator/index.html new file mode 100644 index 000000000..7dd3eb2a4 --- /dev/null +++ b/Mood Board Generator/index.html @@ -0,0 +1,19 @@ + + + + + + Mood Board Generator + + + +
+

Mood Board Generator

+ + +
+
+ + + + diff --git a/Mood Board Generator/script.js b/Mood Board Generator/script.js new file mode 100644 index 000000000..a1f871d0f --- /dev/null +++ b/Mood Board Generator/script.js @@ -0,0 +1,17 @@ +document.getElementById('addImageBtn').addEventListener('click', function () { + const imageInput = document.getElementById('imageInput'); + const moodBoard = document.getElementById('moodBoard'); + + for (let i = 0; i < imageInput.files.length; i++) { + const file = imageInput.files[i]; + const reader = new FileReader(); + + reader.onload = function (e) { + const img = document.createElement('img'); + img.src = e.target.result; + moodBoard.appendChild(img); + }; + + reader.readAsDataURL(file); + } +}); diff --git a/Mood Board Generator/style.css b/Mood Board Generator/style.css new file mode 100644 index 000000000..d5303c02c --- /dev/null +++ b/Mood Board Generator/style.css @@ -0,0 +1,49 @@ +body { + font-family: Arial, sans-serif; + background-color: #f9f9f9; + color: #333; + margin: 0; + padding: 20px; +} + +.container { + max-width: 600px; + margin: 0 auto; +} + +h1 { + text-align: center; + margin-bottom: 20px; +} + +input[type="file"] { + width: 100%; + margin-bottom: 10px; +} + +button { + padding: 10px 20px; + background-color: #007bff; + color: white; + border: none; + cursor: pointer; + width: 100%; +} + +button:hover { + background-color: #0056b3; +} + +.mood-board { + display: flex; + flex-wrap: wrap; + gap: 10px; + margin-top: 20px; +} + +.mood-board img { + max-width: 100px; + max-height: 100px; + object-fit: cover; + border: 2px solid #007bff; +}