From 3c802283247fb695d08b234d74aec1f9b5dc939f Mon Sep 17 00:00:00 2001 From: MCHost Date: Mon, 23 Jun 2025 16:16:25 -0400 Subject: [PATCH] Add MC font to Auth --- includes/auth.js | 20 ++++++++++++++++++++ public/index.html | 6 +++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/includes/auth.js b/includes/auth.js index aa3a8fe..33e4500 100644 --- a/includes/auth.js +++ b/includes/auth.js @@ -211,6 +211,16 @@ export function handleAutoLogin(req, res) { h1 { font-size: 2.25em; color: white; text-align: center; margin: 0; } .spinner { border: 4px solid rgba(255, 255, 255, 0.3); border-top: 4px solid #ffffff; border-radius: 50%; width: 24px; height: 24px; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } + @font-face { + font-family: 'Minecraft'; + src: url('../font/MinecraftRegular-Bmg3.otf') format('opentype'); + font-weight: normal; + font-style: normal; + font-display: swap; + } + h1, h2, h3, h4, h5, h6 { + font-family: 'Minecraft', sans-serif; /* Apply Minecraft font to headers */ + } @@ -268,6 +278,16 @@ export function handleAutoLogin(req, res) { h1 { font-size: 2.25em; color: white; text-align: center; margin: 0; } .spinner { border: 4px solid rgba(255, 255, 255, 0.3); border-top: 4px solid #ffffff; border-radius: 50%; width: 24px; height: 24px; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } + @font-face { + font-family: 'Minecraft'; + src: url('../font/MinecraftRegular-Bmg3.otf') format('opentype'); + font-weight: normal; + font-style: normal; + font-display: swap; + } + h1, h2, h3, h4, h5, h6 { + font-family: 'Minecraft', sans-serif; /* Apply Minecraft font to headers */ + } diff --git a/public/index.html b/public/index.html index 47fe5ae..3a06dc0 100644 --- a/public/index.html +++ b/public/index.html @@ -4,7 +4,7 @@ - My-MC Server Panel + My-MC Panel @@ -20,7 +20,7 @@