updated login page
This commit is contained in:
+31
-5
@@ -146,9 +146,28 @@
|
||||
/* Login */
|
||||
.login-overlay {
|
||||
position: fixed; inset: 0; background: #F5F0EB;
|
||||
display: flex; align-items: center; justify-content: center; z-index: 100;
|
||||
display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 100;
|
||||
overflow-y: auto; padding: 20px 16px;
|
||||
}
|
||||
.login-box { text-align: center; width: 280px; }
|
||||
.login-hero {
|
||||
width: 100%; max-width: 420px; margin-bottom: 24px; text-align: center;
|
||||
}
|
||||
.login-hero img {
|
||||
width: 100%; max-width: 380px; border-radius: 14px;
|
||||
box-shadow: 0 4px 20px rgba(0,0,0,0.12);
|
||||
}
|
||||
.login-tagline {
|
||||
font-family: 'Playfair Display', serif;
|
||||
font-size: calc(var(--title-size) * 0.7);
|
||||
font-weight: 600; color: #3A332D;
|
||||
line-height: 1.35; margin: 20px 0 6px;
|
||||
font-style: italic;
|
||||
}
|
||||
.login-tagline-sub {
|
||||
font-size: var(--font-size); color: #8B7E74;
|
||||
line-height: 1.5; margin-bottom: 4px;
|
||||
}
|
||||
.login-box { text-align: center; width: 300px; }
|
||||
.login-box input, .login-box select {
|
||||
padding: 10px 16px; border-radius: 8px; border: 1px solid #E8E0D8;
|
||||
font-size: var(--button-size); font-family: 'DM Sans', sans-serif; width: 100%;
|
||||
@@ -173,10 +192,13 @@
|
||||
<body>
|
||||
|
||||
<div id="login-screen" class="login-overlay" style="display:none;">
|
||||
<div class="login-hero">
|
||||
<img src="/hero.png" alt="Révfülöp, Balaton">
|
||||
<div class="login-tagline">Ahol a család találkozik,<br>ahol a nyár kezdődik.</div>
|
||||
<div class="login-tagline-sub">A révfülöpi nyaraló foglalási naptára</div>
|
||||
</div>
|
||||
<div class="login-box">
|
||||
<div class="header-sub site-subtitle">Révfülöp · Balaton</div>
|
||||
<h1 class="site-title" style="font-family:'Playfair Display',serif;font-size:var(--title-size);font-weight:700;color:#3A332D;margin:4px 0 8px;">Nyaraló Naptár</h1>
|
||||
<div class="header-line" style="margin:0 auto 12px;"></div>
|
||||
<div class="header-line" style="margin:0 auto 16px;"></div>
|
||||
<div style="font-size:calc(var(--font-size) - 1px);color:#8B7E74;margin-bottom:4px;">Ki vagy?</div>
|
||||
<div class="login-members" id="login-members"></div>
|
||||
<input type="password" id="login-password" placeholder="Jelszó" onkeydown="if(event.key==='Enter')doLogin()">
|
||||
@@ -290,6 +312,10 @@ async function loadConfig() {
|
||||
// Update site name/subtitle if customized
|
||||
document.querySelectorAll('.site-title').forEach(el => el.textContent = config.siteName);
|
||||
document.querySelectorAll('.site-subtitle').forEach(el => el.textContent = config.siteSubtitle);
|
||||
const taglineEl = document.querySelector('.login-tagline');
|
||||
if (taglineEl && config.loginTagline) taglineEl.innerHTML = config.loginTagline;
|
||||
const loginSubEl = document.querySelector('.login-tagline-sub');
|
||||
if (loginSubEl && config.loginSubtitle) loginSubEl.textContent = config.loginSubtitle;
|
||||
} catch (e) {
|
||||
console.log('Using default UI config');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user