diff --git a/static/js/game.js b/static/js/game.js
index 965c583..795d59a 100644
--- a/static/js/game.js
+++ b/static/js/game.js
@@ -131,6 +131,8 @@ function handleAchievementUnlock(data) {
function fetchUserAchievements() {
const achievementsGrid = document.getElementById('achievementsGrid');
+ const achievementInfoBox = document.getElementById('achievementInfoBox');
+
if (!achievementsGrid) {
console.error('Achievements grid not found');
return;
@@ -138,9 +140,16 @@ function fetchUserAchievements() {
if (!currentUser) {
displaySignInMessage(achievementsGrid, 'achievements');
+ if (achievementInfoBox) {
+ achievementInfoBox.style.display = 'none';
+ }
return;
}
+ if (achievementInfoBox) {
+ achievementInfoBox.style.display = 'block';
+ }
+
fetch('/get-user-achievements', {
headers: {
'Authorization': getSessionToken()
@@ -169,12 +178,11 @@ function displaySignInMessage(container, feature) {
container.innerHTML = `
@@ -2056,7 +2064,7 @@ function onCustomizationTabOpen() {
}
// Show loading indicator immediately
- skinCustomization.innerHTML = '
Loading skins...
';
+ // skinCustomization.innerHTML = '
Loading skins...
';
// Load skin options asynchronously
setTimeout(() => {
diff --git a/static/js/skinselector.js b/static/js/skinselector.js
index 73f127e..6e1e751 100644
--- a/static/js/skinselector.js
+++ b/static/js/skinselector.js
@@ -31,9 +31,9 @@ function loadSkinOptions() {
function fetchAndCacheSkins() {
const skinCustomization = document.getElementById('skinCustomization');
- if (skinCustomization) {
- skinCustomization.innerHTML = '
Loading skins...
';
- }
+ // if (skinCustomization) {
+ // skinCustomization.innerHTML = '
Loading skins...
';
+ // }
const cachedEtag = localStorage.getItem('skinCacheEtag');
const headers = {
diff --git a/static/styles.css b/static/styles.css
index 2fbf282..01e74ae 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -1389,16 +1389,37 @@ body {
justify-content: center;
height: 100%;
text-align: center;
- color: #ffffff;
+ color: #00ffff;
font-family: 'Orbitron', sans-serif;
+ padding: 20px;
+ background-color: rgba(18, 4, 88, 0.6);
+ border-radius: 10px;
+ box-shadow: 0 0 10px #ff00ff, inset 0 0 5px #00ffff;
}
+
.sign-in-message p,
.no-achievements-message p,
.error-message p {
- margin-bottom: 20px;
+ margin-bottom: 0;
+ font-size: 16px;
}
+@media screen and (max-width: 600px) {
+ .sign-in-message,
+ .no-achievements-message,
+ .error-message {
+ padding: 15px;
+ }
+
+ .sign-in-message p,
+ .no-achievements-message p,
+ .error-message p {
+ font-size: 14px;
+ }
+}
+
+
.glowing-button {
background-color: transparent;
border: 2px solid #00ffff;