Содержимое окна ${index}.
+ `; + document.querySelector('.desktop').appendChild(newWindow); + + // Переключаемся на новое окно + toggleWindow(index); + } +} diff --git a/console/shell/style/styles.css b/console/shell/style/styles.css new file mode 100644 index 0000000..9304b79 --- /dev/null +++ b/console/shell/style/styles.css @@ -0,0 +1,132 @@ +body { + margin: 0; + padding: 0; + font-family: Arial, sans-serif; +} + +.taskbar { + background-color: #333; + height: 40px; + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 10px; +} + +.start-menu { + position: relative; +} + +.start-button { + background-color: transparent; + border: none; + color: #fff; + padding: 10px 20px; + font-size: 14px; + cursor: pointer; + transition: background-color 0.3s ease; +} + +.start-button:hover { + background-color: rgba(255, 255, 255, 0.1); +} + +.start-menu-items { + position: absolute; + top: 100%; + left: 0; + width: 200px; + background-color: #EEE; + padding: 10px; + list-style: none; + margin: 0; + display: none; +} + +.start-menu-item { + border-radius: 10px; + padding: 10px 10px; + cursor: pointer; + transition: background-color 0.3s ease; +} + +.start-menu-item:hover { + background-color: #1100ff; + color: #fff; +} + +.taskbar-buttons { + display: flex; +} + +.taskbar-button { + background-color: transparent; + border: none; + color: #fff; + padding: 10px 20px; + margin-right: 10px; + font-size: 14px; + cursor: pointer; + transition: background-color 0.3s ease; +} + +.taskbar-button:hover { + background-color: rgba(255, 255, 255, 0.1); +} + +.desktop { + background-image: linear-gradient(to bottom, #006eff, #b700ff); + height: calc(100vh - 40px); + display: flex; + justify-content: center; + align-items: center; +} + +.window { + background-color: #fff; + width: 400px; + border-radius: 5px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); + padding: 20px; + text-align: center; +} + +.window h2 { + font-size: 18px; + margin-bottom: 10px; +} + +.window p { + font-size: 14px; +} + +.start-menu-items.show { + border-radius: 10px; + margin-top: 10px; + display: block; +} + +.buttoninstall { + cursor: pointer; + padding-left: 20px; + padding-right: 20px; + padding-top: 10px; + padding-bottom: 10px; + border-radius: 15px; + border: none; + transition: 0.2s; + background-color: #1100ff; + color: #fff; + font-size: 20px; +} + +.buttoninstall:hover { + background-color: #564afa; + color: #fff; +} + +.step20percent { + width: 20px; + height: 100%; + background-color: #ffffff; +}