Anpassung primary-button, badge und Event erstellen
This commit is contained in:
1 parent
9d763b3680
commit
9a2c66e026
12 files changed
+198
-290
No files matched your search
+1
-1
@@ -494,7 +494,7 @@
|
||||
<p class="profile-empty-kicker">Keine Treffer</p>
|
||||
<h3>${emptyStateConfig.title}</h3>
|
||||
<p>${emptyStateConfig.text}</p>
|
||||
<a class="button" href="${emptyStateConfig.href}">${emptyStateConfig.buttonLabel}</a>
|
||||
<a class="button-primary" href="${emptyStateConfig.href}">${emptyStateConfig.buttonLabel}</a>
|
||||
`;
|
||||
container.appendChild(emptyElement);
|
||||
return;
|
||||
|
||||
+23
-3
@@ -68,11 +68,31 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
function buildLoggedInNavigation(user) {
|
||||
const initial = (user.vorname || 'U').charAt(0).toUpperCase();
|
||||
const isEventOverview = currentPage === 'event_overview.html';
|
||||
const isEventCreate = currentPage === 'event_create.html';
|
||||
|
||||
return `
|
||||
${isEventOverview ? '' : '<a class="nav-tab" href="event_overview.html">Event finden</a>'}
|
||||
<a class="button-small" href="event_create.html">Event erstellen</a>
|
||||
<a class="profile-pill" href="my_profil.html" aria-label="Mein Profil" title="${user.vorname || 'Profil'}">${initial}</a>
|
||||
<a
|
||||
class="nav-tab${isEventOverview ? ' nav-tab--active' : ''}"
|
||||
href="event_overview.html"
|
||||
${isEventOverview ? 'aria-current="page"' : ''}
|
||||
>
|
||||
Event finden
|
||||
</a>
|
||||
<a
|
||||
class="nav-tab${isEventCreate ? ' nav-tab--active' : ''}"
|
||||
href="event_create.html"
|
||||
${isEventCreate ? 'aria-current="page"' : ''}
|
||||
>
|
||||
Event erstellen
|
||||
</a>
|
||||
<a
|
||||
class="profile-pill"
|
||||
href="my_profil.html"
|
||||
aria-label="Mein Profil"
|
||||
title="${user.vorname || 'Profil'}"
|
||||
>
|
||||
${initial}
|
||||
</a>
|
||||
`;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user