mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-18 17:53:29 +00:00
standardize UI colors to fit brand guidelines (#3754)
## Description: We have brand colors: <img width="738" height="900" alt="Screenshot 2026-04-25 at 12 52 29 PM" src="https://github.com/user-attachments/assets/aac69e87-91f2-4c3f-9f1e-f69f48f5943e" /> So update the homepage & in-game UI to use those colors: <img width="1185" height="946" alt="Screenshot 2026-04-25 at 12 51 06 PM" src="https://github.com/user-attachments/assets/89a0b12c-2db1-43d4-9500-fcf405c0f7ff" /> Also updated buttons to use the o-button element ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: evan
This commit is contained in:
+14
-13
@@ -241,12 +241,12 @@ export class AccountModal extends BaseModal {
|
||||
|
||||
private renderLogoutButton(): TemplateResult {
|
||||
return html`
|
||||
<button
|
||||
@click="${this.handleLogout}"
|
||||
class="px-6 py-2 text-sm font-bold text-white uppercase tracking-wider bg-red-600/80 hover:bg-red-600 border border-red-500/50 rounded-lg transition-all shadow-lg hover:shadow-red-900/40"
|
||||
>
|
||||
${translateText("account_modal.log_out")}
|
||||
</button>
|
||||
<o-button
|
||||
variant="danger"
|
||||
size="md"
|
||||
translationKey="account_modal.log_out"
|
||||
@click=${this.handleLogout}
|
||||
></o-button>
|
||||
`;
|
||||
}
|
||||
|
||||
@@ -318,19 +318,20 @@ export class AccountModal extends BaseModal {
|
||||
name="email"
|
||||
.value="${this.email}"
|
||||
@input="${this.handleEmailInput}"
|
||||
class="w-full pl-4 pr-12 py-3 bg-white/5 border border-white/10 rounded-xl text-white placeholder-white/20 focus:outline-none focus:ring-2 focus:ring-blue-500/50 focus:border-blue-500/50 transition-all font-medium hover:bg-white/10"
|
||||
class="w-full pl-4 pr-12 py-3 bg-white/5 border border-white/10 rounded-xl text-white placeholder-white/20 focus:outline-none focus:ring-2 focus:ring-malibu-blue/50 focus:border-malibu-blue/50 transition-all font-medium hover:bg-white/10"
|
||||
placeholder="${translateText(
|
||||
"account_modal.email_placeholder",
|
||||
)}"
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
<button
|
||||
@click="${this.handleSubmit}"
|
||||
class="w-full px-6 py-3 text-sm font-bold text-white uppercase tracking-wider bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-500 hover:to-blue-600 rounded-xl transition-all shadow-lg hover:shadow-blue-900/40 border border-white/5"
|
||||
>
|
||||
${translateText("account_modal.get_magic_link")}
|
||||
</button>
|
||||
<o-button
|
||||
variant="primary"
|
||||
width="block"
|
||||
size="md"
|
||||
translationKey="account_modal.get_magic_link"
|
||||
@click=${this.handleSubmit}
|
||||
></o-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user