feat: add edition selector for Java and Bedrock versions with corresponding UI and logic updates

This commit is contained in:
zhangyuheng
2026-03-11 15:44:41 +08:00
parent 1e9f9cdf11
commit e3517d328c
3 changed files with 222 additions and 5 deletions

View File

@@ -1023,3 +1023,48 @@ body {
margin-top: 40px;
margin-bottom: 20px;
}
/* Edition Selector */
.edition-selector {
margin-top: 24px;
text-align: center;
}
.edition-toggle {
display: inline-flex;
background: #f5f5f7;
border-radius: 12px;
padding: 4px;
gap: 4px;
}
.edition-btn {
padding: 10px 28px;
border: none;
background: transparent;
border-radius: 10px;
cursor: pointer;
font-size: 0.95rem;
font-weight: 500;
color: #86868b;
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
gap: 8px;
}
.edition-btn.active {
background: #fff;
color: #1d1d1f;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.edition-btn:hover:not(.active) {
color: #1d1d1f;
}
.server-address-box span {
color: #86868b;
font-size: 0.9rem;
white-space: nowrap;
}