Sfoglia il codice sorgente

fikusta_header.html als Django-Template hinzugefügt

Matthias Lippmann 3 mesi fa
parent
commit
3182fbac4f
1 ha cambiato i file con 93 aggiunte e 0 eliminazioni
  1. 93 0
      customer_cms/partials/fikusta_header.html

+ 93 - 0
customer_cms/partials/fikusta_header.html

@@ -0,0 +1,93 @@
+{% if fikusta_portal_url %}
+<header id="fikusta-global-header">
+    <div id="fikusta-header-inner">
+        <div id="fikusta-header-left">
+            <a href="{{ fikusta_portal_url }}" id="fikusta-portal-link" title="Zurück zum Portal">
+                <img src="{{ cms_brand_logo_url }}" alt="{{ fikusta_portal_title }}" id="fikusta-header-logo">
+                <span id="fikusta-portal-title">{{ fikusta_portal_title }}</span>
+            </a>
+        </div>
+        <nav id="fikusta-header-nav" aria-label="Portal-Navigation">
+            <ul>
+                <li><a href="{{ base_url }}/">CMS</a></li>
+                <li><a href="{{ fikusta_portal_url }}" target="_blank" rel="noopener">{{ fikusta_portal_title }}</a></li>
+            </ul>
+        </nav>
+    </div>
+</header>
+<style>
+#fikusta-global-header {
+    position: sticky;
+    top: 0;
+    z-index: 100;
+    background: #1e3a5f;
+    color: #fff;
+    box-shadow: 0 2px 6px rgba(0,0,0,.25);
+}
+#fikusta-header-inner {
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
+    max-width: 100%;
+    padding: 0 1rem;
+    height: 3rem;
+}
+#fikusta-header-left {
+    display: flex;
+    align-items: center;
+    gap: 0.5rem;
+    min-width: 0;
+}
+#fikusta-portal-link {
+    display: flex;
+    align-items: center;
+    gap: 0.5rem;
+    color: #fff;
+    text-decoration: none;
+    font-weight: 600;
+    font-size: 0.95rem;
+    white-space: nowrap;
+}
+#fikusta-portal-link:hover {
+    color: #93c5fd;
+}
+#fikusta-header-logo {
+    height: 1.75rem;
+    width: auto;
+    object-fit: contain;
+}
+#fikusta-portal-title {
+    font-size: 1rem;
+    font-weight: 700;
+    letter-spacing: 0.02em;
+}
+#fikusta-header-nav ul {
+    list-style: none;
+    margin: 0;
+    padding: 0;
+    display: flex;
+    align-items: center;
+    gap: 0.25rem;
+}
+#fikusta-header-nav ul li a {
+    display: inline-block;
+    padding: 0.3rem 0.75rem;
+    border-radius: 0.375rem;
+    color: #cbd5e1;
+    text-decoration: none;
+    font-size: 0.85rem;
+    transition: background 0.15s, color 0.15s;
+}
+#fikusta-header-nav ul li a:hover {
+    background: rgba(255,255,255,.12);
+    color: #fff;
+}
+/* Sidebar top correction when header is present */
+@media (min-width: 768px) {
+    #sidebar {
+        top: 3rem !important;
+        max-height: calc(100vh - 3rem) !important;
+    }
+}
+</style>
+{% endif %}