|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <title>EndlesLauncher</title> |
| 6 | + <style> |
| 7 | + :root { |
| 8 | + --bg: #1a0f23; |
| 9 | + /** Liquied Glass AH**/ |
| 10 | + --accent: 3a243d; |
| 11 | + --accent-hover: #ff7b34; |
| 12 | + --text: #ffffff; |
| 13 | + --light-gray: #cccccc; |
| 14 | + --button-bg: #2a1b2e; |
| 15 | + --button-hover: #3a243d; |
| 16 | + } |
| 17 | + |
| 18 | + * { |
| 19 | + margin: 0; |
| 20 | + padding: 0; |
| 21 | + box-sizing: border-box; |
| 22 | + } |
| 23 | + |
| 24 | + body { |
| 25 | + font-family: 'Segoe UI', sans-serif; |
| 26 | + background-color: var(--bg); |
| 27 | + background-image: url('./background.png'); |
| 28 | + background-repeat: repeat; |
| 29 | + background-size: 7%; |
| 30 | + color: var(--text); |
| 31 | + display: flex; |
| 32 | + height: 100vh; |
| 33 | + overflow: hidden; |
| 34 | + } |
| 35 | + |
| 36 | + .sidebar { |
| 37 | + background-color: rgba(26, 15, 35, 0.85); |
| 38 | + width: 180px; |
| 39 | + padding: 20px; |
| 40 | + display: flex; |
| 41 | + flex-direction: column; |
| 42 | + align-items: center; |
| 43 | + gap: 20px; |
| 44 | + border-right: 2px solid var(--accent); |
| 45 | + } |
| 46 | + |
| 47 | + .sidebar img { |
| 48 | + margin-top: 10px; |
| 49 | + border-radius: 4px; |
| 50 | + margin-bottom: 15px; |
| 51 | + width: 140px; |
| 52 | + } |
| 53 | + |
| 54 | + .sidebar button { |
| 55 | + width: 100%; |
| 56 | + padding: 10px; |
| 57 | + background: linear-gradient(to right, #1a0f23, var(--accent-hover)); |
| 58 | + color: var(--text); |
| 59 | + border: none; |
| 60 | + border-radius: 5px; |
| 61 | + font-size: 14px; |
| 62 | + font-weight: bold; |
| 63 | + cursor: pointer; |
| 64 | + transition: opacity 0.2s ease-in-out; |
| 65 | + } |
| 66 | + |
| 67 | + .sidebar button:hover { |
| 68 | + opacity: 0.85; |
| 69 | + } |
| 70 | + |
| 71 | + .main { |
| 72 | + flex: 1; |
| 73 | + display: flex; |
| 74 | + flex-direction: column; |
| 75 | + padding: 30px 40px; |
| 76 | + } |
| 77 | + |
| 78 | + .header { |
| 79 | + display: flex; |
| 80 | + justify-content: flex-end; |
| 81 | + margin-bottom: 30px; |
| 82 | + } |
| 83 | + |
| 84 | + select { |
| 85 | + background: var(--button-bg); |
| 86 | + color: var(--light-gray); |
| 87 | + border: 1px solid var(--accent); |
| 88 | + padding: 10px 14px; |
| 89 | + font-size: 16px; |
| 90 | + border-radius: 6px; |
| 91 | + appearance: none; |
| 92 | + cursor: pointer; |
| 93 | + box-shadow: 0 0 8px rgba(250, 84, 28, 0.4); |
| 94 | + } |
| 95 | + |
| 96 | + select:focus { |
| 97 | + outline: none; |
| 98 | + box-shadow: 0 0 0 2px var(--accent-hover); |
| 99 | + } |
| 100 | + |
| 101 | + .title { |
| 102 | + font-size: 32pt; |
| 103 | + text-align: center; |
| 104 | + margin-bottom: 40px; |
| 105 | + color: #c8a2ff; |
| 106 | + text-shadow: 0 0 8px rgba(250, 84, 28, 0.6); |
| 107 | + } |
| 108 | + |
| 109 | + .center { |
| 110 | + margin-top: 15px; |
| 111 | + flex: 1; |
| 112 | + display: flex; |
| 113 | + flex-direction: column; |
| 114 | + padding: 30px 40px; |
| 115 | + } |
| 116 | + |
| 117 | + .center button { |
| 118 | + align-self: center; |
| 119 | + padding: 14px 32px; |
| 120 | + font-size: 18px; |
| 121 | + background: linear-gradient(to right, var(--accent), var(--accent-hover)); |
| 122 | + color: var(--text); |
| 123 | + border: none; |
| 124 | + border-radius: 8px; |
| 125 | + font-weight: bold; |
| 126 | + box-shadow: 0 0 10px rgba(250, 84, 28, 0.5); |
| 127 | + cursor: pointer; |
| 128 | + transition: transform 0.2s ease, box-shadow 0.2s ease; |
| 129 | + } |
| 130 | + |
| 131 | + .center button:hover { |
| 132 | + transform: scale(1.05); |
| 133 | + box-shadow: 0 0 12px rgba(255, 123, 52, 0.8); |
| 134 | + } |
| 135 | + </style> |
| 136 | +</head> |
| 137 | +<body> |
| 138 | + <div class="sidebar"> |
| 139 | + <img src="./logo.png" alt="EndlesLauncher Logo"> |
| 140 | + <button>Home</button> |
| 141 | + <button>Settings</button> |
| 142 | + <button>About</button> |
| 143 | + </div> |
| 144 | + <div class="main"> |
| 145 | + <div class="header"> |
| 146 | + <select id="accountDropdown"> |
| 147 | + <option>Select Account</option> |
| 148 | + <option>+ Add Account</option> |
| 149 | + </select> |
| 150 | + </div> |
| 151 | + <div class="center"> |
| 152 | + <div class="title">EndlesLauncher</div> |
| 153 | + <button onclick="pyplay.play()">Play Minecraft</button> |
| 154 | + </div> |
| 155 | + </div> |
| 156 | + |
| 157 | + <script src="qrc:///qtwebchannel/qwebchannel.js"></script> |
| 158 | + <script> |
| 159 | + new QWebChannel(qt.webChannelTransport, function(channel) { |
| 160 | + window.pyplay = channel.objects.pyplay; |
| 161 | + }); |
| 162 | + |
| 163 | + const dropdown = document.getElementById("accountDropdown"); |
| 164 | + |
| 165 | + window.setAccounts = (accounts) => { |
| 166 | + while (dropdown.options.length > 2) { |
| 167 | + dropdown.remove(1); |
| 168 | + } |
| 169 | + |
| 170 | + accounts.forEach((acc, i) => { |
| 171 | + const option = document.createElement("option"); |
| 172 | + option.text = `${acc.username} (${acc.uuid.slice(0, 8)})`; |
| 173 | + dropdown.add(option, dropdown.options.length - 1); |
| 174 | + }); |
| 175 | + }; |
| 176 | + |
| 177 | + dropdown.addEventListener("change", () => { |
| 178 | + pyplay.onAccountSelected(dropdown.selectedIndex); |
| 179 | + }); |
| 180 | + </script> |
| 181 | +</body> |
| 182 | +</html> |
0 commit comments