asdsa
This commit is contained in:
20
partials/landingpage/accountsetup/accountsetup_config.php
Normal file
20
partials/landingpage/accountsetup/accountsetup_config.php
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
$appBaseUrl = $GLOBALS['app_base_url'] ?? '';
|
||||||
|
|
||||||
|
$defaultNavLinks = [
|
||||||
|
['id' => 'dashboard', 'label' => 'Dashboard', 'href' => $appBaseUrl . '/admin/dashboard.php'],
|
||||||
|
['id' => 'settings', 'label' => 'Administration','href' => $appBaseUrl . '/admin/settings.php'],
|
||||||
|
['id' => 'bridge', 'label' => 'Bridge Setup', 'href' => $appBaseUrl . '/admin/bridge.php'],
|
||||||
|
['id' => 'profile', 'label' => 'Mein Konto', 'href' => $appBaseUrl . '/admin/profile.php'],
|
||||||
|
];
|
||||||
|
|
||||||
|
if (empty($navLinks)) {
|
||||||
|
$navLinks = $defaultNavLinks;
|
||||||
|
}
|
||||||
|
|
||||||
|
$layoutSharedCss = $layoutSharedCss ?? [];
|
||||||
|
if (!is_array($layoutSharedCss)) {
|
||||||
|
$layoutSharedCss = [$layoutSharedCss];
|
||||||
|
}
|
||||||
|
$layoutSharedCss[] = '/assets/css/accountsetup.css';
|
||||||
|
$layoutSharedCss = array_values(array_unique(array_filter($layoutSharedCss)));
|
||||||
@@ -2,16 +2,7 @@
|
|||||||
$pageTitle = 'Email Template System – Bridge Setup';
|
$pageTitle = 'Email Template System – Bridge Setup';
|
||||||
$pageId = 'bridge-setup';
|
$pageId = 'bridge-setup';
|
||||||
$navActive = 'bridge';
|
$navActive = 'bridge';
|
||||||
$layoutExtraHead = <<<HTML
|
require __DIR__ . '/accountsetup_config.php';
|
||||||
<style>
|
|
||||||
:root { color-scheme: light; }
|
|
||||||
.section-card{background:#fff;border:1px solid #e2e8f0;border-radius:1rem;padding:1.25rem;margin-bottom:1.5rem}
|
|
||||||
.section-card h4{margin:0 0 1rem;font-size:1rem;font-weight:600;color:#0f172a}
|
|
||||||
.input{width:100%;border:1px solid #cbd5f5;border-radius:.5rem;padding:.5rem .75rem}
|
|
||||||
.badge{display:inline-flex;align-items:center;padding:.1rem .5rem;border-radius:999px;font-size:.75rem;background:#e2e8f0;color:#0f172a}
|
|
||||||
.chip{display:inline-flex;align-items:center;padding:.15rem .55rem;border-radius:999px;background:#f1f5f9;color:#0f172a;border:1px solid #e2e8f0;font-size:.8rem}
|
|
||||||
</style>
|
|
||||||
HTML;
|
|
||||||
require dirname(__DIR__) . '/../structure/layout_start.php';
|
require dirname(__DIR__) . '/../structure/layout_start.php';
|
||||||
?>
|
?>
|
||||||
<main class="max-w-4xl mx-auto p-4 md:p-6 flex-1 w-full space-y-6">
|
<main class="max-w-4xl mx-auto p-4 md:p-6 flex-1 w-full space-y-6">
|
||||||
@@ -2,18 +2,7 @@
|
|||||||
$pageTitle = 'Email Template System – Dashboard';
|
$pageTitle = 'Email Template System – Dashboard';
|
||||||
$pageId = 'dashboard';
|
$pageId = 'dashboard';
|
||||||
$navActive = 'dashboard';
|
$navActive = 'dashboard';
|
||||||
$layoutExtraHead = <<<HTML
|
require __DIR__ . '/accountsetup_config.php';
|
||||||
<style>
|
|
||||||
:root { color-scheme: light; }
|
|
||||||
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin-bottom:1.5rem}
|
|
||||||
.stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:1rem;padding:1.25rem}
|
|
||||||
.stat-card h4{margin:0;font-size:.95rem;color:#475569}
|
|
||||||
.stat-card strong{display:block;font-size:1.75rem;color:#0f172a}
|
|
||||||
.section-card{background:#fff;border:1px solid #e2e8f0;border-radius:1rem;padding:1.25rem;margin-bottom:1.5rem}
|
|
||||||
.usage-table{width:100%;border-collapse:collapse;font-size:.9rem}
|
|
||||||
.usage-table th,.usage-table td{padding:.5rem;border-bottom:1px solid #e2e8f0;text-align:left}
|
|
||||||
</style>
|
|
||||||
HTML;
|
|
||||||
require dirname(__DIR__) . '/../structure/layout_start.php';
|
require dirname(__DIR__) . '/../structure/layout_start.php';
|
||||||
?>
|
?>
|
||||||
<main class="max-w-5xl mx-auto p-4 md:p-6 flex-1 w-full">
|
<main class="max-w-5xl mx-auto p-4 md:p-6 flex-1 w-full">
|
||||||
@@ -2,15 +2,7 @@
|
|||||||
$pageTitle = 'Email Template System – Mein Konto';
|
$pageTitle = 'Email Template System – Mein Konto';
|
||||||
$pageId = 'account';
|
$pageId = 'account';
|
||||||
$navActive = 'profile';
|
$navActive = 'profile';
|
||||||
$layoutExtraHead = <<<HTML
|
require __DIR__ . '/accountsetup_config.php';
|
||||||
<style>
|
|
||||||
:root { color-scheme: light; }
|
|
||||||
.section-card{background:#fff;border:1px solid #e2e8f0;border-radius:1rem;padding:1.25rem;margin-bottom:1.5rem}
|
|
||||||
.section-card h4{margin:0 0 1rem;font-size:1rem;font-weight:600;color:#0f172a}
|
|
||||||
.input{width:100%;border:1px solid #cbd5f5;border-radius:.5rem;padding:.5rem .75rem}
|
|
||||||
.user-tabs{display:flex;gap:.5rem;margin-bottom:1.25rem}
|
|
||||||
</style>
|
|
||||||
HTML;
|
|
||||||
require dirname(__DIR__) . '/../structure/layout_start.php';
|
require dirname(__DIR__) . '/../structure/layout_start.php';
|
||||||
?>
|
?>
|
||||||
<main class="max-w-5xl mx-auto p-4 md:p-6 flex-1 w-full">
|
<main class="max-w-5xl mx-auto p-4 md:p-6 flex-1 w-full">
|
||||||
@@ -2,18 +2,7 @@
|
|||||||
$pageTitle = 'Email Template System – Administration';
|
$pageTitle = 'Email Template System – Administration';
|
||||||
$pageId = 'admin';
|
$pageId = 'admin';
|
||||||
$navActive = 'settings';
|
$navActive = 'settings';
|
||||||
$layoutExtraHead = <<<HTML
|
require __DIR__ . '/accountsetup_config.php';
|
||||||
<style>
|
|
||||||
:root { color-scheme: light; }
|
|
||||||
.section-card{background:#fff;border:1px solid #e2e8f0;border-radius:1rem;padding:1.25rem;margin-bottom:1.5rem}
|
|
||||||
.section-card h4{margin:0 0 1rem;font-size:1rem;font-weight:600;color:#0f172a}
|
|
||||||
.input{width:100%;border:1px solid #cbd5f5;border-radius:.5rem;padding:.5rem .75rem}
|
|
||||||
.team-table{width:100%;border-collapse:collapse;font-size:.9rem}
|
|
||||||
.team-table th,.team-table td{padding:.35rem .5rem;border-bottom:1px solid #e2e8f0;text-align:left}
|
|
||||||
.badge{display:inline-flex;align-items:center;padding:.1rem .5rem;border-radius:999px;font-size:.75rem;background:#e2e8f0;color:#0f172a}
|
|
||||||
.chip{display:inline-flex;align-items:center;padding:.15rem .55rem;border-radius:999px;background:#f1f5f9;color:#0f172a;border:1px solid #e2e8f0;font-size:.8rem}
|
|
||||||
</style>
|
|
||||||
HTML;
|
|
||||||
require dirname(__DIR__) . '/../structure/layout_start.php';
|
require dirname(__DIR__) . '/../structure/layout_start.php';
|
||||||
?>
|
?>
|
||||||
<main class="max-w-5xl mx-auto p-4 md:p-6 flex-1 w-full space-y-6">
|
<main class="max-w-5xl mx-auto p-4 md:p-6 flex-1 w-full space-y-6">
|
||||||
@@ -21,6 +21,27 @@ $sharedCss = [
|
|||||||
app_asset_url('/assets/css/toast.css'),
|
app_asset_url('/assets/css/toast.css'),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
$layoutSharedCss = $layoutSharedCss ?? [];
|
||||||
|
if (!is_array($layoutSharedCss)) {
|
||||||
|
$layoutSharedCss = [$layoutSharedCss];
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach ($layoutSharedCss as $customCss) {
|
||||||
|
if (!is_string($customCss)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$customCss = trim($customCss);
|
||||||
|
if ($customCss === '') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (strpos($customCss, 'http://') === 0 || strpos($customCss, 'https://') === 0) {
|
||||||
|
tpl_add_style($customCss);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$customPath = $customCss[0] === '/' ? $customCss : '/' . ltrim($customCss, '/');
|
||||||
|
tpl_add_style(app_asset_url($customPath));
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($sharedCss as $href) {
|
foreach ($sharedCss as $href) {
|
||||||
tpl_add_style($href, 'header', 'high');
|
tpl_add_style($href, 'header', 'high');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once __DIR__ . '/../../config/fileload.php';
|
require_once __DIR__ . '/../../config/fileload.php';
|
||||||
require_once __DIR__ . '/../../partials/landingpage/admin/bridge.php';
|
require_once __DIR__ . '/../../partials/landingpage/accountsetup/bridge.php';
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once __DIR__ . '/../../config/fileload.php';
|
require_once __DIR__ . '/../../config/fileload.php';
|
||||||
require_once __DIR__ . '/../../partials/landingpage/admin/dashboard.php';
|
require_once __DIR__ . '/../../partials/landingpage/accountsetup/dashboard.php';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once __DIR__ . '/../../config/fileload.php';
|
require_once __DIR__ . '/../../config/fileload.php';
|
||||||
require_once __DIR__ . '/../../partials/landingpage/admin/profile.php';
|
require_once __DIR__ . '/../../partials/landingpage/accountsetup/profile.php';
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once __DIR__ . '/../../config/fileload.php';
|
require_once __DIR__ . '/../../config/fileload.php';
|
||||||
require_once __DIR__ . '/../../partials/landingpage/admin/settings.php';
|
require_once __DIR__ . '/../../partials/landingpage/accountsetup/settings.php';
|
||||||
|
|||||||
99
public/assets/css/accountsetup.css
Normal file
99
public/assets/css/accountsetup.css
Normal file
@@ -0,0 +1,99 @@
|
|||||||
|
:root {
|
||||||
|
color-scheme: light;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-card {
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid #e2e8f0;
|
||||||
|
border-radius: 1rem;
|
||||||
|
padding: 1.25rem;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-card h4 {
|
||||||
|
margin: 0 0 1rem;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #0f172a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input {
|
||||||
|
width: 100%;
|
||||||
|
border: 1px solid #cbd5f5;
|
||||||
|
border-radius: .5rem;
|
||||||
|
padding: .5rem .75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-tabs {
|
||||||
|
display: flex;
|
||||||
|
gap: .5rem;
|
||||||
|
margin-bottom: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.team-table,
|
||||||
|
.usage-table {
|
||||||
|
width: 100%;
|
||||||
|
border-collapse: collapse;
|
||||||
|
font-size: .9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.team-table th,
|
||||||
|
.team-table td,
|
||||||
|
.usage-table th,
|
||||||
|
.usage-table td {
|
||||||
|
padding: .35rem .5rem;
|
||||||
|
border-bottom: 1px solid #e2e8f0;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.usage-table th,
|
||||||
|
.usage-table td {
|
||||||
|
padding: .5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: .1rem .5rem;
|
||||||
|
border-radius: 999px;
|
||||||
|
font-size: .75rem;
|
||||||
|
background: #e2e8f0;
|
||||||
|
color: #0f172a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.chip {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: .15rem .55rem;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: #f1f5f9;
|
||||||
|
color: #0f172a;
|
||||||
|
border: 1px solid #e2e8f0;
|
||||||
|
font-size: .8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
||||||
|
gap: 1rem;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-card {
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid #e2e8f0;
|
||||||
|
border-radius: 1rem;
|
||||||
|
padding: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-card h4 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: .95rem;
|
||||||
|
color: #475569;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-card strong {
|
||||||
|
display: block;
|
||||||
|
font-size: 1.75rem;
|
||||||
|
color: #0f172a;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user