update
This commit is contained in:
@@ -133,3 +133,22 @@ body {
|
||||
.hero { padding: 40px 0; }
|
||||
.section { padding: 48px 0; }
|
||||
}
|
||||
|
||||
/* Auth & Dashboard */
|
||||
.auth-wrap { padding: 48px 0; }
|
||||
.auth-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
|
||||
.auth-card { padding: 22px; }
|
||||
.auth-aside { background: linear-gradient(135deg, #fdf4e0, #ffffff); border:1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-card); }
|
||||
.auth-logo { width: 140px; margin-bottom: 12px; }
|
||||
.auth-meta { color: var(--color-muted); font-size: 14px; }
|
||||
.form-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
|
||||
.form-grid.single { grid-template-columns: 1fr; }
|
||||
@media (max-width: 900px){ .auth-grid { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } }
|
||||
|
||||
.dash-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
|
||||
.dash-grid-2 { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
|
||||
.dash-card { padding: 18px; }
|
||||
.dash-list { margin: 0; padding-left: 18px; color: var(--color-muted); display: grid; gap: 6px; }
|
||||
.dash-section { margin-top: 16px; }
|
||||
@media (max-width: 1020px){ .dash-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
|
||||
@media (max-width: 760px){ .dash-grid, .dash-grid-2 { grid-template-columns: 1fr; } }
|
||||
|
||||
@@ -16,10 +16,15 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
});
|
||||
|
||||
// Header shrink on scroll
|
||||
let ticking = false;
|
||||
const onScroll = () => {
|
||||
if (!header) return;
|
||||
const shouldShrink = window.scrollY > 40;
|
||||
header.classList.toggle('is-scrolled', shouldShrink);
|
||||
if (ticking || !header) return;
|
||||
ticking = true;
|
||||
window.requestAnimationFrame(() => {
|
||||
const shouldShrink = window.scrollY > 120;
|
||||
header.classList.toggle('is-scrolled', shouldShrink);
|
||||
ticking = false;
|
||||
});
|
||||
};
|
||||
onScroll();
|
||||
window.addEventListener('scroll', onScroll, { passive: true });
|
||||
|
||||
4
public/page/dashboard.php
Normal file
4
public/page/dashboard.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
tpl('dashboard', 'landing', 'account');
|
||||
4
public/page/login.php
Normal file
4
public/page/login.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
tpl('login', 'landing', 'account');
|
||||
4
public/page/register.php
Normal file
4
public/page/register.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
tpl('register', 'landing', 'account');
|
||||
Reference in New Issue
Block a user