some cleanup
@@ -5,10 +5,8 @@ COMPONENT(Request& context)
|
||||
starter_boot(context);
|
||||
context.header["Content-Type"] = "application/json";
|
||||
context.header["Cache-Control"] = "no-cache, no-store, must-revalidate";
|
||||
if(context.call["json"].get_type_name() == "array")
|
||||
print(json_encode(context.call["json"]));
|
||||
else if(context.var["starter"]["json"].get_type_name() == "array")
|
||||
print(json_encode(context.var["starter"]["json"]));
|
||||
if(context.props["json"].get_type_name() == "array")
|
||||
print(json_encode(context.props["json"]));
|
||||
else
|
||||
print(starter_page_main_html(context));
|
||||
}
|
||||
|
||||
@@ -1,516 +0,0 @@
|
||||
:root {
|
||||
/* Dark theme color palette */
|
||||
--bg-color: #0f172a;
|
||||
--bg-secondary: #1e293b;
|
||||
--bg-gradient: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
|
||||
--surface: #1e293b;
|
||||
--surface-elevated: #334155;
|
||||
--surface-hover: #475569;
|
||||
--primary: #60a5fa;
|
||||
--primary-dark: #3b82f6;
|
||||
--primary-light: #93c5fd;
|
||||
--secondary: #a78bfa;
|
||||
--accent: #22d3ee;
|
||||
--text-primary: #f1f5f9;
|
||||
--text-secondary: #cbd5e1;
|
||||
--text-muted: #94a3b8;
|
||||
--border: #334155;
|
||||
--border-hover: #475569;
|
||||
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
|
||||
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
|
||||
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
|
||||
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
|
||||
--radius: 8px;
|
||||
--radius-md: 8px;
|
||||
--radius-lg: 12px;
|
||||
--radius-xl: 16px;
|
||||
--radius-sm: 4px;
|
||||
|
||||
/* Dark theme specific variables */
|
||||
--glass-bg: rgba(30, 41, 59, 0.8);
|
||||
--glass-border: rgba(148, 163, 184, 0.1);
|
||||
--overlay: rgba(0, 0, 0, 0.6);
|
||||
--success: #10b981;
|
||||
--success-bg: rgba(16, 185, 129, 0.1);
|
||||
--success-border: rgba(16, 185, 129, 0.3);
|
||||
--success-text: #10b981;
|
||||
--warning: #f59e0b;
|
||||
--warning-bg: rgba(245, 158, 11, 0.1);
|
||||
--warning-border: rgba(245, 158, 11, 0.3);
|
||||
--warning-text: #f59e0b;
|
||||
--error: #ef4444;
|
||||
--error-bg: rgba(239, 68, 68, 0.1);
|
||||
--error-border: rgba(239, 68, 68, 0.3);
|
||||
--error-text: #ef4444;
|
||||
--info: #3b82f6;
|
||||
--info-bg: rgba(59, 130, 246, 0.1);
|
||||
--info-border: rgba(59, 130, 246, 0.3);
|
||||
--info-text: #3b82f6;
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
font-size: 16px;
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
font-size: 1rem;
|
||||
font-weight: 400;
|
||||
line-height: 1.6;
|
||||
color: var(--text-primary);
|
||||
background: var(--bg-color);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
/* Links */
|
||||
a {
|
||||
color: var(--primary);
|
||||
text-decoration: none;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--primary-light);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Modern Navigation */
|
||||
nav {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 1000;
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 0 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
nav > a,
|
||||
.nav-menu a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0.625rem 1rem;
|
||||
color: var(--text-primary);
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s ease;
|
||||
position: relative;
|
||||
border-radius: var(--radius);
|
||||
margin: 0.35rem 0.15rem;
|
||||
}
|
||||
|
||||
nav > a:first-child,
|
||||
.nav-menu > a:first-child {
|
||||
font-weight: 700;
|
||||
color: var(--primary);
|
||||
padding-left: 1.25rem;
|
||||
padding-right: 1.25rem;
|
||||
}
|
||||
|
||||
nav > a:hover,
|
||||
.nav-menu a:hover {
|
||||
background: var(--surface-hover);
|
||||
color: var(--primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
nav > a::after,
|
||||
.nav-menu a::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
width: 0;
|
||||
height: 2px;
|
||||
background: var(--primary);
|
||||
transition: all 0.3s ease;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
nav > a:hover::after,
|
||||
.nav-menu a:hover::after {
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
/* Account area inside the nav */
|
||||
.nav-menu {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.nav-account {
|
||||
margin-left: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
nav.nav-scrolled {
|
||||
background: rgba(30, 41, 59, 0.95) !important;
|
||||
backdrop-filter: blur(20px) !important;
|
||||
-webkit-backdrop-filter: blur(20px) !important;
|
||||
box-shadow: var(--shadow-md) !important;
|
||||
}
|
||||
|
||||
#content {
|
||||
margin-top: 5rem;
|
||||
min-height: calc(100vh - 10rem);
|
||||
padding: 2rem 1rem;
|
||||
max-width: 1200px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
/* Typography */
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2rem;
|
||||
position: relative;
|
||||
padding-bottom: 0.75rem;
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
|
||||
h1::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 60px;
|
||||
height: 3px;
|
||||
background: var(--bg-gradient);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
/* Modern Cards/Blocks */
|
||||
#content > div:not(.ws-app), .block, .card {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 1.75rem;
|
||||
margin-bottom: 1.5rem;
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: border-color 0.25s ease, box-shadow 0.25s ease;
|
||||
}
|
||||
|
||||
#content > div:not(.ws-app):hover, .block:hover, .card:hover {
|
||||
box-shadow: var(--shadow-md);
|
||||
border-color: var(--border-hover);
|
||||
}
|
||||
|
||||
/* Modern Forms */
|
||||
form {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
form > div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-bottom: 1.5rem;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
form > div > label {
|
||||
font-weight: 500;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.875rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
form > div > input, form > div > textarea, form > div > select {
|
||||
padding: 0.75rem 1rem;
|
||||
border: 2px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
background: var(--bg-secondary);
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
form > div > input:focus, form > div > textarea:focus, form > div > select:focus {
|
||||
outline: none;
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
/* Enhanced form validation states */
|
||||
form > div > input.valid, form > div > textarea.valid {
|
||||
border-color: var(--success);
|
||||
box-shadow: 0 0 0 3px var(--success-bg);
|
||||
}
|
||||
|
||||
form > div > input.invalid, form > div > textarea.invalid {
|
||||
border-color: var(--error);
|
||||
box-shadow: 0 0 0 3px var(--error-bg);
|
||||
}
|
||||
|
||||
/* Floating label effect */
|
||||
form > div.focused > label {
|
||||
transform: translateY(-0.5rem) scale(0.85);
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
/* Modern Buttons */
|
||||
button, .btn, form > div > input[type=submit], input[type="submit"] {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.75rem 1.5rem;
|
||||
background: var(--primary);
|
||||
color: var(--bg-color);
|
||||
border: none;
|
||||
border-radius: var(--radius);
|
||||
font-weight: 500;
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
text-decoration: none;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
button:hover, .btn:hover, form > div > input[type=submit]:hover, input[type="submit"]:hover {
|
||||
background: var(--primary-dark);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
button:active, .btn:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
input[type="range"] {
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
background: var(--bg-color);
|
||||
outline: none;
|
||||
border-radius: 3px;
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
input[type="range"]::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: var(--primary);
|
||||
cursor: pointer;
|
||||
border-radius: 50%;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
input[type="range"]::-moz-range-thumb {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: var(--primary);
|
||||
cursor: pointer;
|
||||
border-radius: 50%;
|
||||
border: none;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
/* Button variants */
|
||||
.btn-secondary {
|
||||
background: var(--secondary);
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background: #8b5cf6;
|
||||
}
|
||||
|
||||
.btn-outline {
|
||||
background: transparent;
|
||||
color: var(--primary);
|
||||
border: 2px solid var(--primary);
|
||||
}
|
||||
|
||||
.btn-outline:hover {
|
||||
background: var(--primary);
|
||||
color: var(--bg-color);
|
||||
}
|
||||
|
||||
.btn-large {
|
||||
padding: 1rem 2rem;
|
||||
font-size: 1.125rem;
|
||||
}
|
||||
|
||||
/* Utility Classes */
|
||||
.banner {
|
||||
padding: 1rem 1.5rem;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.banner.success {
|
||||
background: var(--success-bg);
|
||||
border-color: var(--success-border);
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.banner.warning {
|
||||
background: var(--warning-bg);
|
||||
border-color: var(--warning-border);
|
||||
color: var(--warning);
|
||||
}
|
||||
|
||||
.banner.error {
|
||||
background: var(--error-bg);
|
||||
border-color: var(--error-border);
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
.error {
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
footer {
|
||||
text-align: center;
|
||||
color: var(--text-muted);
|
||||
padding: 2rem 1rem;
|
||||
margin-top: 4rem;
|
||||
border-top: 1px solid var(--border);
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
/* Mobile Responsive Design */
|
||||
@media (max-width: 768px) {
|
||||
nav {
|
||||
padding: 0 0.5rem;
|
||||
overflow-x: auto;
|
||||
white-space: nowrap;
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
}
|
||||
|
||||
nav::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
nav > a {
|
||||
padding: 0.75rem 1rem;
|
||||
margin: 0.25rem 0.125rem;
|
||||
font-size: 0.875rem;
|
||||
display: inline-flex;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
#content {
|
||||
margin-top: 4rem;
|
||||
padding: 1rem 0.5rem;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.875rem;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
#content > div, .block, .card {
|
||||
padding: 1.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
form > div {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
button, .btn {
|
||||
padding: 0.875rem 1.25rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
nav > a {
|
||||
padding: 0.5rem 0.75rem;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
#content {
|
||||
padding: 1rem 0.25rem;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.5rem;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
#content > div, .block, .card {
|
||||
padding: 1rem;
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
}
|
||||
|
||||
/* Smooth scrolling and improved animations */
|
||||
* {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
/* Loading animation for better perceived performance */
|
||||
@keyframes pulse {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.5; }
|
||||
}
|
||||
|
||||
.loading {
|
||||
animation: pulse 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
/* Focus states for accessibility */
|
||||
button:focus, .btn:focus, input:focus, textarea:focus, select:focus {
|
||||
outline: 2px solid var(--primary);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Print styles */
|
||||
@media print {
|
||||
nav, footer, .cta-section {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#content {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
* {
|
||||
background: white !important;
|
||||
color: black !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 3.9 KiB |
@@ -1,31 +0,0 @@
|
||||
#load "../../lib/app.uce"
|
||||
|
||||
COMPONENT(Request& context)
|
||||
{
|
||||
starter_boot(context);
|
||||
bool embed_mode = starter_page_embed_mode(context);
|
||||
String main_html = starter_page_main_html(context);
|
||||
|
||||
DTree nav_props;
|
||||
nav_props["account_wrapper_class"] = "nav-account nav-menu";
|
||||
|
||||
DTree footer_props;
|
||||
footer_props["embed_mode"].set_bool(embed_mode);
|
||||
|
||||
<>
|
||||
<!doctype html>
|
||||
<html class="<?= starter_html_class(context) ?>" lang="en" data-theme-key="<?= context.cfg.get_by_path("theme/key").to_string() ?>">
|
||||
<head>
|
||||
<?: component("../../components/theme/head", context) ?>
|
||||
</head>
|
||||
<body<?: embed_mode ? " class=\"embed-mode\"" : "" ?>>
|
||||
<?: component("../../components/theme/global_controls", context) ?>
|
||||
<?: component("../../components/theme/standard_nav", nav_props, context) ?>
|
||||
<div id="content"<?: embed_mode ? " class=\"embed-content\"" : "" ?>>
|
||||
<?: main_html ?>
|
||||
</div>
|
||||
<?: component("../../components/theme/footer", footer_props, context) ?>
|
||||
</body>
|
||||
</html>
|
||||
</>
|
||||
}
|
||||
@@ -1,540 +0,0 @@
|
||||
:root {
|
||||
/* Light theme color palette */
|
||||
--bg-color: #f8fafc;
|
||||
--bg-secondary: #ffffff;
|
||||
--bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
--surface: #ffffff;
|
||||
--surface-elevated: #ffffff;
|
||||
--surface-hover: #f1f5f9;
|
||||
--primary: #3b82f6;
|
||||
--primary-dark: #1d4ed8;
|
||||
--primary-light: #93c5fd;
|
||||
--secondary: #8b5cf6;
|
||||
--accent: #06b6d4;
|
||||
--text-primary: #1e293b;
|
||||
--text-secondary: #64748b;
|
||||
--text-muted: #94a3b8;
|
||||
--border: #e2e8f0;
|
||||
--border-hover: #cbd5e1;
|
||||
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
||||
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
||||
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
||||
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
||||
--radius: 8px;
|
||||
--radius-md: 8px;
|
||||
--radius-lg: 12px;
|
||||
--radius-xl: 16px;
|
||||
--radius-sm: 4px;
|
||||
|
||||
/* Light theme specific variables */
|
||||
--glass-bg: rgba(255, 255, 255, 0.95);
|
||||
--glass-border: rgba(0, 0, 0, 0.1);
|
||||
--overlay: rgba(0, 0, 0, 0.3);
|
||||
--success: #10b981;
|
||||
--success-bg: #dcfce7;
|
||||
--success-border: #16a34a;
|
||||
--success-text: #065f46;
|
||||
--warning: #f59e0b;
|
||||
--warning-bg: #fef3c7;
|
||||
--warning-border: #d97706;
|
||||
--warning-text: #92400e;
|
||||
--error: #ef4444;
|
||||
--error-bg: #fee2e2;
|
||||
--error-border: #dc2626;
|
||||
--error-text: #991b1b;
|
||||
--info: #3b82f6;
|
||||
--info-bg: #dbeafe;
|
||||
--info-border: #2563eb;
|
||||
--info-text: #1e40af;
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
font-size: 16px;
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
font-size: 1rem;
|
||||
font-weight: 400;
|
||||
line-height: 1.6;
|
||||
color: var(--text-primary);
|
||||
background: var(--bg-color);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
/* Links */
|
||||
a {
|
||||
color: var(--primary);
|
||||
text-decoration: none;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--primary-dark);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Modern Navigation */
|
||||
nav {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 1000;
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 0 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
nav > a,
|
||||
.nav-menu a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0.625rem 1rem;
|
||||
color: var(--text-primary);
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
transition: all 0.2s ease;
|
||||
position: relative;
|
||||
border-radius: var(--radius);
|
||||
margin: 0.35rem 0.15rem;
|
||||
}
|
||||
|
||||
nav > a:first-child,
|
||||
.nav-menu > a:first-child {
|
||||
font-weight: 700;
|
||||
color: var(--primary);
|
||||
padding-left: 1.25rem;
|
||||
padding-right: 1.25rem;
|
||||
}
|
||||
|
||||
nav > a:hover,
|
||||
.nav-menu a:hover {
|
||||
background: var(--surface-hover);
|
||||
color: var(--primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
nav > a::after,
|
||||
.nav-menu a::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
width: 0;
|
||||
height: 2px;
|
||||
background: var(--primary);
|
||||
transition: all 0.3s ease;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
nav > a:hover::after,
|
||||
.nav-menu a:hover::after {
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
/* Account area inside the nav */
|
||||
.nav-menu {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.nav-account {
|
||||
margin-left: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.nav-account .account-name {
|
||||
color: var(--text-secondary);
|
||||
font-weight: 500;
|
||||
margin-right: 0.5rem;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.nav-account a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: var(--radius);
|
||||
color: var(--text-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.nav-account a:hover {
|
||||
background: var(--surface-hover);
|
||||
color: var(--primary-dark);
|
||||
}
|
||||
|
||||
/* Navigation scroll state */
|
||||
nav.nav-scrolled {
|
||||
background: rgba(255, 255, 255, 0.98) !important;
|
||||
backdrop-filter: blur(20px) !important;
|
||||
-webkit-backdrop-filter: blur(20px) !important;
|
||||
box-shadow: var(--shadow-md) !important;
|
||||
}
|
||||
|
||||
/* Main Content Area */
|
||||
#content {
|
||||
margin-top: 5rem;
|
||||
min-height: calc(100vh - 10rem);
|
||||
padding: 2rem 1rem;
|
||||
max-width: 1200px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
/* Typography */
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2.5rem;
|
||||
background: var(--surface);
|
||||
padding: 1.75rem 2rem;
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-sm);
|
||||
border: 1px solid var(--border);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
h1::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 3px;
|
||||
background: var(--bg-gradient);
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
/* Modern Cards/Blocks */
|
||||
#content > div:not(.ws-app), .block, .card {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 1.75rem;
|
||||
margin-bottom: 1.5rem;
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: border-color 0.25s ease, box-shadow 0.25s ease;
|
||||
}
|
||||
|
||||
#content > div:not(.ws-app):hover, .block:hover, .card:hover {
|
||||
box-shadow: var(--shadow-md);
|
||||
border-color: var(--border-hover);
|
||||
}
|
||||
|
||||
/* Modern Forms */
|
||||
form {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
form > div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-bottom: 1.5rem;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
form > div > label {
|
||||
font-weight: 500;
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.875rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
form > div > input, form > div > textarea, form > div > select {
|
||||
padding: 0.75rem 1rem;
|
||||
border: 2px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
background: var(--surface);
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
form > div > input:focus, form > div > textarea:focus, form > div > select:focus {
|
||||
outline: none;
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
||||
}
|
||||
|
||||
/* Enhanced form validation states */
|
||||
form > div > input.valid, form > div > textarea.valid {
|
||||
border-color: var(--success);
|
||||
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
|
||||
}
|
||||
|
||||
form > div > input.invalid, form > div > textarea.invalid {
|
||||
border-color: var(--error);
|
||||
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
|
||||
}
|
||||
|
||||
/* Floating label effect */
|
||||
form > div.focused > label {
|
||||
transform: translateY(-0.5rem) scale(0.85);
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
/* Modern Buttons */
|
||||
button, .btn, form > div > input[type=submit], input[type="submit"] {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.75rem 1.5rem;
|
||||
background: var(--primary);
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: var(--radius);
|
||||
font-weight: 500;
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
text-decoration: none;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
button:hover, .btn:hover, form > div > input[type=submit]:hover, input[type="submit"]:hover {
|
||||
background: var(--primary-dark);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
button:active, .btn:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
/* Button variants */
|
||||
.btn-secondary {
|
||||
background: var(--secondary);
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background: #7c3aed;
|
||||
}
|
||||
|
||||
.btn-outline {
|
||||
background: transparent;
|
||||
color: var(--primary);
|
||||
border: 2px solid var(--primary);
|
||||
}
|
||||
|
||||
.btn-outline:hover {
|
||||
background: var(--primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-large {
|
||||
padding: 1rem 2rem;
|
||||
font-size: 1.125rem;
|
||||
}
|
||||
|
||||
input[type="range"] {
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
background: var(--bg-color);
|
||||
outline: none;
|
||||
border-radius: 3px;
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
input[type="range"]::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: var(--primary);
|
||||
cursor: pointer;
|
||||
border-radius: 50%;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
input[type="range"]::-moz-range-thumb {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: var(--primary);
|
||||
cursor: pointer;
|
||||
border-radius: 50%;
|
||||
border: none;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
/* Utility Classes */
|
||||
.banner {
|
||||
padding: 1rem 1.5rem;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.banner.success {
|
||||
background: var(--success-bg);
|
||||
border-color: var(--success-border);
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.banner.warning {
|
||||
background: var(--warning-bg);
|
||||
border-color: var(--warning-border);
|
||||
color: var(--warning);
|
||||
}
|
||||
|
||||
.banner.error {
|
||||
background: var(--error-bg);
|
||||
border-color: var(--error-border);
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
.error {
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
footer {
|
||||
text-align: center;
|
||||
color: var(--text-muted);
|
||||
padding: 2rem 1rem;
|
||||
margin-top: 4rem;
|
||||
border-top: 1px solid var(--border);
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
/* Mobile Responsive Design */
|
||||
@media (max-width: 768px) {
|
||||
nav {
|
||||
padding: 0 0.5rem;
|
||||
overflow-x: auto;
|
||||
white-space: nowrap;
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
}
|
||||
|
||||
nav::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
nav > a {
|
||||
padding: 0.75rem 1rem;
|
||||
margin: 0.25rem 0.125rem;
|
||||
font-size: 0.875rem;
|
||||
display: inline-flex;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
#content {
|
||||
margin-top: 4rem;
|
||||
padding: 1rem 0.5rem;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.875rem;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
#content > div, .block, .card {
|
||||
padding: 1.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
form > div {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
button, .btn {
|
||||
padding: 0.875rem 1.25rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
nav > a {
|
||||
padding: 0.5rem 0.75rem;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
#content {
|
||||
padding: 1rem 0.25rem;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.5rem;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
#content > div, .block, .card {
|
||||
padding: 1rem;
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
}
|
||||
|
||||
/* Smooth scrolling and improved animations */
|
||||
* {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
/* Loading animation for better perceived performance */
|
||||
@keyframes pulse {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0.5; }
|
||||
}
|
||||
|
||||
.loading {
|
||||
animation: pulse 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
/* Focus states for accessibility */
|
||||
button:focus, .btn:focus, input:focus, textarea:focus, select:focus {
|
||||
outline: 2px solid var(--primary);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Print styles */
|
||||
@media print {
|
||||
nav, footer, .cta-section {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#content {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
* {
|
||||
background: white !important;
|
||||
color: black !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 8.4 KiB |
@@ -1,28 +0,0 @@
|
||||
#load "../../lib/app.uce"
|
||||
|
||||
COMPONENT(Request& context)
|
||||
{
|
||||
starter_boot(context);
|
||||
bool embed_mode = starter_page_embed_mode(context);
|
||||
String main_html = starter_page_main_html(context);
|
||||
|
||||
DTree footer_props;
|
||||
footer_props["embed_mode"].set_bool(embed_mode);
|
||||
|
||||
<>
|
||||
<!doctype html>
|
||||
<html class="<?= starter_html_class(context) ?>" lang="en" data-theme-key="<?= context.cfg.get_by_path("theme/key").to_string() ?>">
|
||||
<head>
|
||||
<?: component("../../components/theme/head", context) ?>
|
||||
</head>
|
||||
<body<?: embed_mode ? " class=\"embed-mode\"" : "" ?>>
|
||||
<?: component("../../components/theme/global_controls", context) ?>
|
||||
<?: component("../../components/theme/standard_nav", context) ?>
|
||||
<div id="content"<?: embed_mode ? " class=\"embed-content\"" : "" ?>>
|
||||
<?: main_html ?>
|
||||
</div>
|
||||
<?: component("../../components/theme/footer", footer_props, context) ?>
|
||||
</body>
|
||||
</html>
|
||||
</>
|
||||
}
|
||||
@@ -1,382 +0,0 @@
|
||||
@font-face {
|
||||
font-family: 'B612';
|
||||
src: url('../../common/fonts/b612/b612-regular.ttf') format('truetype');
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'B612';
|
||||
src: url('../../common/fonts/b612/b612-bold.ttf') format('truetype');
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'B612 Mono';
|
||||
src: url('../../common/fonts/b612/b612-mono-regular.ttf') format('truetype');
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'B612 Mono';
|
||||
src: url('../../common/fonts/b612/b612-mono-bold.ttf') format('truetype');
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@keyframes pulse-glow {
|
||||
0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent), 0 0 16px rgba(255,107,26,0.28); }
|
||||
50% { opacity: 0.6; box-shadow: 0 0 4px var(--accent), 0 0 8px rgba(255,107,26,0.16); }
|
||||
}
|
||||
|
||||
:root {
|
||||
--brand-cyan: #00b7f9;
|
||||
--brand-cyan-soft: #58d2ff;
|
||||
--brand-cyan-bright: #b6eeff;
|
||||
--brand-cyan-deep: #0088bb;
|
||||
--brand-orange: #ff6b1a;
|
||||
--brand-orange-soft: #ff9f6a;
|
||||
--brand-orange-bright: #ffd0b3;
|
||||
--bg-color: #020913;
|
||||
--bg-secondary: #07131f;
|
||||
--surface: rgba(7, 19, 31, 0.9);
|
||||
--surface-elevated: rgba(10, 28, 43, 0.96);
|
||||
--surface-hover: rgba(0, 183, 249, 0.08);
|
||||
--card: rgba(7, 19, 31, 0.84);
|
||||
--text-primary: var(--brand-cyan-soft);
|
||||
--text-secondary: rgba(139, 222, 255, 0.82);
|
||||
--text-muted: rgba(101, 161, 188, 0.78);
|
||||
--primary: var(--brand-cyan);
|
||||
--primary-light: rgba(0, 183, 249, 0.18);
|
||||
--primary-dark: var(--brand-cyan-deep);
|
||||
--secondary: var(--brand-cyan-soft);
|
||||
--accent: var(--brand-orange);
|
||||
--success: #34d399;
|
||||
--success-bg: rgba(52, 211, 153, 0.1);
|
||||
--success-border: rgba(52, 211, 153, 0.3);
|
||||
--success-text: #7ef0bb;
|
||||
--warning: var(--brand-orange);
|
||||
--warning-bg: rgba(255, 107, 26, 0.12);
|
||||
--warning-border: rgba(255, 107, 26, 0.32);
|
||||
--warning-text: #ffc29f;
|
||||
--error: #fb7185;
|
||||
--error-bg: rgba(251, 113, 133, 0.12);
|
||||
--error-border: rgba(251, 113, 133, 0.3);
|
||||
--error-text: #fecdd3;
|
||||
--info: var(--brand-cyan);
|
||||
--info-bg: rgba(0, 183, 249, 0.1);
|
||||
--info-border: rgba(0, 183, 249, 0.28);
|
||||
--info-text: var(--brand-cyan-bright);
|
||||
--border: rgba(67, 149, 182, 0.22);
|
||||
--border-hover: rgba(98, 205, 246, 0.36);
|
||||
--shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.18);
|
||||
--shadow-md: 0 14px 32px rgba(0, 0, 0, 0.24);
|
||||
--shadow-lg: 0 18px 38px rgba(0, 0, 0, 0.28);
|
||||
--shadow-xl: 0 22px 48px rgba(0, 0, 0, 0.34);
|
||||
--radius: 10px;
|
||||
--radius-sm: 6px;
|
||||
--radius-md: 10px;
|
||||
--radius-lg: 16px;
|
||||
--radius-xl: 20px;
|
||||
--font-sans: 'B612', 'Segoe UI', sans-serif;
|
||||
--font-mono: 'B612 Mono', ui-monospace, monospace;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; margin: 0; }
|
||||
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
|
||||
body {
|
||||
font-family: var(--font-sans);
|
||||
font-size: 14px;
|
||||
background: var(--bg-color);
|
||||
color: var(--text-primary);
|
||||
min-height: 100vh;
|
||||
}
|
||||
body::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background:
|
||||
radial-gradient(ellipse 80% 60% at 10% 0%, rgba(0,183,249,0.12) 0%, transparent 60%),
|
||||
radial-gradient(ellipse 60% 50% at 90% 100%, rgba(255,107,26,0.08) 0%, transparent 60%);
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
a { color: var(--accent); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
|
||||
body.admin-page { overflow: hidden; height: 100vh; }
|
||||
.admin-shell { display: flex; height: 100vh; overflow: hidden; position: relative; z-index: 1; }
|
||||
.admin-nav {
|
||||
width: 210px;
|
||||
flex-shrink: 0;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(5, 16, 26, 0.98), rgba(2, 10, 18, 0.98)),
|
||||
linear-gradient(180deg, rgba(0, 174, 240, 0.06), rgba(255, 107, 26, 0.04));
|
||||
border-right: 1px solid var(--border);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow-y: auto;
|
||||
padding: 0 0 16px;
|
||||
}
|
||||
.admin-nav-header {
|
||||
border-bottom: 1px solid var(--border);
|
||||
margin-bottom: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
padding: 10px 10px 12px;
|
||||
}
|
||||
.admin-nav-title { display: block; width: 100%; }
|
||||
.admin-nav-logo-img { display: block; width: 100%; height: auto; }
|
||||
.admin-nav-item {
|
||||
display: block;
|
||||
padding: 9px 16px 9px 14px;
|
||||
text-decoration: none;
|
||||
color: var(--text-secondary);
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
font-weight: 600;
|
||||
transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
|
||||
border-left: 3px solid transparent;
|
||||
}
|
||||
.admin-nav-item:hover {
|
||||
color: var(--brand-cyan-bright);
|
||||
background: linear-gradient(90deg, rgba(0, 174, 240, 0.12), rgba(255, 107, 26, 0.03));
|
||||
text-decoration: none;
|
||||
}
|
||||
.admin-nav-item.active {
|
||||
color: var(--accent);
|
||||
border-left-color: var(--accent);
|
||||
background: linear-gradient(90deg, rgba(255, 107, 26, 0.16), rgba(255, 107, 26, 0.04));
|
||||
box-shadow: inset 0 0 0 1px rgba(255, 107, 26, 0.08);
|
||||
}
|
||||
|
||||
.admin-main {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.admin-toolbar {
|
||||
position: fixed;
|
||||
top: 16px;
|
||||
right: 20px;
|
||||
z-index: 40;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.admin-account-card {
|
||||
pointer-events: auto;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px 12px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--border);
|
||||
background: rgba(7, 19, 31, 0.78);
|
||||
box-shadow: var(--shadow-sm);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
}
|
||||
.admin-account-name {
|
||||
color: var(--brand-cyan-bright);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
.admin-account-links {
|
||||
display: inline-flex;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
}
|
||||
.admin-account-links a {
|
||||
color: var(--accent);
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.admin-content {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 16px 20px 28px;
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 1.4px;
|
||||
text-transform: uppercase;
|
||||
color: var(--brand-cyan-bright);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin: 0 0 14px;
|
||||
}
|
||||
h1::before {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
background: var(--accent);
|
||||
border-radius: 2px;
|
||||
box-shadow: 0 0 8px var(--accent), 0 0 16px rgba(255,107,26,0.24);
|
||||
animation: pulse-glow 2.5s ease-in-out infinite;
|
||||
}
|
||||
h2, h3, h4, h5, h6 {
|
||||
color: var(--brand-cyan-bright);
|
||||
margin: 0 0 10px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
p { margin: 0 0 12px; color: var(--text-secondary); }
|
||||
|
||||
.card,
|
||||
.block,
|
||||
.dashboard-panel,
|
||||
#content > div:not(.ws-app):not(.demo-section) {
|
||||
background: var(--card);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 14px;
|
||||
position: relative;
|
||||
transition: border-color 0.25s ease, box-shadow 0.25s ease;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
.card::before,
|
||||
.block::before,
|
||||
.dashboard-panel::before,
|
||||
#content > div:not(.ws-app):not(.demo-section)::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 12px;
|
||||
right: 12px;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
|
||||
opacity: 0.55;
|
||||
}
|
||||
.card:hover,
|
||||
.block:hover,
|
||||
.dashboard-panel:hover,
|
||||
#content > div:not(.ws-app):not(.demo-section):hover {
|
||||
border-color: var(--border-hover);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
form { max-width: 760px; }
|
||||
form > div { display: grid; gap: 6px; margin-bottom: 12px; }
|
||||
label {
|
||||
color: var(--text-muted);
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
font-weight: 700;
|
||||
}
|
||||
input, select, textarea {
|
||||
width: 100%;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(3, 7, 18, 0.55);
|
||||
color: var(--brand-cyan-bright);
|
||||
padding: 10px 12px;
|
||||
font: inherit;
|
||||
}
|
||||
textarea { min-height: 120px; }
|
||||
input:focus, select:focus, textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--border-hover);
|
||||
box-shadow: 0 0 0 3px rgba(0, 183, 249, 0.12);
|
||||
}
|
||||
button, .btn, input[type="submit"] {
|
||||
border: 1px solid var(--border);
|
||||
background: rgba(255, 107, 26, 0.12);
|
||||
color: var(--brand-orange-bright);
|
||||
border-radius: var(--radius);
|
||||
padding: 10px 14px;
|
||||
font: inherit;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
cursor: pointer;
|
||||
transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
|
||||
}
|
||||
button:hover, .btn:hover, input[type="submit"]:hover {
|
||||
background: rgba(255, 107, 26, 0.18);
|
||||
border-color: rgba(255, 107, 26, 0.42);
|
||||
text-decoration: none;
|
||||
}
|
||||
button:active, .btn:active { transform: translateY(1px); }
|
||||
|
||||
.banner {
|
||||
border-radius: var(--radius);
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--border);
|
||||
background: rgba(0, 183, 249, 0.08);
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.banner.success { background: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }
|
||||
.banner.warning { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning-text); }
|
||||
.banner.error, .error { background: var(--error-bg); border-color: var(--error-border); color: var(--error-text); }
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
background: rgba(3, 7, 18, 0.42);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
overflow: hidden;
|
||||
}
|
||||
th, td {
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
th {
|
||||
font-size: 12px;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--text-muted);
|
||||
background: rgba(0, 183, 249, 0.08);
|
||||
}
|
||||
tr:last-child td { border-bottom: none; }
|
||||
|
||||
code, pre { font-family: var(--font-mono); }
|
||||
pre {
|
||||
padding: 12px;
|
||||
background: rgba(3, 7, 18, 0.55);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.admin-shell { flex-direction: column; height: auto; min-height: 100vh; }
|
||||
.admin-nav {
|
||||
width: 100%;
|
||||
flex-direction: row;
|
||||
overflow-x: auto;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.admin-nav-header { min-width: 180px; margin-bottom: 0; border-bottom: 0; border-right: 1px solid var(--border); }
|
||||
.admin-nav-item { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
|
||||
.admin-nav-item.active { border-bottom-color: var(--accent); border-left-color: transparent; }
|
||||
.admin-toolbar { position: static; justify-content: flex-start; margin: 16px 20px 0; }
|
||||
.admin-content { padding-top: 12px; }
|
||||
}
|
||||
|
Before Width: | Height: | Size: 156 KiB |
|
Before Width: | Height: | Size: 156 KiB |
@@ -1,54 +0,0 @@
|
||||
#load "../../lib/app.uce"
|
||||
|
||||
COMPONENT(Request& context)
|
||||
{
|
||||
starter_boot(context);
|
||||
bool embed_mode = starter_page_embed_mode(context);
|
||||
String main_html = starter_page_main_html(context);
|
||||
String current_path = context.var["starter"]["route"]["l_path"].to_string();
|
||||
|
||||
DTree global_props;
|
||||
global_props["cookie_consent"].set_bool(false);
|
||||
|
||||
DTree account_props;
|
||||
account_props["wrapper_class"] = "admin-account-card";
|
||||
account_props["links_wrapper_class"] = "admin-account-links";
|
||||
account_props["name_class"] = "admin-account-name";
|
||||
|
||||
<>
|
||||
<!doctype html>
|
||||
<html class="<?= starter_html_class(context) ?>" lang="en" data-theme-key="<?= context.cfg.get_by_path("theme/key").to_string() ?>">
|
||||
<head>
|
||||
<?: component("../../components/theme/head", context) ?>
|
||||
</head>
|
||||
<body class="admin-page localfirst-theme dark-theme<?= embed_mode ? " embed-mode" : "" ?>">
|
||||
<?: component("../../components/theme/global_controls", global_props, context) ?>
|
||||
<div class="admin-shell">
|
||||
<nav class="admin-nav">
|
||||
<div class="admin-nav-header">
|
||||
<a class="admin-nav-title" href="<?= starter_link("", context) ?>">
|
||||
<img class="admin-nav-logo-img" src="<?= starter_asset_url("themes/localfirst/img/local_first_logo.png", context) ?>" alt="<?= context.cfg.get_by_path("site/name").to_string() ?>" />
|
||||
</a>
|
||||
</div>
|
||||
<? context.cfg.get_by_path("menu").each([&](DTree menu_item, String menu_key) {
|
||||
if(menu_item["hidden"].to_string() == "1")
|
||||
return;
|
||||
bool active = menu_key != "" && (current_path == menu_key || current_path.rfind(menu_key + "/", 0) == 0);
|
||||
?><a class="admin-nav-item<?= active ? " active" : "" ?>" href="<?= starter_menu_href(menu_key, menu_item, context) ?>"><?= menu_item["title"].to_string() ?></a><?
|
||||
}); ?>
|
||||
</nav>
|
||||
<div class="admin-main">
|
||||
<? if(!embed_mode) { ?>
|
||||
<div class="admin-toolbar">
|
||||
<?: component("../../components/theme/account_links", account_props, context) ?>
|
||||
</div>
|
||||
<? } ?>
|
||||
<div id="content" class="admin-content">
|
||||
<?: main_html ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</>
|
||||
}
|
||||
@@ -1,313 +0,0 @@
|
||||
:root {
|
||||
--bg-color: #0f172a;
|
||||
--bg-secondary: #1e293b;
|
||||
--surface: #1e293b;
|
||||
--surface-elevated: #334155;
|
||||
--surface-hover: #475569;
|
||||
--primary: #60a5fa;
|
||||
--primary-dark: #3b82f6;
|
||||
--primary-light: #93c5fd;
|
||||
--secondary: #a78bfa;
|
||||
--accent: #22d3ee;
|
||||
--text-primary: #f1f5f9;
|
||||
--text-secondary: #cbd5e1;
|
||||
--text-muted: #94a3b8;
|
||||
--border: #334155;
|
||||
--border-hover: #475569;
|
||||
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
|
||||
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
|
||||
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
|
||||
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
|
||||
--radius: 8px;
|
||||
--radius-md: 8px;
|
||||
--radius-lg: 12px;
|
||||
--radius-xl: 16px;
|
||||
--radius-sm: 4px;
|
||||
--glass-bg: rgba(30, 41, 59, 0.8);
|
||||
--success: #10b981;
|
||||
--success-bg: rgba(16, 185, 129, 0.1);
|
||||
--success-border: rgba(16, 185, 129, 0.3);
|
||||
--success-text: #10b981;
|
||||
--warning: #f59e0b;
|
||||
--warning-bg: rgba(245, 158, 11, 0.1);
|
||||
--warning-border: rgba(245, 158, 11, 0.3);
|
||||
--warning-text: #f59e0b;
|
||||
--error: #ef4444;
|
||||
--error-bg: rgba(239, 68, 68, 0.1);
|
||||
--error-border: rgba(239, 68, 68, 0.3);
|
||||
--error-text: #ef4444;
|
||||
--info: #3b82f6;
|
||||
--info-bg: rgba(59, 130, 246, 0.1);
|
||||
--info-border: rgba(59, 130, 246, 0.3);
|
||||
--info-text: #3b82f6;
|
||||
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
--font-mono: 'SFMono-Regular', Consolas, monospace;
|
||||
}
|
||||
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
html { font-size: 16px; scroll-behavior: smooth; }
|
||||
body {
|
||||
font-family: var(--font-sans);
|
||||
font-size: 1rem;
|
||||
line-height: 1.6;
|
||||
color: var(--text-primary);
|
||||
background: var(--bg-color);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
a { color: var(--primary); text-decoration: none; transition: all 0.2s ease; }
|
||||
a:hover { color: var(--primary-light); text-decoration: underline; }
|
||||
|
||||
::selection {
|
||||
background: rgba(96, 165, 250, 0.3);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
body::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background:
|
||||
radial-gradient(ellipse 80% 50% at 20% -10%, rgba(96, 165, 250, 0.05) 0%, transparent 60%),
|
||||
radial-gradient(ellipse 60% 40% at 85% 110%, rgba(34, 211, 238, 0.04) 0%, transparent 50%);
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
nav {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 1000;
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 0 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
nav::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.nav-menu { display: flex; align-items: center; gap: 0.25rem; }
|
||||
.nav-menu a,
|
||||
.nav-account a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: var(--radius);
|
||||
color: var(--text-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
.nav-menu > a:first-child {
|
||||
font-weight: 700;
|
||||
color: var(--primary);
|
||||
padding: 1rem 1.5rem;
|
||||
margin: 0.5rem 0.25rem;
|
||||
}
|
||||
.nav-menu a:hover,
|
||||
.nav-account a:hover {
|
||||
background: var(--surface-hover);
|
||||
color: var(--primary);
|
||||
}
|
||||
.nav-account {
|
||||
margin-left: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
.nav-account .account-name {
|
||||
color: var(--text-secondary);
|
||||
font-weight: 500;
|
||||
font-size: 0.95rem;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
.nav-account .nav-avatar,
|
||||
.profile-avatar {
|
||||
border-radius: 999px;
|
||||
object-fit: cover;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.nav-account .nav-avatar { width: 30px; height: 30px; }
|
||||
.profile-avatar { width: 96px; height: 96px; }
|
||||
|
||||
#content {
|
||||
margin-top: 5rem;
|
||||
min-height: calc(100vh - 10rem);
|
||||
padding: 2rem 1rem;
|
||||
max-width: 1200px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
h1 {
|
||||
font-size: 2rem;
|
||||
position: relative;
|
||||
padding-bottom: 0.75rem;
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
h1::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 60px;
|
||||
height: 3px;
|
||||
background: linear-gradient(90deg, var(--primary), var(--accent));
|
||||
border-radius: 3px;
|
||||
}
|
||||
h2 { font-size: 2rem; }
|
||||
h3 { font-size: 1.5rem; }
|
||||
|
||||
#content > div:not(.ws-app), .block, .card, .dashboard-panel {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 1.75rem;
|
||||
margin-bottom: 1.5rem;
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: border-color 0.25s ease, box-shadow 0.25s ease;
|
||||
}
|
||||
|
||||
#content > div:not(.ws-app):hover, .block:hover, .card:hover, .dashboard-panel:hover {
|
||||
box-shadow: var(--shadow-md);
|
||||
border-color: var(--border-hover);
|
||||
}
|
||||
|
||||
form { max-width: 600px; margin: 0 auto; }
|
||||
form > div { display: flex; flex-direction: column; margin-bottom: 1.5rem; gap: 0.5rem; }
|
||||
label { font-weight: 500; color: var(--text-secondary); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; }
|
||||
input, select, textarea {
|
||||
width: 100%;
|
||||
padding: 0.75rem 1rem;
|
||||
border: 2px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
background: var(--bg-secondary);
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
font-family: inherit;
|
||||
}
|
||||
textarea { min-height: 120px; }
|
||||
input:focus, select:focus, textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
|
||||
background: var(--surface);
|
||||
}
|
||||
button, .btn, input[type="submit"] {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.75rem 1.5rem;
|
||||
background: var(--primary);
|
||||
color: var(--bg-color);
|
||||
border: none;
|
||||
border-radius: var(--radius);
|
||||
font-weight: 600;
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
button:hover, .btn:hover, input[type="submit"]:hover {
|
||||
background: var(--primary-dark);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-lg);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.banner {
|
||||
border-radius: var(--radius);
|
||||
padding: 0.8rem 1rem;
|
||||
border: 1px solid var(--border);
|
||||
margin-bottom: 1rem;
|
||||
background: rgba(255,255,255,0.03);
|
||||
}
|
||||
.banner.success { background: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }
|
||||
.banner.warning { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning-text); }
|
||||
.banner.error, .error { background: var(--error-bg); border-color: var(--error-border); color: var(--error-text); }
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
border: 1px solid var(--border);
|
||||
background: rgba(255,255,255,0.02);
|
||||
border-radius: var(--radius);
|
||||
overflow: hidden;
|
||||
}
|
||||
th, td { padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--border); text-align: left; }
|
||||
th { background: var(--surface-elevated); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
|
||||
tr:last-child td { border-bottom: none; }
|
||||
tr:hover td { background: rgba(255,255,255,0.02); }
|
||||
code, pre { font-family: var(--font-mono); }
|
||||
pre {
|
||||
padding: 1rem;
|
||||
background: rgba(15, 23, 42, 0.55);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
footer {
|
||||
border-top: 1px solid var(--border);
|
||||
padding: 1.25rem 1rem;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.875rem;
|
||||
background: rgba(15, 23, 42, 0.6);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
input[type="range"] {
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
background: var(--bg-secondary);
|
||||
outline: none;
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
input[type="range"]::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background: var(--primary);
|
||||
cursor: pointer;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 6px rgba(96, 165, 250, 0.3);
|
||||
}
|
||||
input[type="range"]::-moz-range-thumb {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background: var(--primary);
|
||||
cursor: pointer;
|
||||
border-radius: 50%;
|
||||
border: none;
|
||||
box-shadow: 0 0 6px rgba(96, 165, 250, 0.3);
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
nav { flex-wrap: wrap; padding-bottom: 0.6rem; }
|
||||
.nav-account { width: 100%; margin-left: 0; justify-content: flex-start; }
|
||||
#content { margin-top: 7.5rem; padding: 1rem 0.75rem; }
|
||||
#content > div:not(.ws-app), .block, .card, .dashboard-panel { padding: 1.25rem; margin-bottom: 1rem; }
|
||||
h1 { font-size: 2rem; padding: 1.25rem; }
|
||||
}
|
||||
|
Before Width: | Height: | Size: 3.9 KiB |
@@ -1,31 +0,0 @@
|
||||
#load "../../lib/app.uce"
|
||||
|
||||
COMPONENT(Request& context)
|
||||
{
|
||||
starter_boot(context);
|
||||
bool embed_mode = starter_page_embed_mode(context);
|
||||
String main_html = starter_page_main_html(context);
|
||||
|
||||
DTree nav_props;
|
||||
nav_props["account_wrapper_class"] = "nav-account nav-menu";
|
||||
|
||||
DTree footer_props;
|
||||
footer_props["embed_mode"].set_bool(embed_mode);
|
||||
|
||||
<>
|
||||
<!doctype html>
|
||||
<html class="<?= starter_html_class(context) ?>" lang="en" data-theme-key="<?= context.cfg.get_by_path("theme/key").to_string() ?>">
|
||||
<head>
|
||||
<?: component("../../components/theme/head", context) ?>
|
||||
</head>
|
||||
<body class="portal-theme portal-dark-theme dark-theme<?= embed_mode ? " embed-mode" : "" ?>">
|
||||
<?: component("../../components/theme/global_controls", context) ?>
|
||||
<?: component("../../components/theme/standard_nav", nav_props, context) ?>
|
||||
<div id="content"<?: embed_mode ? " class=\"embed-content\"" : "" ?>>
|
||||
<?: main_html ?>
|
||||
</div>
|
||||
<?: component("../../components/theme/footer", footer_props, context) ?>
|
||||
</body>
|
||||
</html>
|
||||
</>
|
||||
}
|
||||
@@ -1,392 +0,0 @@
|
||||
@font-face {
|
||||
font-family: "B612";
|
||||
src: url("../../common/fonts/b612/b612-regular.ttf") format("truetype");
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "B612";
|
||||
src: url("../../common/fonts/b612/b612-italic.ttf") format("truetype");
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "B612";
|
||||
src: url("../../common/fonts/b612/b612-bold.ttf") format("truetype");
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "B612 Mono";
|
||||
src: url("../../common/fonts/b612/b612-mono-regular.ttf") format("truetype");
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "B612 Mono";
|
||||
src: url("../../common/fonts/b612/b612-mono-bold.ttf") format("truetype");
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
:root {
|
||||
--kg-blue: #0f68ad;
|
||||
--kg-blue-dark: #0b4f85;
|
||||
--kg-blue-light: #2d86ca;
|
||||
--kg-bg: #e9e9ea;
|
||||
--kg-surface: #ffffff;
|
||||
--kg-border: rgba(0, 0, 0, 0.2);
|
||||
--kg-text: #121417;
|
||||
--kg-muted: #6c737b;
|
||||
--kg-orange: #f08a00;
|
||||
--kg-success: #149b2e;
|
||||
--kg-danger: #e11818;
|
||||
--topbar-height: 56px;
|
||||
--bg-color: var(--kg-bg);
|
||||
--bg-secondary: #ffffff;
|
||||
--surface: var(--kg-surface);
|
||||
--surface-elevated: #ffffff;
|
||||
--surface-hover: #e8eef3;
|
||||
--primary: var(--kg-blue);
|
||||
--primary-dark: var(--kg-blue-dark);
|
||||
--primary-light: var(--kg-blue-light);
|
||||
--secondary: #596572;
|
||||
--accent: var(--kg-orange);
|
||||
--text-primary: var(--kg-text);
|
||||
--text-secondary: #4b5560;
|
||||
--text-muted: var(--kg-muted);
|
||||
--border: var(--kg-border);
|
||||
--border-hover: rgba(15, 104, 173, 0.3);
|
||||
--success: var(--kg-success);
|
||||
--success-bg: #e7f5ea;
|
||||
--success-border: #86c88f;
|
||||
--success-text: #0f6e22;
|
||||
--warning: #c97a14;
|
||||
--warning-bg: #fff4e4;
|
||||
--warning-border: #f0c07b;
|
||||
--warning-text: #92550a;
|
||||
--error: var(--kg-danger);
|
||||
--error-bg: #ffe7e7;
|
||||
--error-border: #ea9999;
|
||||
--error-text: #b80f0f;
|
||||
--info: var(--primary);
|
||||
--info-bg: #e8f2ff;
|
||||
--info-border: #b9d4f3;
|
||||
--info-text: #0b4f85;
|
||||
--shadow-sm: 0 1px 2px rgba(18, 20, 23, 0.06);
|
||||
--shadow-md: 0 8px 22px rgba(18, 20, 23, 0.06);
|
||||
--shadow-lg: 0 16px 34px rgba(18, 20, 23, 0.1);
|
||||
--shadow-xl: 0 20px 40px rgba(18, 20, 23, 0.14);
|
||||
--radius: 8px;
|
||||
--radius-sm: 6px;
|
||||
--radius-md: 8px;
|
||||
--radius-lg: 12px;
|
||||
--radius-xl: 16px;
|
||||
--font-sans: "B612", "Segoe UI", sans-serif;
|
||||
--font-mono: "B612 Mono", "SFMono-Regular", Consolas, monospace;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html, body { min-height: 100%; }
|
||||
body {
|
||||
font-family: var(--font-sans);
|
||||
font-size: 14px;
|
||||
line-height: 1.4;
|
||||
color: var(--text-primary);
|
||||
background: var(--bg-color);
|
||||
}
|
||||
a { color: var(--primary-dark); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
|
||||
nav {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: var(--topbar-height);
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
background: var(--primary);
|
||||
border-bottom: 1px solid var(--primary-dark);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
|
||||
z-index: 60;
|
||||
}
|
||||
|
||||
.nav-menu {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
overflow-x: auto;
|
||||
white-space: nowrap;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.nav-menu > a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0 0.9rem;
|
||||
color: #fff;
|
||||
border-right: 1px solid rgba(255, 255, 255, 0.16);
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
text-decoration: none;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.nav-menu > a:first-child {
|
||||
font-size: 18px;
|
||||
min-width: 250px;
|
||||
background: rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.nav-menu > a:hover,
|
||||
.nav-menu > a:focus {
|
||||
background: var(--primary-dark);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.nav-account {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.45rem;
|
||||
padding: 0 0.7rem;
|
||||
border-left: 1px solid rgba(255, 255, 255, 0.2);
|
||||
background: rgba(0, 0, 0, 0.12);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.nav-account .account-name {
|
||||
color: #d8f8df;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.nav-account .nav-avatar,
|
||||
.profile-avatar {
|
||||
border-radius: 999px;
|
||||
object-fit: cover;
|
||||
border: 1px solid rgba(255, 255, 255, 0.4);
|
||||
}
|
||||
|
||||
.nav-account .nav-avatar {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.profile-avatar {
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
border-color: var(--border);
|
||||
}
|
||||
|
||||
.nav-account a {
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
padding: 0.22rem 0.5rem;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.nav-account a:hover {
|
||||
background: rgba(255, 255, 255, 0.16);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#content {
|
||||
margin-top: var(--topbar-height);
|
||||
padding: 1rem;
|
||||
min-height: calc(100vh - var(--topbar-height));
|
||||
}
|
||||
|
||||
#content > div:not(.ws-app),
|
||||
.block,
|
||||
.card,
|
||||
.dashboard-panel {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow-sm);
|
||||
padding: 1.25rem;
|
||||
margin-bottom: 1rem;
|
||||
transition: box-shadow 0.2s ease, border-color 0.2s ease;
|
||||
}
|
||||
|
||||
#content > div:not(.ws-app):hover,
|
||||
.block:hover,
|
||||
.card:hover,
|
||||
.dashboard-panel:hover {
|
||||
box-shadow: var(--shadow-md);
|
||||
border-color: rgba(15, 104, 173, 0.2);
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 700;
|
||||
color: #252b31;
|
||||
margin-bottom: 0.7rem;
|
||||
}
|
||||
h1 { font-size: 22px; padding-bottom: 0.5rem; border-bottom: 2px solid #d2d3d7; position: relative; }
|
||||
h1::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: -2px;
|
||||
left: 0;
|
||||
width: 50px;
|
||||
height: 2px;
|
||||
background: var(--primary);
|
||||
border-radius: 2px;
|
||||
}
|
||||
h2 { font-size: 18px; }
|
||||
h3 { font-size: 16px; }
|
||||
h4, h5, h6 { font-size: 14px; }
|
||||
|
||||
p { margin: 0.4rem 0 0.85rem; }
|
||||
|
||||
form { max-width: 780px; }
|
||||
form > div { margin-bottom: 0.8rem; }
|
||||
label {
|
||||
display: block;
|
||||
font-weight: 700;
|
||||
font-size: 14px;
|
||||
color: #3f464f;
|
||||
margin-bottom: 0.3rem;
|
||||
}
|
||||
input, select, textarea {
|
||||
width: 100%;
|
||||
min-height: 36px;
|
||||
padding: 0 0.7rem;
|
||||
border: 1px solid #a8aaaf;
|
||||
border-radius: 4px;
|
||||
background: #fff;
|
||||
color: var(--text-primary);
|
||||
font-size: 14px;
|
||||
font-family: inherit;
|
||||
}
|
||||
textarea { min-height: 100px; padding: 0.5rem 0.7rem; }
|
||||
input:focus, select:focus, textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--primary-light);
|
||||
box-shadow: 0 0 0 1px var(--primary-light);
|
||||
}
|
||||
button, .btn, input[type="submit"] {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 34px;
|
||||
padding: 0 0.9rem;
|
||||
border: 1px solid #7f8084;
|
||||
border-radius: 4px;
|
||||
background: #f7f7f7;
|
||||
color: #1a1e23;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
}
|
||||
button:hover, .btn:hover, input[type="submit"]:hover { background: #ececef; text-decoration: none; }
|
||||
button:active, .btn:active { transform: translateY(1px); }
|
||||
|
||||
.banner {
|
||||
border-radius: 4px;
|
||||
padding: 0.65rem 0.8rem;
|
||||
border: 1px solid #b4b5ba;
|
||||
margin-bottom: 0.8rem;
|
||||
background: #fafafa;
|
||||
}
|
||||
.banner.success { background: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }
|
||||
.banner.warning { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning-text); }
|
||||
.banner.error, .error { background: var(--error-bg); border-color: var(--error-border); color: var(--error-text); }
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
overflow: hidden;
|
||||
}
|
||||
th, td {
|
||||
padding: 0.7rem 0.8rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
th { background: #e7e7e8; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
|
||||
tr:last-child td { border-bottom: none; }
|
||||
tr:hover td { background: rgba(0, 0, 0, 0.02); }
|
||||
|
||||
code, pre { font-family: var(--font-mono); }
|
||||
pre {
|
||||
padding: 0.9rem;
|
||||
background: #fff;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
footer {
|
||||
border-top: 1px solid var(--border);
|
||||
background: #ffffff;
|
||||
color: var(--text-muted);
|
||||
padding: 1rem 1rem 1.5rem;
|
||||
font-size: 13px;
|
||||
}
|
||||
.footer-inner { max-width: 1200px; margin: 0 auto; }
|
||||
|
||||
input[type="range"] {
|
||||
height: 6px;
|
||||
padding: 0;
|
||||
min-height: auto;
|
||||
border: none;
|
||||
background: #d4d5d9;
|
||||
border-radius: 999px;
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
input[type="range"]::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background: var(--primary);
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
|
||||
}
|
||||
input[type="range"]::-moz-range-thumb {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background: var(--primary);
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: rgba(15, 104, 173, 0.2);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
nav {
|
||||
height: auto;
|
||||
flex-direction: column;
|
||||
}
|
||||
.nav-menu {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.nav-menu > a:first-child {
|
||||
min-width: 0;
|
||||
}
|
||||
.nav-account {
|
||||
justify-content: flex-start;
|
||||
padding: 0.6rem 0.7rem;
|
||||
}
|
||||
#content {
|
||||
margin-top: 104px;
|
||||
padding: 0.75rem;
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 3.9 KiB |
@@ -1,29 +0,0 @@
|
||||
#load "../../lib/app.uce"
|
||||
|
||||
COMPONENT(Request& context)
|
||||
{
|
||||
starter_boot(context);
|
||||
bool embed_mode = starter_page_embed_mode(context);
|
||||
String main_html = starter_page_main_html(context);
|
||||
|
||||
DTree footer_props;
|
||||
footer_props["embed_mode"].set_bool(embed_mode);
|
||||
footer_props["inner_class"] = "footer-inner";
|
||||
|
||||
<>
|
||||
<!doctype html>
|
||||
<html class="<?= starter_html_class(context) ?>" lang="en" data-theme-key="<?= context.cfg.get_by_path("theme/key").to_string() ?>">
|
||||
<head>
|
||||
<?: component("../../components/theme/head", context) ?>
|
||||
</head>
|
||||
<body class="portal-theme portal-light-theme<?= embed_mode ? " embed-mode" : "" ?>">
|
||||
<?: component("../../components/theme/global_controls", context) ?>
|
||||
<?: component("../../components/theme/standard_nav", context) ?>
|
||||
<div id="content"<?: embed_mode ? " class=\"embed-content\"" : "" ?>>
|
||||
<?: main_html ?>
|
||||
</div>
|
||||
<?: component("../../components/theme/footer", footer_props, context) ?>
|
||||
</body>
|
||||
</html>
|
||||
</>
|
||||
}
|
||||
@@ -1,523 +0,0 @@
|
||||
/* ────────────────────────────────────────────────────────
|
||||
RETRO GAMING THEME
|
||||
CRT scanlines · pixel font · neon glow · 8-bit palette
|
||||
──────────────────────────────────────────────────────── */
|
||||
|
||||
@font-face {
|
||||
font-family: 'Press Start 2P';
|
||||
src: url('../../common/fonts/press-start-2p/press-start-2p-regular.ttf') format('truetype');
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/* ── tokens ─────────────────────────────────────────── */
|
||||
:root {
|
||||
/* background */
|
||||
--bg-color: #0a0a1a;
|
||||
--bg-secondary: #10102a;
|
||||
--surface: #12122e;
|
||||
--surface-elevated: #1a1a3e;
|
||||
--surface-hover: #22224e;
|
||||
|
||||
/* neon palette */
|
||||
--primary: #00ff88;
|
||||
--primary-dark: #00cc6a;
|
||||
--primary-light: #66ffbb;
|
||||
--secondary: #ff00ff;
|
||||
--accent: #ffff00;
|
||||
--text-primary: #e0e0ff;
|
||||
--text-secondary: #a0a0cc;
|
||||
--text-muted: #6868a0;
|
||||
|
||||
/* borders, shadows */
|
||||
--border: #2a2a5a;
|
||||
--border-hover: #3a3a7a;
|
||||
--shadow-sm: 0 2px 0 #000;
|
||||
--shadow-md: 0 4px 0 #000, 0 0 12px rgba(0, 255, 136, 0.08);
|
||||
--shadow-lg: 0 6px 0 #000, 0 0 24px rgba(0, 255, 136, 0.12);
|
||||
--shadow-xl: 0 8px 0 #000, 0 0 40px rgba(0, 255, 136, 0.16);
|
||||
|
||||
/* semantic */
|
||||
--success: #00ff88;
|
||||
--success-bg: rgba(0, 255, 136, 0.1);
|
||||
--success-border: rgba(0, 255, 136, 0.3);
|
||||
--success-text: #00ff88;
|
||||
--warning: #ffff00;
|
||||
--warning-bg: rgba(255, 255, 0, 0.1);
|
||||
--warning-border: rgba(255, 255, 0, 0.3);
|
||||
--warning-text: #ffff00;
|
||||
--error: #ff3366;
|
||||
--error-bg: rgba(255, 51, 102, 0.1);
|
||||
--error-border: rgba(255, 51, 102, 0.3);
|
||||
--error-text: #ff3366;
|
||||
--info: #00ccff;
|
||||
--info-bg: rgba(0, 204, 255, 0.1);
|
||||
--info-border: rgba(0, 204, 255, 0.3);
|
||||
--info-text: #00ccff;
|
||||
|
||||
/* geometry */
|
||||
--radius: 0px;
|
||||
--radius-sm: 0px;
|
||||
--radius-md: 0px;
|
||||
--radius-lg: 2px;
|
||||
--radius-xl: 4px;
|
||||
|
||||
/* typography */
|
||||
--font-sans: 'Press Start 2P', monospace;
|
||||
--font-mono: 'Press Start 2P', monospace;
|
||||
}
|
||||
|
||||
/* ── reset ──────────────────────────────────────────── */
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
html { font-size: 16px; scroll-behavior: smooth; image-rendering: pixelated; }
|
||||
|
||||
body {
|
||||
font-family: var(--font-sans);
|
||||
font-size: 10px;
|
||||
line-height: 2;
|
||||
color: var(--text-primary);
|
||||
background: var(--bg-color);
|
||||
-webkit-font-smoothing: none;
|
||||
-moz-osx-font-smoothing: unset;
|
||||
}
|
||||
|
||||
/* ── CRT scanline overlay ───────────────────────────── */
|
||||
body::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: repeating-linear-gradient(
|
||||
0deg,
|
||||
transparent,
|
||||
transparent 2px,
|
||||
rgba(0, 0, 0, 0.15) 2px,
|
||||
rgba(0, 0, 0, 0.15) 4px
|
||||
);
|
||||
pointer-events: none;
|
||||
z-index: 9000;
|
||||
}
|
||||
|
||||
/* subtle vignette */
|
||||
body::after {
|
||||
content: '';
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.5) 100%);
|
||||
pointer-events: none;
|
||||
z-index: 8999;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: var(--primary);
|
||||
color: var(--bg-color);
|
||||
}
|
||||
|
||||
/* ── links ──────────────────────────────────────────── */
|
||||
a {
|
||||
color: var(--primary);
|
||||
text-decoration: none;
|
||||
transition: color 0.1s step-end;
|
||||
}
|
||||
a:hover {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
text-shadow: 0 0 6px var(--accent);
|
||||
}
|
||||
|
||||
/* ── navigation ─────────────────────────────────────── */
|
||||
nav {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 1000;
|
||||
background: var(--bg-secondary);
|
||||
border-bottom: 3px solid var(--primary);
|
||||
padding: 0 0.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
box-shadow: 0 3px 0 #000, 0 6px 20px rgba(0, 255, 136, 0.15);
|
||||
}
|
||||
|
||||
.nav-menu {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
overflow-x: auto;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
.nav-menu::-webkit-scrollbar { display: none; }
|
||||
|
||||
.nav-menu a,
|
||||
.nav-account a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0.75rem 0.8rem;
|
||||
color: var(--text-secondary);
|
||||
text-decoration: none;
|
||||
font-size: 8px;
|
||||
letter-spacing: 0.5px;
|
||||
text-transform: uppercase;
|
||||
border-right: 1px solid var(--border);
|
||||
transition: background 0.1s step-end, color 0.1s step-end;
|
||||
}
|
||||
|
||||
.nav-menu > a:first-child {
|
||||
color: var(--primary);
|
||||
text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
|
||||
font-size: 10px;
|
||||
padding: 0.75rem 1rem;
|
||||
border-right: 2px solid var(--primary);
|
||||
}
|
||||
|
||||
.nav-menu a:hover,
|
||||
.nav-account a:hover {
|
||||
background: var(--surface-hover);
|
||||
color: var(--accent);
|
||||
text-shadow: 0 0 6px var(--accent);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.nav-account {
|
||||
margin-left: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0;
|
||||
flex: 0 0 auto;
|
||||
overflow: visible;
|
||||
}
|
||||
.nav-account a {
|
||||
border-right: none;
|
||||
border-left: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.nav-account .account-name {
|
||||
color: var(--primary);
|
||||
font-size: 8px;
|
||||
padding: 0 0.5rem;
|
||||
}
|
||||
|
||||
.nav-account .nav-avatar,
|
||||
.profile-avatar {
|
||||
border-radius: 0;
|
||||
border: 2px solid var(--primary);
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
.nav-account .nav-avatar { width: 24px; height: 24px; }
|
||||
.profile-avatar { width: 64px; height: 64px; }
|
||||
|
||||
/* ── main content ───────────────────────────────────── */
|
||||
#content {
|
||||
margin-top: 3.5rem;
|
||||
min-height: calc(100vh - 7rem);
|
||||
padding: 1.5rem 1rem;
|
||||
max-width: 1100px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* ── typography ─────────────────────────────────────── */
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 400;
|
||||
line-height: 2;
|
||||
margin-bottom: 0.75rem;
|
||||
color: var(--primary);
|
||||
text-shadow: 0 0 10px rgba(0, 255, 136, 0.35);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 16px;
|
||||
padding: 0.75rem 0;
|
||||
border-bottom: 3px double var(--primary);
|
||||
margin-bottom: 1.25rem;
|
||||
position: relative;
|
||||
}
|
||||
h1::before {
|
||||
content: '►';
|
||||
margin-right: 0.5rem;
|
||||
animation: blink-cursor 1s step-end infinite;
|
||||
}
|
||||
h2 { font-size: 12px; color: var(--info-text); text-shadow: 0 0 8px rgba(0, 204, 255, 0.3); }
|
||||
h3 { font-size: 10px; color: var(--secondary); text-shadow: 0 0 8px rgba(255, 0, 255, 0.3); }
|
||||
h4, h5, h6 { font-size: 10px; }
|
||||
|
||||
p { margin: 0 0 0.75rem; }
|
||||
|
||||
@keyframes blink-cursor {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0; }
|
||||
}
|
||||
|
||||
/* ── cards / blocks ─────────────────────────────────── */
|
||||
#content > div:not(.ws-app):not(.demo-section),
|
||||
.block,
|
||||
.card,
|
||||
.dashboard-panel {
|
||||
background: var(--surface);
|
||||
border: 2px solid var(--border);
|
||||
padding: 1rem;
|
||||
margin-bottom: 1.25rem;
|
||||
box-shadow: var(--shadow-md);
|
||||
position: relative;
|
||||
transition: border-color 0.1s step-end;
|
||||
}
|
||||
|
||||
#content > div:not(.ws-app):not(.demo-section)::before,
|
||||
.block::before,
|
||||
.card::before,
|
||||
.dashboard-panel::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0; left: 0; right: 0;
|
||||
height: 2px;
|
||||
background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
|
||||
}
|
||||
|
||||
#content > div:not(.ws-app):not(.demo-section):hover,
|
||||
.block:hover,
|
||||
.card:hover,
|
||||
.dashboard-panel:hover {
|
||||
border-color: var(--border-hover);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
/* ── forms ──────────────────────────────────────────── */
|
||||
form { max-width: 640px; }
|
||||
form > div { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
|
||||
|
||||
label {
|
||||
color: var(--accent);
|
||||
font-size: 8px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
input, select, textarea {
|
||||
width: 100%;
|
||||
padding: 0.6rem 0.7rem;
|
||||
border: 2px solid var(--border);
|
||||
background: var(--bg-color);
|
||||
color: var(--primary);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10px;
|
||||
caret-color: var(--primary);
|
||||
}
|
||||
textarea { min-height: 100px; }
|
||||
|
||||
input:focus, select:focus, textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 0 1px var(--primary), 0 0 12px rgba(0, 255, 136, 0.2);
|
||||
}
|
||||
|
||||
input::placeholder, textarea::placeholder {
|
||||
color: var(--text-muted);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* ── buttons ────────────────────────────────────────── */
|
||||
button, .btn, input[type="submit"] {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.6rem 1.2rem;
|
||||
border: 2px solid var(--primary);
|
||||
background: transparent;
|
||||
color: var(--primary);
|
||||
font-family: var(--font-sans);
|
||||
font-size: 9px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
cursor: pointer;
|
||||
transition: all 0.1s step-end;
|
||||
box-shadow: 3px 3px 0 var(--bg-color), 4px 4px 0 var(--primary);
|
||||
}
|
||||
|
||||
button:hover, .btn:hover, input[type="submit"]:hover {
|
||||
background: var(--primary);
|
||||
color: var(--bg-color);
|
||||
text-shadow: none;
|
||||
box-shadow: 1px 1px 0 var(--bg-color), 2px 2px 0 var(--primary);
|
||||
transform: translate(2px, 2px);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
button:active, .btn:active, input[type="submit"]:active {
|
||||
box-shadow: none;
|
||||
transform: translate(4px, 4px);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
border-color: var(--secondary);
|
||||
color: var(--secondary);
|
||||
box-shadow: 3px 3px 0 var(--bg-color), 4px 4px 0 var(--secondary);
|
||||
}
|
||||
.btn-secondary:hover {
|
||||
background: var(--secondary);
|
||||
color: var(--bg-color);
|
||||
box-shadow: 1px 1px 0 var(--bg-color), 2px 2px 0 var(--secondary);
|
||||
}
|
||||
|
||||
.btn-outline {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
box-shadow: 3px 3px 0 var(--bg-color), 4px 4px 0 var(--accent);
|
||||
}
|
||||
.btn-outline:hover {
|
||||
background: var(--accent);
|
||||
color: var(--bg-color);
|
||||
box-shadow: 1px 1px 0 var(--bg-color), 2px 2px 0 var(--accent);
|
||||
}
|
||||
|
||||
/* ── range slider ───────────────────────────────────── */
|
||||
input[type="range"] {
|
||||
height: 8px;
|
||||
padding: 0;
|
||||
border: 2px solid var(--border);
|
||||
background: var(--bg-color);
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
input[type="range"]::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
background: var(--primary);
|
||||
border: 2px solid var(--bg-color);
|
||||
cursor: pointer;
|
||||
box-shadow: 0 0 6px rgba(0, 255, 136, 0.4);
|
||||
}
|
||||
input[type="range"]::-moz-range-thumb {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
background: var(--primary);
|
||||
border: 2px solid var(--bg-color);
|
||||
border-radius: 0;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 0 6px rgba(0, 255, 136, 0.4);
|
||||
}
|
||||
|
||||
/* ── banners ────────────────────────────────────────── */
|
||||
.banner {
|
||||
padding: 0.6rem 0.8rem;
|
||||
border: 2px solid var(--border);
|
||||
margin-bottom: 0.75rem;
|
||||
background: var(--surface);
|
||||
}
|
||||
.banner.success { background: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }
|
||||
.banner.warning { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning-text); }
|
||||
.banner.error, .error { background: var(--error-bg); border-color: var(--error-border); color: var(--error-text); }
|
||||
|
||||
/* ── tables ─────────────────────────────────────────── */
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
background: var(--surface);
|
||||
border: 2px solid var(--border);
|
||||
}
|
||||
th, td {
|
||||
padding: 0.5rem 0.65rem;
|
||||
border-bottom: 1px solid var(--border);
|
||||
text-align: left;
|
||||
font-size: 9px;
|
||||
}
|
||||
th {
|
||||
background: var(--surface-elevated);
|
||||
color: var(--accent);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
border-bottom: 2px solid var(--accent);
|
||||
}
|
||||
tr:last-child td { border-bottom: none; }
|
||||
tr:hover td { background: rgba(0, 255, 136, 0.04); }
|
||||
|
||||
/* ── code ───────────────────────────────────────────── */
|
||||
code, pre { font-family: var(--font-mono); }
|
||||
pre {
|
||||
padding: 0.75rem;
|
||||
background: var(--bg-color);
|
||||
border: 2px solid var(--border);
|
||||
overflow: auto;
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
/* ── footer ─────────────────────────────────────────── */
|
||||
footer {
|
||||
border-top: 3px solid var(--primary);
|
||||
padding: 1rem;
|
||||
color: var(--text-muted);
|
||||
font-size: 8px;
|
||||
background: var(--bg-secondary);
|
||||
box-shadow: 0 -3px 0 #000;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
footer::before {
|
||||
content: '// ';
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* ── pixel decoration classes (for page template) ──── */
|
||||
.retro-stars {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
background:
|
||||
radial-gradient(1px 1px at 10% 15%, var(--primary), transparent),
|
||||
radial-gradient(1px 1px at 30% 45%, var(--accent), transparent),
|
||||
radial-gradient(1px 1px at 55% 20%, var(--secondary), transparent),
|
||||
radial-gradient(1px 1px at 70% 65%, var(--info-text), transparent),
|
||||
radial-gradient(1px 1px at 85% 30%, var(--primary), transparent),
|
||||
radial-gradient(1px 1px at 15% 75%, var(--accent), transparent),
|
||||
radial-gradient(1px 1px at 45% 85%, var(--secondary), transparent),
|
||||
radial-gradient(1px 1px at 90% 80%, var(--primary), transparent),
|
||||
radial-gradient(1px 1px at 25% 55%, var(--info-text), transparent),
|
||||
radial-gradient(1px 1px at 60% 50%, var(--accent), transparent),
|
||||
radial-gradient(1px 1px at 5% 40%, var(--error-text), transparent),
|
||||
radial-gradient(1px 1px at 75% 10%, var(--accent), transparent),
|
||||
radial-gradient(1px 1px at 40% 30%, var(--primary), transparent),
|
||||
radial-gradient(1px 1px at 95% 55%, var(--secondary), transparent),
|
||||
radial-gradient(1px 1px at 50% 70%, var(--primary), transparent),
|
||||
radial-gradient(1px 1px at 20% 90%, var(--info-text), transparent);
|
||||
animation: twinkle 4s ease-in-out infinite alternate;
|
||||
}
|
||||
@keyframes twinkle {
|
||||
0% { opacity: 0.4; }
|
||||
100% { opacity: 0.8; }
|
||||
}
|
||||
|
||||
/* ── responsive ─────────────────────────────────────── */
|
||||
@media (max-width: 860px) {
|
||||
nav { flex-wrap: wrap; }
|
||||
.nav-menu { overflow-x: auto; white-space: nowrap; }
|
||||
.nav-account {
|
||||
width: 100%;
|
||||
margin-left: 0;
|
||||
border-top: 1px solid var(--border);
|
||||
justify-content: flex-start;
|
||||
}
|
||||
#content { margin-top: 5rem; padding: 1rem 0.75rem; }
|
||||
h1 { font-size: 12px; }
|
||||
h2 { font-size: 10px; }
|
||||
}
|
||||
|
||||
/* ── focus accessibility ────────────────────────────── */
|
||||
button:focus, .btn:focus, input:focus, textarea:focus, select:focus {
|
||||
outline: 2px solid var(--primary);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* ── print ──────────────────────────────────────────── */
|
||||
@media print {
|
||||
nav, footer, .retro-stars { display: none; }
|
||||
body::before, body::after { display: none; }
|
||||
#content { margin-top: 0; }
|
||||
* { background: white !important; color: black !important; box-shadow: none !important; text-shadow: none !important; }
|
||||
}
|
||||
|
Before Width: | Height: | Size: 389 B |
@@ -1,32 +0,0 @@
|
||||
#load "../../lib/app.uce"
|
||||
|
||||
COMPONENT(Request& context)
|
||||
{
|
||||
starter_boot(context);
|
||||
bool embed_mode = starter_page_embed_mode(context);
|
||||
String main_html = starter_page_main_html(context);
|
||||
|
||||
DTree nav_props;
|
||||
nav_props["account_wrapper_class"] = "nav-account nav-menu";
|
||||
|
||||
DTree footer_props;
|
||||
footer_props["embed_mode"].set_bool(embed_mode);
|
||||
|
||||
<>
|
||||
<!doctype html>
|
||||
<html class="<?= starter_html_class(context) ?>" lang="en" data-theme-key="<?= context.cfg.get_by_path("theme/key").to_string() ?>">
|
||||
<head>
|
||||
<?: component("../../components/theme/head", context) ?>
|
||||
</head>
|
||||
<body<?: embed_mode ? " class=\"embed-mode\"" : "" ?>>
|
||||
<div class="retro-stars"></div>
|
||||
<?: component("../../components/theme/global_controls", context) ?>
|
||||
<?: component("../../components/theme/standard_nav", nav_props, context) ?>
|
||||
<div id="content"<?: embed_mode ? " class=\"embed-content\"" : "" ?>>
|
||||
<?: main_html ?>
|
||||
</div>
|
||||
<?: component("../../components/theme/footer", footer_props, context) ?>
|
||||
</body>
|
||||
</html>
|
||||
</>
|
||||
}
|
||||