Redesign UI to match Google Workspace integrated feel
Co-authored-by: naielv <109038805+naielv@users.noreply.github.com>
This commit is contained in:
@@ -38,412 +38,361 @@ if (!empty($displayName)) {
|
||||
<link rel="stylesheet" href="/static/bootstrap.min.css" />
|
||||
<link rel="icon" type="image/png" href="/static/<?php echo $APP_ICON ?? "logo.png"; ?>" />
|
||||
<link rel="manifest" href="/static/manifest.json">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Google+Sans:wght@400;500;700&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<style>
|
||||
/* fieldset label {
|
||||
margin-bottom: 15px;
|
||||
/* ─── Google Workspace Design System ─────────────────────────────── */
|
||||
:root {
|
||||
--gw-font: 'Google Sans', 'Roboto', 'Arial', sans-serif;
|
||||
--gw-blue: #1a73e8;
|
||||
--gw-blue-hover: #1765cc;
|
||||
--gw-blue-light: #e8f0fe;
|
||||
--gw-text-primary: #202124;
|
||||
--gw-text-secondary: #5f6368;
|
||||
--gw-bg: #f0f4f9;
|
||||
--gw-surface: #ffffff;
|
||||
--gw-border: #dadce0;
|
||||
--gw-hover: #f1f3f4;
|
||||
--gw-header-h: 64px;
|
||||
--gw-sidebar-w: 256px;
|
||||
--gw-brand: #9013FE;
|
||||
--bs-btn-font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
|
||||
--bs-body-font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
|
||||
--bs-font-sans-serif: 'Google Sans', 'Roboto', Arial, sans-serif;
|
||||
--bs-link-color: var(--gw-blue);
|
||||
--bs-link-hover-color: var(--gw-blue-hover);
|
||||
}
|
||||
|
||||
.actbutton,
|
||||
.actbutton-half {
|
||||
padding: 5px 10px;
|
||||
padding-left: 5px;
|
||||
width: 200px;
|
||||
text-align: right;
|
||||
vertical-align: top;
|
||||
}
|
||||
*, *::before, *::after { box-sizing: border-box; }
|
||||
|
||||
.actbutton-half {
|
||||
width: 167.5px;
|
||||
|
||||
}
|
||||
|
||||
.actbutton img,
|
||||
.actbutton-half img {
|
||||
float: left;
|
||||
body {
|
||||
font-family: var(--gw-font);
|
||||
background: var(--gw-bg);
|
||||
color: var(--gw-text-primary);
|
||||
margin: 0;
|
||||
height: 55px;
|
||||
width: 55px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 0.3em 0.6em;
|
||||
border-left: 1px solid #ccc;
|
||||
border-right: 1px solid #ccc;
|
||||
/* ─── Print ───────────────────────────────────────────────────────── */
|
||||
@media print { .no-print { display: none; } }
|
||||
|
||||
/* ─── Form helpers ────────────────────────────────────────────────── */
|
||||
input[readonly], textarea[readonly], .select select[readonly] {
|
||||
background-color: #f1f3f4;
|
||||
}
|
||||
|
||||
th {
|
||||
text-align: center;
|
||||
} */
|
||||
|
||||
@media print {
|
||||
.no-print {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
input[readonly],
|
||||
textarea[readonly],
|
||||
.select select[readonly] {
|
||||
background-color: lightgray;
|
||||
}
|
||||
|
||||
fieldset input,
|
||||
fieldset textarea,
|
||||
fieldset .select select {
|
||||
width: calc(100% - 1s5px);
|
||||
fieldset input, fieldset textarea, fieldset .select select {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
input.nonumscroll::-webkit-outer-spin-button,
|
||||
input.nonumscroll::-webkit-inner-spin-button {
|
||||
-webkit-appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
input.nonumscroll::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
|
||||
input.nonumscroll[type=number] { appearance: textfield; -moz-appearance: textfield; }
|
||||
|
||||
input.nonumscroll[type=number] {
|
||||
appearance: textfield;
|
||||
-moz-appearance: textfield;
|
||||
}
|
||||
|
||||
/*
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
||||
a.grid-item {
|
||||
margin-bottom: 10px !important;
|
||||
padding: 15px;
|
||||
width: 250px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
a.grid-item img {
|
||||
margin: 0 auto;
|
||||
} */
|
||||
.card.pad {
|
||||
padding: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
details summary {
|
||||
cursor: pointer;
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
.text-black {
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
.btn {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.navbar-nav>a.btn {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.bg-custom {
|
||||
background-color: #9013FE;
|
||||
}
|
||||
/* ─── Utility ─────────────────────────────────────────────────────── */
|
||||
.card.pad { padding: 12px; margin-bottom: 12px; border: 1px solid var(--gw-border); border-radius: 8px; box-shadow: none; }
|
||||
details summary { cursor: pointer; display: list-item; }
|
||||
.text-black { color: black !important; }
|
||||
.bg-custom { background-color: var(--gw-brand); }
|
||||
.btn { margin-bottom: 4px; border-radius: 4px; font-family: var(--gw-font); font-weight: 500; letter-spacing: 0.01em; }
|
||||
.btn-primary { background-color: var(--gw-blue); border-color: var(--gw-blue); }
|
||||
.btn-primary:hover { background-color: var(--gw-blue-hover); border-color: var(--gw-blue-hover); }
|
||||
.navbar-nav > a.btn { margin-right: 10px; }
|
||||
|
||||
/* ─── App shell ───────────────────────────────────────────────────── */
|
||||
.app-shell {
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
background: #f5f5f5;
|
||||
min-height: calc(100vh - var(--gw-header-h));
|
||||
background: var(--gw-bg);
|
||||
}
|
||||
|
||||
.sidebar-toggle-input {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
/* ─── Sidebar toggle (hidden checkbox) ───────────────────────────── */
|
||||
.sidebar-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
|
||||
|
||||
/* ─── Sidebar ─────────────────────────────────────────────────────── */
|
||||
.sidebar {
|
||||
width: 260px;
|
||||
background: #ffffff;
|
||||
border-right: 1px solid #e5e7eb;
|
||||
padding: 20px 16px;
|
||||
width: var(--gw-sidebar-w);
|
||||
background: var(--gw-surface);
|
||||
padding: 8px 0;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
top: var(--gw-header-h);
|
||||
height: calc(100vh - var(--gw-header-h));
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
transition: width 0.25s ease, transform 0.25s ease, padding 0.25s ease, opacity 0.2s ease;
|
||||
gap: 0;
|
||||
transition: width 0.3s cubic-bezier(0.4,0,0.2,1),
|
||||
padding 0.3s cubic-bezier(0.4,0,0.2,1),
|
||||
opacity 0.2s ease;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.sidebar-toggle-input:not(:checked)~.app-shell .sidebar {
|
||||
.sidebar-toggle-input:not(:checked) ~ .app-shell .sidebar {
|
||||
width: 0;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
border-right: none;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.sidebar-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
font-weight: 600;
|
||||
color: #202124;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.sidebar-brand img {
|
||||
height: 34px;
|
||||
.sidebar-section-label {
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--gw-text-secondary);
|
||||
padding: 16px 16px 4px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.sidebar-nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
gap: 2px;
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
.sidebar-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px 10px;
|
||||
border-radius: 12px;
|
||||
gap: 16px;
|
||||
padding: 0 16px;
|
||||
height: 48px;
|
||||
border-radius: 24px;
|
||||
text-decoration: none;
|
||||
color: #202124;
|
||||
background: #f8f9fa;
|
||||
outline: 1px solid grey;
|
||||
color: var(--gw-text-primary);
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
white-space: nowrap;
|
||||
transition: background 0.15s ease;
|
||||
}
|
||||
.sidebar-link:hover { background: var(--gw-hover); color: var(--gw-text-primary); text-decoration: none; }
|
||||
.sidebar-link.active, .sidebar-link:focus-visible { background: var(--gw-blue-light); color: var(--gw-blue); font-weight: 500; }
|
||||
|
||||
.sidebar-link img {
|
||||
height: 26px;
|
||||
}
|
||||
.sidebar-link img { height: 20px; width: 20px; object-fit: contain; flex-shrink: 0; }
|
||||
|
||||
.sidebar-note {
|
||||
font-size: 12px;
|
||||
color: #5f6368;
|
||||
}
|
||||
.sidebar-divider { height: 1px; background: var(--gw-border); margin: 8px 16px; }
|
||||
|
||||
.sidebar-backdrop {
|
||||
display: none;
|
||||
}
|
||||
.sidebar-backdrop { display: none; }
|
||||
|
||||
.app-content {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.axia-home {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 10px 16px 40px;
|
||||
}
|
||||
/* ─── App content ─────────────────────────────────────────────────── */
|
||||
.app-content { flex: 1; min-width: 0; }
|
||||
|
||||
/* ─── Top header ──────────────────────────────────────────────────── */
|
||||
.axia-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
background: #ffffff;
|
||||
border-radius: 999px;
|
||||
padding: 10px 16px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
||||
gap: 4px;
|
||||
background: var(--gw-surface);
|
||||
border-bottom: 1px solid var(--gw-border);
|
||||
padding: 0 8px;
|
||||
height: var(--gw-header-h);
|
||||
position: sticky;
|
||||
top: 10px;
|
||||
z-index: 5;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
box-shadow: 0 1px 2px 0 rgba(60,64,67,0.1);
|
||||
}
|
||||
|
||||
.logo-area {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
font-weight: 600;
|
||||
color: #202124;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.brand-text {
|
||||
gap: 6px;
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
color: var(--gw-text-secondary);
|
||||
text-decoration: none;
|
||||
padding: 0 8px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.logo-area:hover { color: var(--gw-text-primary); text-decoration: none; }
|
||||
|
||||
.brand-logo { height: 30px; }
|
||||
|
||||
.brand-text { font-size: 18px; font-weight: 400; letter-spacing: -0.01em; }
|
||||
|
||||
/* Sidebar toggle button */
|
||||
.sidebar-toggle {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
background: #f1f3f4;
|
||||
color: #5f6368;
|
||||
background: transparent;
|
||||
color: var(--gw-text-secondary);
|
||||
border: none;
|
||||
transition: background 0.15s ease;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.sidebar-toggle:hover { background: var(--gw-hover); }
|
||||
|
||||
.search-bar {
|
||||
flex: 1;
|
||||
}
|
||||
/* Search bar */
|
||||
.search-bar { flex: 1; max-width: 720px; margin: 0 auto; }
|
||||
|
||||
.search-bar form,
|
||||
.search-bar > form { display: flex; }
|
||||
|
||||
.search-bar input {
|
||||
width: 100%;
|
||||
border: none;
|
||||
background: #f1f3f4;
|
||||
padding: 10px 16px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--gw-border);
|
||||
background: var(--gw-hover);
|
||||
padding: 8px 20px;
|
||||
border-radius: 24px;
|
||||
outline: none;
|
||||
font-size: 15px;
|
||||
font-size: 16px;
|
||||
font-family: var(--gw-font);
|
||||
color: var(--gw-text-primary);
|
||||
transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
.search-bar input:focus {
|
||||
background: var(--gw-surface);
|
||||
border-color: var(--gw-blue);
|
||||
box-shadow: 0 1px 6px rgba(32,33,36,0.28);
|
||||
}
|
||||
.search-bar input::placeholder { color: var(--gw-text-secondary); }
|
||||
|
||||
.axia-header summary {
|
||||
list-style: none;
|
||||
}
|
||||
/* Header action area */
|
||||
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
|
||||
|
||||
.axia-header summary::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
.axia-header summary { list-style: none; }
|
||||
.axia-header summary::-webkit-details-marker { display: none; }
|
||||
|
||||
/* Icon button (for waffle, etc.) */
|
||||
.icon-button {
|
||||
list-style: none;
|
||||
background: transparent;
|
||||
border: none;
|
||||
padding: 8px;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
color: var(--gw-text-secondary);
|
||||
transition: background 0.15s ease;
|
||||
}
|
||||
.icon-button:hover { background: var(--gw-hover); }
|
||||
|
||||
/* Waffle 3×3 dot grid */
|
||||
.dot-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 4px);
|
||||
gap: 4px;
|
||||
padding: 2px;
|
||||
grid-template-columns: repeat(3, 5px);
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
.dot-grid span {
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
background: #5f6368;
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
background: var(--gw-text-secondary);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
details {
|
||||
position: relative;
|
||||
}
|
||||
/* ─── Dropdown cards ──────────────────────────────────────────────── */
|
||||
details { position: relative; }
|
||||
|
||||
header .menu-card {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
margin-top: 10px;
|
||||
background: #fff;
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
|
||||
padding: 16px;
|
||||
min-width: 240px;
|
||||
z-index: 10;
|
||||
top: calc(100% + 4px);
|
||||
background: var(--gw-surface);
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 10px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.06);
|
||||
padding: 12px 4px;
|
||||
min-width: 280px;
|
||||
z-index: 200;
|
||||
}
|
||||
|
||||
header .menu-card-title {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: var(--gw-text-secondary);
|
||||
padding: 4px 16px 12px;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
header .menu-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
|
||||
gap: 12px;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
header .menu-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px 10px;
|
||||
border-radius: 12px;
|
||||
gap: 6px;
|
||||
padding: 12px 8px;
|
||||
border-radius: 8px;
|
||||
text-decoration: none;
|
||||
color: #202124;
|
||||
background: #f8f9fa;
|
||||
outline: 1px solid grey;
|
||||
color: var(--gw-text-primary);
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
margin: 2px;
|
||||
transition: background 0.15s ease;
|
||||
}
|
||||
header .menu-item:hover { background: var(--gw-hover); text-decoration: none; color: var(--gw-text-primary); }
|
||||
|
||||
header .menu-item img {
|
||||
height: 28px;
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
border-radius: 8px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
header .menu-item span { line-height: 1.3; }
|
||||
|
||||
/* ─── Avatar ──────────────────────────────────────────────────────── */
|
||||
.avatar {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
background: #1a73e8;
|
||||
background: var(--gw-blue);
|
||||
color: #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: 600;
|
||||
font-weight: 500;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
letter-spacing: 0.03em;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.avatar.big { width: 56px; height: 56px; font-size: 22px; }
|
||||
|
||||
.avatar.big {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.account-card {
|
||||
min-width: 280px;
|
||||
}
|
||||
/* ─── Account card ────────────────────────────────────────────────── */
|
||||
.account-card { min-width: 300px; }
|
||||
|
||||
.account-head {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.account-name {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.account-email {
|
||||
font-size: 13px;
|
||||
color: #5f6368;
|
||||
}
|
||||
|
||||
.account-actions .btn {
|
||||
gap: 8px;
|
||||
padding: 16px 16px 12px;
|
||||
border-bottom: 1px solid var(--gw-border);
|
||||
margin-bottom: 8px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.account-name { font-weight: 500; font-size: 16px; }
|
||||
.account-email { font-size: 13px; color: var(--gw-text-secondary); }
|
||||
|
||||
.account-actions { padding: 0 12px 8px; }
|
||||
.account-actions .btn { margin-bottom: 6px; border-radius: 20px; font-size: 14px; }
|
||||
|
||||
/* ─── Main content ────────────────────────────────────────────────── */
|
||||
.axia-home {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 24px 24px 48px;
|
||||
}
|
||||
|
||||
/* ─── Mobile ──────────────────────────────────────────────────────── */
|
||||
@media (max-width: 768px) {
|
||||
.sidebar-toggle {
|
||||
display: inline-flex;
|
||||
/* make it more to the left */
|
||||
margin-left: -8px;
|
||||
}
|
||||
.axia-home { padding: 16px 12px 48px; }
|
||||
|
||||
.logo-area {
|
||||
gap: 6px;
|
||||
margin-left: -8px;
|
||||
margin-right: -8px;
|
||||
}
|
||||
|
||||
.axia-home {
|
||||
padding: 10px 8px 40px;
|
||||
}
|
||||
|
||||
.app-shell {
|
||||
display: block;
|
||||
}
|
||||
.app-shell { display: block; }
|
||||
|
||||
.sidebar {
|
||||
position: fixed;
|
||||
@@ -451,19 +400,16 @@ if (!empty($displayName)) {
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
transform: translateX(-100%);
|
||||
transition: transform 0.25s ease;
|
||||
z-index: 20;
|
||||
width: 260px;
|
||||
padding: 20px 16px;
|
||||
border-right: 1px solid #e5e7eb;
|
||||
transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
|
||||
z-index: 200;
|
||||
width: var(--gw-sidebar-w);
|
||||
padding: 8px 0;
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.sidebar-toggle-input:not(:checked)~.app-shell .sidebar {
|
||||
width: 260px;
|
||||
padding: 20px 16px;
|
||||
border-right: 1px solid #e5e7eb;
|
||||
.sidebar-toggle-input:not(:checked) ~ .app-shell .sidebar {
|
||||
width: var(--gw-sidebar-w);
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
@@ -471,52 +417,22 @@ if (!empty($displayName)) {
|
||||
.sidebar-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.35);
|
||||
background: rgba(0,0,0,0.32);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.25s ease;
|
||||
z-index: 15;
|
||||
z-index: 150;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.sidebar-toggle-input:checked~.app-shell .sidebar {
|
||||
transform: translateX(0);
|
||||
}
|
||||
.sidebar-toggle-input:checked ~ .app-shell .sidebar { transform: translateX(0); }
|
||||
.sidebar-toggle-input:checked ~ .app-shell .sidebar-backdrop { opacity: 1; pointer-events: auto; }
|
||||
|
||||
.sidebar-toggle-input:checked~.app-shell .sidebar-backdrop {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
.search-bar { display: none; }
|
||||
.header-actions { gap: 2px; }
|
||||
.hide-small { display: none; }
|
||||
|
||||
.axia-header {
|
||||
flex-wrap: wrap;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.search-bar {
|
||||
width: 100%;
|
||||
order: 3;
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* make other buttons alinged to the right */
|
||||
.header-actions {
|
||||
margin-left: auto;
|
||||
margin-right: -8px;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.hide-small {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
:root {
|
||||
--bs-btn-font-family: Arial, Helvetica, sans-serif;
|
||||
--bs-body-font-family: Arial, Helvetica, sans-serif;
|
||||
--bs-font-sans-serif: Arial, Helvetica, sans-serif;
|
||||
--bs-font-family-base: Arial, Helvetica, sans-serif;
|
||||
--bs-heading-font-family: Arial, Helvetica, sans-serif;
|
||||
.logo-area { padding: 0 4px; }
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -548,17 +464,95 @@ if (!empty($displayName)) {
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
|
||||
<!-- ── Google Workspace-style top header ──────────────────── -->
|
||||
<header class="axia-header">
|
||||
<label for="sidebarToggle" class="sidebar-toggle" aria-label="Abrir menú">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
|
||||
<path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/>
|
||||
</svg>
|
||||
</label>
|
||||
<a class="logo-area" href="<?= $APP_ROOT ?>">
|
||||
<img src="/static/<?= $APP_ICON ?>" alt="<?= htmlspecialchars($APP_NAME) ?>" class="brand-logo">
|
||||
<span class="brand-text hide-small"><?= $APP_NAME ?></span>
|
||||
</a>
|
||||
<div class="search-bar">
|
||||
<form action="https://search.tech.eus/s/" method="get">
|
||||
<input type="text" name="q" placeholder="Búsqueda global" aria-label="Buscar">
|
||||
</form>
|
||||
</div>
|
||||
<div class="header-actions">
|
||||
<details class="app-menu">
|
||||
<summary class="icon-button" aria-label="Menú de aplicaciones">
|
||||
<span class="dot-grid" aria-hidden="true">
|
||||
<span></span><span></span><span></span>
|
||||
<span></span><span></span><span></span>
|
||||
<span></span><span></span><span></span>
|
||||
</span>
|
||||
</summary>
|
||||
<div class="menu-card">
|
||||
<div class="menu-card-title">Aplicaciones de Axia4</div>
|
||||
<div class="menu-grid">
|
||||
<a class="menu-item" href="/">
|
||||
<img src="/static/logo.png" alt="">
|
||||
<span>Axia4</span>
|
||||
</a>
|
||||
<a class="menu-item" href="/club/">
|
||||
<img src="/static/logo-club.png" alt="">
|
||||
<span>Club</span>
|
||||
</a>
|
||||
<a class="menu-item" href="/entreaulas/">
|
||||
<img src="/static/logo-entreaulas.png" alt="">
|
||||
<span>EntreAulas</span>
|
||||
</a>
|
||||
<a class="menu-item" href="/account/">
|
||||
<img src="/static/logo-account.png" alt="">
|
||||
<span>Cuenta</span>
|
||||
</a>
|
||||
<a class="menu-item" href="/sysadmin/">
|
||||
<img src="/static/logo-sysadmin.png" alt="">
|
||||
<span>SysAdmin</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
<details class="account-menu">
|
||||
<summary class="avatar" aria-label="Cuenta">
|
||||
<?php echo htmlspecialchars($initials); ?>
|
||||
</summary>
|
||||
<div class="menu-card account-card">
|
||||
<div class="account-head">
|
||||
<div class="avatar big"><?php echo htmlspecialchars($initials); ?></div>
|
||||
<div class="account-name"><?php echo htmlspecialchars($displayName); ?></div>
|
||||
<div class="account-email"><?php echo htmlspecialchars($email); ?></div>
|
||||
</div>
|
||||
<div class="account-actions">
|
||||
<?php if ($_SESSION["auth_ok"]) { ?>
|
||||
<a href="/account/" class="btn btn-outline-secondary w-100">Gestionar cuenta</a>
|
||||
<a href="/_login.php?logout=1&redir=/" class="btn btn-outline-secondary w-100">Cerrar sesión</a>
|
||||
<?php } else { ?>
|
||||
<a href="/_login.php?redir=/" class="btn btn-primary w-100">Iniciar sesión</a>
|
||||
<a href="/account/register.php" class="btn btn-outline-primary w-100">Crear cuenta</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- ── App shell (sidebar + content) ──────────────────────── -->
|
||||
<div class="app-shell">
|
||||
<aside class="sidebar">
|
||||
<b>Esta app</b>
|
||||
<div class="sidebar-section-label">Esta app</div>
|
||||
<nav class="sidebar-nav">
|
||||
<?php
|
||||
<?php
|
||||
if (file_exists(__DIR__ . "/../$APP_CODE/__menu.php")) {
|
||||
include __DIR__ . "/../$APP_CODE/__menu.php";
|
||||
}
|
||||
?>
|
||||
</nav>
|
||||
<b>Axia4</b>
|
||||
<div class="sidebar-divider"></div>
|
||||
<div class="sidebar-section-label">Axia4</div>
|
||||
<nav class="sidebar-nav">
|
||||
<a class="sidebar-link" href="/">
|
||||
<img src="/static/logo.png" alt="">
|
||||
@@ -569,75 +563,6 @@ if (!empty($displayName)) {
|
||||
<label for="sidebarToggle" class="sidebar-backdrop" aria-hidden="true"></label>
|
||||
<div class="app-content">
|
||||
<main class="axia-home">
|
||||
<header class="axia-header">
|
||||
<label for="sidebarToggle" class="sidebar-toggle" aria-label="Abrir menú">☰</label>
|
||||
<a class="logo-area" href="<?= $APP_ROOT ?>">
|
||||
<img src="/static/<?= $APP_ICON ?>" alt="<?= htmlspecialchars($APP_NAME) ?>" class="brand-logo">
|
||||
<span class="brand-text"><?= $APP_NAME ?></span>
|
||||
</a>
|
||||
<form class="search-bar" action="https://search.tech.eus/s/" method="get">
|
||||
<input type="text" name="q" placeholder="Busqueda Global" aria-label="Buscar">
|
||||
</form>
|
||||
<div class="header-actions">
|
||||
<details class="app-menu">
|
||||
<summary class="icon-button" aria-label="Menú de aplicaciones">
|
||||
<span class="dot-grid" aria-hidden="true">
|
||||
<span></span><span></span><span></span>
|
||||
<span></span><span></span><span></span>
|
||||
<span></span><span></span><span></span>
|
||||
</span>
|
||||
</summary>
|
||||
<div class="menu-card">
|
||||
<div class="menu-grid">
|
||||
<a class="menu-item" href="/">
|
||||
<img src="/static/logo.png" alt="">
|
||||
<span>Axia4</span>
|
||||
</a>
|
||||
<a class="menu-item" href="/club/">
|
||||
<img src="/static/logo-club.png" alt="">
|
||||
<span>Club</span>
|
||||
</a>
|
||||
<a class="menu-item" href="/entreaulas/">
|
||||
<img src="/static/logo-entreaulas.png" alt="">
|
||||
<span>EntreAulas</span>
|
||||
</a>
|
||||
<a class="menu-item" href="/account/">
|
||||
<img src="/static/logo-account.png" alt="">
|
||||
<span>Cuenta</span>
|
||||
</a>
|
||||
<a class="menu-item" href="/sysadmin/">
|
||||
<img src="/static/logo-sysadmin.png" alt="">
|
||||
<span>SysAdmin</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
<details class="account-menu">
|
||||
<summary class="avatar" aria-label="Cuenta">
|
||||
<?php echo htmlspecialchars($initials); ?>
|
||||
</summary>
|
||||
<div class="menu-card account-card">
|
||||
<div class="account-head">
|
||||
<div class="avatar big"><?php echo htmlspecialchars($initials); ?></div>
|
||||
<div>
|
||||
<div class="account-name"><?php echo htmlspecialchars($displayName); ?></div>
|
||||
<div class="account-email"><?php echo htmlspecialchars($email); ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="account-actions">
|
||||
<?php if ($_SESSION["auth_ok"]) { ?>
|
||||
<a href="/account/" class="btn btn-primary w-100">Gestionar cuenta</a>
|
||||
<a href="/_login.php?logout=1&redir=/" class="btn btn-outline-secondary w-100">Cerrar sesión</a>
|
||||
<?php } else { ?>
|
||||
<a href="/_login.php?redir=/" class="btn btn-primary w-100">Iniciar sesión</a>
|
||||
<a href="/account/register.php" class="btn btn-outline-primary w-100">Crear cuenta</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
</header>
|
||||
<div style="margin-top: 20px;">
|
||||
<?php } ?>
|
||||
<?php if (isset($_GET["_result"])) { ?>
|
||||
<div class="card pad"
|
||||
|
||||
@@ -1,15 +1,133 @@
|
||||
<?php require_once "_incl/pre-body.php"; ?>
|
||||
|
||||
<style>
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin: 0 0 28px;
|
||||
background: linear-gradient(135deg, #e8f0fe 0%, #fce8ff 100%);
|
||||
padding: 48px 24px;
|
||||
border-radius: 12px;
|
||||
color: var(--gw-text-primary, #202124);
|
||||
border: 1px solid #dadce0;
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
font-size: 36px;
|
||||
font-weight: 400;
|
||||
margin-bottom: 8px;
|
||||
color: #202124;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.hero p {
|
||||
color: #5f6368;
|
||||
font-size: 16px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.hero hr {
|
||||
border-color: #dadce0;
|
||||
margin: 20px auto;
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
.hero h3 {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #1a73e8;
|
||||
letter-spacing: 0.02em;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.hero .btn {
|
||||
border-radius: 20px;
|
||||
padding: 8px 24px;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #5f6368;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
margin: 0 0 16px;
|
||||
}
|
||||
|
||||
.app-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
gap: 16px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.app-card {
|
||||
background: #ffffff;
|
||||
border-radius: 8px;
|
||||
padding: 20px 16px 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
border: 1px solid #dadce0;
|
||||
transition: box-shadow 0.2s ease, border-color 0.2s ease;
|
||||
}
|
||||
|
||||
.app-card:hover {
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||||
border-color: #bdc1c6;
|
||||
}
|
||||
|
||||
.app-card img {
|
||||
height: 48px;
|
||||
width: 48px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.app-title {
|
||||
font-weight: 500;
|
||||
font-size: 15px;
|
||||
color: #202124;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.app-desc,
|
||||
.app-note {
|
||||
color: #5f6368;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.app-actions {
|
||||
margin-top: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
||||
.app-actions .btn {
|
||||
border-radius: 4px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.is-disabled {
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.app-card .btn.btn-outline-secondary.disabled {
|
||||
color: #5f6368;
|
||||
}
|
||||
</style>
|
||||
|
||||
<section class="hero">
|
||||
<h1>Bienvenidx a Axia4</h1>
|
||||
<p>La plataforma unificada de EuskadiTech y Sketaria.</p>
|
||||
<hr>
|
||||
<h3>Versión 2.0.0</h3>
|
||||
<p>Con esta versión, cambiamos la interfaz a una mas sencilla.</p>
|
||||
<p>Con esta versión, cambiamos la interfaz a una más sencilla.</p>
|
||||
<br>
|
||||
<a class="btn btn-primary" href="/account/">Accede a tu cuenta</a>
|
||||
</section>
|
||||
|
||||
|
||||
<p class="section-title">Aplicaciones</p>
|
||||
|
||||
<div id="grid" class="app-grid">
|
||||
<div class="app-card">
|
||||
@@ -46,10 +164,9 @@
|
||||
<div class="app-title">EntreAulas</div>
|
||||
<div class="app-desc">Recursos educativos digitales.</div>
|
||||
<div class="app-actions">
|
||||
<a href="/entreaulas/" target="_blank" class="btn btn-primary">Acceso publico</a>
|
||||
<a href="/entreaulas/" target="_blank" class="btn btn-primary">Acceso público</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Arroz con leche: Wiki publica -->
|
||||
<div class="app-card">
|
||||
<img src="/static/logo-arroz.png" alt="Logo Arroz con leche">
|
||||
<div class="app-title">Arroz con leche</div>
|
||||
@@ -58,56 +175,6 @@
|
||||
<a href="https://arroz.tech.eus/" target="_blank" class="btn btn-primary">Acceso público</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="app-grid" style="display: none;">
|
||||
<div class="app-card is-disabled">
|
||||
<img src="/static/logo-oscar.png" alt="Logo OSCAR">
|
||||
<div class="app-title">OSCAR</div>
|
||||
<div class="app-desc">Red de IA Absoluta.</div>
|
||||
<div class="app-note">Próximamente</div>
|
||||
</div>
|
||||
<div class="app-card is-disabled">
|
||||
<img src="/static/logo-media.png" alt="Logo ET Media">
|
||||
<div class="app-title">ET Media</div>
|
||||
<div class="app-desc">Streaming de pelis y series.</div>
|
||||
<div class="app-note">Próximamente</div>
|
||||
</div>
|
||||
<div class="app-card is-disabled">
|
||||
<img src="/static/logo-hyper.png" alt="Logo Hyper">
|
||||
<div class="app-title">Hyper</div>
|
||||
<div class="app-desc">Plataforma de gestión empresarial.</div>
|
||||
<div class="app-note">Próximamente</div>
|
||||
</div>
|
||||
<div class="app-card is-disabled">
|
||||
<img src="/static/logo-mail.png" alt="Logo Comunicaciones">
|
||||
<div class="app-title">Comunicaciones</div>
|
||||
<div class="app-desc">Correos electrónicos y mensajería.</div>
|
||||
<div class="app-note">Próximamente</div>
|
||||
</div>
|
||||
<div class="app-card is-disabled">
|
||||
<img src="/static/logo-malla.png" alt="Logo Malla">
|
||||
<div class="app-title">Malla Meshtastic</div>
|
||||
<div class="app-desc">Red de comunicación por radio.</div>
|
||||
<div class="app-note">Próximamente</div>
|
||||
</div>
|
||||
<div class="app-card is-disabled">
|
||||
<img src="/static/logo-aularios.png" alt="Logo Aularios">
|
||||
<div class="app-title">Aularios<sup>2</sup></div>
|
||||
<div class="app-desc">Visita virtual a los aularios.</div>
|
||||
<div class="app-note">Solo lectura · Migrando a Axia4</div>
|
||||
</div>
|
||||
<div class="app-card is-disabled">
|
||||
<img src="/static/logo-nube.png" alt="Logo Axia4 Cloud">
|
||||
<div class="app-title">Nube Axia4.NET</div>
|
||||
<div class="app-desc">Almacenamiento central de datos.</div>
|
||||
<div class="app-note">Cerrado por migración</div>
|
||||
</div>
|
||||
<div class="app-card is-disabled">
|
||||
<img src="/static/logo-nk4.png" alt="Logo Nube Kasa">
|
||||
<div class="app-title">Nube Kasa</div>
|
||||
<div class="app-desc">Nube personal con domótica.</div>
|
||||
<div class="app-note">Cerrado por mantenimiento</div>
|
||||
</div>
|
||||
<div class="app-card">
|
||||
<img src="/static/logo-sysadmin.png" alt="Logo SysAdmin">
|
||||
<div class="app-title">SysAdmin</div>
|
||||
@@ -121,95 +188,5 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
body {
|
||||
background: #f5f5f5;
|
||||
}
|
||||
|
||||
.hero {
|
||||
text-align: center;
|
||||
margin: 32px 0 16px;
|
||||
background: url(/static/portugalete.jpg) #ffffffc2;
|
||||
padding: 25px 7px;
|
||||
padding-top: 50px;
|
||||
min-height: 350px;
|
||||
border-radius: 50px;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-blend-mode: lighten;
|
||||
color: black;
|
||||
/* -webkit-text-stroke: 0.5px #acacac; */
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
font-size: 42px;
|
||||
margin-bottom: 8px;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.hero p {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.notice-card {
|
||||
background: #e8f0fe;
|
||||
padding: 12px 16px;
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
color: #1a3c78;
|
||||
margin-bottom: 20px;
|
||||
outline: 1px solid #c2d1f0;
|
||||
}
|
||||
|
||||
.app-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.app-card {
|
||||
background: #fff;
|
||||
border-radius: 16px;
|
||||
padding: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.app-card img {
|
||||
height: 64px;
|
||||
width: 64px;
|
||||
}
|
||||
|
||||
.app-title {
|
||||
font-weight: 600;
|
||||
color: #202124;
|
||||
}
|
||||
|
||||
.app-desc,
|
||||
.app-note {
|
||||
color: #5f6368;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.app-actions {
|
||||
margin-top: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.is-disabled {
|
||||
opacity: 0.6;
|
||||
}
|
||||
.app-card .btn.btn-outline-secondary.disabled {
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
|
||||
<?php require_once "_incl/post-body.php"; ?>
|
||||
Reference in New Issue
Block a user