0Mart00 commited on
Commit ·
b8bd724
1
Parent(s): c3a0604
Theme: dark green monochrome - all templates rewritten
Browse files- CHANGELOG.md +2 -1
- src/static/css/theme.css +46 -92
- src/static/js/theme.js +9 -146
- src/wordgame/templates/404.html +10 -10
- src/wordgame/templates/admin.html +80 -80
- src/wordgame/templates/base.html +60 -134
- src/wordgame/templates/dashboard.html +18 -18
- src/wordgame/templates/forgot-password.html +8 -8
- src/wordgame/templates/jatek-valaszto.html +168 -247
- src/wordgame/templates/jatek.html +19 -19
- src/wordgame/templates/login.html +21 -30
- src/wordgame/templates/premium.html +32 -48
- src/wordgame/templates/rangletra.html +17 -17
- src/wordgame/templates/register.html +19 -27
- src/wordgame/templates/reset-password.html +7 -7
CHANGELOG.md
CHANGED
|
@@ -74,4 +74,5 @@
|
|
| 74 |
- Alap játék funkciók
|
| 75 |
- Supabase integráció
|
| 76 |
- Alap dark mode (hibás)
|
| 77 |
-
- Alap nyelv támogatás
|
|
|
|
|
|
| 74 |
- Alap játék funkciók
|
| 75 |
- Supabase integráció
|
| 76 |
- Alap dark mode (hibás)
|
| 77 |
+
- Alap nyelv támogatás
|
| 78 |
+
|
src/static/css/theme.css
CHANGED
|
@@ -1,99 +1,58 @@
|
|
| 1 |
-
/* Theme CSS -
|
| 2 |
|
| 3 |
-
/* Light theme (default) */
|
| 4 |
:root {
|
| 5 |
-
--bg-primary: #
|
| 6 |
-
--bg-secondary: #
|
| 7 |
-
--bg-tertiary: #
|
| 8 |
-
--bg-card: #
|
| 9 |
-
--text-primary: #
|
| 10 |
-
--text-secondary: #
|
| 11 |
-
--text-muted: #
|
| 12 |
-
--border-color: #
|
| 13 |
-
--border-light: #
|
| 14 |
-
--accent-primary: #
|
| 15 |
-
--accent-primary-hover: #
|
| 16 |
-
--accent-secondary: #
|
| 17 |
-
--cell-bg: #
|
| 18 |
-
--cell-border: #
|
| 19 |
-
--cell-border-active: #
|
| 20 |
-
--cell-correct: #
|
| 21 |
-
--cell-present: #
|
| 22 |
-
--cell-absent: #
|
| 23 |
-
--key-bg: #
|
| 24 |
-
--key-bg-hover: #
|
| 25 |
-
--key-text: #
|
| 26 |
-
--header-bg: #
|
| 27 |
-
--header-border: #
|
| 28 |
-
--shadow-color: rgba(0, 0, 0, 0.
|
| 29 |
-
--modal-bg: rgba(0, 0, 0, 0.
|
| 30 |
-
}
|
| 31 |
-
|
| 32 |
-
/*
|
| 33 |
-
.dark {
|
| 34 |
-
--bg-primary: #111827;
|
| 35 |
-
--bg-secondary: #1f2937;
|
| 36 |
-
--bg-tertiary: #0f172a;
|
| 37 |
-
--bg-card: #1f2937;
|
| 38 |
-
--text-primary: #f9fafb;
|
| 39 |
-
--text-secondary: #9ca3af;
|
| 40 |
-
--text-muted: #6b7280;
|
| 41 |
-
--border-color: #374151;
|
| 42 |
-
--border-light: #4b5563;
|
| 43 |
-
--accent-primary: #22c55e;
|
| 44 |
-
--accent-primary-hover: #16a34a;
|
| 45 |
-
--accent-secondary: #f59e0b;
|
| 46 |
-
--cell-bg: #0f172a;
|
| 47 |
-
--cell-border: #374151;
|
| 48 |
-
--cell-border-active: #9ca3af;
|
| 49 |
-
--cell-correct: #22c55e;
|
| 50 |
-
--cell-present: #f59e0b;
|
| 51 |
-
--cell-absent: #374151;
|
| 52 |
-
--key-bg: #374151;
|
| 53 |
-
--key-bg-hover: #4b5563;
|
| 54 |
-
--key-text: #f9fafb;
|
| 55 |
-
--header-bg: #0f172a;
|
| 56 |
-
--header-border: #1f2937;
|
| 57 |
-
--shadow-color: rgba(0, 0, 0, 0.3);
|
| 58 |
-
--modal-bg: rgba(0, 0, 0, 0.7);
|
| 59 |
-
}
|
| 60 |
-
|
| 61 |
-
/* Base styles using CSS variables */
|
| 62 |
body {
|
| 63 |
background-color: var(--bg-primary);
|
| 64 |
color: var(--text-primary);
|
| 65 |
transition: background-color 0.3s ease, color 0.3s ease;
|
| 66 |
}
|
| 67 |
|
| 68 |
-
/* Header styles */
|
| 69 |
header {
|
| 70 |
background-color: var(--header-bg);
|
| 71 |
border-color: var(--header-border);
|
| 72 |
-
box-shadow: 0
|
| 73 |
}
|
| 74 |
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
}
|
| 79 |
|
| 80 |
/* Text colors */
|
| 81 |
-
.text-primary {
|
| 82 |
-
|
| 83 |
-
}
|
| 84 |
-
|
| 85 |
-
.text-secondary {
|
| 86 |
-
color: var(--text-secondary);
|
| 87 |
-
}
|
| 88 |
-
|
| 89 |
-
.text-muted {
|
| 90 |
-
color: var(--text-muted);
|
| 91 |
-
}
|
| 92 |
|
| 93 |
/* Border colors */
|
| 94 |
-
.border-color {
|
| 95 |
-
border-color: var(--border-color);
|
| 96 |
-
}
|
| 97 |
|
| 98 |
/* Wordle cell styles */
|
| 99 |
.wordle-cella {
|
|
@@ -110,19 +69,19 @@ header {
|
|
| 110 |
.wordle-cella.correct {
|
| 111 |
background-color: var(--cell-correct);
|
| 112 |
border-color: var(--cell-correct);
|
| 113 |
-
color: #
|
| 114 |
}
|
| 115 |
|
| 116 |
.wordle-cella.present {
|
| 117 |
background-color: var(--cell-present);
|
| 118 |
border-color: var(--cell-present);
|
| 119 |
-
color: #
|
| 120 |
}
|
| 121 |
|
| 122 |
.wordle-cella.absent {
|
| 123 |
background-color: var(--cell-absent);
|
| 124 |
border-color: var(--cell-absent);
|
| 125 |
-
color:
|
| 126 |
}
|
| 127 |
|
| 128 |
/* Keyboard key styles */
|
|
@@ -138,17 +97,17 @@ header {
|
|
| 138 |
|
| 139 |
.keyboard-key.correct {
|
| 140 |
background-color: var(--cell-correct);
|
| 141 |
-
color: #
|
| 142 |
}
|
| 143 |
|
| 144 |
.keyboard-key.present {
|
| 145 |
background-color: var(--cell-present);
|
| 146 |
-
color: #
|
| 147 |
}
|
| 148 |
|
| 149 |
.keyboard-key.absent {
|
| 150 |
background-color: var(--cell-absent);
|
| 151 |
-
color:
|
| 152 |
}
|
| 153 |
|
| 154 |
/* Theme toggle button */
|
|
@@ -170,11 +129,6 @@ header {
|
|
| 170 |
border-color: var(--border-light);
|
| 171 |
}
|
| 172 |
|
| 173 |
-
.theme-toggle svg {
|
| 174 |
-
width: 1.25rem;
|
| 175 |
-
height: 1.25rem;
|
| 176 |
-
}
|
| 177 |
-
|
| 178 |
/* Modal styles */
|
| 179 |
.modal-overlay {
|
| 180 |
background-color: var(--modal-bg);
|
|
@@ -190,13 +144,13 @@ input, select, textarea {
|
|
| 190 |
input:focus, select:focus, textarea:focus {
|
| 191 |
border-color: var(--accent-primary);
|
| 192 |
outline: none;
|
| 193 |
-
box-shadow: 0 0 0 2px rgba(
|
| 194 |
}
|
| 195 |
|
| 196 |
/* Button styles */
|
| 197 |
.btn-primary {
|
| 198 |
background-color: var(--accent-primary);
|
| 199 |
-
color: #
|
| 200 |
}
|
| 201 |
|
| 202 |
.btn-primary:hover {
|
|
@@ -225,5 +179,5 @@ input:focus, select:focus, textarea:focus {
|
|
| 225 |
/* Selection styles */
|
| 226 |
::selection {
|
| 227 |
background-color: var(--accent-primary);
|
| 228 |
-
color: #
|
| 229 |
}
|
|
|
|
| 1 |
+
/* Theme CSS - Verbumix dark green monochrome */
|
| 2 |
|
|
|
|
| 3 |
:root {
|
| 4 |
+
--bg-primary: #0a0f0a;
|
| 5 |
+
--bg-secondary: #0f160f;
|
| 6 |
+
--bg-tertiary: #111a11;
|
| 7 |
+
--bg-card: #111a11;
|
| 8 |
+
--text-primary: #d8e8d8;
|
| 9 |
+
--text-secondary: #7a8a7a;
|
| 10 |
+
--text-muted: #4a5a4a;
|
| 11 |
+
--border-color: #1a2a1a;
|
| 12 |
+
--border-light: #1f301f;
|
| 13 |
+
--accent-primary: #1a8a1a;
|
| 14 |
+
--accent-primary-hover: #22aa22;
|
| 15 |
+
--accent-secondary: #3a5a3a;
|
| 16 |
+
--cell-bg: #0d140d;
|
| 17 |
+
--cell-border: #1a2a1a;
|
| 18 |
+
--cell-border-active: #2a4a2a;
|
| 19 |
+
--cell-correct: #1a8a1a;
|
| 20 |
+
--cell-present: #334433;
|
| 21 |
+
--cell-absent: #151f15;
|
| 22 |
+
--key-bg: #1a2a1a;
|
| 23 |
+
--key-bg-hover: #1f301f;
|
| 24 |
+
--key-text: #c8d8c8;
|
| 25 |
+
--header-bg: #060a06;
|
| 26 |
+
--header-border: #111a11;
|
| 27 |
+
--shadow-color: rgba(0, 0, 0, 0.5);
|
| 28 |
+
--modal-bg: rgba(0, 0, 0, 0.8);
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
/* Base styles */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
body {
|
| 33 |
background-color: var(--bg-primary);
|
| 34 |
color: var(--text-primary);
|
| 35 |
transition: background-color 0.3s ease, color 0.3s ease;
|
| 36 |
}
|
| 37 |
|
|
|
|
| 38 |
header {
|
| 39 |
background-color: var(--header-bg);
|
| 40 |
border-color: var(--header-border);
|
| 41 |
+
box-shadow: 0 2px 12px -2px var(--shadow-color);
|
| 42 |
}
|
| 43 |
|
| 44 |
+
footer {
|
| 45 |
+
background-color: var(--header-bg);
|
| 46 |
+
border-color: var(--header-border);
|
| 47 |
}
|
| 48 |
|
| 49 |
/* Text colors */
|
| 50 |
+
.text-primary { color: var(--text-primary); }
|
| 51 |
+
.text-secondary { color: var(--text-secondary); }
|
| 52 |
+
.text-muted { color: var(--text-muted); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
/* Border colors */
|
| 55 |
+
.border-color { border-color: var(--border-color); }
|
|
|
|
|
|
|
| 56 |
|
| 57 |
/* Wordle cell styles */
|
| 58 |
.wordle-cella {
|
|
|
|
| 69 |
.wordle-cella.correct {
|
| 70 |
background-color: var(--cell-correct);
|
| 71 |
border-color: var(--cell-correct);
|
| 72 |
+
color: #e8f8e8;
|
| 73 |
}
|
| 74 |
|
| 75 |
.wordle-cella.present {
|
| 76 |
background-color: var(--cell-present);
|
| 77 |
border-color: var(--cell-present);
|
| 78 |
+
color: #e8f8e8;
|
| 79 |
}
|
| 80 |
|
| 81 |
.wordle-cella.absent {
|
| 82 |
background-color: var(--cell-absent);
|
| 83 |
border-color: var(--cell-absent);
|
| 84 |
+
color: var(--text-muted);
|
| 85 |
}
|
| 86 |
|
| 87 |
/* Keyboard key styles */
|
|
|
|
| 97 |
|
| 98 |
.keyboard-key.correct {
|
| 99 |
background-color: var(--cell-correct);
|
| 100 |
+
color: #e8f8e8;
|
| 101 |
}
|
| 102 |
|
| 103 |
.keyboard-key.present {
|
| 104 |
background-color: var(--cell-present);
|
| 105 |
+
color: #e8f8e8;
|
| 106 |
}
|
| 107 |
|
| 108 |
.keyboard-key.absent {
|
| 109 |
background-color: var(--cell-absent);
|
| 110 |
+
color: var(--text-muted);
|
| 111 |
}
|
| 112 |
|
| 113 |
/* Theme toggle button */
|
|
|
|
| 129 |
border-color: var(--border-light);
|
| 130 |
}
|
| 131 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 132 |
/* Modal styles */
|
| 133 |
.modal-overlay {
|
| 134 |
background-color: var(--modal-bg);
|
|
|
|
| 144 |
input:focus, select:focus, textarea:focus {
|
| 145 |
border-color: var(--accent-primary);
|
| 146 |
outline: none;
|
| 147 |
+
box-shadow: 0 0 0 2px rgba(26, 138, 26, 0.2);
|
| 148 |
}
|
| 149 |
|
| 150 |
/* Button styles */
|
| 151 |
.btn-primary {
|
| 152 |
background-color: var(--accent-primary);
|
| 153 |
+
color: #e8f8e8;
|
| 154 |
}
|
| 155 |
|
| 156 |
.btn-primary:hover {
|
|
|
|
| 179 |
/* Selection styles */
|
| 180 |
::selection {
|
| 181 |
background-color: var(--accent-primary);
|
| 182 |
+
color: #e8f8e8;
|
| 183 |
}
|
src/static/js/theme.js
CHANGED
|
@@ -1,161 +1,24 @@
|
|
| 1 |
/**
|
| 2 |
-
* Theme
|
| 3 |
-
*
|
| 4 |
*/
|
| 5 |
-
|
| 6 |
(function() {
|
| 7 |
'use strict';
|
| 8 |
|
| 9 |
-
// Theme constants
|
| 10 |
-
const THEME_KEY = 'wordgame-theme';
|
| 11 |
-
const DARK_THEME = 'dark';
|
| 12 |
-
const LIGHT_THEME = 'light';
|
| 13 |
-
|
| 14 |
-
/**
|
| 15 |
-
* Get the current theme from localStorage or system preference
|
| 16 |
-
* @returns {string} 'light' or 'dark'
|
| 17 |
-
*/
|
| 18 |
-
function getTheme() {
|
| 19 |
-
const savedTheme = localStorage.getItem(THEME_KEY);
|
| 20 |
-
if (savedTheme) {
|
| 21 |
-
return savedTheme;
|
| 22 |
-
}
|
| 23 |
-
// Check system preference
|
| 24 |
-
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) {
|
| 25 |
-
return LIGHT_THEME;
|
| 26 |
-
}
|
| 27 |
-
return DARK_THEME; // Default to dark
|
| 28 |
-
}
|
| 29 |
-
|
| 30 |
-
/**
|
| 31 |
-
* Apply theme to the document
|
| 32 |
-
* @param {string} theme - 'light' or 'dark'
|
| 33 |
-
*/
|
| 34 |
-
function applyTheme(theme) {
|
| 35 |
-
if (theme === DARK_THEME) {
|
| 36 |
-
document.documentElement.classList.add('dark');
|
| 37 |
-
} else {
|
| 38 |
-
document.documentElement.classList.remove('dark');
|
| 39 |
-
}
|
| 40 |
-
localStorage.setItem(THEME_KEY, theme);
|
| 41 |
-
updateThemeToggleIcon(theme);
|
| 42 |
-
}
|
| 43 |
-
|
| 44 |
-
/**
|
| 45 |
-
* Toggle between light and dark themes
|
| 46 |
-
*/
|
| 47 |
-
function toggleTheme() {
|
| 48 |
-
const currentTheme = getTheme();
|
| 49 |
-
const newTheme = currentTheme === LIGHT_THEME ? DARK_THEME : LIGHT_THEME;
|
| 50 |
-
applyTheme(newTheme);
|
| 51 |
-
return newTheme;
|
| 52 |
-
}
|
| 53 |
-
|
| 54 |
-
/**
|
| 55 |
-
* Update the theme toggle button icon
|
| 56 |
-
* @param {string} theme - 'light' or 'dark'
|
| 57 |
-
*/
|
| 58 |
-
function updateThemeToggleIcon(theme) {
|
| 59 |
-
const toggleButtons = document.querySelectorAll('.theme-toggle');
|
| 60 |
-
toggleButtons.forEach(button => {
|
| 61 |
-
if (theme === LIGHT_THEME) {
|
| 62 |
-
// Show moon icon for light theme (to switch to dark)
|
| 63 |
-
button.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
|
| 64 |
-
<path stroke-linecap="round" stroke-linejoin="round" d="M21.752 15.002A9.718 9.718 0 0118 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 003 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 009.002-5.998z" />
|
| 65 |
-
</svg>`;
|
| 66 |
-
button.setAttribute('aria-label', 'Váltás sötét módra');
|
| 67 |
-
button.setAttribute('title', 'Váltás sötét módra');
|
| 68 |
-
} else {
|
| 69 |
-
// Show sun icon for dark theme (to switch to light)
|
| 70 |
-
button.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
|
| 71 |
-
<path stroke-linecap="round" stroke-linejoin="round" d="M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z" />
|
| 72 |
-
</svg>`;
|
| 73 |
-
button.setAttribute('aria-label', 'Váltás világos módra');
|
| 74 |
-
button.setAttribute('title', 'Váltás világos módra');
|
| 75 |
-
}
|
| 76 |
-
});
|
| 77 |
-
}
|
| 78 |
-
|
| 79 |
-
/**
|
| 80 |
-
* Create a theme toggle button
|
| 81 |
-
* @returns {HTMLButtonElement} The theme toggle button
|
| 82 |
-
*/
|
| 83 |
-
function createThemeToggleButton() {
|
| 84 |
-
const button = document.createElement('button');
|
| 85 |
-
button.className = 'theme-toggle';
|
| 86 |
-
button.setAttribute('aria-label', 'Téma váltása');
|
| 87 |
-
button.setAttribute('title', 'Téma váltása');
|
| 88 |
-
button.addEventListener('click', toggleTheme);
|
| 89 |
-
return button;
|
| 90 |
-
}
|
| 91 |
-
|
| 92 |
-
/**
|
| 93 |
-
* Initialize theme on page load
|
| 94 |
-
*/
|
| 95 |
function initTheme() {
|
| 96 |
-
|
| 97 |
-
applyTheme(theme);
|
| 98 |
-
}
|
| 99 |
-
|
| 100 |
-
/**
|
| 101 |
-
* Add theme toggle button to header
|
| 102 |
-
*/
|
| 103 |
-
function addThemeToggleToHeader() {
|
| 104 |
-
// Find the nav element in the header
|
| 105 |
-
const header = document.querySelector('header');
|
| 106 |
-
if (!header) return;
|
| 107 |
-
|
| 108 |
-
const nav = header.querySelector('nav');
|
| 109 |
-
if (!nav) return;
|
| 110 |
-
|
| 111 |
-
// Check if toggle already exists
|
| 112 |
-
if (nav.querySelector('.theme-toggle')) return;
|
| 113 |
-
|
| 114 |
-
// Create and insert the toggle button
|
| 115 |
-
const toggleButton = createThemeToggleButton();
|
| 116 |
-
|
| 117 |
-
// Add separator before the toggle
|
| 118 |
-
const separator = document.createElement('span');
|
| 119 |
-
separator.className = 'text-gray-700 dark:text-gray-500 mx-2';
|
| 120 |
-
separator.textContent = '|';
|
| 121 |
-
|
| 122 |
-
nav.appendChild(separator);
|
| 123 |
-
nav.appendChild(toggleButton);
|
| 124 |
-
|
| 125 |
-
// Update icon based on current theme
|
| 126 |
-
updateThemeToggleIcon(getTheme());
|
| 127 |
}
|
| 128 |
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
*/
|
| 132 |
-
function listenForSystemThemeChanges() {
|
| 133 |
-
if (window.matchMedia) {
|
| 134 |
-
window.matchMedia('(prefers-color-scheme: light)').addEventListener('change', (e) => {
|
| 135 |
-
// Only auto-switch if user hasn't manually set a preference
|
| 136 |
-
const savedTheme = localStorage.getItem(THEME_KEY);
|
| 137 |
-
if (!savedTheme) {
|
| 138 |
-
applyTheme(e.matches ? LIGHT_THEME : DARK_THEME);
|
| 139 |
-
}
|
| 140 |
-
});
|
| 141 |
-
}
|
| 142 |
}
|
| 143 |
|
| 144 |
-
// Initialize theme as early as possible to prevent flash
|
| 145 |
-
initTheme();
|
| 146 |
-
|
| 147 |
-
// When DOM is ready, add the toggle button
|
| 148 |
if (document.readyState === 'loading') {
|
| 149 |
-
document.addEventListener('DOMContentLoaded',
|
| 150 |
-
addThemeToggleToHeader();
|
| 151 |
-
listenForSystemThemeChanges();
|
| 152 |
-
});
|
| 153 |
} else {
|
| 154 |
-
|
| 155 |
-
listenForSystemThemeChanges();
|
| 156 |
}
|
| 157 |
|
| 158 |
-
|
| 159 |
-
window.
|
| 160 |
-
window.getWordGameTheme = getTheme;
|
| 161 |
})();
|
|
|
|
| 1 |
/**
|
| 2 |
+
* Theme functionality for Verbumix
|
| 3 |
+
* Always dark theme (dark green monochrome)
|
| 4 |
*/
|
|
|
|
| 5 |
(function() {
|
| 6 |
'use strict';
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
function initTheme() {
|
| 9 |
+
document.documentElement.classList.add('dark');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
}
|
| 11 |
|
| 12 |
+
function getTheme() {
|
| 13 |
+
return 'dark';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
}
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
if (document.readyState === 'loading') {
|
| 17 |
+
document.addEventListener('DOMContentLoaded', initTheme);
|
|
|
|
|
|
|
|
|
|
| 18 |
} else {
|
| 19 |
+
initTheme();
|
|
|
|
| 20 |
}
|
| 21 |
|
| 22 |
+
window.toggleVerbumixTheme = function() {};
|
| 23 |
+
window.getVerbumixTheme = getTheme;
|
|
|
|
| 24 |
})();
|
src/wordgame/templates/404.html
CHANGED
|
@@ -34,32 +34,32 @@
|
|
| 34 |
<div class="flex-1 flex flex-col items-center justify-center p-8 text-center">
|
| 35 |
<!-- 404 Icon -->
|
| 36 |
<div class="animate-float mb-8">
|
| 37 |
-
<div class="text-9xl font-black text-
|
| 38 |
</div>
|
| 39 |
|
| 40 |
<!-- Error Message -->
|
| 41 |
-
<h1 class="text-4xl font-bold mb-4 text-
|
| 42 |
Hoppá! Ez az oldal nem található
|
| 43 |
</h1>
|
| 44 |
|
| 45 |
-
<p class="text-lg text-
|
| 46 |
-
A kért oldal <code class="bg-
|
| 47 |
</p>
|
| 48 |
|
| 49 |
-
<p class="text-
|
| 50 |
Lehet, hogy elgépelte a címet, vagy az oldal már nem elérhető. Ne aggódj, visszavezetünk a főoldalra!
|
| 51 |
</p>
|
| 52 |
|
| 53 |
<!-- Action Buttons -->
|
| 54 |
<div class="flex flex-col sm:flex-row gap-4">
|
| 55 |
-
<a href="/" class="px-6 py-3
|
| 56 |
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5">
|
| 57 |
<path stroke-linecap="round" stroke-linejoin="round" d="M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25" />
|
| 58 |
</svg>
|
| 59 |
Főoldal
|
| 60 |
</a>
|
| 61 |
|
| 62 |
-
<a href="/jatek-valaszto" class="px-6 py-3 bg-
|
| 63 |
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5">
|
| 64 |
<path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" />
|
| 65 |
</svg>
|
|
@@ -68,15 +68,15 @@
|
|
| 68 |
</div>
|
| 69 |
|
| 70 |
<!-- Fun Fact -->
|
| 71 |
-
<div class="mt-12 p-4 bg-gray-100 dark:bg-
|
| 72 |
-
<p class="text-sm text-
|
| 73 |
<strong>Tipp:</strong> A GPS alapú nyelvfelismerésünk automatikusan kiválasztja a hozzád illő nyelvet és szavakat!
|
| 74 |
</p>
|
| 75 |
</div>
|
| 76 |
</div>
|
| 77 |
|
| 78 |
<!-- Footer -->
|
| 79 |
-
<footer class="border-t border-
|
| 80 |
<p>© 2024 Verbumix. Minden jog fenntartva.</p>
|
| 81 |
</footer>
|
| 82 |
|
|
|
|
| 34 |
<div class="flex-1 flex flex-col items-center justify-center p-8 text-center">
|
| 35 |
<!-- 404 Icon -->
|
| 36 |
<div class="animate-float mb-8">
|
| 37 |
+
<div class="text-9xl font-black text-accent">404</div>
|
| 38 |
</div>
|
| 39 |
|
| 40 |
<!-- Error Message -->
|
| 41 |
+
<h1 class="text-4xl font-bold mb-4 text-game">
|
| 42 |
Hoppá! Ez az oldal nem található
|
| 43 |
</h1>
|
| 44 |
|
| 45 |
+
<p class="text-lg text-muted mb-2">
|
| 46 |
+
A kért oldal <code class="bg-card px-2 py-1 rounded text-sm">{{ path }}</code> nem létezik.
|
| 47 |
</p>
|
| 48 |
|
| 49 |
+
<p class="text-muted mb-8 max-w-md">
|
| 50 |
Lehet, hogy elgépelte a címet, vagy az oldal már nem elérhető. Ne aggódj, visszavezetünk a főoldalra!
|
| 51 |
</p>
|
| 52 |
|
| 53 |
<!-- Action Buttons -->
|
| 54 |
<div class="flex flex-col sm:flex-row gap-4">
|
| 55 |
+
<a href="/" class="px-6 py-3 btn-accent text-game font-bold rounded-lg transition-colors duration-200 flex items-center justify-center gap-2">
|
| 56 |
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5">
|
| 57 |
<path stroke-linecap="round" stroke-linejoin="round" d="M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25" />
|
| 58 |
</svg>
|
| 59 |
Főoldal
|
| 60 |
</a>
|
| 61 |
|
| 62 |
+
<a href="/jatek-valaszto" class="px-6 py-3 bg-card hover:bg-gray-300 dark:hover:bg-card text-game font-bold rounded-lg transition-colors duration-200 flex items-center justify-center gap-2">
|
| 63 |
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5">
|
| 64 |
<path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" />
|
| 65 |
</svg>
|
|
|
|
| 68 |
</div>
|
| 69 |
|
| 70 |
<!-- Fun Fact -->
|
| 71 |
+
<div class="mt-12 p-4 bg-gray-100 dark:bg-card/50 rounded-lg max-w-md">
|
| 72 |
+
<p class="text-sm text-muted">
|
| 73 |
<strong>Tipp:</strong> A GPS alapú nyelvfelismerésünk automatikusan kiválasztja a hozzád illő nyelvet és szavakat!
|
| 74 |
</p>
|
| 75 |
</div>
|
| 76 |
</div>
|
| 77 |
|
| 78 |
<!-- Footer -->
|
| 79 |
+
<footer class="border-t border-game py-4 text-center text-sm text-muted">
|
| 80 |
<p>© 2024 Verbumix. Minden jog fenntartva.</p>
|
| 81 |
</footer>
|
| 82 |
|
src/wordgame/templates/admin.html
CHANGED
|
@@ -37,23 +37,23 @@
|
|
| 37 |
</head>
|
| 38 |
<body class="flex flex-col h-full font-sans antialiased transition-colors duration-300" style="background-color: var(--bg-primary); color: var(--text-primary);">
|
| 39 |
<!-- Header -->
|
| 40 |
-
<header class="border-b border-
|
| 41 |
<div class="flex items-center gap-3">
|
| 42 |
-
<div class="p-2 bg-
|
| 43 |
<span class="text-xl"></span>
|
| 44 |
</div>
|
| 45 |
<div>
|
| 46 |
-
<h1 class="text-lg font-bold text-
|
| 47 |
-
<p class="text-xs text-
|
| 48 |
</div>
|
| 49 |
</div>
|
| 50 |
<div class="flex items-center gap-4">
|
| 51 |
-
<button class="theme-toggle p-2 hover:bg-gray-100 dark:hover:bg-
|
| 52 |
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 text-
|
| 53 |
<path stroke-linecap="round" stroke-linejoin="round" d="M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z" />
|
| 54 |
</svg>
|
| 55 |
</button>
|
| 56 |
-
<a href="/" class="text-sm text-
|
| 57 |
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
|
| 58 |
<path stroke-linecap="round" stroke-linejoin="round" d="M9 15L3 9m0 0l6-6M3 9h12a6 6 0 010 12h-3" />
|
| 59 |
</svg>
|
|
@@ -68,9 +68,9 @@
|
|
| 68 |
<!-- Fő statisztikák -->
|
| 69 |
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
|
| 70 |
<!-- Felhasználók -->
|
| 71 |
-
<div class="stat-card bg-
|
| 72 |
<div class="flex items-center justify-between mb-3">
|
| 73 |
-
<span class="text-sm font-medium text-
|
| 74 |
<div class="p-2 bg-blue-100 dark:bg-blue-900/30 rounded-lg">
|
| 75 |
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4 text-blue-600 dark:text-blue-400">
|
| 76 |
<path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.652.372 9.337 9.337 0 004.121-.621 9.342 9.342 0 001.936-.736 9.332 9.332 0 001.935-.736 9.337 9.337 0 004.121-.621 9.38 9.38 0 002.652-.372" />
|
|
@@ -80,44 +80,44 @@
|
|
| 80 |
</svg>
|
| 81 |
</div>
|
| 82 |
</div>
|
| 83 |
-
<p class="text-2xl font-bold text-
|
| 84 |
-
<p class="text-xs text-
|
| 85 |
</div>
|
| 86 |
|
| 87 |
<!-- Szavak -->
|
| 88 |
-
<div class="stat-card bg-
|
| 89 |
<div class="flex items-center justify-between mb-3">
|
| 90 |
-
<span class="text-sm font-medium text-
|
| 91 |
-
<div class="p-2 bg-
|
| 92 |
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4 text-
|
| 93 |
<path stroke-linecap="round" stroke-linejoin="round" d="M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0118 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25" />
|
| 94 |
</svg>
|
| 95 |
</div>
|
| 96 |
</div>
|
| 97 |
-
<p class="text-2xl font-bold text-
|
| 98 |
-
<p class="text-xs text-
|
| 99 |
</div>
|
| 100 |
|
| 101 |
<!-- Nyelvek -->
|
| 102 |
-
<div class="stat-card bg-
|
| 103 |
<div class="flex items-center justify-between mb-3">
|
| 104 |
-
<span class="text-sm font-medium text-
|
| 105 |
<div class="p-2 bg-purple-100 dark:bg-purple-900/30 rounded-lg">
|
| 106 |
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4 text-purple-600 dark:text-purple-400">
|
| 107 |
<path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-.778.099-1.533.284-2.253" />
|
| 108 |
</svg>
|
| 109 |
</div>
|
| 110 |
</div>
|
| 111 |
-
<p class="text-2xl font-bold text-
|
| 112 |
-
<p class="text-xs text-
|
| 113 |
</div>
|
| 114 |
|
| 115 |
<!-- Rendszer -->
|
| 116 |
-
<div class="stat-card bg-
|
| 117 |
<div class="flex items-center justify-between mb-3">
|
| 118 |
-
<span class="text-sm font-medium text-
|
| 119 |
-
<div class="p-2 bg-
|
| 120 |
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4 text-
|
| 121 |
<path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 01-1.043 3.296 3.745 3.745 0 01-3.296 1.043A3.745 3.745 0 0112 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 01-3.296-1.043 3.745 3.745 0 01-1.043-3.296A3.745 3.745 0 013 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 011.043-3.296 3.746 3.746 0 013.296-1.043A3.746 3.746 0 0112 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 013.296 1.043 3.746 3.746 0 011.043 3.296A3.745 3.745 0 0121 12z" />
|
| 122 |
</svg>
|
| 123 |
</div>
|
|
@@ -125,20 +125,20 @@
|
|
| 125 |
<div class="flex items-center gap-2">
|
| 126 |
<span class="relative flex h-3 w-3">
|
| 127 |
<span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"></span>
|
| 128 |
-
<span class="relative inline-flex rounded-full h-3 w-3
|
| 129 |
</span>
|
| 130 |
-
<p class="text-lg font-bold text-
|
| 131 |
</div>
|
| 132 |
-
<p class="text-xs text-
|
| 133 |
</div>
|
| 134 |
</div>
|
| 135 |
|
| 136 |
<!-- Speciális statisztikák -->
|
| 137 |
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
|
| 138 |
<!-- Kategória eloszlás -->
|
| 139 |
-
<div class="bg-
|
| 140 |
-
<h3 class="text-lg font-bold text-
|
| 141 |
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 text-
|
| 142 |
<path stroke-linecap="round" stroke-linejoin="round" d="M10.5 6a7.5 7.5 0 107.5 7.5h-7.5V6z" />
|
| 143 |
<path stroke-linecap="round" stroke-linejoin="round" d="M13 7.5a7.5 7.5 0 00-7.5-7.5c-4.142 0-7.5 3.358-7.5 7.5 0 4.142 3.358 7.5 7.5 7.5H13z" />
|
| 144 |
</svg>
|
|
@@ -148,30 +148,30 @@
|
|
| 148 |
<!-- Szlen -->
|
| 149 |
<div>
|
| 150 |
<div class="flex justify-between text-sm mb-1">
|
| 151 |
-
<span class="text-
|
| 152 |
-
<span class="font-medium text-
|
| 153 |
</div>
|
| 154 |
-
<div class="w-full bg-gray-200 dark:bg-
|
| 155 |
<div class="progress-bar bg-gradient-to-r from-orange-500 to-red-500 h-2 rounded-full" style="width: 33%"></div>
|
| 156 |
</div>
|
| 157 |
</div>
|
| 158 |
<!-- Matek -->
|
| 159 |
<div>
|
| 160 |
<div class="flex justify-between text-sm mb-1">
|
| 161 |
-
<span class="text-
|
| 162 |
-
<span class="font-medium text-
|
| 163 |
</div>
|
| 164 |
-
<div class="w-full bg-gray-200 dark:bg-
|
| 165 |
<div class="progress-bar bg-gradient-to-r from-blue-500 to-indigo-500 h-2 rounded-full" style="width: 33%"></div>
|
| 166 |
</div>
|
| 167 |
</div>
|
| 168 |
<!-- Gamer -->
|
| 169 |
<div>
|
| 170 |
<div class="flex justify-between text-sm mb-1">
|
| 171 |
-
<span class="text-
|
| 172 |
-
<span class="font-medium text-
|
| 173 |
</div>
|
| 174 |
-
<div class="w-full bg-gray-200 dark:bg-
|
| 175 |
<div class="progress-bar bg-gradient-to-r from-purple-500 to-pink-500 h-2 rounded-full" style="width: 34%"></div>
|
| 176 |
</div>
|
| 177 |
</div>
|
|
@@ -179,61 +179,61 @@
|
|
| 179 |
</div>
|
| 180 |
|
| 181 |
<!-- Nyelvi támogatás -->
|
| 182 |
-
<div class="bg-
|
| 183 |
-
<h3 class="text-lg font-bold text-
|
| 184 |
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 text-
|
| 185 |
<path stroke-linecap="round" stroke-linejoin="round" d="M10.5 21l5.25-11.25L21 21m-9-3h7.5M3 5.621a48.474 48.474 0 016-3.422c1.5 0 3 .12 4.5.361m-10.5 3.061a48.474 48.474 0 00-4.5.361m15 0a48.474 48.474 0 014.5-.361m-15 0a48.474 48.474 0 00-4.5.361m15 0c1.5 0 3 .12 4.5.361m-15 0a48.474 48.474 0 016-3.422" />
|
| 186 |
</svg>
|
| 187 |
Nyelvi támogatás
|
| 188 |
</h3>
|
| 189 |
<div class="grid grid-cols-3 gap-3">
|
| 190 |
-
<div class="text-center p-3 bg-gray-50 dark:bg-
|
| 191 |
-
<p class="text-2xl font-bold text-
|
| 192 |
-
<p class="text-xs text-
|
| 193 |
</div>
|
| 194 |
-
<div class="text-center p-3 bg-gray-50 dark:bg-
|
| 195 |
-
<p class="text-2xl font-bold text-
|
| 196 |
-
<p class="text-xs text-
|
| 197 |
</div>
|
| 198 |
-
<div class="text-center p-3 bg-gray-50 dark:bg-
|
| 199 |
-
<p class="text-2xl font-bold text-
|
| 200 |
-
<p class="text-xs text-
|
| 201 |
</div>
|
| 202 |
</div>
|
| 203 |
<div class="mt-4 flex flex-wrap gap-2">
|
| 204 |
-
<span class="px-2 py-1 bg-
|
| 205 |
-
<span class="px-2 py-1 bg-
|
| 206 |
-
<span class="px-2 py-1 bg-
|
| 207 |
-
<span class="px-2 py-1 bg-
|
| 208 |
-
<span class="px-2 py-1 bg-
|
| 209 |
-
<span class="px-2 py-1 bg-
|
| 210 |
-
<span class="px-2 py-1 bg-gray-100 dark:bg-
|
| 211 |
</div>
|
| 212 |
</div>
|
| 213 |
</div>
|
| 214 |
|
| 215 |
<!-- Új szó hozzáadása -->
|
| 216 |
-
<div class="bg-
|
| 217 |
-
<h3 class="text-lg font-bold text-
|
| 218 |
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 text-
|
| 219 |
<path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15" />
|
| 220 |
</svg>
|
| 221 |
Új szó hozzáadása
|
| 222 |
</h3>
|
| 223 |
<form hx-post="/a7d9f2e1b4c6/add-word" hx-target="#message-area" class="flex gap-3 flex-wrap items-end">
|
| 224 |
<div class="flex-1 min-w-[200px]">
|
| 225 |
-
<label class="block text-sm font-medium text-
|
| 226 |
-
<input type="text" name="word" placeholder="pl. CRING" class="w-full px-4 py-2.5 bg-gray-50 dark:bg-
|
| 227 |
</div>
|
| 228 |
<div class="w-40">
|
| 229 |
-
<label class="block text-sm font-medium text-
|
| 230 |
-
<select name="category" class="w-full px-4 py-2.5 bg-gray-50 dark:bg-
|
| 231 |
<option value="szleng">Szlen</option>
|
| 232 |
<option value="matek">Matek</option>
|
| 233 |
<option value="gamer">Gamer</option>
|
| 234 |
</select>
|
| 235 |
</div>
|
| 236 |
-
<button type="submit" class="px-6 py-2.5
|
| 237 |
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
|
| 238 |
<path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15" />
|
| 239 |
</svg>
|
|
@@ -244,9 +244,9 @@
|
|
| 244 |
</div>
|
| 245 |
|
| 246 |
<!-- Legutóbbi szavak -->
|
| 247 |
-
<div class="bg-
|
| 248 |
-
<h3 class="text-lg font-bold text-
|
| 249 |
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 text-
|
| 250 |
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12" />
|
| 251 |
</svg>
|
| 252 |
Legutóbb hozzáadott szavak
|
|
@@ -256,18 +256,18 @@
|
|
| 256 |
<div class="overflow-x-auto">
|
| 257 |
<table class="w-full">
|
| 258 |
<thead>
|
| 259 |
-
<tr class="border-b border-
|
| 260 |
-
<th class="text-left py-3 px-4 font-semibold text-sm text-
|
| 261 |
-
<th class="text-left py-3 px-4 font-semibold text-sm text-
|
| 262 |
-
<th class="text-right py-3 px-4 font-semibold text-sm text-
|
| 263 |
</tr>
|
| 264 |
</thead>
|
| 265 |
<tbody class="text-sm">
|
| 266 |
{% for word in recent_words %}
|
| 267 |
-
<tr class="border-b border-gray-100 dark:border-
|
| 268 |
-
<td class="py-3 px-4 text-
|
| 269 |
<td class="py-3 px-4">
|
| 270 |
-
<span class="px-2.5 py-1 bg-gray-100 dark:bg-
|
| 271 |
{% if word.kategoriak %}
|
| 272 |
{% if word.kategoriak.nev == 'szleng' %}
|
| 273 |
{% elif word.kategoriak.nev == 'matek' %}
|
|
@@ -300,8 +300,8 @@
|
|
| 300 |
{% else %}
|
| 301 |
<div class="text-center py-12">
|
| 302 |
<div class="text-4xl mb-3"></div>
|
| 303 |
-
<p class="text-
|
| 304 |
-
<p class="text-sm text-
|
| 305 |
</div>
|
| 306 |
{% endif %}
|
| 307 |
</div>
|
|
@@ -309,7 +309,7 @@
|
|
| 309 |
</main>
|
| 310 |
|
| 311 |
<!-- Footer -->
|
| 312 |
-
<footer class="border-t border-
|
| 313 |
<div class="flex items-center justify-center gap-4">
|
| 314 |
<span>Admin Panel v1.0</span>
|
| 315 |
<span>•</span>
|
|
|
|
| 37 |
</head>
|
| 38 |
<body class="flex flex-col h-full font-sans antialiased transition-colors duration-300" style="background-color: var(--bg-primary); color: var(--text-primary);">
|
| 39 |
<!-- Header -->
|
| 40 |
+
<header class="border-b border-game bg-card dark:bg-game px-6 py-4 flex justify-between items-center shadow-sm">
|
| 41 |
<div class="flex items-center gap-3">
|
| 42 |
+
<div class="p-2 bg-card rounded-lg">
|
| 43 |
<span class="text-xl"></span>
|
| 44 |
</div>
|
| 45 |
<div>
|
| 46 |
+
<h1 class="text-lg font-bold text-game">Admin Panel</h1>
|
| 47 |
+
<p class="text-xs text-muted">Rendszerfelügyelet</p>
|
| 48 |
</div>
|
| 49 |
</div>
|
| 50 |
<div class="flex items-center gap-4">
|
| 51 |
+
<button class="theme-toggle p-2 hover:bg-gray-100 dark:hover:bg-card rounded-lg transition" aria-label="Téma váltása" title="Téma váltása">
|
| 52 |
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 text-muted">
|
| 53 |
<path stroke-linecap="round" stroke-linejoin="round" d="M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z" />
|
| 54 |
</svg>
|
| 55 |
</button>
|
| 56 |
+
<a href="/" class="text-sm text-muted hover:text-green-600 dark:hover:text-accent transition flex items-center gap-1">
|
| 57 |
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
|
| 58 |
<path stroke-linecap="round" stroke-linejoin="round" d="M9 15L3 9m0 0l6-6M3 9h12a6 6 0 010 12h-3" />
|
| 59 |
</svg>
|
|
|
|
| 68 |
<!-- Fő statisztikák -->
|
| 69 |
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
|
| 70 |
<!-- Felhasználók -->
|
| 71 |
+
<div class="stat-card bg-card dark:bg-card rounded-xl p-5 shadow-sm border border-game dark:border-game">
|
| 72 |
<div class="flex items-center justify-between mb-3">
|
| 73 |
+
<span class="text-sm font-medium text-muted">Felhasználók</span>
|
| 74 |
<div class="p-2 bg-blue-100 dark:bg-blue-900/30 rounded-lg">
|
| 75 |
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4 text-blue-600 dark:text-blue-400">
|
| 76 |
<path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.652.372 9.337 9.337 0 004.121-.621 9.342 9.342 0 001.936-.736 9.332 9.332 0 001.935-.736 9.337 9.337 0 004.121-.621 9.38 9.38 0 002.652-.372" />
|
|
|
|
| 80 |
</svg>
|
| 81 |
</div>
|
| 82 |
</div>
|
| 83 |
+
<p class="text-2xl font-bold text-game">{{ user_count }}</p>
|
| 84 |
+
<p class="text-xs text-muted mt-1">Összes regisztrált</p>
|
| 85 |
</div>
|
| 86 |
|
| 87 |
<!-- Szavak -->
|
| 88 |
+
<div class="stat-card bg-card dark:bg-card rounded-xl p-5 shadow-sm border border-game dark:border-game">
|
| 89 |
<div class="flex items-center justify-between mb-3">
|
| 90 |
+
<span class="text-sm font-medium text-muted">Szavak</span>
|
| 91 |
+
<div class="p-2 bg-card rounded-lg">
|
| 92 |
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4 text-accent">
|
| 93 |
<path stroke-linecap="round" stroke-linejoin="round" d="M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0118 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25" />
|
| 94 |
</svg>
|
| 95 |
</div>
|
| 96 |
</div>
|
| 97 |
+
<p class="text-2xl font-bold text-game">{{ total_words }}</p>
|
| 98 |
+
<p class="text-xs text-muted mt-1">Adatbázisban</p>
|
| 99 |
</div>
|
| 100 |
|
| 101 |
<!-- Nyelvek -->
|
| 102 |
+
<div class="stat-card bg-card dark:bg-card rounded-xl p-5 shadow-sm border border-game dark:border-game">
|
| 103 |
<div class="flex items-center justify-between mb-3">
|
| 104 |
+
<span class="text-sm font-medium text-muted">Nyelvek</span>
|
| 105 |
<div class="p-2 bg-purple-100 dark:bg-purple-900/30 rounded-lg">
|
| 106 |
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4 text-purple-600 dark:text-purple-400">
|
| 107 |
<path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-.778.099-1.533.284-2.253" />
|
| 108 |
</svg>
|
| 109 |
</div>
|
| 110 |
</div>
|
| 111 |
+
<p class="text-2xl font-bold text-game">90+</p>
|
| 112 |
+
<p class="text-xs text-muted mt-1">Támogatott</p>
|
| 113 |
</div>
|
| 114 |
|
| 115 |
<!-- Rendszer -->
|
| 116 |
+
<div class="stat-card bg-card dark:bg-card rounded-xl p-5 shadow-sm border border-game dark:border-game">
|
| 117 |
<div class="flex items-center justify-between mb-3">
|
| 118 |
+
<span class="text-sm font-medium text-muted">Rendszer</span>
|
| 119 |
+
<div class="p-2 bg-card rounded-lg">
|
| 120 |
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4 text-accent">
|
| 121 |
<path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 01-1.043 3.296 3.745 3.745 0 01-3.296 1.043A3.745 3.745 0 0112 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 01-3.296-1.043 3.745 3.745 0 01-1.043-3.296A3.745 3.745 0 013 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 011.043-3.296 3.746 3.746 0 013.296-1.043A3.746 3.746 0 0112 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 013.296 1.043 3.746 3.746 0 011.043 3.296A3.745 3.745 0 0121 12z" />
|
| 122 |
</svg>
|
| 123 |
</div>
|
|
|
|
| 125 |
<div class="flex items-center gap-2">
|
| 126 |
<span class="relative flex h-3 w-3">
|
| 127 |
<span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"></span>
|
| 128 |
+
<span class="relative inline-flex rounded-full h-3 w-3 btn-accent"></span>
|
| 129 |
</span>
|
| 130 |
+
<p class="text-lg font-bold text-accent">Online</p>
|
| 131 |
</div>
|
| 132 |
+
<p class="text-xs text-muted mt-1">Minden rendszer működik</p>
|
| 133 |
</div>
|
| 134 |
</div>
|
| 135 |
|
| 136 |
<!-- Speciális statisztikák -->
|
| 137 |
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
|
| 138 |
<!-- Kategória eloszlás -->
|
| 139 |
+
<div class="bg-card dark:bg-card rounded-xl p-6 shadow-sm border border-game dark:border-game">
|
| 140 |
+
<h3 class="text-lg font-bold text-game mb-4 flex items-center gap-2">
|
| 141 |
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 text-muted">
|
| 142 |
<path stroke-linecap="round" stroke-linejoin="round" d="M10.5 6a7.5 7.5 0 107.5 7.5h-7.5V6z" />
|
| 143 |
<path stroke-linecap="round" stroke-linejoin="round" d="M13 7.5a7.5 7.5 0 00-7.5-7.5c-4.142 0-7.5 3.358-7.5 7.5 0 4.142 3.358 7.5 7.5 7.5H13z" />
|
| 144 |
</svg>
|
|
|
|
| 148 |
<!-- Szlen -->
|
| 149 |
<div>
|
| 150 |
<div class="flex justify-between text-sm mb-1">
|
| 151 |
+
<span class="text-muted"> Szlen</span>
|
| 152 |
+
<span class="font-medium text-game">~33%</span>
|
| 153 |
</div>
|
| 154 |
+
<div class="w-full bg-gray-200 dark:bg-card rounded-full h-2">
|
| 155 |
<div class="progress-bar bg-gradient-to-r from-orange-500 to-red-500 h-2 rounded-full" style="width: 33%"></div>
|
| 156 |
</div>
|
| 157 |
</div>
|
| 158 |
<!-- Matek -->
|
| 159 |
<div>
|
| 160 |
<div class="flex justify-between text-sm mb-1">
|
| 161 |
+
<span class="text-muted"> Matek</span>
|
| 162 |
+
<span class="font-medium text-game">~33%</span>
|
| 163 |
</div>
|
| 164 |
+
<div class="w-full bg-gray-200 dark:bg-card rounded-full h-2">
|
| 165 |
<div class="progress-bar bg-gradient-to-r from-blue-500 to-indigo-500 h-2 rounded-full" style="width: 33%"></div>
|
| 166 |
</div>
|
| 167 |
</div>
|
| 168 |
<!-- Gamer -->
|
| 169 |
<div>
|
| 170 |
<div class="flex justify-between text-sm mb-1">
|
| 171 |
+
<span class="text-muted"> Gamer</span>
|
| 172 |
+
<span class="font-medium text-game">~34%</span>
|
| 173 |
</div>
|
| 174 |
+
<div class="w-full bg-gray-200 dark:bg-card rounded-full h-2">
|
| 175 |
<div class="progress-bar bg-gradient-to-r from-purple-500 to-pink-500 h-2 rounded-full" style="width: 34%"></div>
|
| 176 |
</div>
|
| 177 |
</div>
|
|
|
|
| 179 |
</div>
|
| 180 |
|
| 181 |
<!-- Nyelvi támogatás -->
|
| 182 |
+
<div class="bg-card dark:bg-card rounded-xl p-6 shadow-sm border border-game dark:border-game">
|
| 183 |
+
<h3 class="text-lg font-bold text-game mb-4 flex items-center gap-2">
|
| 184 |
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 text-muted">
|
| 185 |
<path stroke-linecap="round" stroke-linejoin="round" d="M10.5 21l5.25-11.25L21 21m-9-3h7.5M3 5.621a48.474 48.474 0 016-3.422c1.5 0 3 .12 4.5.361m-10.5 3.061a48.474 48.474 0 00-4.5.361m15 0a48.474 48.474 0 014.5-.361m-15 0a48.474 48.474 0 00-4.5.361m15 0c1.5 0 3 .12 4.5.361m-15 0a48.474 48.474 0 016-3.422" />
|
| 186 |
</svg>
|
| 187 |
Nyelvi támogatás
|
| 188 |
</h3>
|
| 189 |
<div class="grid grid-cols-3 gap-3">
|
| 190 |
+
<div class="text-center p-3 bg-gray-50 dark:bg-card/50 rounded-lg">
|
| 191 |
+
<p class="text-2xl font-bold text-game">90+</p>
|
| 192 |
+
<p class="text-xs text-muted">Nyelv</p>
|
| 193 |
</div>
|
| 194 |
+
<div class="text-center p-3 bg-gray-50 dark:bg-card/50 rounded-lg">
|
| 195 |
+
<p class="text-2xl font-bold text-game">100+</p>
|
| 196 |
+
<p class="text-xs text-muted">Ország</p>
|
| 197 |
</div>
|
| 198 |
+
<div class="text-center p-3 bg-gray-50 dark:bg-card/50 rounded-lg">
|
| 199 |
+
<p class="text-2xl font-bold text-game">6</p>
|
| 200 |
+
<p class="text-xs text-muted">Kontinens</p>
|
| 201 |
</div>
|
| 202 |
</div>
|
| 203 |
<div class="mt-4 flex flex-wrap gap-2">
|
| 204 |
+
<span class="px-2 py-1 bg-card text-green-700 dark:text-green-300 text-xs rounded-full">Angol</span>
|
| 205 |
+
<span class="px-2 py-1 bg-card text-green-700 dark:text-green-300 text-xs rounded-full">Német</span>
|
| 206 |
+
<span class="px-2 py-1 bg-card text-green-700 dark:text-green-300 text-xs rounded-full">Francia</span>
|
| 207 |
+
<span class="px-2 py-1 bg-card text-green-700 dark:text-green-300 text-xs rounded-full">Spanyol</span>
|
| 208 |
+
<span class="px-2 py-1 bg-card text-green-700 dark:text-green-300 text-xs rounded-full">Japán</span>
|
| 209 |
+
<span class="px-2 py-1 bg-card text-green-700 dark:text-green-300 text-xs rounded-full">Kínai</span>
|
| 210 |
+
<span class="px-2 py-1 bg-gray-100 dark:bg-card text-muted text-xs rounded-full">+84</span>
|
| 211 |
</div>
|
| 212 |
</div>
|
| 213 |
</div>
|
| 214 |
|
| 215 |
<!-- Új szó hozzáadása -->
|
| 216 |
+
<div class="bg-card dark:bg-card rounded-xl p-6 shadow-sm border border-game dark:border-game">
|
| 217 |
+
<h3 class="text-lg font-bold text-game mb-4 flex items-center gap-2">
|
| 218 |
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 text-muted">
|
| 219 |
<path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15" />
|
| 220 |
</svg>
|
| 221 |
Új szó hozzáadása
|
| 222 |
</h3>
|
| 223 |
<form hx-post="/a7d9f2e1b4c6/add-word" hx-target="#message-area" class="flex gap-3 flex-wrap items-end">
|
| 224 |
<div class="flex-1 min-w-[200px]">
|
| 225 |
+
<label class="block text-sm font-medium text-game mb-1">Szó</label>
|
| 226 |
+
<input type="text" name="word" placeholder="pl. CRING" class="w-full px-4 py-2.5 bg-gray-50 dark:bg-card border border-game dark:border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500 text-game placeholder-gray-400" required>
|
| 227 |
</div>
|
| 228 |
<div class="w-40">
|
| 229 |
+
<label class="block text-sm font-medium text-game mb-1">Kategória</label>
|
| 230 |
+
<select name="category" class="w-full px-4 py-2.5 bg-gray-50 dark:bg-card border border-game dark:border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500 text-game">
|
| 231 |
<option value="szleng">Szlen</option>
|
| 232 |
<option value="matek">Matek</option>
|
| 233 |
<option value="gamer">Gamer</option>
|
| 234 |
</select>
|
| 235 |
</div>
|
| 236 |
+
<button type="submit" class="px-6 py-2.5 btn-accent text-game font-medium rounded-lg transition-colors flex items-center gap-2">
|
| 237 |
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4">
|
| 238 |
<path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15" />
|
| 239 |
</svg>
|
|
|
|
| 244 |
</div>
|
| 245 |
|
| 246 |
<!-- Legutóbbi szavak -->
|
| 247 |
+
<div class="bg-card dark:bg-card rounded-xl p-6 shadow-sm border border-game dark:border-game">
|
| 248 |
+
<h3 class="text-lg font-bold text-game mb-4 flex items-center gap-2">
|
| 249 |
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 text-muted">
|
| 250 |
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12" />
|
| 251 |
</svg>
|
| 252 |
Legutóbb hozzáadott szavak
|
|
|
|
| 256 |
<div class="overflow-x-auto">
|
| 257 |
<table class="w-full">
|
| 258 |
<thead>
|
| 259 |
+
<tr class="border-b border-game dark:border-game">
|
| 260 |
+
<th class="text-left py-3 px-4 font-semibold text-sm text-muted">Szó</th>
|
| 261 |
+
<th class="text-left py-3 px-4 font-semibold text-sm text-muted">Kategória</th>
|
| 262 |
+
<th class="text-right py-3 px-4 font-semibold text-sm text-muted">Művelet</th>
|
| 263 |
</tr>
|
| 264 |
</thead>
|
| 265 |
<tbody class="text-sm">
|
| 266 |
{% for word in recent_words %}
|
| 267 |
+
<tr class="border-b border-gray-100 dark:border-game hover:bg-gray-50 dark:hover:bg-card/50 transition">
|
| 268 |
+
<td class="py-3 px-4 text-game font-mono font-medium">{{ word.szo }}</td>
|
| 269 |
<td class="py-3 px-4">
|
| 270 |
+
<span class="px-2.5 py-1 bg-gray-100 dark:bg-card text-xs rounded-full text-game">
|
| 271 |
{% if word.kategoriak %}
|
| 272 |
{% if word.kategoriak.nev == 'szleng' %}
|
| 273 |
{% elif word.kategoriak.nev == 'matek' %}
|
|
|
|
| 300 |
{% else %}
|
| 301 |
<div class="text-center py-12">
|
| 302 |
<div class="text-4xl mb-3"></div>
|
| 303 |
+
<p class="text-muted">Még nincsenek szavak az adatbázisban.</p>
|
| 304 |
+
<p class="text-sm text-muted mt-1">Adj hozzá az első szót a fenti űrlappal!</p>
|
| 305 |
</div>
|
| 306 |
{% endif %}
|
| 307 |
</div>
|
|
|
|
| 309 |
</main>
|
| 310 |
|
| 311 |
<!-- Footer -->
|
| 312 |
+
<footer class="border-t border-game py-4 px-6 text-center text-xs text-muted">
|
| 313 |
<div class="flex items-center justify-center gap-4">
|
| 314 |
<span>Admin Panel v1.0</span>
|
| 315 |
<span>•</span>
|
src/wordgame/templates/base.html
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
-
<html lang="{{ lang | default('hu') }}" class="h-full">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
@@ -7,16 +7,18 @@
|
|
| 7 |
<script src="https://unpkg.com/htmx.org@1.9.12"></script>
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script>
|
| 10 |
-
// Configure Tailwind for class-based dark mode
|
| 11 |
tailwind.config = {
|
| 12 |
darkMode: 'class',
|
| 13 |
theme: {
|
| 14 |
extend: {
|
| 15 |
colors: {
|
| 16 |
-
'game-bg': '
|
| 17 |
-
'game-card': '
|
| 18 |
-
'game-text': '
|
| 19 |
-
'game-accent': '
|
|
|
|
|
|
|
|
|
|
| 20 |
}
|
| 21 |
}
|
| 22 |
}
|
|
@@ -26,10 +28,22 @@
|
|
| 26 |
<style>
|
| 27 |
.animate-fade-in { animation: fadeIn 0.3s ease-out forwards; }
|
| 28 |
@keyframes fadeIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
</style>
|
| 30 |
{% if google_analytics_id %}
|
| 31 |
<script>
|
| 32 |
-
// Conditional Google Analytics - only load if consent given
|
| 33 |
(function() {
|
| 34 |
const consent = localStorage.getItem('verbumix-cookie-consent');
|
| 35 |
if (consent === 'accepted') {
|
|
@@ -46,62 +60,56 @@
|
|
| 46 |
</script>
|
| 47 |
{% endif %}
|
| 48 |
</head>
|
| 49 |
-
<body class="flex flex-col h-full font-sans antialiased
|
| 50 |
|
| 51 |
-
<header class="border-b border-
|
| 52 |
-
<h1 class="text-xl font-black tracking-wider text-
|
| 53 |
{{ _('header_title') }}
|
| 54 |
</h1>
|
| 55 |
<nav class="flex gap-4 text-sm font-medium items-center">
|
| 56 |
-
<button hx-get="/jatek-valaszto" hx-target="#jatek-terulet" class="hover:text-green-
|
| 57 |
-
<button hx-get="/rangletra" hx-target="#jatek-terulet" class="hover:text-green-
|
| 58 |
-
<button hx-get="/premium" hx-target="#jatek-terulet" class="text-
|
| 59 |
-
|
| 60 |
{% if user %}
|
| 61 |
-
<a id="dashboard-link" href="/auth/sso-redirect?next=/dashboard" target="_blank" class="text-
|
| 62 |
-
<span class="text-
|
| 63 |
-
<a href="/auth/logout" class="
|
| 64 |
{% else %}
|
| 65 |
-
<span class="text-
|
| 66 |
-
<button hx-get="/auth/login-page" hx-target="#jatek-terulet" class="text-
|
| 67 |
-
<button hx-get="/auth/register-page" hx-target="#jatek-terulet" class="px-3 py-1.5
|
| 68 |
{% endif %}
|
| 69 |
-
|
| 70 |
-
|
| 71 |
</nav>
|
| 72 |
</header>
|
| 73 |
|
| 74 |
<main id="jatek-terulet" class="flex-1 flex flex-col items-center justify-center p-4">
|
| 75 |
-
<!-- Load game based on GPS location or default to szleng -->
|
| 76 |
<div id="game-loader"></div>
|
| 77 |
</main>
|
| 78 |
|
| 79 |
-
<footer class="border-t border-
|
| 80 |
<nav class="flex gap-4 justify-center flex-wrap">
|
| 81 |
-
<a href="/privacy" hx-get="/privacy" hx-target="#jatek-terulet" class="hover:text-green-
|
| 82 |
-
<a href="/terms" hx-get="/terms" hx-target="#jatek-terulet" class="hover:text-green-
|
| 83 |
-
<a href="/cookies" hx-get="/cookies" hx-target="#jatek-terulet" class="hover:text-green-
|
| 84 |
</nav>
|
| 85 |
<p class="mt-1">2026 Verbumix</p>
|
| 86 |
</footer>
|
| 87 |
|
| 88 |
-
<
|
| 89 |
-
<div id="cookie-consent-banner" class="fixed bottom-0 left-0 right-0 z-40 bg-gray-900 border-t border-gray-700 p-4 shadow-2xl" style="display: none;">
|
| 90 |
<div class="max-w-4xl mx-auto flex flex-col sm:flex-row items-center justify-between gap-3">
|
| 91 |
-
<p class="text-sm text-
|
| 92 |
<div class="flex gap-2 flex-shrink-0">
|
| 93 |
-
<button id="cookie-reject-btn" class="px-4 py-2
|
| 94 |
-
<button id="cookie-accept-btn" class="px-4 py-2
|
| 95 |
</div>
|
| 96 |
</div>
|
| 97 |
</div>
|
| 98 |
|
| 99 |
<script>
|
| 100 |
-
// Cookie consent management
|
| 101 |
(function() {
|
| 102 |
const COOKIE_CONSENT_KEY = 'verbumix-cookie-consent';
|
| 103 |
-
|
| 104 |
-
if (!consent) {
|
| 105 |
document.getElementById('cookie-consent-banner').style.display = 'block';
|
| 106 |
}
|
| 107 |
document.getElementById('cookie-accept-btn').addEventListener('click', function() {
|
|
@@ -120,60 +128,38 @@
|
|
| 120 |
<script>
|
| 121 |
let aktualisSor = 0;
|
| 122 |
let aktualisBetuIndex = 0;
|
| 123 |
-
|
| 124 |
function getSzoHossz() {
|
| 125 |
const el = document.getElementById('szo-hossz');
|
| 126 |
return el ? parseInt(el.value) || 5 : 5;
|
| 127 |
}
|
| 128 |
-
|
| 129 |
function getMaxProba() {
|
| 130 |
const el = document.getElementById('max-proba');
|
| 131 |
return el ? parseInt(el.value) || 6 : 6;
|
| 132 |
}
|
| 133 |
-
|
| 134 |
-
function resetJatekAllapot() {
|
| 135 |
-
aktualisSor = 0;
|
| 136 |
-
aktualisBetuIndex = 0;
|
| 137 |
-
}
|
| 138 |
-
|
| 139 |
document.addEventListener('keydown', (e) => {
|
| 140 |
if (e.target.tagName === 'INPUT' || e.target.tagName === 'SELECT') return;
|
| 141 |
handleInput(e.key);
|
| 142 |
});
|
| 143 |
-
|
| 144 |
function handleInput(key) {
|
| 145 |
const maxProba = getMaxProba();
|
| 146 |
const szoHossz = getSzoHossz();
|
| 147 |
-
|
| 148 |
if (aktualisSor >= maxProba) return;
|
| 149 |
-
|
| 150 |
const sorok = document.querySelectorAll('.wordle-sor');
|
| 151 |
if (!sorok.length || !sorok[aktualisSor]) return;
|
| 152 |
-
|
| 153 |
const cellak = sorok[aktualisSor].querySelectorAll('.wordle-cella');
|
| 154 |
-
|
| 155 |
if (key === 'Enter') {
|
| 156 |
if (aktualisBetuIndex === szoHossz) {
|
| 157 |
let tipp = "";
|
| 158 |
cellak.forEach(cella => tipp += cella.textContent);
|
| 159 |
-
|
| 160 |
const katElem = document.getElementById('akt-kategoria');
|
| 161 |
const kategoria = katElem ? katElem.value : "szleng";
|
| 162 |
-
|
| 163 |
const startElem = document.getElementById('jatek-start');
|
| 164 |
const startTime = startElem ? startElem.value : '0';
|
| 165 |
htmx.ajax('POST', '/ellenorzes', {
|
| 166 |
-
values: {
|
| 167 |
-
tipp: tipp,
|
| 168 |
-
sor: aktualisSor,
|
| 169 |
-
kategoria: kategoria,
|
| 170 |
-
start_time: startTime,
|
| 171 |
-
hossz: szoHossz,
|
| 172 |
-
},
|
| 173 |
target: sorok[aktualisSor],
|
| 174 |
swap: 'outerHTML'
|
| 175 |
});
|
| 176 |
-
|
| 177 |
aktualisSor++;
|
| 178 |
aktualisBetuIndex = 0;
|
| 179 |
}
|
|
@@ -181,24 +167,19 @@
|
|
| 181 |
if (aktualisBetuIndex > 0) {
|
| 182 |
aktualisBetuIndex--;
|
| 183 |
cellak[aktualisBetuIndex].textContent = "";
|
| 184 |
-
cellak[aktualisBetuIndex].classList.remove('border-
|
| 185 |
-
cellak[aktualisBetuIndex].classList.add('border-gray-700');
|
| 186 |
}
|
| 187 |
} else if (key.length === 1 && /^[a-zA-ZáéíóöőúüűÁÉÍÓÖŐÚÜŰ]$/.test(key)) {
|
| 188 |
if (aktualisBetuIndex < szoHossz) {
|
| 189 |
cellak[aktualisBetuIndex].textContent = key.toUpperCase();
|
| 190 |
-
cellak[aktualisBetuIndex].classList.remove('border-gray-700');
|
| 191 |
-
cellak[aktualisBetuIndex].classList.add('border-gray-400');
|
| 192 |
aktualisBetuIndex++;
|
| 193 |
}
|
| 194 |
}
|
| 195 |
}
|
| 196 |
-
|
| 197 |
document.addEventListener('htmx:afterSwap', (e) => {
|
| 198 |
if (e.detail.target.id === 'jatek-terulet') {
|
| 199 |
aktualisSor = 0;
|
| 200 |
aktualisBetuIndex = 0;
|
| 201 |
-
// Frissitsuk a Dashboard linket az aktualis kategoriaval
|
| 202 |
const katElem = document.getElementById('akt-kategoria');
|
| 203 |
const dashLink = document.getElementById('dashboard-link');
|
| 204 |
if (katElem && dashLink) {
|
|
@@ -208,116 +189,61 @@
|
|
| 208 |
}
|
| 209 |
}
|
| 210 |
});
|
| 211 |
-
|
| 212 |
-
// A Dashboard link alap href elmentese (a kategoria nelkul)
|
| 213 |
document.addEventListener('DOMContentLoaded', () => {
|
| 214 |
const dashLink = document.getElementById('dashboard-link');
|
| 215 |
if (dashLink) {
|
| 216 |
-
|
| 217 |
-
const baseHref = dashLink.href.split('&kategoria=')[0];
|
| 218 |
-
dashLink.setAttribute('data-base-href', baseHref);
|
| 219 |
}
|
| 220 |
});
|
| 221 |
-
|
| 222 |
-
// Share button handler (legacy, inline onclicks also use copyShareText)
|
| 223 |
-
document.addEventListener('click', (e) => {
|
| 224 |
-
if (e.target && e.target.classList.contains('share-gomb')) {
|
| 225 |
-
e.preventDefault();
|
| 226 |
-
const shareText = e.target.getAttribute('data-share-text');
|
| 227 |
-
if (shareText) {
|
| 228 |
-
navigator.clipboard.writeText(shareText).then(() => {
|
| 229 |
-
alert('Másolva!');
|
| 230 |
-
}).catch(() => {
|
| 231 |
-
alert('Nem sikerült másolni');
|
| 232 |
-
});
|
| 233 |
-
}
|
| 234 |
-
}
|
| 235 |
-
});
|
| 236 |
-
|
| 237 |
-
// Success modal functions
|
| 238 |
function closeSuccessModal() {
|
| 239 |
const overlay = document.getElementById('success-modal-overlay');
|
| 240 |
-
if (overlay)
|
| 241 |
-
overlay.remove();
|
| 242 |
-
}
|
| 243 |
}
|
| 244 |
-
|
| 245 |
function closeGameOverModal() {
|
| 246 |
const overlay = document.getElementById('gameover-modal-overlay');
|
| 247 |
-
if (overlay)
|
| 248 |
-
overlay.remove();
|
| 249 |
-
}
|
| 250 |
}
|
| 251 |
-
|
| 252 |
function copyShareText() {
|
| 253 |
const btn = document.getElementById('share-btn');
|
| 254 |
if (!btn) return;
|
| 255 |
const shareText = btn.getAttribute('data-share-text');
|
| 256 |
if (shareText) {
|
| 257 |
navigator.clipboard.writeText(shareText).then(() => {
|
| 258 |
-
btn.innerHTML = '
|
| 259 |
-
btn.classList.add('bg-green-
|
| 260 |
-
btn.classList.remove('bg-blue-600', 'hover:bg-blue-500');
|
| 261 |
setTimeout(() => {
|
| 262 |
-
btn.innerHTML = '
|
| 263 |
-
btn.classList.remove('bg-green-
|
| 264 |
-
btn.classList.add('bg-blue-600', 'hover:bg-blue-500');
|
| 265 |
}, 2000);
|
| 266 |
}).catch(() => {
|
| 267 |
-
alert('Nem
|
| 268 |
});
|
| 269 |
}
|
| 270 |
}
|
| 271 |
-
|
| 272 |
-
// GPS-based language detection and game loading
|
| 273 |
document.addEventListener('DOMContentLoaded', () => {
|
| 274 |
-
// Try to get user's location and detect language
|
| 275 |
if ('geolocation' in navigator) {
|
| 276 |
navigator.geolocation.getCurrentPosition(
|
| 277 |
(position) => {
|
| 278 |
-
//
|
| 279 |
-
const lat = position.coords.latitude;
|
| 280 |
-
const lon = position.coords.longitude;
|
| 281 |
-
|
| 282 |
-
// Use a simple approach: load game and let the server handle it
|
| 283 |
-
// Or use a free reverse geocoding API
|
| 284 |
-
fetch(`https://nominatim.openstreetmap.org/reverse?format=json&lat=${lat}&lon=${lon}&accept-language=en`)
|
| 285 |
.then(response => response.json())
|
| 286 |
.then(data => {
|
| 287 |
const countryCode = data.address?.country_code?.toUpperCase() || 'HU';
|
| 288 |
-
//
|
| 289 |
-
htmx.ajax('GET', `/jatek/nyelv?orszag=${countryCode}`, {
|
| 290 |
-
target: '#jatek-terulet',
|
| 291 |
-
swap: 'innerHTML'
|
| 292 |
-
});
|
| 293 |
})
|
| 294 |
.catch(() => {
|
| 295 |
-
//
|
| 296 |
-
htmx.ajax('GET', '/jatek/szleng', {
|
| 297 |
-
target: '#jatek-terulet',
|
| 298 |
-
swap: 'innerHTML'
|
| 299 |
-
});
|
| 300 |
});
|
| 301 |
},
|
| 302 |
-
(
|
| 303 |
-
//
|
| 304 |
-
console.log('Geolocation error:', error);
|
| 305 |
-
htmx.ajax('GET', '/jatek/szleng', {
|
| 306 |
-
target: '#jatek-terulet',
|
| 307 |
-
swap: 'innerHTML'
|
| 308 |
-
});
|
| 309 |
},
|
| 310 |
{ enableHighAccuracy: true, timeout: 10000, maximumAge: 300000 }
|
| 311 |
);
|
| 312 |
} else {
|
| 313 |
-
//
|
| 314 |
-
htmx.ajax('GET', '/jatek/szleng', {
|
| 315 |
-
target: '#jatek-terulet',
|
| 316 |
-
swap: 'innerHTML'
|
| 317 |
-
});
|
| 318 |
}
|
| 319 |
});
|
| 320 |
</script>
|
| 321 |
<script src="/static/js/theme.js"></script>
|
| 322 |
</body>
|
| 323 |
-
</html>
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
+
<html lang="{{ lang | default('hu') }}" class="dark h-full">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
| 7 |
<script src="https://unpkg.com/htmx.org@1.9.12"></script>
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script>
|
|
|
|
| 10 |
tailwind.config = {
|
| 11 |
darkMode: 'class',
|
| 12 |
theme: {
|
| 13 |
extend: {
|
| 14 |
colors: {
|
| 15 |
+
'game-bg': '#0a0f0a',
|
| 16 |
+
'game-card': '#111a11',
|
| 17 |
+
'game-text': '#d8e8d8',
|
| 18 |
+
'game-accent': '#1a8a1a',
|
| 19 |
+
'game-accent-hover': '#22aa22',
|
| 20 |
+
'game-border': '#1a2a1a',
|
| 21 |
+
'game-muted': '#4a5a4a',
|
| 22 |
}
|
| 23 |
}
|
| 24 |
}
|
|
|
|
| 28 |
<style>
|
| 29 |
.animate-fade-in { animation: fadeIn 0.3s ease-out forwards; }
|
| 30 |
@keyframes fadeIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
|
| 31 |
+
.bg-game { background-color: #0a0f0a; }
|
| 32 |
+
.bg-card { background-color: #111a11; }
|
| 33 |
+
.bg-header { background-color: #060a06; }
|
| 34 |
+
.text-game { color: #d8e8d8; }
|
| 35 |
+
.text-muted { color: #4a5a4a; }
|
| 36 |
+
.text-accent { color: #1a8a1a; }
|
| 37 |
+
.border-game { border-color: #1a2a1a; }
|
| 38 |
+
.btn-accent { background-color: #1a8a1a; color: #e8f8e8; }
|
| 39 |
+
.btn-accent:hover { background-color: #22aa22; }
|
| 40 |
+
.btn-dark { background-color: #1a2a1a; color: #c8d8c8; }
|
| 41 |
+
.btn-dark:hover { background-color: #1f301f; }
|
| 42 |
+
.btn-danger { color: #cc5555; }
|
| 43 |
+
.btn-danger:hover { color: #ee6666; }
|
| 44 |
</style>
|
| 45 |
{% if google_analytics_id %}
|
| 46 |
<script>
|
|
|
|
| 47 |
(function() {
|
| 48 |
const consent = localStorage.getItem('verbumix-cookie-consent');
|
| 49 |
if (consent === 'accepted') {
|
|
|
|
| 60 |
</script>
|
| 61 |
{% endif %}
|
| 62 |
</head>
|
| 63 |
+
<body class="flex flex-col h-full font-sans antialiased bg-game text-game">
|
| 64 |
|
| 65 |
+
<header class="border-b border-game bg-header px-4 py-3 flex justify-between items-center shadow-md">
|
| 66 |
+
<h1 class="text-xl font-black tracking-wider text-accent cursor-pointer" hx-get="/jatek-valaszto" hx-target="#jatek-terulet">
|
| 67 |
{{ _('header_title') }}
|
| 68 |
</h1>
|
| 69 |
<nav class="flex gap-4 text-sm font-medium items-center">
|
| 70 |
+
<button hx-get="/jatek-valaszto" hx-target="#jatek-terulet" class="hover:text-green-400 transition cursor-pointer text-game bg-transparent border-0">{{ _('nav_games') }}</button>
|
| 71 |
+
<button hx-get="/rangletra" hx-target="#jatek-terulet" class="hover:text-green-400 transition cursor-pointer text-game bg-transparent border-0">{{ _('nav_leaderboard') }}</button>
|
| 72 |
+
<button hx-get="/premium" hx-target="#jatek-terulet" class="text-accent hover:text-green-400 font-bold transition cursor-pointer bg-transparent border-0">{{ _('nav_premium') }}</button>
|
| 73 |
+
|
| 74 |
{% if user %}
|
| 75 |
+
<a id="dashboard-link" href="/auth/sso-redirect?next=/dashboard" target="_blank" class="text-accent hover:text-green-400 font-bold transition text-xs uppercase tracking-wider bg-transparent border border-green-700 px-2 py-1 rounded">{{ _('nav_dashboard') }}</a>
|
| 76 |
+
<span class="text-muted border-l border-game pl-4 text-xs font-mono select-none">{{ user.email }}</span>
|
| 77 |
+
<a href="/auth/logout" class="btn-danger font-semibold transition text-xs uppercase tracking-wider bg-transparent">{{ _('nav_logout') }}</a>
|
| 78 |
{% else %}
|
| 79 |
+
<span class="text-muted">|</span>
|
| 80 |
+
<button hx-get="/auth/login-page" hx-target="#jatek-terulet" class="text-muted hover:text-game bg-transparent border-0 cursor-pointer">{{ _('nav_login') }}</button>
|
| 81 |
+
<button hx-get="/auth/register-page" hx-target="#jatek-terulet" class="px-3 py-1.5 btn-accent rounded font-bold transition border-0 cursor-pointer text-xs">{{ _('nav_register') }}</button>
|
| 82 |
{% endif %}
|
|
|
|
|
|
|
| 83 |
</nav>
|
| 84 |
</header>
|
| 85 |
|
| 86 |
<main id="jatek-terulet" class="flex-1 flex flex-col items-center justify-center p-4">
|
|
|
|
| 87 |
<div id="game-loader"></div>
|
| 88 |
</main>
|
| 89 |
|
| 90 |
+
<footer class="border-t border-game bg-header px-4 py-3 text-center text-xs text-muted">
|
| 91 |
<nav class="flex gap-4 justify-center flex-wrap">
|
| 92 |
+
<a href="/privacy" hx-get="/privacy" hx-target="#jatek-terulet" class="hover:text-green-400 transition cursor-pointer">Adatkezelesi Tajekoztato</a>
|
| 93 |
+
<a href="/terms" hx-get="/terms" hx-target="#jatek-terulet" class="hover:text-green-400 transition cursor-pointer">Felhasznalasi Feltetelek</a>
|
| 94 |
+
<a href="/cookies" hx-get="/cookies" hx-target="#jatek-terulet" class="hover:text-green-400 transition cursor-pointer">Cookie Tajekoztato</a>
|
| 95 |
</nav>
|
| 96 |
<p class="mt-1">2026 Verbumix</p>
|
| 97 |
</footer>
|
| 98 |
|
| 99 |
+
<div id="cookie-consent-banner" class="fixed bottom-0 left-0 right-0 z-40 bg-header border-t border-game p-4 shadow-2xl" style="display: none;">
|
|
|
|
| 100 |
<div class="max-w-4xl mx-auto flex flex-col sm:flex-row items-center justify-between gap-3">
|
| 101 |
+
<p class="text-sm text-muted">Ez a weboldal cookie-kat hasznal a bejelentkezeshez es anonim latogatasi statisztikakhoz. Reszletek a <a href="/cookies" hx-get="/cookies" hx-target="#jatek-terulet" class="text-accent underline">Cookie Tajekoztatoban</a>.</p>
|
| 102 |
<div class="flex gap-2 flex-shrink-0">
|
| 103 |
+
<button id="cookie-reject-btn" class="px-4 py-2 btn-dark rounded text-sm font-bold cursor-pointer border-0 transition">Elutasitas</button>
|
| 104 |
+
<button id="cookie-accept-btn" class="px-4 py-2 btn-accent rounded text-sm font-bold cursor-pointer border-0 transition">Elfogadas</button>
|
| 105 |
</div>
|
| 106 |
</div>
|
| 107 |
</div>
|
| 108 |
|
| 109 |
<script>
|
|
|
|
| 110 |
(function() {
|
| 111 |
const COOKIE_CONSENT_KEY = 'verbumix-cookie-consent';
|
| 112 |
+
if (!localStorage.getItem(COOKIE_CONSENT_KEY)) {
|
|
|
|
| 113 |
document.getElementById('cookie-consent-banner').style.display = 'block';
|
| 114 |
}
|
| 115 |
document.getElementById('cookie-accept-btn').addEventListener('click', function() {
|
|
|
|
| 128 |
<script>
|
| 129 |
let aktualisSor = 0;
|
| 130 |
let aktualisBetuIndex = 0;
|
|
|
|
| 131 |
function getSzoHossz() {
|
| 132 |
const el = document.getElementById('szo-hossz');
|
| 133 |
return el ? parseInt(el.value) || 5 : 5;
|
| 134 |
}
|
|
|
|
| 135 |
function getMaxProba() {
|
| 136 |
const el = document.getElementById('max-proba');
|
| 137 |
return el ? parseInt(el.value) || 6 : 6;
|
| 138 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
document.addEventListener('keydown', (e) => {
|
| 140 |
if (e.target.tagName === 'INPUT' || e.target.tagName === 'SELECT') return;
|
| 141 |
handleInput(e.key);
|
| 142 |
});
|
|
|
|
| 143 |
function handleInput(key) {
|
| 144 |
const maxProba = getMaxProba();
|
| 145 |
const szoHossz = getSzoHossz();
|
|
|
|
| 146 |
if (aktualisSor >= maxProba) return;
|
|
|
|
| 147 |
const sorok = document.querySelectorAll('.wordle-sor');
|
| 148 |
if (!sorok.length || !sorok[aktualisSor]) return;
|
|
|
|
| 149 |
const cellak = sorok[aktualisSor].querySelectorAll('.wordle-cella');
|
|
|
|
| 150 |
if (key === 'Enter') {
|
| 151 |
if (aktualisBetuIndex === szoHossz) {
|
| 152 |
let tipp = "";
|
| 153 |
cellak.forEach(cella => tipp += cella.textContent);
|
|
|
|
| 154 |
const katElem = document.getElementById('akt-kategoria');
|
| 155 |
const kategoria = katElem ? katElem.value : "szleng";
|
|
|
|
| 156 |
const startElem = document.getElementById('jatek-start');
|
| 157 |
const startTime = startElem ? startElem.value : '0';
|
| 158 |
htmx.ajax('POST', '/ellenorzes', {
|
| 159 |
+
values: { tipp: tipp, sor: aktualisSor, kategoria: kategoria, start_time: startTime, hossz: szoHossz },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
target: sorok[aktualisSor],
|
| 161 |
swap: 'outerHTML'
|
| 162 |
});
|
|
|
|
| 163 |
aktualisSor++;
|
| 164 |
aktualisBetuIndex = 0;
|
| 165 |
}
|
|
|
|
| 167 |
if (aktualisBetuIndex > 0) {
|
| 168 |
aktualisBetuIndex--;
|
| 169 |
cellak[aktualisBetuIndex].textContent = "";
|
| 170 |
+
cellak[aktualisBetuIndex].classList.remove('border-game');
|
|
|
|
| 171 |
}
|
| 172 |
} else if (key.length === 1 && /^[a-zA-ZáéíóöőúüűÁÉÍÓÖŐÚÜŰ]$/.test(key)) {
|
| 173 |
if (aktualisBetuIndex < szoHossz) {
|
| 174 |
cellak[aktualisBetuIndex].textContent = key.toUpperCase();
|
|
|
|
|
|
|
| 175 |
aktualisBetuIndex++;
|
| 176 |
}
|
| 177 |
}
|
| 178 |
}
|
|
|
|
| 179 |
document.addEventListener('htmx:afterSwap', (e) => {
|
| 180 |
if (e.detail.target.id === 'jatek-terulet') {
|
| 181 |
aktualisSor = 0;
|
| 182 |
aktualisBetuIndex = 0;
|
|
|
|
| 183 |
const katElem = document.getElementById('akt-kategoria');
|
| 184 |
const dashLink = document.getElementById('dashboard-link');
|
| 185 |
if (katElem && dashLink) {
|
|
|
|
| 189 |
}
|
| 190 |
}
|
| 191 |
});
|
|
|
|
|
|
|
| 192 |
document.addEventListener('DOMContentLoaded', () => {
|
| 193 |
const dashLink = document.getElementById('dashboard-link');
|
| 194 |
if (dashLink) {
|
| 195 |
+
dashLink.setAttribute('data-base-href', dashLink.href.split('&kategoria=')[0]);
|
|
|
|
|
|
|
| 196 |
}
|
| 197 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 198 |
function closeSuccessModal() {
|
| 199 |
const overlay = document.getElementById('success-modal-overlay');
|
| 200 |
+
if (overlay) overlay.remove();
|
|
|
|
|
|
|
| 201 |
}
|
|
|
|
| 202 |
function closeGameOverModal() {
|
| 203 |
const overlay = document.getElementById('gameover-modal-overlay');
|
| 204 |
+
if (overlay) overlay.remove();
|
|
|
|
|
|
|
| 205 |
}
|
|
|
|
| 206 |
function copyShareText() {
|
| 207 |
const btn = document.getElementById('share-btn');
|
| 208 |
if (!btn) return;
|
| 209 |
const shareText = btn.getAttribute('data-share-text');
|
| 210 |
if (shareText) {
|
| 211 |
navigator.clipboard.writeText(shareText).then(() => {
|
| 212 |
+
btn.innerHTML = 'Masolva!';
|
| 213 |
+
btn.classList.add('bg-green-700', 'hover:bg-green-600');
|
|
|
|
| 214 |
setTimeout(() => {
|
| 215 |
+
btn.innerHTML = 'Masolas';
|
| 216 |
+
btn.classList.remove('bg-green-700', 'hover:bg-green-600');
|
|
|
|
| 217 |
}, 2000);
|
| 218 |
}).catch(() => {
|
| 219 |
+
alert('Nem sikerult masolni.');
|
| 220 |
});
|
| 221 |
}
|
| 222 |
}
|
|
|
|
|
|
|
| 223 |
document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
| 224 |
if ('geolocation' in navigator) {
|
| 225 |
navigator.geolocation.getCurrentPosition(
|
| 226 |
(position) => {
|
| 227 |
+
fetch(`https://nominatim.openstreetmap.org/reverse?format=json&lat=${position.coords.latitude}&lon=${position.coords.longitude}&accept-language=en`)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 228 |
.then(response => response.json())
|
| 229 |
.then(data => {
|
| 230 |
const countryCode = data.address?.country_code?.toUpperCase() || 'HU';
|
| 231 |
+
htmx.ajax('GET', `/jatek/nyelv?orszag=${countryCode}`, { target: '#jatek-terulet', swap: 'innerHTML' });
|
|
|
|
|
|
|
|
|
|
|
|
|
| 232 |
})
|
| 233 |
.catch(() => {
|
| 234 |
+
htmx.ajax('GET', '/jatek/szleng', { target: '#jatek-terulet', swap: 'innerHTML' });
|
|
|
|
|
|
|
|
|
|
|
|
|
| 235 |
});
|
| 236 |
},
|
| 237 |
+
() => {
|
| 238 |
+
htmx.ajax('GET', '/jatek/szleng', { target: '#jatek-terulet', swap: 'innerHTML' });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
},
|
| 240 |
{ enableHighAccuracy: true, timeout: 10000, maximumAge: 300000 }
|
| 241 |
);
|
| 242 |
} else {
|
| 243 |
+
htmx.ajax('GET', '/jatek/szleng', { target: '#jatek-terulet', swap: 'innerHTML' });
|
|
|
|
|
|
|
|
|
|
|
|
|
| 244 |
}
|
| 245 |
});
|
| 246 |
</script>
|
| 247 |
<script src="/static/js/theme.js"></script>
|
| 248 |
</body>
|
| 249 |
+
</html>
|
src/wordgame/templates/dashboard.html
CHANGED
|
@@ -23,36 +23,36 @@
|
|
| 23 |
</head>
|
| 24 |
<body class="flex flex-col min-h-screen font-sans antialiased" style="background-color: var(--bg-primary); color: var(--text-primary);">
|
| 25 |
|
| 26 |
-
<header class="border-b border-
|
| 27 |
-
<h1 class="text-xl font-black text-
|
| 28 |
<nav class="flex gap-4 text-sm font-medium items-center">
|
| 29 |
-
<a href="{{ public_base_url }}/jatek-valaszto" target="_blank" class="hover:text-green-600 dark:hover:text-
|
| 30 |
<a href="/auth/logout" class="text-red-500 hover:text-red-600 font-semibold text-xs uppercase">Kijelentkezés</a>
|
| 31 |
</nav>
|
| 32 |
</header>
|
| 33 |
|
| 34 |
<main class="flex-1 max-w-5xl mx-auto p-6 w-full">
|
| 35 |
<!-- User info -->
|
| 36 |
-
<div class="mb-6 p-4 bg-
|
| 37 |
<div>
|
| 38 |
-
<p class="text-sm text-
|
| 39 |
<p class="font-mono text-sm">{{ user_email }}</p>
|
| 40 |
</div>
|
| 41 |
<div id="subscription-status" hx-get="/dashboard/subscription" hx-trigger="load" hx-swap="innerHTML">
|
| 42 |
-
<span class="text-
|
| 43 |
</div>
|
| 44 |
</div>
|
| 45 |
|
| 46 |
<!-- Jatek statisztika szekció -->
|
| 47 |
{% if kategoria %}
|
| 48 |
-
<div class="mb-4 p-2 bg-
|
| 49 |
-
A WordGame-bol erkeztel, kategoria: <span class="text-
|
| 50 |
</div>
|
| 51 |
{% endif %}
|
| 52 |
<section class="mb-8">
|
| 53 |
<h2 class="text-2xl font-bold mb-4"> Jatek Statisztika</h2>
|
| 54 |
<div id="player-stats" hx-get="/dashboard/stats" hx-trigger="load" hx-swap="innerHTML">
|
| 55 |
-
<p class="text-
|
| 56 |
</div>
|
| 57 |
</section>
|
| 58 |
|
|
@@ -60,11 +60,11 @@
|
|
| 60 |
<section class="mb-8">
|
| 61 |
<div class="flex justify-between items-center mb-4">
|
| 62 |
<h2 class="text-2xl font-bold"> Paklik (Deck-ek)</h2>
|
| 63 |
-
<button hx-get="/dashboard/deck" hx-trigger="click once" class="px-4 py-2
|
| 64 |
Paklik frissítése
|
| 65 |
</button>
|
| 66 |
</div>
|
| 67 |
-
<div id="decks-list" hx-get="/dashboard/deck" hx-trigger="load" hx-swap="innerHTML" class="text-
|
| 68 |
Betöltés...
|
| 69 |
</div>
|
| 70 |
</section>
|
|
@@ -72,7 +72,7 @@
|
|
| 72 |
<!-- Invite szekció -->
|
| 73 |
<section class="mb-8">
|
| 74 |
<h2 class="text-2xl font-bold mb-4"> Meghívók</h2>
|
| 75 |
-
<div id="invites-list" hx-get="/dashboard/invite" hx-trigger="load" hx-swap="innerHTML" class="text-
|
| 76 |
Betöltés...
|
| 77 |
</div>
|
| 78 |
</section>
|
|
@@ -84,7 +84,7 @@
|
|
| 84 |
<!-- Szoba létrehozás gomb -->
|
| 85 |
<div id="room-create" class="text-center">
|
| 86 |
<button hx-post="/szoba/letrehozas" hx-target="#room-area" hx-swap="innerHTML"
|
| 87 |
-
class="px-6 py-3
|
| 88 |
Új Szoba Létrehozása
|
| 89 |
</button>
|
| 90 |
</div>
|
|
@@ -92,14 +92,14 @@
|
|
| 92 |
<!-- Szoba csatlakozás form -->
|
| 93 |
<div id="room-join" class="flex gap-2 justify-center items-end">
|
| 94 |
<div class="flex flex-col gap-1">
|
| 95 |
-
<label class="text-xs text-
|
| 96 |
<input id="room-code-input" type="text" name="szoba_kod" maxlength="6" placeholder="ABC123"
|
| 97 |
-
class="bg-
|
| 98 |
autocomplete="off" />
|
| 99 |
</div>
|
| 100 |
<button hx-post="/szoba/csatlakozas" hx-target="#room-area" hx-swap="innerHTML"
|
| 101 |
hx-include="#room-code-input"
|
| 102 |
-
class="px-4 py-2
|
| 103 |
Csatlakozás
|
| 104 |
</button>
|
| 105 |
</div>
|
|
@@ -107,11 +107,11 @@
|
|
| 107 |
</section>
|
| 108 |
|
| 109 |
<!-- Rejtett admin link (csak admin email-ű usereknek) -->
|
| 110 |
-
<footer class="mt-12 pt-6 border-t border-
|
| 111 |
<p>user_id: <span class="font-mono">{{ user_id }}</span></p>
|
| 112 |
{% if is_admin %}
|
| 113 |
<p class="mt-2">
|
| 114 |
-
<a href="/{{ admin_path }}" class="text-
|
| 115 |
Admin Panel
|
| 116 |
</a>
|
| 117 |
</p>
|
|
|
|
| 23 |
</head>
|
| 24 |
<body class="flex flex-col min-h-screen font-sans antialiased" style="background-color: var(--bg-primary); color: var(--text-primary);">
|
| 25 |
|
| 26 |
+
<header class="border-b border-game bg-header px-4 py-3 flex justify-between items-center">
|
| 27 |
+
<h1 class="text-xl font-black text-accent">VERBUMIX DASHBOARD</h1>
|
| 28 |
<nav class="flex gap-4 text-sm font-medium items-center">
|
| 29 |
+
<a href="{{ public_base_url }}/jatek-valaszto" target="_blank" class="hover:text-green-600 dark:hover:text-accent">Jatek (Verbumix)</a>
|
| 30 |
<a href="/auth/logout" class="text-red-500 hover:text-red-600 font-semibold text-xs uppercase">Kijelentkezés</a>
|
| 31 |
</nav>
|
| 32 |
</header>
|
| 33 |
|
| 34 |
<main class="flex-1 max-w-5xl mx-auto p-6 w-full">
|
| 35 |
<!-- User info -->
|
| 36 |
+
<div class="mb-6 p-4 bg-card rounded-lg flex justify-between items-center">
|
| 37 |
<div>
|
| 38 |
+
<p class="text-sm text-muted">Bejelentkezve mint:</p>
|
| 39 |
<p class="font-mono text-sm">{{ user_email }}</p>
|
| 40 |
</div>
|
| 41 |
<div id="subscription-status" hx-get="/dashboard/subscription" hx-trigger="load" hx-swap="innerHTML">
|
| 42 |
+
<span class="text-muted">Betöltés...</span>
|
| 43 |
</div>
|
| 44 |
</div>
|
| 45 |
|
| 46 |
<!-- Jatek statisztika szekció -->
|
| 47 |
{% if kategoria %}
|
| 48 |
+
<div class="mb-4 p-2 bg-game/50 border border-game rounded text-center text-sm text-muted">
|
| 49 |
+
A WordGame-bol erkeztel, kategoria: <span class="text-accent font-bold">{{ kategoria }}</span>
|
| 50 |
</div>
|
| 51 |
{% endif %}
|
| 52 |
<section class="mb-8">
|
| 53 |
<h2 class="text-2xl font-bold mb-4"> Jatek Statisztika</h2>
|
| 54 |
<div id="player-stats" hx-get="/dashboard/stats" hx-trigger="load" hx-swap="innerHTML">
|
| 55 |
+
<p class="text-muted">Betöltés...</p>
|
| 56 |
</div>
|
| 57 |
</section>
|
| 58 |
|
|
|
|
| 60 |
<section class="mb-8">
|
| 61 |
<div class="flex justify-between items-center mb-4">
|
| 62 |
<h2 class="text-2xl font-bold"> Paklik (Deck-ek)</h2>
|
| 63 |
+
<button hx-get="/dashboard/deck" hx-trigger="click once" class="px-4 py-2 btn-accent text-game rounded text-sm font-bold">
|
| 64 |
Paklik frissítése
|
| 65 |
</button>
|
| 66 |
</div>
|
| 67 |
+
<div id="decks-list" hx-get="/dashboard/deck" hx-trigger="load" hx-swap="innerHTML" class="text-muted">
|
| 68 |
Betöltés...
|
| 69 |
</div>
|
| 70 |
</section>
|
|
|
|
| 72 |
<!-- Invite szekció -->
|
| 73 |
<section class="mb-8">
|
| 74 |
<h2 class="text-2xl font-bold mb-4"> Meghívók</h2>
|
| 75 |
+
<div id="invites-list" hx-get="/dashboard/invite" hx-trigger="load" hx-swap="innerHTML" class="text-muted">
|
| 76 |
Betöltés...
|
| 77 |
</div>
|
| 78 |
</section>
|
|
|
|
| 84 |
<!-- Szoba létrehozás gomb -->
|
| 85 |
<div id="room-create" class="text-center">
|
| 86 |
<button hx-post="/szoba/letrehozas" hx-target="#room-area" hx-swap="innerHTML"
|
| 87 |
+
class="px-6 py-3 btn-accent text-game font-bold rounded-lg text-sm cursor-pointer border-0 transition">
|
| 88 |
Új Szoba Létrehozása
|
| 89 |
</button>
|
| 90 |
</div>
|
|
|
|
| 92 |
<!-- Szoba csatlakozás form -->
|
| 93 |
<div id="room-join" class="flex gap-2 justify-center items-end">
|
| 94 |
<div class="flex flex-col gap-1">
|
| 95 |
+
<label class="text-xs text-muted font-medium">Szobakód</label>
|
| 96 |
<input id="room-code-input" type="text" name="szoba_kod" maxlength="6" placeholder="ABC123"
|
| 97 |
+
class="bg-card border border-game rounded px-3 py-2 text-game font-mono text-lg w-32 text-center uppercase tracking-widest"
|
| 98 |
autocomplete="off" />
|
| 99 |
</div>
|
| 100 |
<button hx-post="/szoba/csatlakozas" hx-target="#room-area" hx-swap="innerHTML"
|
| 101 |
hx-include="#room-code-input"
|
| 102 |
+
class="px-4 py-2 btn-accent text-game font-bold rounded-lg text-sm cursor-pointer border-0 transition">
|
| 103 |
Csatlakozás
|
| 104 |
</button>
|
| 105 |
</div>
|
|
|
|
| 107 |
</section>
|
| 108 |
|
| 109 |
<!-- Rejtett admin link (csak admin email-ű usereknek) -->
|
| 110 |
+
<footer class="mt-12 pt-6 border-t border-game text-center text-xs text-muted">
|
| 111 |
<p>user_id: <span class="font-mono">{{ user_id }}</span></p>
|
| 112 |
{% if is_admin %}
|
| 113 |
<p class="mt-2">
|
| 114 |
+
<a href="/{{ admin_path }}" class="text-accent hover:text-green-400 font-bold underline">
|
| 115 |
Admin Panel
|
| 116 |
</a>
|
| 117 |
</p>
|
src/wordgame/templates/forgot-password.html
CHANGED
|
@@ -1,24 +1,24 @@
|
|
| 1 |
-
<div class="w-full max-w-sm bg-
|
| 2 |
<div class="text-center mb-6">
|
| 3 |
-
<h2 class="text-xl font-black tracking-wide text-
|
| 4 |
-
<p class="text-xs text-
|
| 5 |
</div>
|
| 6 |
|
| 7 |
<div id="forgot-status" class="mb-4"></div>
|
| 8 |
|
| 9 |
<form hx-post="/auth/forgot-password" hx-target="#forgot-status" hx-swap="innerHTML" class="flex flex-col gap-4">
|
| 10 |
<div>
|
| 11 |
-
<label class="block text-xs font-bold uppercase tracking-wider text-
|
| 12 |
<input type="email" name="email" required autocomplete="email"
|
| 13 |
-
class="w-full bg-gray-50 dark:bg-
|
| 14 |
</div>
|
| 15 |
|
| 16 |
-
<button type="submit" class="w-full py-3 bg-indigo-600 hover:bg-indigo-500 font-bold rounded-lg text-sm uppercase tracking-wider transition cursor-pointer text-
|
| 17 |
Link küldése
|
| 18 |
</button>
|
| 19 |
</form>
|
| 20 |
|
| 21 |
-
<div class="mt-6 text-center text-xs text-
|
| 22 |
-
<button hx-get="/login" hx-target="#jatek-terulet" class="text-
|
| 23 |
</div>
|
| 24 |
</div>
|
|
|
|
| 1 |
+
<div class="w-full max-w-sm bg-card dark:bg-header border border-game rounded-xl p-6 shadow-2xl animate-fade-in mx-auto">
|
| 2 |
<div class="text-center mb-6">
|
| 3 |
+
<h2 class="text-xl font-black tracking-wide text-game"> JELSZÓ VISSZAÁLLÍTÁS</h2>
|
| 4 |
+
<p class="text-xs text-muted mt-1">Add meg az emailed a helyreállító linkhez</p>
|
| 5 |
</div>
|
| 6 |
|
| 7 |
<div id="forgot-status" class="mb-4"></div>
|
| 8 |
|
| 9 |
<form hx-post="/auth/forgot-password" hx-target="#forgot-status" hx-swap="innerHTML" class="flex flex-col gap-4">
|
| 10 |
<div>
|
| 11 |
+
<label class="block text-xs font-bold uppercase tracking-wider text-muted mb-1">Email cím</label>
|
| 12 |
<input type="email" name="email" required autocomplete="email"
|
| 13 |
+
class="w-full bg-gray-50 dark:bg-game border border-game dark:border-game rounded-lg py-2.5 px-3 text-sm text-game focus:outline-none focus:border-green-500 transition">
|
| 14 |
</div>
|
| 15 |
|
| 16 |
+
<button type="submit" class="w-full py-3 bg-indigo-600 hover:bg-indigo-500 font-bold rounded-lg text-sm uppercase tracking-wider transition cursor-pointer text-game border-0 mt-2">
|
| 17 |
Link küldése
|
| 18 |
</button>
|
| 19 |
</form>
|
| 20 |
|
| 21 |
+
<div class="mt-6 text-center text-xs text-muted border-t border-game dark:border-gray-900 pt-4">
|
| 22 |
+
<button hx-get="/login" hx-target="#jatek-terulet" class="text-muted hover:text-gray-700 dark:hover:text-game bg-transparent border-0 cursor-pointer"> Vissza a belépéshez</button>
|
| 23 |
</div>
|
| 24 |
</div>
|
src/wordgame/templates/jatek-valaszto.html
CHANGED
|
@@ -1,263 +1,184 @@
|
|
| 1 |
-
<div class="w-full max-w-
|
| 2 |
-
<
|
| 3 |
-
|
| 4 |
-
{{ _('game_selector_title') }}
|
| 5 |
</h2>
|
| 6 |
-
|
| 7 |
-
<
|
| 8 |
-
|
| 9 |
-
<button hx-get="/jatek/szleng" hx-target="#jatek-terulet" class="w-full py-4 bg-gradient-to-r from-orange-500 to-red-600 font-bold rounded-xl shadow-lg hover:opacity-90 transition cursor-pointer text-left px-6 flex justify-between text-white border-0 group">
|
| 10 |
<div>
|
| 11 |
-
<span class="text-2xl"></span>
|
| 12 |
-
<span class="
|
| 13 |
</div>
|
| 14 |
-
|
| 15 |
-
</
|
| 16 |
-
|
| 17 |
-
<button hx-get="/jatek/matek" hx-target="#jatek-terulet" class="w-full py-4 bg-gradient-to-r from-blue-500 to-indigo-600 font-bold rounded-xl shadow-lg hover:opacity-90 transition cursor-pointer text-left px-6 flex justify-between text-white border-0 group">
|
| 18 |
<div>
|
| 19 |
-
<span class="text-2xl"></span>
|
| 20 |
-
<span class="
|
| 21 |
</div>
|
| 22 |
-
|
| 23 |
-
</
|
| 24 |
-
|
| 25 |
-
<button hx-get="/jatek/gamer" hx-target="#jatek-terulet" class="w-full py-4 bg-gradient-to-r from-purple-500 to-pink-600 font-bold rounded-xl shadow-lg hover:opacity-90 transition cursor-pointer text-left px-6 flex justify-between text-white border-0 group">
|
| 26 |
<div>
|
| 27 |
-
<span class="text-2xl"></span>
|
| 28 |
-
<span class="
|
| 29 |
</div>
|
| 30 |
-
|
| 31 |
-
</button>
|
| 32 |
</div>
|
| 33 |
-
|
| 34 |
-
<
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
<
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
</
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
<
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
<
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
</
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
<
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
</button>
|
| 64 |
-
|
| 65 |
-
<!-- Afrika -->
|
| 66 |
-
<button hx-get="/jatek/nyelv?orszag=ZA" hx-target="#jatek-terulet" class="p-3 bg-gray-100 dark:bg-gray-800 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-lg transition cursor-pointer border-0 text-center group">
|
| 67 |
-
<span class="text-2xl block mb-1"></span>
|
| 68 |
-
<span class="text-xs font-bold text-gray-700 dark:text-gray-300 group-hover:text-green-600 dark:group-hover:text-green-400">{{ _('continent_africa') }}</span>
|
| 69 |
-
</button>
|
| 70 |
-
|
| 71 |
-
<!-- Oceanian -->
|
| 72 |
-
<button hx-get="/jatek/nyelv?orszag=AU" hx-target="#jatek-terulet" class="p-3 bg-gray-100 dark:bg-gray-800 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-lg transition cursor-pointer border-0 text-center group">
|
| 73 |
-
<span class="text-2xl block mb-1"></span>
|
| 74 |
-
<span class="text-xs font-bold text-gray-700 dark:text-gray-300 group-hover:text-green-600 dark:group-hover:text-green-400">{{ _('continent_oceania') }}</span>
|
| 75 |
-
</button>
|
| 76 |
-
</div>
|
| 77 |
-
</div>
|
| 78 |
-
|
| 79 |
-
<!-- Nepszeru nyelvek -->
|
| 80 |
-
<div class="mb-6">
|
| 81 |
-
<h3 class="text-lg font-bold mb-4 text-gray-700 dark:text-gray-300">
|
| 82 |
-
{{ _('popular_languages') }}
|
| 83 |
-
</h3>
|
| 84 |
-
|
| 85 |
-
<div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-3">
|
| 86 |
-
<button hx-get="/jatek/nyelv?orszag=US" hx-target="#jatek-terulet" class="p-3 bg-green-100 dark:bg-green-900/30 hover:bg-green-200 dark:hover:bg-green-900/50 rounded-lg transition cursor-pointer border-0 text-center group">
|
| 87 |
-
<span class="text-2xl block mb-1"></span>
|
| 88 |
-
<span class="text-xs font-bold text-gray-700 dark:text-gray-300 group-hover:text-green-600 dark:group-hover:text-green-400">{{ _('language_english') }}</span>
|
| 89 |
-
</button>
|
| 90 |
-
|
| 91 |
-
<button hx-get="/jatek/nyelv?orszag=DE" hx-target="#jatek-terulet" class="p-3 bg-green-100 dark:bg-green-900/30 hover:bg-green-200 dark:hover:bg-green-900/50 rounded-lg transition cursor-pointer border-0 text-center group">
|
| 92 |
-
<span class="text-2xl block mb-1"></span>
|
| 93 |
-
<span class="text-xs font-bold text-gray-700 dark:text-gray-300 group-hover:text-green-600 dark:group-hover:text-green-400">{{ _('language_german') }}</span>
|
| 94 |
-
</button>
|
| 95 |
-
|
| 96 |
-
<button hx-get="/jatek/nyelv?orszag=FR" hx-target="#jatek-terulet" class="p-3 bg-green-100 dark:bg-green-900/30 hover:bg-green-200 dark:hover:bg-green-900/50 rounded-lg transition cursor-pointer border-0 text-center group">
|
| 97 |
-
<span class="text-2xl block mb-1"></span>
|
| 98 |
-
<span class="text-xs font-bold text-gray-700 dark:text-gray-300 group-hover:text-green-600 dark:group-hover:text-green-400">{{ _('language_french') }}</span>
|
| 99 |
-
</button>
|
| 100 |
-
|
| 101 |
-
<button hx-get="/jatek/nyelv?orszag=ES" hx-target="#jatek-terulet" class="p-3 bg-green-100 dark:bg-green-900/30 hover:bg-green-200 dark:hover:bg-green-900/50 rounded-lg transition cursor-pointer border-0 text-center group">
|
| 102 |
-
<span class="text-2xl block mb-1"></span>
|
| 103 |
-
<span class="text-xs font-bold text-gray-700 dark:text-gray-300 group-hover:text-green-600 dark:group-hover:text-green-400">{{ _('language_spanish') }}</span>
|
| 104 |
-
</button>
|
| 105 |
-
|
| 106 |
-
<button hx-get="/jatek/nyelv?orszag=JP" hx-target="#jatek-terulet" class="p-3 bg-green-100 dark:bg-green-900/30 hover:bg-green-200 dark:hover:bg-green-900/50 rounded-lg transition cursor-pointer border-0 text-center group">
|
| 107 |
-
<span class="text-2xl block mb-1"></span>
|
| 108 |
-
<span class="text-xs font-bold text-gray-700 dark:text-gray-300 group-hover:text-green-600 dark:group-hover:text-green-400">{{ _('language_japanese') }}</span>
|
| 109 |
-
</button>
|
| 110 |
-
|
| 111 |
-
<button hx-get="/jatek/nyelv?orszag=IT" hx-target="#jatek-terulet" class="p-3 bg-green-100 dark:bg-green-900/30 hover:bg-green-200 dark:hover:bg-green-900/50 rounded-lg transition cursor-pointer border-0 text-center group">
|
| 112 |
-
<span class="text-2xl block mb-1"></span>
|
| 113 |
-
<span class="text-xs font-bold text-gray-700 dark:text-gray-300 group-hover:text-green-600 dark:group-hover:text-green-400">{{ _('language_italian') }}</span>
|
| 114 |
-
</button>
|
| 115 |
-
</div>
|
| 116 |
</div>
|
| 117 |
-
|
| 118 |
-
<
|
| 119 |
-
<div class="
|
| 120 |
-
<
|
| 121 |
-
|
| 122 |
-
</
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
<button hx-get="/jatek/nyelv?orszag=FR" hx-target="#jatek-terulet" class="p-2 bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition cursor-pointer border-0 text-center text-xs font-medium text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400">
|
| 139 |
-
{{ _('language_french') }}
|
| 140 |
-
</button>
|
| 141 |
-
|
| 142 |
-
<button hx-get="/jatek/nyelv?orszag=ES" hx-target="#jatek-terulet" class="p-2 bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition cursor-pointer border-0 text-center text-xs font-medium text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400">
|
| 143 |
-
{{ _('language_spanish') }}
|
| 144 |
-
</button>
|
| 145 |
-
|
| 146 |
-
<button hx-get="/jatek/nyelv?orszag=IT" hx-target="#jatek-terulet" class="p-2 bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition cursor-pointer border-0 text-center text-xs font-medium text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400">
|
| 147 |
-
{{ _('language_italian') }}
|
| 148 |
-
</button>
|
| 149 |
-
|
| 150 |
-
<button hx-get="/jatek/nyelv?orszag=PT" hx-target="#jatek-terulet" class="p-2 bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition cursor-pointer border-0 text-center text-xs font-medium text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400">
|
| 151 |
-
{{ _('language_portuguese') }}
|
| 152 |
-
</button>
|
| 153 |
-
|
| 154 |
-
<button hx-get="/jatek/nyelv?orszag=NL" hx-target="#jatek-terulet" class="p-2 bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition cursor-pointer border-0 text-center text-xs font-medium text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400">
|
| 155 |
-
{{ _('language_dutch') }}
|
| 156 |
-
</button>
|
| 157 |
-
|
| 158 |
-
<button hx-get="/jatek/nyelv?orszag=PL" hx-target="#jatek-terulet" class="p-2 bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition cursor-pointer border-0 text-center text-xs font-medium text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400">
|
| 159 |
-
{{ _('language_polish') }}
|
| 160 |
-
</button>
|
| 161 |
-
|
| 162 |
-
<button hx-get="/jatek/nyelv?orszag=RU" hx-target="#jatek-terulet" class="p-2 bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition cursor-pointer border-0 text-center text-xs font-medium text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400">
|
| 163 |
-
{{ _('language_russian') }}
|
| 164 |
-
</button>
|
| 165 |
-
|
| 166 |
-
<button hx-get="/jatek/nyelv?orszag=TR" hx-target="#jatek-terulet" class="p-2 bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition cursor-pointer border-0 text-center text-xs font-medium text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400">
|
| 167 |
-
{{ _('language_turkish') }}
|
| 168 |
-
</button>
|
| 169 |
-
|
| 170 |
-
<button hx-get="/jatek/nyelv?orszag=GR" hx-target="#jatek-terulet" class="p-2 bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition cursor-pointer border-0 text-center text-xs font-medium text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400">
|
| 171 |
-
{{ _('language_greek') }}
|
| 172 |
-
</button>
|
| 173 |
-
|
| 174 |
-
<!-- Azsiai nyelvek -->
|
| 175 |
-
<button hx-get="/jatek/nyelv?orszag=JP" hx-target="#jatek-terulet" class="p-2 bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition cursor-pointer border-0 text-center text-xs font-medium text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400">
|
| 176 |
-
{{ _('language_japanese') }}
|
| 177 |
-
</button>
|
| 178 |
-
|
| 179 |
-
<button hx-get="/jatek/nyelv?orszag=KR" hx-target="#jatek-terulet" class="p-2 bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition cursor-pointer border-0 text-center text-xs font-medium text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400">
|
| 180 |
-
{{ _('language_korean') }}
|
| 181 |
-
</button>
|
| 182 |
-
|
| 183 |
-
<button hx-get="/jatek/nyelv?orszag=CN" hx-target="#jatek-terulet" class="p-2 bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition cursor-pointer border-0 text-center text-xs font-medium text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400">
|
| 184 |
-
{{ _('language_chinese') }}
|
| 185 |
-
</button>
|
| 186 |
-
|
| 187 |
-
<button hx-get="/jatek/nyelv?orszag=IN" hx-target="#jatek-terulet" class="p-2 bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition cursor-pointer border-0 text-center text-xs font-medium text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400">
|
| 188 |
-
{{ _('language_hindi') }}
|
| 189 |
-
</button>
|
| 190 |
-
|
| 191 |
-
<button hx-get="/jatek/nyelv?orszag=TH" hx-target="#jatek-terulet" class="p-2 bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition cursor-pointer border-0 text-center text-xs font-medium text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400">
|
| 192 |
-
{{ _('language_thai') }}
|
| 193 |
-
</button>
|
| 194 |
-
|
| 195 |
-
<button hx-get="/jatek/nyelv?orszag=VN" hx-target="#jatek-terulet" class="p-2 bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition cursor-pointer border-0 text-center text-xs font-medium text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400">
|
| 196 |
-
{{ _('language_vietnamese') }}
|
| 197 |
-
</button>
|
| 198 |
-
|
| 199 |
-
<!-- Kozel-Kelet -->
|
| 200 |
-
<button hx-get="/jatek/nyelv?orszag=IL" hx-target="#jatek-terulet" class="p-2 bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition cursor-pointer border-0 text-center text-xs font-medium text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400">
|
| 201 |
-
{{ _('language_hebrew') }}
|
| 202 |
-
</button>
|
| 203 |
-
|
| 204 |
-
<button hx-get="/jatek/nyelv?orszag=SA" hx-target="#jatek-terulet" class="p-2 bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition cursor-pointer border-0 text-center text-xs font-medium text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400">
|
| 205 |
-
{{ _('language_arabic') }}
|
| 206 |
-
</button>
|
| 207 |
-
|
| 208 |
-
<button hx-get="/jatek/nyelv?orszag=IR" hx-target="#jatek-terulet" class="p-2 bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition cursor-pointer border-0 text-center text-xs font-medium text-gray-600 dark:text-gray-400 hover:text-green-600 dark:hover:text-green-400">
|
| 209 |
-
{{ _('language_polish') }}
|
| 210 |
-
</button>
|
| 211 |
-
</div>
|
| 212 |
</div>
|
| 213 |
-
|
| 214 |
-
<
|
| 215 |
-
<div class="
|
| 216 |
-
<
|
| 217 |
-
|
| 218 |
-
</
|
| 219 |
-
<
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 241 |
</div>
|
| 242 |
|
| 243 |
-
<
|
| 244 |
-
<div class="
|
| 245 |
-
<
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
<
|
| 249 |
-
|
| 250 |
-
<
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
<
|
| 255 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 256 |
</div>
|
| 257 |
|
| 258 |
-
<
|
| 259 |
-
<
|
| 260 |
-
|
| 261 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 262 |
</div>
|
| 263 |
</div>
|
|
|
|
| 1 |
+
<div class="flex flex-col items-center justify-center w-full max-w-3xl mx-auto gap-8 animate-fade-in px-4">
|
| 2 |
+
<h2 class="text-2xl font-black text-game text-center">
|
| 3 |
+
{{ _('game_selector_title') }}
|
|
|
|
| 4 |
</h2>
|
| 5 |
+
|
| 6 |
+
<div class="grid grid-cols-1 sm:grid-cols-3 gap-4 w-full">
|
| 7 |
+
<a href="/jatek/szleng" hx-get="/jatek/szleng" hx-target="#jatek-terulet" class="p-4 bg-card border border-game hover:border-green-700 rounded-xl transition cursor-pointer text-center no-underline group">
|
|
|
|
| 8 |
<div>
|
| 9 |
+
<span class="text-2xl block mb-2 text-accent">#</span>
|
| 10 |
+
<span class="text-sm font-bold text-game group-hover:text-green-400">{{ _('category_slang') }}</span>
|
| 11 |
</div>
|
| 12 |
+
</a>
|
| 13 |
+
<a href="/jatek/matek" hx-get="/jatek/matek" hx-target="#jatek-terulet" class="p-4 bg-card border border-game hover:border-green-700 rounded-xl transition cursor-pointer text-center no-underline group">
|
|
|
|
|
|
|
| 14 |
<div>
|
| 15 |
+
<span class="text-2xl block mb-2 text-accent">+</span>
|
| 16 |
+
<span class="text-sm font-bold text-game group-hover:text-green-400">{{ _('category_math') }}</span>
|
| 17 |
</div>
|
| 18 |
+
</a>
|
| 19 |
+
<a href="/jatek/gamer" hx-get="/jatek/gamer" hx-target="#jatek-terulet" class="p-4 bg-card border border-game hover:border-green-700 rounded-xl transition cursor-pointer text-center no-underline group">
|
|
|
|
|
|
|
| 20 |
<div>
|
| 21 |
+
<span class="text-2xl block mb-2 text-accent">*</span>
|
| 22 |
+
<span class="text-sm font-bold text-game group-hover:text-green-400">{{ _('category_gamer') }}</span>
|
| 23 |
</div>
|
| 24 |
+
</a>
|
|
|
|
| 25 |
</div>
|
| 26 |
+
|
| 27 |
+
<h3 class="text-lg font-bold text-game">
|
| 28 |
+
{{ _('languages_title') }}
|
| 29 |
+
</h3>
|
| 30 |
+
|
| 31 |
+
<div class="grid grid-cols-3 sm:grid-cols-6 gap-3 w-full">
|
| 32 |
+
<button hx-get="/jatek/nyelv?orszag=DE" hx-target="#jatek-terulet" class="p-3 bg-card hover:bg-header rounded-lg transition cursor-pointer border border-game text-center group">
|
| 33 |
+
<span class="text-xl block mb-1 text-game">EU</span>
|
| 34 |
+
<span class="text-xs font-bold text-muted group-hover:text-green-400">{{ _('continent_europe') }}</span>
|
| 35 |
+
</button>
|
| 36 |
+
<button hx-get="/jatek/nyelv?orszag=US" hx-target="#jatek-terulet" class="p-3 bg-card hover:bg-header rounded-lg transition cursor-pointer border border-game text-center group">
|
| 37 |
+
<span class="text-xl block mb-1 text-game">NA</span>
|
| 38 |
+
<span class="text-xs font-bold text-muted group-hover:text-green-400">{{ _('continent_north_america') }}</span>
|
| 39 |
+
</button>
|
| 40 |
+
<button hx-get="/jatek/nyelv?orszag=BR" hx-target="#jatek-terulet" class="p-3 bg-card hover:bg-header rounded-lg transition cursor-pointer border border-game text-center group">
|
| 41 |
+
<span class="text-xl block mb-1 text-game">SA</span>
|
| 42 |
+
<span class="text-xs font-bold text-muted group-hover:text-green-400">{{ _('continent_south_america') }}</span>
|
| 43 |
+
</button>
|
| 44 |
+
<button hx-get="/jatek/nyelv?orszag=JP" hx-target="#jatek-terulet" class="p-3 bg-card hover:bg-header rounded-lg transition cursor-pointer border border-game text-center group">
|
| 45 |
+
<span class="text-xl block mb-1 text-game">AS</span>
|
| 46 |
+
<span class="text-xs font-bold text-muted group-hover:text-green-400">{{ _('continent_asia') }}</span>
|
| 47 |
+
</button>
|
| 48 |
+
<button hx-get="/jatek/nyelv?orszag=ZA" hx-target="#jatek-terulet" class="p-3 bg-card hover:bg-header rounded-lg transition cursor-pointer border border-game text-center group">
|
| 49 |
+
<span class="text-xl block mb-1 text-game">AF</span>
|
| 50 |
+
<span class="text-xs font-bold text-muted group-hover:text-green-400">{{ _('continent_africa') }}</span>
|
| 51 |
+
</button>
|
| 52 |
+
<button hx-get="/jatek/nyelv?orszag=AU" hx-target="#jatek-terulet" class="p-3 bg-card hover:bg-header rounded-lg transition cursor-pointer border border-game text-center group">
|
| 53 |
+
<span class="text-xl block mb-1 text-game">OC</span>
|
| 54 |
+
<span class="text-xs font-bold text-muted group-hover:text-green-400">{{ _('continent_oceania') }}</span>
|
| 55 |
+
</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
</div>
|
| 57 |
+
|
| 58 |
+
<h3 class="text-lg font-bold text-game">{{ _('popular_languages') }}</h3>
|
| 59 |
+
<div class="flex flex-wrap gap-2 justify-center">
|
| 60 |
+
<button hx-get="/jatek/nyelv?orszag=US" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header border border-game rounded transition cursor-pointer text-center text-xs font-medium text-muted hover:text-green-400">
|
| 61 |
+
EN {{ _('language_english') }}
|
| 62 |
+
</button>
|
| 63 |
+
<button hx-get="/jatek/nyelv?orszag=DE" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header border border-game rounded transition cursor-pointer text-center text-xs font-medium text-muted hover:text-green-400">
|
| 64 |
+
DE {{ _('language_german') }}
|
| 65 |
+
</button>
|
| 66 |
+
<button hx-get="/jatek/nyelv?orszag=FR" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header border border-game rounded transition cursor-pointer text-center text-xs font-medium text-muted hover:text-green-400">
|
| 67 |
+
FR {{ _('language_french') }}
|
| 68 |
+
</button>
|
| 69 |
+
<button hx-get="/jatek/nyelv?orszag=ES" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header border border-game rounded transition cursor-pointer text-center text-xs font-medium text-muted hover:text-green-400">
|
| 70 |
+
ES {{ _('language_spanish') }}
|
| 71 |
+
</button>
|
| 72 |
+
<button hx-get="/jatek/nyelv?orszag=JP" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header border border-game rounded transition cursor-pointer text-center text-xs font-medium text-muted hover:text-green-400">
|
| 73 |
+
JP {{ _('language_japanese') }}
|
| 74 |
+
</button>
|
| 75 |
+
<button hx-get="/jatek/nyelv?orszag=IT" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header border border-game rounded transition cursor-pointer text-center text-xs font-medium text-muted hover:text-green-400">
|
| 76 |
+
IT {{ _('language_italian') }}
|
| 77 |
+
</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
</div>
|
| 79 |
+
|
| 80 |
+
<h3 class="text-lg font-bold text-game">{{ _('all_languages') }}</h3>
|
| 81 |
+
<div class="flex flex-wrap gap-2 justify-center">
|
| 82 |
+
<button hx-get="/jatek/nyelv?orszag=HU" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 83 |
+
HU {{ _('language_hungarian') }}
|
| 84 |
+
</button>
|
| 85 |
+
<button hx-get="/jatek/nyelv?orszag=GB" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 86 |
+
GB {{ _('language_english') }}
|
| 87 |
+
</button>
|
| 88 |
+
<button hx-get="/jatek/nyelv?orszag=DE" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 89 |
+
DE {{ _('language_german') }}
|
| 90 |
+
</button>
|
| 91 |
+
<button hx-get="/jatek/nyelv?orszag=FR" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 92 |
+
FR {{ _('language_french') }}
|
| 93 |
+
</button>
|
| 94 |
+
<button hx-get="/jatek/nyelv?orszag=ES" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 95 |
+
ES {{ _('language_spanish') }}
|
| 96 |
+
</button>
|
| 97 |
+
<button hx-get="/jatek/nyelv?orszag=IT" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 98 |
+
IT {{ _('language_italian') }}
|
| 99 |
+
</button>
|
| 100 |
+
<button hx-get="/jatek/nyelv?orszag=PT" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 101 |
+
PT {{ _('language_portuguese') }}
|
| 102 |
+
</button>
|
| 103 |
+
<button hx-get="/jatek/nyelv?orszag=NL" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 104 |
+
NL {{ _('language_dutch') }}
|
| 105 |
+
</button>
|
| 106 |
+
<button hx-get="/jatek/nyelv?orszag=PL" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 107 |
+
PL {{ _('language_polish') }}
|
| 108 |
+
</button>
|
| 109 |
+
<button hx-get="/jatek/nyelv?orszag=RU" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 110 |
+
RU {{ _('language_russian') }}
|
| 111 |
+
</button>
|
| 112 |
+
<button hx-get="/jatek/nyelv?orszag=TR" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 113 |
+
TR {{ _('language_turkish') }}
|
| 114 |
+
</button>
|
| 115 |
+
<button hx-get="/jatek/nyelv?orszag=GR" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 116 |
+
GR {{ _('language_greek') }}
|
| 117 |
+
</button>
|
| 118 |
+
<button hx-get="/jatek/nyelv?orszag=JP" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 119 |
+
JP {{ _('language_japanese') }}
|
| 120 |
+
</button>
|
| 121 |
+
<button hx-get="/jatek/nyelv?orszag=KR" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 122 |
+
KR {{ _('language_korean') }}
|
| 123 |
+
</button>
|
| 124 |
+
<button hx-get="/jatek/nyelv?orszag=CN" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 125 |
+
CN {{ _('language_chinese') }}
|
| 126 |
+
</button>
|
| 127 |
+
<button hx-get="/jatek/nyelv?orszag=IN" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 128 |
+
IN {{ _('language_hindi') }}
|
| 129 |
+
</button>
|
| 130 |
+
<button hx-get="/jatek/nyelv?orszag=TH" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 131 |
+
TH {{ _('language_thai') }}
|
| 132 |
+
</button>
|
| 133 |
+
<button hx-get="/jatek/nyelv?orszag=VN" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 134 |
+
VN {{ _('language_vietnamese') }}
|
| 135 |
+
</button>
|
| 136 |
+
<button hx-get="/jatek/nyelv?orszag=IL" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 137 |
+
IL {{ _('language_hebrew') }}
|
| 138 |
+
</button>
|
| 139 |
+
<button hx-get="/jatek/nyelv?orszag=SA" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 140 |
+
SA {{ _('language_arabic') }}
|
| 141 |
+
</button>
|
| 142 |
+
<button hx-get="/jatek/nyelv?orszag=IR" hx-target="#jatek-terulet" class="p-2 bg-card hover:bg-header rounded transition cursor-pointer border border-game text-center text-xs font-medium text-muted hover:text-green-400">
|
| 143 |
+
IR {{ _('language_polish') }}
|
| 144 |
+
</button>
|
| 145 |
</div>
|
| 146 |
|
| 147 |
+
<h3 class="text-lg font-bold text-accent">{{ _('premium_categories') }}</h3>
|
| 148 |
+
<div class="grid grid-cols-2 sm:grid-cols-5 gap-3 w-full">
|
| 149 |
+
<button hx-get="/jatek/film" hx-target="#jatek-terulet" class="p-3 bg-card hover:bg-header border border-game rounded-lg transition cursor-pointer text-center group">
|
| 150 |
+
<span class="text-2xl block mb-1 text-accent">[]</span>
|
| 151 |
+
<span class="text-xs font-bold text-muted">{{ _('premium_film') }}</span>
|
| 152 |
+
</button>
|
| 153 |
+
<button hx-get="/jatek/zene" hx-target="#jatek-terulet" class="p-3 bg-card hover:bg-header border border-game rounded-lg transition cursor-pointer text-center group">
|
| 154 |
+
<span class="text-2xl block mb-1 text-accent">~</span>
|
| 155 |
+
<span class="text-xs font-bold text-muted">{{ _('premium_music') }}</span>
|
| 156 |
+
</button>
|
| 157 |
+
<button hx-get="/jatek/sport" hx-target="#jatek-terulet" class="p-3 bg-card hover:bg-header border border-game rounded-lg transition cursor-pointer text-center group">
|
| 158 |
+
<span class="text-2xl block mb-1 text-accent">()</span>
|
| 159 |
+
<span class="text-xs font-bold text-muted">{{ _('premium_sport') }}</span>
|
| 160 |
+
</button>
|
| 161 |
+
<button hx-get="/jatek/politika" hx-target="#jatek-terulet" class="p-3 bg-card hover:bg-header border border-game rounded-lg transition cursor-pointer text-center group">
|
| 162 |
+
<span class="text-2xl block mb-1 text-accent">{}</span>
|
| 163 |
+
<span class="text-xs font-bold text-muted">{{ _('premium_politics') }}</span>
|
| 164 |
+
</button>
|
| 165 |
+
<button hx-get="/jatek/tortenelem" hx-target="#jatek-terulet" class="p-3 bg-card hover:bg-header border border-game rounded-lg transition cursor-pointer text-center group">
|
| 166 |
+
<span class="text-2xl block mb-1 text-accent"><></span>
|
| 167 |
+
<span class="text-xs font-bold text-muted">{{ _('premium_history') }}</span>
|
| 168 |
+
</button>
|
| 169 |
</div>
|
| 170 |
|
| 171 |
+
<h3 class="text-lg font-bold text-accent">{{ _('multiplayer_title') }}</h3>
|
| 172 |
+
<p class="text-xs text-muted -mt-4 mb-2">{{ _('multiplayer_desc') }}</p>
|
| 173 |
+
<a href="/{{ '' if user else 'auth/login-page' }}" hx-get="/{{ '' if user else 'auth/login-page' }}" hx-target="#jatek-terulet"
|
| 174 |
+
class="inline-block px-6 py-3 btn-accent rounded-lg text-sm cursor-pointer transition no-underline">
|
| 175 |
+
{{ _('multiplayer_button') }}
|
| 176 |
+
</a>
|
| 177 |
+
|
| 178 |
+
<div class="text-center text-xs text-muted mt-6">
|
| 179 |
+
<p><strong>{{ _('footer_tip') }}</strong> {{ _('footer_gps_text') }}</p>
|
| 180 |
+
<div class="p-2 bg-card rounded-lg mt-2">
|
| 181 |
+
<p class="mt-1">{{ _('footer_gps_enable') }}</p>
|
| 182 |
+
</div>
|
| 183 |
</div>
|
| 184 |
</div>
|
src/wordgame/templates/jatek.html
CHANGED
|
@@ -5,14 +5,14 @@
|
|
| 5 |
<input type="hidden" id="max-proba" value="{{ max_proba | default(6) }}">
|
| 6 |
|
| 7 |
<div class="text-center">
|
| 8 |
-
<h2 class="text-2xl font-bold tracking-wide uppercase text-
|
| 9 |
-
<p class="text-xs text-
|
| 10 |
<!-- Szohossz valaszto -->
|
| 11 |
<div class="flex justify-center gap-1 mt-2">
|
| 12 |
{% set current_h = szo_hossz | default(5) | int %}
|
| 13 |
{% for l in [4, 5, 6, 7] %}
|
| 14 |
<button hx-get="/jatek/{{ kategoria_tipus }}?hossz={{ l }}" hx-target="#jatek-terulet" hx-swap="innerHTML"
|
| 15 |
-
class="px-3 py-1 text-xs font-bold rounded border-0 cursor-pointer transition {{ 'bg-green-600 text-
|
| 16 |
{{ _('game_4_letters') if l == 4 else (_('game_5_letters') if l == 5 else (_('game_6_letters') if l == 6 else _('game_7_letters'))) }}
|
| 17 |
</button>
|
| 18 |
{% endfor %}
|
|
@@ -25,7 +25,7 @@
|
|
| 25 |
{% for sor in range(m) %}
|
| 26 |
<div class="wordle-sor grid gap-2 w-full" style="grid-template-columns: repeat({{ h }}, minmax(0, 1fr));">
|
| 27 |
{% for cella in range(h) %}
|
| 28 |
-
<div class="wordle-cella flex items-center justify-center text-2xl font-bold uppercase border-2 border-
|
| 29 |
{% endfor %}
|
| 30 |
</div>
|
| 31 |
{% endfor %}
|
|
@@ -35,55 +35,55 @@
|
|
| 35 |
{% if kategoria_tipus == "matek" %}
|
| 36 |
<div class="flex justify-center gap-1 w-full">
|
| 37 |
{% for gomb in ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"] %}
|
| 38 |
-
<button onclick="handleInput('{{ gomb }}')" class="flex-1 py-3 bg-
|
| 39 |
{% endfor %}
|
| 40 |
</div>
|
| 41 |
<div class="flex justify-center gap-1 w-full">
|
| 42 |
{% for gomb in ["+", "-", "*", "/", "="] %}
|
| 43 |
-
<button onclick="handleInput('{{ gomb }}')" class="flex-1 py-3 bg-
|
| 44 |
{% endfor %}
|
| 45 |
-
<button onclick="handleInput('Backspace')" class="px-4 py-3 bg-gray-400 dark:bg-
|
| 46 |
-
<button onclick="handleInput('Enter')" class="px-5 py-3
|
| 47 |
</div>
|
| 48 |
{% elif billentyuzet %}
|
| 49 |
{# Language-specific keyboard #}
|
| 50 |
{% for sor in billentyuzet %}
|
| 51 |
<div class="flex justify-center gap-1 w-full">
|
| 52 |
{% for gomb in sor %}
|
| 53 |
-
<button onclick="handleInput('{{ gomb }}')" class="flex-1 py-2 bg-
|
| 54 |
{% endfor %}
|
| 55 |
</div>
|
| 56 |
{% endfor %}
|
| 57 |
<div class="flex justify-center gap-1 w-full">
|
| 58 |
-
<button onclick="handleInput('Enter')" class="px-3 py-2
|
| 59 |
-
<button onclick="handleInput('Backspace')" class="px-3 py-2 bg-gray-400 dark:bg-
|
| 60 |
</div>
|
| 61 |
{% else %}
|
| 62 |
{# Default Hungarian keyboard (fallback) #}
|
| 63 |
<div class="flex justify-center gap-1 w-full">
|
| 64 |
{% for gomb in ["Q", "W", "E", "R", "T", "Z", "U", "I", "O", "P", "Ő", "Ú"] %}
|
| 65 |
-
<button onclick="handleInput('{{ gomb }}')" class="flex-1 py-2 bg-
|
| 66 |
{% endfor %}
|
| 67 |
</div>
|
| 68 |
<div class="flex justify-center gap-1 w-full">
|
| 69 |
{% for gomb in ["A", "S", "D", "F", "G", "H", "J", "K", "L", "É", "Á", "Ó"] %}
|
| 70 |
-
<button onclick="handleInput('{{ gomb }}')" class="flex-1 py-2 bg-
|
| 71 |
{% endfor %}
|
| 72 |
</div>
|
| 73 |
<div class="flex justify-center gap-1 w-full">
|
| 74 |
-
<button onclick="handleInput('Enter')" class="px-3 py-2
|
| 75 |
{% for gomb in ["Y", "X", "C", "V", "B", "N", "M", "Ö", "Ü", "Ű", "Í"] %}
|
| 76 |
-
<button onclick="handleInput('{{ gomb }}')" class="flex-1 py-2 bg-
|
| 77 |
{% endfor %}
|
| 78 |
-
<button onclick="handleInput('Backspace')" class="px-3 py-2 bg-gray-400 dark:bg-
|
| 79 |
</div>
|
| 80 |
{% endif %}
|
| 81 |
</div>
|
| 82 |
|
| 83 |
{% if not user_is_premium %}
|
| 84 |
-
<div id="hirdetes-sav" class="w-full max-w-md mx-auto mt-4 p-3 bg-
|
| 85 |
-
<p class="text-xs text-
|
| 86 |
-
<p class="text-xs text-gray-600 mt-1"> <a href="/premium" hx-get="/premium" hx-target="#jatek-terulet" class="text-
|
| 87 |
</div>
|
| 88 |
{% endif %}
|
| 89 |
</div>
|
|
|
|
| 5 |
<input type="hidden" id="max-proba" value="{{ max_proba | default(6) }}">
|
| 6 |
|
| 7 |
<div class="text-center">
|
| 8 |
+
<h2 class="text-2xl font-bold tracking-wide uppercase text-accent">{{ kategoria_nev }}</h2>
|
| 9 |
+
<p class="text-xs text-muted mt-1">{{ _('game_guess_prompt', hossz=szo_hossz | default(5), max_proba=max_proba | default(6)) }}</p>
|
| 10 |
<!-- Szohossz valaszto -->
|
| 11 |
<div class="flex justify-center gap-1 mt-2">
|
| 12 |
{% set current_h = szo_hossz | default(5) | int %}
|
| 13 |
{% for l in [4, 5, 6, 7] %}
|
| 14 |
<button hx-get="/jatek/{{ kategoria_tipus }}?hossz={{ l }}" hx-target="#jatek-terulet" hx-swap="innerHTML"
|
| 15 |
+
class="px-3 py-1 text-xs font-bold rounded border-0 cursor-pointer transition {{ 'bg-green-600 text-game' if l == current_h else 'bg-card text-muted hover:bg-card' }}">
|
| 16 |
{{ _('game_4_letters') if l == 4 else (_('game_5_letters') if l == 5 else (_('game_6_letters') if l == 6 else _('game_7_letters'))) }}
|
| 17 |
</button>
|
| 18 |
{% endfor %}
|
|
|
|
| 25 |
{% for sor in range(m) %}
|
| 26 |
<div class="wordle-sor grid gap-2 w-full" style="grid-template-columns: repeat({{ h }}, minmax(0, 1fr));">
|
| 27 |
{% for cella in range(h) %}
|
| 28 |
+
<div class="wordle-cella flex items-center justify-center text-2xl font-bold uppercase border-2 border-game rounded select-none aspect-square bg-card dark:bg-header transition-all duration-150"></div>
|
| 29 |
{% endfor %}
|
| 30 |
</div>
|
| 31 |
{% endfor %}
|
|
|
|
| 35 |
{% if kategoria_tipus == "matek" %}
|
| 36 |
<div class="flex justify-center gap-1 w-full">
|
| 37 |
{% for gomb in ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"] %}
|
| 38 |
+
<button onclick="handleInput('{{ gomb }}')" class="flex-1 py-3 bg-card font-bold rounded text-sm hover:bg-gray-300 dark:hover:bg-card text-game border-0 cursor-pointer transition-colors">{{ gomb }}</button>
|
| 39 |
{% endfor %}
|
| 40 |
</div>
|
| 41 |
<div class="flex justify-center gap-1 w-full">
|
| 42 |
{% for gomb in ["+", "-", "*", "/", "="] %}
|
| 43 |
+
<button onclick="handleInput('{{ gomb }}')" class="flex-1 py-3 bg-card font-bold rounded text-sm hover:bg-gray-300 dark:hover:bg-card text-game border-0 cursor-pointer transition-colors">{{ gomb }}</button>
|
| 44 |
{% endfor %}
|
| 45 |
+
<button onclick="handleInput('Backspace')" class="px-4 py-3 bg-gray-400 dark:bg-card font-bold rounded text-xs uppercase hover:bg-gray-500 dark:hover:bg-gray-500 text-game border-0 cursor-pointer transition-colors">{{ _('keyboard_delete') }}</button>
|
| 46 |
+
<button onclick="handleInput('Enter')" class="px-5 py-3 btn-accent font-bold rounded text-xs uppercase text-game border-0 cursor-pointer transition-colors">{{ _('keyboard_enter') }}</button>
|
| 47 |
</div>
|
| 48 |
{% elif billentyuzet %}
|
| 49 |
{# Language-specific keyboard #}
|
| 50 |
{% for sor in billentyuzet %}
|
| 51 |
<div class="flex justify-center gap-1 w-full">
|
| 52 |
{% for gomb in sor %}
|
| 53 |
+
<button onclick="handleInput('{{ gomb }}')" class="flex-1 py-2 bg-card font-bold rounded text-xs hover:bg-gray-300 dark:hover:bg-card text-game border-0 cursor-pointer transition-colors">{{ gomb }}</button>
|
| 54 |
{% endfor %}
|
| 55 |
</div>
|
| 56 |
{% endfor %}
|
| 57 |
<div class="flex justify-center gap-1 w-full">
|
| 58 |
+
<button onclick="handleInput('Enter')" class="px-3 py-2 btn-accent font-bold rounded text-xs uppercase text-game border-0 cursor-pointer transition-colors">{{ _('keyboard_enter') }}</button>
|
| 59 |
+
<button onclick="handleInput('Backspace')" class="px-3 py-2 bg-gray-400 dark:bg-card font-bold rounded text-xs uppercase hover:bg-gray-500 dark:hover:bg-gray-500 text-game border-0 cursor-pointer transition-colors">{{ _('keyboard_backspace') }}</button>
|
| 60 |
</div>
|
| 61 |
{% else %}
|
| 62 |
{# Default Hungarian keyboard (fallback) #}
|
| 63 |
<div class="flex justify-center gap-1 w-full">
|
| 64 |
{% for gomb in ["Q", "W", "E", "R", "T", "Z", "U", "I", "O", "P", "Ő", "Ú"] %}
|
| 65 |
+
<button onclick="handleInput('{{ gomb }}')" class="flex-1 py-2 bg-card font-bold rounded text-xs hover:bg-gray-300 dark:hover:bg-card text-game border-0 cursor-pointer transition-colors">{{ gomb }}</button>
|
| 66 |
{% endfor %}
|
| 67 |
</div>
|
| 68 |
<div class="flex justify-center gap-1 w-full">
|
| 69 |
{% for gomb in ["A", "S", "D", "F", "G", "H", "J", "K", "L", "É", "Á", "Ó"] %}
|
| 70 |
+
<button onclick="handleInput('{{ gomb }}')" class="flex-1 py-2 bg-card font-bold rounded text-xs hover:bg-gray-300 dark:hover:bg-card text-game border-0 cursor-pointer transition-colors">{{ gomb }}</button>
|
| 71 |
{% endfor %}
|
| 72 |
</div>
|
| 73 |
<div class="flex justify-center gap-1 w-full">
|
| 74 |
+
<button onclick="handleInput('Enter')" class="px-3 py-2 btn-accent font-bold rounded text-xs uppercase text-game border-0 cursor-pointer transition-colors">{{ _('keyboard_enter') }}</button>
|
| 75 |
{% for gomb in ["Y", "X", "C", "V", "B", "N", "M", "Ö", "Ü", "Ű", "Í"] %}
|
| 76 |
+
<button onclick="handleInput('{{ gomb }}')" class="flex-1 py-2 bg-card font-bold rounded text-xs hover:bg-gray-300 dark:hover:bg-card text-game border-0 cursor-pointer transition-colors">{{ gomb }}</button>
|
| 77 |
{% endfor %}
|
| 78 |
+
<button onclick="handleInput('Backspace')" class="px-3 py-2 bg-gray-400 dark:bg-card font-bold rounded text-xs uppercase hover:bg-gray-500 dark:hover:bg-gray-500 text-game border-0 cursor-pointer transition-colors">{{ _('keyboard_backspace') }}</button>
|
| 79 |
</div>
|
| 80 |
{% endif %}
|
| 81 |
</div>
|
| 82 |
|
| 83 |
{% if not user_is_premium %}
|
| 84 |
+
<div id="hirdetes-sav" class="w-full max-w-md mx-auto mt-4 p-3 bg-card/50 border border-game/30 rounded-lg text-center">
|
| 85 |
+
<p class="text-xs text-muted">{{ _('ad_text') }}</p>
|
| 86 |
+
<p class="text-xs text-gray-600 mt-1"> <a href="/premium" hx-get="/premium" hx-target="#jatek-terulet" class="text-accent hover:text-amber-300 underline">{{ _('ad_premium_cta') }}</a></p>
|
| 87 |
</div>
|
| 88 |
{% endif %}
|
| 89 |
</div>
|
src/wordgame/templates/login.html
CHANGED
|
@@ -1,36 +1,27 @@
|
|
| 1 |
-
<div class="
|
| 2 |
-
<div class="
|
| 3 |
-
<
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
<div id="login-error" class="mb-4"></div>
|
| 8 |
-
|
| 9 |
-
<form hx-post="/auth/login" hx-target="#login-error" hx-swap="innerHTML" class="flex flex-col gap-4">
|
| 10 |
-
<div>
|
| 11 |
-
<label class="block text-xs font-bold uppercase tracking-wider text-gray-500 dark:text-gray-400 mb-1">Email cím</label>
|
| 12 |
-
<input type="email" name="email" required autocomplete="email"
|
| 13 |
-
class="w-full bg-gray-50 dark:bg-gray-900 border border-gray-300 dark:border-gray-800 rounded-lg py-2.5 px-3 text-sm text-gray-900 dark:text-white focus:outline-none focus:border-green-500 transition">
|
| 14 |
</div>
|
| 15 |
|
| 16 |
-
<
|
| 17 |
-
<
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
<button hx-get="/auth/register-page" hx-target="#jatek-terulet" class="text-green-600 dark:text-green-500 hover:underline font-bold bg-transparent border-0 cursor-pointer">Regisztrálj itt</button>
|
| 31 |
-
</div>
|
| 32 |
-
<div>
|
| 33 |
-
<button hx-get="/auth/forgot-password" hx-target="#jatek-terulet" class="text-gray-500 dark:text-gray-400 hover:underline bg-transparent border-0 cursor-pointer">Elfelejtetted a jelszavad?</button>
|
| 34 |
</div>
|
| 35 |
</div>
|
| 36 |
</div>
|
|
|
|
| 1 |
+
<div class="flex flex-col items-center justify-center w-full max-w-md mx-auto animate-fade-in">
|
| 2 |
+
<div class="bg-card border border-game rounded-xl p-6 w-full shadow-xl">
|
| 3 |
+
<div class="text-center mb-6">
|
| 4 |
+
<h2 class="text-2xl font-black tracking-wide text-game">{{ _('login_title') }}</h2>
|
| 5 |
+
<p class="text-xs text-muted mt-1">Lepj be a pontjaid mentesehez</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
</div>
|
| 7 |
|
| 8 |
+
<form hx-post="/auth/login" hx-target="#jatek-terulet" hx-swap="innerHTML" class="space-y-4">
|
| 9 |
+
<div>
|
| 10 |
+
<label class="block text-xs font-medium text-muted mb-1">{{ _('email_label') }}</label>
|
| 11 |
+
<input type="email" name="email" required class="w-full bg-game border border-game rounded-lg px-3 py-2.5 text-sm text-game placeholder:text-muted focus:border-green-600 focus:outline-none focus:ring-1 focus:ring-green-600 transition" placeholder="pelda@email.hu">
|
| 12 |
+
</div>
|
| 13 |
+
<div>
|
| 14 |
+
<label class="block text-xs font-medium text-muted mb-1">{{ _('password_label') }}</label>
|
| 15 |
+
<input type="password" name="password" required class="w-full bg-game border border-game rounded-lg px-3 py-2.5 text-sm text-game placeholder:text-muted focus:border-green-600 focus:outline-none focus:ring-1 focus:ring-green-600 transition" placeholder="********">
|
| 16 |
+
</div>
|
| 17 |
+
<button type="submit" class="w-full px-4 py-2.5 btn-accent rounded-lg text-sm font-bold cursor-pointer border-0 transition">
|
| 18 |
+
{{ _('nav_login') }}
|
| 19 |
+
</button>
|
| 20 |
+
</form>
|
| 21 |
|
| 22 |
+
<div class="mt-4 text-center text-xs text-muted space-y-2">
|
| 23 |
+
<a href="/auth/forgot-password-page" hx-get="/auth/forgot-password-page" hx-target="#jatek-terulet" class="text-accent hover:text-green-400 transition">Elfelejtett jelszo?</a>
|
| 24 |
+
<p>Nincs fiokod? <a href="/auth/register-page" hx-get="/auth/register-page" hx-target="#jatek-terulet" class="text-accent hover:text-green-400 transition">{{ _('nav_register') }}</a></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
</div>
|
| 26 |
</div>
|
| 27 |
</div>
|
src/wordgame/templates/premium.html
CHANGED
|
@@ -1,52 +1,36 @@
|
|
| 1 |
-
<
|
| 2 |
-
<
|
| 3 |
-
<
|
| 4 |
-
|
| 5 |
-
Paddle.Setup({ vendor: {{ paddle_vendor_id }} });
|
| 6 |
-
{% else %}
|
| 7 |
-
console.warn("PADDLE_VENDOR_ID nincs beállítva – fizetés jelenleg nem elérhető");
|
| 8 |
-
{% endif %}
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
}
|
| 29 |
-
</script>
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
</div>
|
| 38 |
-
|
| 39 |
-
{% if user %}
|
| 40 |
-
{% set pid = paddle_price_id or '' %}
|
| 41 |
-
<button onclick="inditFizetes('{{ user.id }}', '{{ pid }}')"
|
| 42 |
-
class="w-full py-4 bg-gradient-to-r from-amber-500 via-yellow-500 to-amber-600 text-gray-950 font-black rounded-lg shadow-lg hover:brightness-110 active:scale-98 transition cursor-pointer uppercase tracking-wider text-sm border-0">
|
| 43 |
-
Vásárlás most
|
| 44 |
-
</button>
|
| 45 |
-
{% else %}
|
| 46 |
-
<p class="text-amber-400 text-sm mb-2">A vásárláshoz be kell jelentkezned</p>
|
| 47 |
-
<button hx-get="/auth/login-page" hx-target="#jatek-terulet"
|
| 48 |
-
class="px-6 py-3 bg-green-600 hover:bg-green-500 text-white font-bold rounded-lg transition cursor-pointer border-0 text-sm">
|
| 49 |
-
Bejelentkezés
|
| 50 |
-
</button>
|
| 51 |
-
{% endif %}
|
| 52 |
</div>
|
|
|
|
| 1 |
+
<div class="flex flex-col items-center justify-center w-full max-w-md mx-auto animate-fade-in px-4">
|
| 2 |
+
<div class="bg-card border border-game rounded-xl p-6 w-full shadow-xl text-center">
|
| 3 |
+
<h2 class="text-2xl font-black text-accent mb-2">{{ _('nav_premium') }}</h2>
|
| 4 |
+
<p class="text-muted text-sm mb-6">Tuntesd el a hirdeteseket, kapj egyedi ikont a rangletran es nyiss ki +5 titkos kategoriat!</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
+
<div class="grid grid-cols-2 gap-3 mb-6 text-left">
|
| 7 |
+
<div class="p-3 bg-game rounded-lg">
|
| 8 |
+
<p class="text-accent font-bold text-sm">Hirdetesmentes</p>
|
| 9 |
+
<p class="text-muted text-xs">Semmi reklam</p>
|
| 10 |
+
</div>
|
| 11 |
+
<div class="p-3 bg-game rounded-lg">
|
| 12 |
+
<p class="text-accent font-bold text-sm">+5 Kategoria</p>
|
| 13 |
+
<p class="text-muted text-xs">Film, Zene, Sport, Politika, Tortenelem</p>
|
| 14 |
+
</div>
|
| 15 |
+
<div class="p-3 bg-game rounded-lg">
|
| 16 |
+
<p class="text-accent font-bold text-sm">Egyedi Ikon</p>
|
| 17 |
+
<p class="text-muted text-xs">Premium jelveny a rangletran</p>
|
| 18 |
+
</div>
|
| 19 |
+
<div class="p-3 bg-game rounded-lg">
|
| 20 |
+
<p class="text-accent font-bold text-sm">Tobbjatekos</p>
|
| 21 |
+
<p class="text-muted text-xs">Szobak letrehozasa</p>
|
| 22 |
+
</div>
|
| 23 |
+
</div>
|
|
|
|
|
|
|
| 24 |
|
| 25 |
+
{% if user %}
|
| 26 |
+
<a href="{{ private_base_url }}/dashboard" target="_blank" class="inline-block px-6 py-3 btn-accent rounded-lg text-sm font-bold cursor-pointer no-underline transition">
|
| 27 |
+
{{ _('nav_dashboard') }}
|
| 28 |
+
</a>
|
| 29 |
+
{% else %}
|
| 30 |
+
<p class="text-muted text-sm mb-3">A vasarlashoz elobb lepj be.</p>
|
| 31 |
+
<a href="/auth/login-page" hx-get="/auth/login-page" hx-target="#jatek-terulet" class="inline-block px-6 py-3 btn-accent rounded-lg text-sm font-bold cursor-pointer no-underline transition">
|
| 32 |
+
{{ _('nav_login') }}
|
| 33 |
+
</a>
|
| 34 |
+
{% endif %}
|
| 35 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
</div>
|
src/wordgame/templates/rangletra.html
CHANGED
|
@@ -1,48 +1,48 @@
|
|
| 1 |
-
<div class="w-full max-w-md mx-auto bg-
|
| 2 |
<div class="text-center mb-6">
|
| 3 |
-
<h2 class="text-2xl font-black text-
|
| 4 |
RAGLÉTRA
|
| 5 |
</h2>
|
| 6 |
-
<p class="text-xs text-
|
| 7 |
</div>
|
| 8 |
|
| 9 |
<div class="flex gap-2 mb-6 overflow-x-auto pb-1 justify-center">
|
| 10 |
-
<button hx-get="/rangletra?kat=szleng" hx-target="#jatek-terulet" class="px-3 py-1.5 rounded-full text-xs font-semibold bg-gray-100 dark:bg-
|
| 11 |
-
<button hx-get="/rangletra?kat=matek" hx-target="#jatek-terulet" class="px-3 py-1.5 rounded-full text-xs font-semibold bg-gray-100 dark:bg-
|
| 12 |
-
<button hx-get="/rangletra?kat=gamer" hx-target="#jatek-terulet" class="px-3 py-1.5 rounded-full text-xs font-semibold bg-gray-100 dark:bg-
|
| 13 |
</div>
|
| 14 |
|
| 15 |
-
<div class="overflow-hidden rounded-lg border border-
|
| 16 |
<table class="w-full text-left border-collapse">
|
| 17 |
<thead>
|
| 18 |
-
<tr class="border-b border-
|
| 19 |
<th class="py-3 px-4 text-center w-12 border-0">#</th>
|
| 20 |
<th class="py-3 px-4 border-0">Játékos</th>
|
| 21 |
<th class="py-3 px-4 text-right border-0">Idő</th>
|
| 22 |
<th class="py-3 px-4 text-right border-0">Pont</th>
|
| 23 |
</tr>
|
| 24 |
</thead>
|
| 25 |
-
<tbody class="text-sm text-
|
| 26 |
{% for sorszam, jatekos in toplista %}
|
| 27 |
-
<tr class="hover:bg-gray-100 dark:hover:bg-
|
| 28 |
<td class="py-3 px-4 text-center font-bold border-0">
|
| 29 |
-
{% if sorszam == 1 %} <span class="text-
|
| 30 |
-
{% elif sorszam == 2 %} <span class="text-
|
| 31 |
{% elif sorszam == 3 %} <span class="text-amber-600 text-base"></span>
|
| 32 |
-
{% else %} <span class="text-
|
| 33 |
</td>
|
| 34 |
<td class="py-3 px-4 font-semibold flex items-center gap-1.5 border-0">
|
| 35 |
{{ jatekos.nev }}
|
| 36 |
{% if jatekos.is_premium %}
|
| 37 |
-
<span class="text-[10px] bg-
|
| 38 |
{% endif %}
|
| 39 |
</td>
|
| 40 |
-
<td class="py-3 px-4 text-right text-
|
| 41 |
-
<td class="py-3 px-4 text-right font-bold text-
|
| 42 |
</tr>
|
| 43 |
{% else %}
|
| 44 |
<tr>
|
| 45 |
-
<td colspan="4" class="py-8 text-center text-
|
| 46 |
</tr>
|
| 47 |
{% endfor %}
|
| 48 |
</tbody>
|
|
|
|
| 1 |
+
<div class="w-full max-w-md mx-auto bg-card dark:bg-header border border-game rounded-xl p-5 shadow-xl animate-fade-in">
|
| 2 |
<div class="text-center mb-6">
|
| 3 |
+
<h2 class="text-2xl font-black text-accent tracking-wide flex justify-center items-center gap-2">
|
| 4 |
RAGLÉTRA
|
| 5 |
</h2>
|
| 6 |
+
<p class="text-xs text-muted mt-1">Az ország leggyorsabb agyai</p>
|
| 7 |
</div>
|
| 8 |
|
| 9 |
<div class="flex gap-2 mb-6 overflow-x-auto pb-1 justify-center">
|
| 10 |
+
<button hx-get="/rangletra?kat=szleng" hx-target="#jatek-terulet" class="px-3 py-1.5 rounded-full text-xs font-semibold bg-gray-100 dark:bg-card border border-game hover:border-green-700 transition cursor-pointer text-gray-700 dark:text-game"> Szleng</button>
|
| 11 |
+
<button hx-get="/rangletra?kat=matek" hx-target="#jatek-terulet" class="px-3 py-1.5 rounded-full text-xs font-semibold bg-gray-100 dark:bg-card border border-game hover:border-green-700 transition cursor-pointer text-gray-700 dark:text-game"> Matek</button>
|
| 12 |
+
<button hx-get="/rangletra?kat=gamer" hx-target="#jatek-terulet" class="px-3 py-1.5 rounded-full text-xs font-semibold bg-gray-100 dark:bg-card border border-game hover:border-green-700 transition cursor-pointer text-gray-700 dark:text-game"> Gamer</button>
|
| 13 |
</div>
|
| 14 |
|
| 15 |
+
<div class="overflow-hidden rounded-lg border border-game bg-gray-50 dark:bg-game">
|
| 16 |
<table class="w-full text-left border-collapse">
|
| 17 |
<thead>
|
| 18 |
+
<tr class="border-b border-game bg-card text-xs font-bold uppercase tracking-wider text-muted">
|
| 19 |
<th class="py-3 px-4 text-center w-12 border-0">#</th>
|
| 20 |
<th class="py-3 px-4 border-0">Játékos</th>
|
| 21 |
<th class="py-3 px-4 text-right border-0">Idő</th>
|
| 22 |
<th class="py-3 px-4 text-right border-0">Pont</th>
|
| 23 |
</tr>
|
| 24 |
</thead>
|
| 25 |
+
<tbody class="text-sm text-game">
|
| 26 |
{% for sorszam, jatekos in toplista %}
|
| 27 |
+
<tr class="hover:bg-gray-100 dark:hover:bg-card transition border-b border-game last:border-0">
|
| 28 |
<td class="py-3 px-4 text-center font-bold border-0">
|
| 29 |
+
{% if sorszam == 1 %} <span class="text-accent dark:text-accent text-base"></span>
|
| 30 |
+
{% elif sorszam == 2 %} <span class="text-muted text-base"></span>
|
| 31 |
{% elif sorszam == 3 %} <span class="text-amber-600 text-base"></span>
|
| 32 |
+
{% else %} <span class="text-muted">{{ sorszam }}</span> {% endif %}
|
| 33 |
</td>
|
| 34 |
<td class="py-3 px-4 font-semibold flex items-center gap-1.5 border-0">
|
| 35 |
{{ jatekos.nev }}
|
| 36 |
{% if jatekos.is_premium %}
|
| 37 |
+
<span class="text-[10px] bg-card text-accent font-extrabold px-1.5 py-0.5 rounded border border-amber-500 border-opacity-30"></span>
|
| 38 |
{% endif %}
|
| 39 |
</td>
|
| 40 |
+
<td class="py-3 px-4 text-right text-muted font-mono border-0">{{ jatekos.ido }}s</td>
|
| 41 |
+
<td class="py-3 px-4 text-right font-bold text-accent font-mono border-0">{{ jatekos.pont }}</td>
|
| 42 |
</tr>
|
| 43 |
{% else %}
|
| 44 |
<tr>
|
| 45 |
+
<td colspan="4" class="py-8 text-center text-muted text-xs border-0">Még senki sem töltötte ki ezt a kategóriát ma.</td>
|
| 46 |
</tr>
|
| 47 |
{% endfor %}
|
| 48 |
</tbody>
|
src/wordgame/templates/register.html
CHANGED
|
@@ -1,32 +1,24 @@
|
|
| 1 |
-
<div class="
|
| 2 |
-
<div class="
|
| 3 |
-
<
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
<div id="register-status" class="mb-4"></div>
|
| 8 |
-
|
| 9 |
-
<form hx-post="/auth/register" hx-target="#register-status" hx-swap="innerHTML" class="flex flex-col gap-4">
|
| 10 |
-
<div>
|
| 11 |
-
<label class="block text-xs font-bold uppercase tracking-wider text-gray-500 dark:text-gray-400 mb-1">Email cím</label>
|
| 12 |
-
<input type="email" name="email" required autocomplete="email"
|
| 13 |
-
class="w-full bg-gray-50 dark:bg-gray-900 border border-gray-300 dark:border-gray-800 rounded-lg py-2.5 px-3 text-sm text-gray-900 dark:text-white focus:outline-none focus:border-green-500 transition">
|
| 14 |
-
</div>
|
| 15 |
-
|
| 16 |
-
<div>
|
| 17 |
-
<label class="block text-xs font-bold uppercase tracking-wider text-gray-500 dark:text-gray-400 mb-1">Jelszó</label>
|
| 18 |
-
<input type="password" name="password" minlength="6" required autocomplete="new-password"
|
| 19 |
-
class="w-full bg-gray-50 dark:bg-gray-900 border border-gray-300 dark:border-gray-800 rounded-lg py-2.5 px-3 text-sm text-gray-900 dark:text-white focus:outline-none focus:border-green-500 transition">
|
| 20 |
-
<p class="text-[10px] text-gray-500 dark:text-gray-500 mt-1">Minimum 6 karakter hosszat követel meg a Supabase.</p>
|
| 21 |
</div>
|
| 22 |
|
| 23 |
-
<
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
-
|
| 29 |
-
Már van fiókod?
|
| 30 |
-
<button hx-get="/login" hx-target="#jatek-terulet" class="text-indigo-600 dark:text-indigo-400 hover:underline font-bold bg-transparent border-0 cursor-pointer">Jelentkezz be</button>
|
| 31 |
</div>
|
| 32 |
</div>
|
|
|
|
| 1 |
+
<div class="flex flex-col items-center justify-center w-full max-w-md mx-auto animate-fade-in">
|
| 2 |
+
<div class="bg-card border border-game rounded-xl p-6 w-full shadow-xl">
|
| 3 |
+
<div class="text-center mb-6">
|
| 4 |
+
<h2 class="text-2xl font-black tracking-wide text-game">{{ _('register_title') }}</h2>
|
| 5 |
+
<p class="text-xs text-muted mt-1">Hozz letre egy ingyenes fiokot</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
</div>
|
| 7 |
|
| 8 |
+
<form hx-post="/auth/register" hx-target="#jatek-terulet" hx-swap="innerHTML" class="space-y-4">
|
| 9 |
+
<div>
|
| 10 |
+
<label class="block text-xs font-medium text-muted mb-1">{{ _('email_label') }}</label>
|
| 11 |
+
<input type="email" name="email" required class="w-full bg-game border border-game rounded-lg px-3 py-2.5 text-sm text-game placeholder:text-muted focus:border-green-600 focus:outline-none focus:ring-1 focus:ring-green-600 transition" placeholder="pelda@email.hu">
|
| 12 |
+
</div>
|
| 13 |
+
<div>
|
| 14 |
+
<label class="block text-xs font-medium text-muted mb-1">{{ _('password_label') }}</label>
|
| 15 |
+
<input type="password" name="password" required minlength="6" class="w-full bg-game border border-game rounded-lg px-3 py-2.5 text-sm text-game placeholder:text-muted focus:border-green-600 focus:outline-none focus:ring-1 focus:ring-green-600 transition" placeholder="Minimum 6 karakter">
|
| 16 |
+
</div>
|
| 17 |
+
<button type="submit" class="w-full px-4 py-2.5 btn-accent rounded-lg text-sm font-bold cursor-pointer border-0 transition">
|
| 18 |
+
{{ _('nav_register') }}
|
| 19 |
+
</button>
|
| 20 |
+
</form>
|
| 21 |
|
| 22 |
+
<p class="mt-4 text-center text-xs text-muted">Mar van fiokod? <a href="/auth/login-page" hx-get="/auth/login-page" hx-target="#jatek-terulet" class="text-accent hover:text-green-400 transition">{{ _('nav_login') }}</a></p>
|
|
|
|
|
|
|
| 23 |
</div>
|
| 24 |
</div>
|
src/wordgame/templates/reset-password.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
-
<div class="w-full max-w-sm bg-
|
| 2 |
<div class="text-center mb-6">
|
| 3 |
-
<h2 class="text-xl font-black tracking-wide text-
|
| 4 |
-
<p class="text-xs text-
|
| 5 |
</div>
|
| 6 |
|
| 7 |
<div id="reset-status" class="mb-4"></div>
|
|
@@ -10,12 +10,12 @@
|
|
| 10 |
<input type="hidden" name="access_token" id="reset-access-token">
|
| 11 |
|
| 12 |
<div>
|
| 13 |
-
<label class="block text-xs font-bold uppercase tracking-wider text-
|
| 14 |
<input type="password" name="password" minlength="6" required autocomplete="new-password"
|
| 15 |
-
class="w-full bg-gray-50 dark:bg-
|
| 16 |
</div>
|
| 17 |
|
| 18 |
-
<button type="submit" class="w-full py-3
|
| 19 |
Jelszó mentése
|
| 20 |
</button>
|
| 21 |
</form>
|
|
@@ -34,7 +34,7 @@
|
|
| 34 |
}
|
| 35 |
}
|
| 36 |
// Ha nincs token vagy hibás a link
|
| 37 |
-
document.getElementById('reset-status').innerHTML = "<div class='
|
| 38 |
document.querySelector('#reset-password-box form').style.display = 'none';
|
| 39 |
}
|
| 40 |
extractToken();
|
|
|
|
| 1 |
+
<div class="w-full max-w-sm bg-card dark:bg-header border border-game rounded-xl p-6 shadow-2xl animate-fade-in mx-auto" id="reset-password-box">
|
| 2 |
<div class="text-center mb-6">
|
| 3 |
+
<h2 class="text-xl font-black tracking-wide text-game"> ÚJ JELSZÓ MEGADÁSA</h2>
|
| 4 |
+
<p class="text-xs text-muted mt-1">Írd be az új jelszavadat</p>
|
| 5 |
</div>
|
| 6 |
|
| 7 |
<div id="reset-status" class="mb-4"></div>
|
|
|
|
| 10 |
<input type="hidden" name="access_token" id="reset-access-token">
|
| 11 |
|
| 12 |
<div>
|
| 13 |
+
<label class="block text-xs font-bold uppercase tracking-wider text-muted mb-1">Új jelszó</label>
|
| 14 |
<input type="password" name="password" minlength="6" required autocomplete="new-password"
|
| 15 |
+
class="w-full bg-gray-50 dark:bg-game border border-game dark:border-game rounded-lg py-2.5 px-3 text-sm text-game focus:outline-none focus:border-green-500 transition">
|
| 16 |
</div>
|
| 17 |
|
| 18 |
+
<button type="submit" class="w-full py-3 btn-accent font-bold rounded-lg text-sm uppercase tracking-wider transition cursor-pointer text-game border-0 mt-2">
|
| 19 |
Jelszó mentése
|
| 20 |
</button>
|
| 21 |
</form>
|
|
|
|
| 34 |
}
|
| 35 |
}
|
| 36 |
// Ha nincs token vagy hibás a link
|
| 37 |
+
document.getElementById('reset-status').innerHTML = "<div class='btn-danger font-bold text-center p-2 bg-red-50 dark:bg-red-950/30 border border-red-500/30 rounded text-sm'>HIBA: A jelszóvisszaállító link érvénytelen vagy lejárt!</div>";
|
| 38 |
document.querySelector('#reset-password-box form').style.display = 'none';
|
| 39 |
}
|
| 40 |
extractToken();
|