Skip to content

Commit bb59596

Browse files
committed
game menu design update
1 parent f6a44c1 commit bb59596

3 files changed

Lines changed: 352 additions & 122 deletions

File tree

controller.html

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -48,24 +48,15 @@
4848
.ping-badge.ping-warn { color: #FF9800; }
4949
.ping-badge.ping-bad { color: #f44336; }
5050

51-
.test-controller { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 999; width: max(280px, 25vw); max-width: 85vw; pointer-events: auto; }
51+
.test-controller { position: fixed; top: 59px; right: 15px; z-index: 999; pointer-events: auto; }
5252
.test-controller.hidden { display: none; }
53-
.test-controller-toggle { width: 100%; height: 45px; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(0, 0, 0, 0.8); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; color: rgba(255, 255, 255, 0.8); font-size: 15px; cursor: pointer; transition: all 0.3s; }
54-
.test-controller-toggle:hover { background: rgba(0, 0, 0, 0.9); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
55-
.test-controller-toggle .emoji { font-size: 20px; }
56-
.test-controller-toggle .arrow { font-size: 12px; transition: transform 0.3s; }
57-
.test-controller.expanded .test-controller-toggle .arrow { transform: rotate(180deg); }
58-
.test-controller-links { display: none; flex-direction: column; gap: 8px; margin-top: 8px; padding: 12px; background: rgba(0, 0, 0, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; }
53+
.test-controller-toggle { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 6px; font-size: 20px; cursor: pointer; transition: all 0.3s; }
54+
.test-controller-toggle:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); transform: scale(1.05); }
55+
.test-controller.expanded .test-controller-toggle { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); }
56+
.test-controller-links { display: none; flex-direction: column; gap: 6px; margin-top: 8px; padding: 10px; background: rgba(0, 0, 0, 0.9); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; min-width: 180px; position: absolute; right: 0; }
5957
.test-controller.expanded .test-controller-links { display: flex; }
60-
.test-controller-link { display: flex; align-items: center; justify-content: center; height: 40px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; color: #1AAFFF; text-decoration: none; font-size: 14px; transition: all 0.3s; }
58+
.test-controller-link { display: flex; align-items: center; justify-content: center; height: 36px; padding: 0 12px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; color: #1AAFFF; text-decoration: none; font-size: 12px; white-space: nowrap; transition: all 0.3s; }
6159
.test-controller-link:hover { background: rgba(255, 255, 255, 0.15); border-color: #1AAFFF; }
62-
63-
@media (orientation: landscape) and (max-height: 600px) {
64-
.test-controller { bottom: 10px; width: max(250px, 20vw); }
65-
.test-controller-toggle { height: 38px; font-size: 14px; }
66-
.test-controller-links { padding: 10px; gap: 6px; }
67-
.test-controller-link { height: 35px; font-size: 13px; }
68-
}
6960
</style>
7061
</head>
7162
<body>
@@ -75,13 +66,9 @@
7566
<div class="ping-badge" id="pingBadge"></div>
7667
</div>
7768
<div class="test-controller" id="testController">
78-
<button class="test-controller-toggle" id="testControllerToggle">
79-
<span class="emoji">+</span>
80-
<span>Test Controller</span>
81-
<span class="arrow">v</span>
82-
</button>
69+
<button class="test-controller-toggle" id="testControllerToggle" title="Test Controller">🎮</button>
8370
<div class="test-controller-links">
84-
<a href="https://hardwaretester.com/gamepad" target="_blank" rel="noopener" class="test-controller-link">hardwaretester.com/gamepad</a>
71+
<a href="https://hardwaretester.com/gamepad" target="_blank" rel="noopener" class="test-controller-link">hardwaretester.com</a>
8572
<a href="https://gamepadtester.com/" target="_blank" rel="noopener" class="test-controller-link">gamepadtester.com</a>
8673
</div>
8774
</div>

0 commit comments

Comments
 (0)