Compare commits
6 Commits
ffc4b66601
...
redesign
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3314aa06b4 | ||
|
|
12c909d6a4 | ||
|
|
c2594fd330 | ||
|
|
00b08e2f92 | ||
|
|
93da9fbcbe | ||
|
|
82dcb1da40 |
@@ -16,6 +16,13 @@ jobs:
|
||||
# Der Analyse-Workflow benötigt keine Historie. Ein flacher Checkout
|
||||
# verhindert, dass der Runner das große Repository-Pack vollständig lädt.
|
||||
fetch-depth: 1
|
||||
# Der Web-Workflow braucht keine Android-Artefakte. Insbesondere liegt
|
||||
# dort ein großer Heap-Dump im aktuellen Commit, der auch bei einem
|
||||
# flachen Checkout übertragen würde und den Runner-Checkout abbricht.
|
||||
sparse-checkout: |
|
||||
/*
|
||||
!/android-app/
|
||||
sparse-checkout-cone-mode: false
|
||||
|
||||
- name: Ensure clean workspace
|
||||
run: |
|
||||
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -94,6 +94,8 @@ dist
|
||||
/android-app/**/build/
|
||||
/android-app/local.properties
|
||||
/android-app/gradle-local.properties
|
||||
# JVM Heap-Dumps sind lokale Diagnoseartefakte und dürfen nie ins Repository.
|
||||
*.hprof
|
||||
|
||||
# Build output (but keep production data!)
|
||||
.output
|
||||
|
||||
Binary file not shown.
@@ -1,39 +1,39 @@
|
||||
<template>
|
||||
<footer class="fixed bottom-0 left-0 right-0 z-40 bg-gray-900 border-t border-gray-800 shadow-2xl">
|
||||
<div class="max-w-7xl mx-auto px-3 sm:px-6 lg:px-8 py-2 sm:py-3">
|
||||
<footer class="fixed bottom-0 left-0 right-0 z-40 border-t border-gray-200/90 bg-white/95 shadow-[0_-5px_18px_rgba(24,24,27,0.07)] backdrop-blur-sm">
|
||||
<div class="max-w-7xl mx-auto px-3 sm:px-6 lg:px-8 py-2.5 sm:py-3">
|
||||
<div class="flex flex-col sm:flex-row justify-between items-center gap-y-1 sm:gap-y-0">
|
||||
<p class="text-xs sm:text-sm text-gray-400 whitespace-nowrap">
|
||||
<p class="text-xs sm:text-sm text-gray-600 whitespace-nowrap">
|
||||
© {{ currentYear }} Harheimer TC 1954 e.V.
|
||||
</p>
|
||||
<div class="flex flex-wrap justify-center items-center gap-x-4 gap-y-1 text-xs sm:text-sm relative">
|
||||
<span
|
||||
v-if="isLoggedIn && appVersion"
|
||||
class="text-xs text-gray-600"
|
||||
class="text-xs text-gray-500"
|
||||
title="Version"
|
||||
>
|
||||
v{{ appVersion }}
|
||||
</span>
|
||||
<NuxtLink
|
||||
to="/impressum"
|
||||
class="text-gray-400 hover:text-primary-400 transition-colors"
|
||||
class="text-gray-700 hover:text-primary-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2 rounded-sm transition-colors"
|
||||
>
|
||||
Impressum
|
||||
</NuxtLink>
|
||||
<NuxtLink
|
||||
to="/datenschutz"
|
||||
class="text-gray-400 hover:text-primary-400 transition-colors"
|
||||
class="text-gray-700 hover:text-primary-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2 rounded-sm transition-colors"
|
||||
>
|
||||
Datenschutz
|
||||
</NuxtLink>
|
||||
<NuxtLink
|
||||
to="/konto-loeschen"
|
||||
class="text-gray-400 hover:text-primary-400 transition-colors"
|
||||
class="text-gray-700 hover:text-primary-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2 rounded-sm transition-colors"
|
||||
>
|
||||
Konto loeschen
|
||||
</NuxtLink>
|
||||
<NuxtLink
|
||||
to="/kontakt"
|
||||
class="text-gray-400 hover:text-primary-400 transition-colors"
|
||||
class="text-gray-700 hover:text-primary-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2 rounded-sm transition-colors"
|
||||
>
|
||||
Kontakt
|
||||
</NuxtLink>
|
||||
@@ -41,7 +41,7 @@
|
||||
<!-- Login/Logout -->
|
||||
<template v-if="isLoggedIn">
|
||||
<button
|
||||
class="flex items-center space-x-1 text-gray-400 hover:text-primary-400 transition-colors"
|
||||
class="flex items-center space-x-1 rounded-sm text-gray-700 hover:text-primary-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2 transition-colors"
|
||||
@click="handleLogout"
|
||||
>
|
||||
<User :size="16" />
|
||||
@@ -53,7 +53,7 @@
|
||||
class="relative"
|
||||
>
|
||||
<button
|
||||
class="flex items-center space-x-1 text-gray-400 hover:text-primary-400 transition-colors"
|
||||
class="flex items-center space-x-1 rounded-sm text-gray-700 hover:text-primary-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2 transition-colors"
|
||||
@click="toggleMemberMenu"
|
||||
>
|
||||
<User :size="16" />
|
||||
@@ -75,25 +75,25 @@
|
||||
>
|
||||
<div
|
||||
v-if="isMemberMenuOpen"
|
||||
class="absolute bottom-full right-0 mb-2 w-48 bg-gray-800 border border-gray-700 rounded-lg shadow-xl overflow-hidden"
|
||||
class="absolute bottom-full right-0 mb-2 w-48 overflow-hidden rounded-md border border-gray-200 bg-white shadow-[0_12px_28px_rgba(24,24,27,0.14)] ring-1 ring-black/5"
|
||||
>
|
||||
<NuxtLink
|
||||
to="/login"
|
||||
class="block px-4 py-2 text-sm text-gray-300 hover:bg-primary-600 hover:text-white transition-colors"
|
||||
class="block px-4 py-2 text-sm text-gray-700 hover:bg-primary-50 hover:text-primary-800 focus-visible:outline-none focus-visible:bg-primary-50 focus-visible:text-primary-800 transition-colors"
|
||||
@click="isMemberMenuOpen = false"
|
||||
>
|
||||
Anmelden
|
||||
</NuxtLink>
|
||||
<NuxtLink
|
||||
to="/registrieren"
|
||||
class="block px-4 py-2 text-sm text-gray-300 hover:bg-primary-600 hover:text-white transition-colors"
|
||||
class="block px-4 py-2 text-sm text-gray-700 hover:bg-primary-50 hover:text-primary-800 focus-visible:outline-none focus-visible:bg-primary-50 focus-visible:text-primary-800 transition-colors"
|
||||
@click="isMemberMenuOpen = false"
|
||||
>
|
||||
Registrieren
|
||||
</NuxtLink>
|
||||
<NuxtLink
|
||||
to="/passwort-vergessen"
|
||||
class="block px-4 py-2 text-sm text-gray-300 hover:bg-primary-600 hover:text-white transition-colors"
|
||||
class="block px-4 py-2 text-sm text-gray-700 hover:bg-primary-50 hover:text-primary-800 focus-visible:outline-none focus-visible:bg-primary-50 focus-visible:text-primary-800 transition-colors"
|
||||
@click="isMemberMenuOpen = false"
|
||||
>
|
||||
Passwort vergessen
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 h-full">
|
||||
<div class="flex flex-col justify-between h-full py-2">
|
||||
<!-- Hauptmenü -->
|
||||
<div class="flex justify-between items-center">
|
||||
<div class="flex min-w-0 items-center gap-3">
|
||||
<!-- Logo -->
|
||||
<NuxtLink
|
||||
to="/"
|
||||
class="flex items-center space-x-3 hover:scale-105 transition-transform"
|
||||
class="flex shrink-0 items-center space-x-3 origin-left hover:scale-[1.02] transition-transform"
|
||||
>
|
||||
<img
|
||||
src="~/assets/images/logos/Harheimer TC.svg"
|
||||
@@ -23,9 +23,12 @@
|
||||
</div>
|
||||
</NuxtLink>
|
||||
|
||||
<div style="display:flex;flex-direction:column;">
|
||||
<div class="flex min-w-0 flex-1 flex-col">
|
||||
<!-- Desktop Navigation -->
|
||||
<div class="hidden lg:flex items-center space-x-1">
|
||||
<div
|
||||
class="hidden min-w-0 max-w-full lg:flex lg:items-center lg:gap-1 lg:overflow-x-auto lg:whitespace-nowrap [scrollbar-color:theme(colors.primary.700)_transparent] [scrollbar-width:thin]"
|
||||
aria-label="Hauptmenü – horizontal scrollbar"
|
||||
>
|
||||
<NuxtLink
|
||||
to="/"
|
||||
class="px-4 py-2 text-gray-300 hover:text-white font-medium transition-all rounded-lg hover:bg-primary-700/50"
|
||||
@@ -111,10 +114,10 @@
|
||||
</NuxtLink>
|
||||
</div>
|
||||
|
||||
<div class="hidden lg:flex items-center h-6 min-w-0 border-t border-primary-700/20">
|
||||
<div class="hidden min-w-0 flex-1 lg:flex items-center h-6 border-t border-primary-700/20">
|
||||
<div
|
||||
v-if="currentSubmenu"
|
||||
:class="currentSubmenu === 'mannschaften' ? 'relative min-w-0 flex-1' : 'flex items-center space-x-1'"
|
||||
:class="currentSubmenu === 'mannschaften' ? 'relative min-w-0 flex-1' : 'flex min-w-0 items-center gap-1 overflow-x-auto whitespace-nowrap'"
|
||||
>
|
||||
<!-- Newsletter Submenu -->
|
||||
<template v-if="currentSubmenu === 'newsletter'">
|
||||
@@ -189,9 +192,11 @@
|
||||
<!-- Mannschaften Submenu -->
|
||||
<template v-if="currentSubmenu === 'mannschaften'">
|
||||
<div
|
||||
class="flex min-w-0 items-center gap-1 overflow-x-auto whitespace-nowrap scroll-smooth pr-7 [scrollbar-color:theme(colors.primary.700)_transparent] [scrollbar-width:thin]"
|
||||
ref="mannschaftenSubmenuRail"
|
||||
class="flex min-w-0 items-center gap-1 overflow-x-auto whitespace-nowrap scroll-smooth px-7 [scrollbar-color:theme(colors.primary.700)_transparent] [scrollbar-width:thin]"
|
||||
tabindex="0"
|
||||
aria-label="Mannschaften-Untermenü – horizontal scrollbar"
|
||||
@scroll.passive="updateMannschaftenSubmenuControls"
|
||||
>
|
||||
<NuxtLink
|
||||
to="/mannschaften"
|
||||
@@ -207,7 +212,7 @@
|
||||
>
|
||||
<NuxtLink
|
||||
:to="`/mannschaften/${mannschaft.slug}`"
|
||||
class="shrink-0 px-2.5 py-1 text-xs text-gray-300 hover:text-white hover:bg-primary-700/50 rounded transition-all"
|
||||
class="shrink-0 whitespace-nowrap px-2.5 py-1 text-xs text-gray-300 hover:text-white hover:bg-primary-700/50 rounded transition-all"
|
||||
active-class="text-white bg-primary-600"
|
||||
>
|
||||
{{ mannschaft.mannschaft }}
|
||||
@@ -223,18 +228,32 @@
|
||||
</NuxtLink>
|
||||
<NuxtLink
|
||||
to="/spielsysteme"
|
||||
class="shrink-0 px-2.5 py-1 text-xs text-gray-300 hover:text-white hover:bg-primary-700/50 rounded transition-all"
|
||||
class="shrink-0 whitespace-nowrap px-2.5 py-1 text-xs text-gray-300 hover:text-white hover:bg-primary-700/50 rounded transition-all"
|
||||
active-class="text-white bg-primary-600"
|
||||
>
|
||||
Spielsysteme
|
||||
</NuxtLink>
|
||||
</div>
|
||||
<span
|
||||
aria-hidden="true"
|
||||
class="pointer-events-none absolute inset-y-0 right-0 flex w-9 items-center justify-end bg-gradient-to-l from-primary-900 via-primary-900/90 to-transparent text-primary-300"
|
||||
<button
|
||||
v-if="showMannschaftenSubmenuLeftControl"
|
||||
type="button"
|
||||
class="absolute inset-y-0 left-0 z-10 flex w-9 items-center justify-start bg-gradient-to-r from-primary-900 via-primary-900/90 to-transparent pl-1 text-primary-300 transition-colors hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-300"
|
||||
aria-label="Vorherige Mannschaften anzeigen"
|
||||
@pointerdown.stop
|
||||
@click.stop.prevent="scrollMannschaftenSubmenuLeft"
|
||||
>
|
||||
‹
|
||||
</button>
|
||||
<button
|
||||
v-if="showMannschaftenSubmenuRightControl"
|
||||
type="button"
|
||||
class="absolute inset-y-0 right-0 z-10 flex w-9 items-center justify-end bg-gradient-to-l from-primary-900 via-primary-900/90 to-transparent pr-1 text-primary-300 transition-colors hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-300"
|
||||
aria-label="Weitere Mannschaften anzeigen"
|
||||
@pointerdown.stop
|
||||
@click.stop.prevent="scrollMannschaftenSubmenuRight"
|
||||
>
|
||||
›
|
||||
</span>
|
||||
</button>
|
||||
</template>
|
||||
|
||||
<!-- Training Submenu -->
|
||||
@@ -865,7 +884,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, onMounted, onUnmounted, computed } from 'vue'
|
||||
import { ref, onMounted, onUnmounted, computed, nextTick, watch } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
import { Menu, X, ChevronDown } from 'lucide-vue-next'
|
||||
|
||||
@@ -873,6 +892,9 @@ const route = useRoute()
|
||||
const isMobileMenuOpen = ref(false)
|
||||
const mobileSubmenu = ref(null)
|
||||
const mannschaften = ref([])
|
||||
const mannschaftenSubmenuRail = ref(null)
|
||||
const showMannschaftenSubmenuLeftControl = ref(false)
|
||||
const showMannschaftenSubmenuRightControl = ref(false)
|
||||
const hasGalleryImages = ref(false)
|
||||
const showCmsDropdown = ref(false)
|
||||
const authStore = useAuthStore()
|
||||
@@ -910,6 +932,38 @@ const toggleMobileSubmenu = (menu) => {
|
||||
mobileSubmenu.value = mobileSubmenu.value === menu ? null : menu
|
||||
}
|
||||
|
||||
const updateMannschaftenSubmenuControls = () => {
|
||||
const rail = mannschaftenSubmenuRail.value
|
||||
if (!rail) return
|
||||
|
||||
const canScroll = rail.scrollWidth > rail.clientWidth + 1
|
||||
const atStart = rail.scrollLeft <= 1
|
||||
const atEnd = rail.scrollLeft + rail.clientWidth >= rail.scrollWidth - 1
|
||||
|
||||
showMannschaftenSubmenuLeftControl.value = canScroll && !atStart
|
||||
showMannschaftenSubmenuRightControl.value = canScroll && !atEnd
|
||||
}
|
||||
|
||||
const scrollMannschaftenSubmenuLeft = () => {
|
||||
const rail = mannschaftenSubmenuRail.value
|
||||
if (!rail) return
|
||||
|
||||
rail.scrollBy({
|
||||
left: -Math.max(rail.clientWidth * 0.8, 160),
|
||||
behavior: 'smooth'
|
||||
})
|
||||
}
|
||||
|
||||
const scrollMannschaftenSubmenuRight = () => {
|
||||
const rail = mannschaftenSubmenuRail.value
|
||||
if (!rail) return
|
||||
|
||||
rail.scrollBy({
|
||||
left: Math.max(rail.clientWidth * 0.8, 160),
|
||||
behavior: 'smooth'
|
||||
})
|
||||
}
|
||||
|
||||
const loadMannschaften = async () => {
|
||||
try {
|
||||
const attempt = async () => {
|
||||
@@ -994,16 +1048,23 @@ onMounted(() => {
|
||||
// Listen for global updates to mannschaften (e.g., CMS saved)
|
||||
if (typeof window !== 'undefined') {
|
||||
window.addEventListener('mannschaften:changed', loadMannschaften)
|
||||
window.addEventListener('resize', updateMannschaftenSubmenuControls)
|
||||
}
|
||||
nextTick(updateMannschaftenSubmenuControls)
|
||||
})
|
||||
|
||||
onUnmounted(() => {
|
||||
document.removeEventListener('click', handleDocumentClick)
|
||||
if (typeof window !== 'undefined') {
|
||||
window.removeEventListener('mannschaften:changed', loadMannschaften)
|
||||
window.removeEventListener('resize', updateMannschaftenSubmenuControls)
|
||||
}
|
||||
})
|
||||
|
||||
watch([currentSubmenu, mannschaften], () => {
|
||||
nextTick(updateMannschaftenSubmenuControls)
|
||||
}, { flush: 'post' })
|
||||
|
||||
const toggleSubmenu = (menu) => {
|
||||
// Wenn wir schon im richtigen Bereich sind, nichts tun (Submenu bleibt offen)
|
||||
// Wenn nicht, zur Hauptseite navigieren
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "harheimertc-website",
|
||||
"version": "1.8.6",
|
||||
"version": "1.8.7",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "harheimertc-website",
|
||||
"version": "1.8.6",
|
||||
"version": "1.8.7",
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"@pinia/nuxt": "^0.11.2",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "harheimertc-website",
|
||||
"version": "1.8.6",
|
||||
"version": "1.8.8",
|
||||
"description": "Moderne Webseite für den Harheimer Tischtennis Club",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
|
||||
@@ -362,7 +362,7 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, computed, onMounted } from 'vue'
|
||||
import { rowMatchesTeamFilter } from '../../utils/spielplan-filter.js'
|
||||
import { rowMatchesTeamFilter } from '~/utils/spielplan-filter.js'
|
||||
|
||||
const route = useRoute()
|
||||
|
||||
|
||||
@@ -360,7 +360,7 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { filterSpielplanRows, toApiTeamParam } from '../../utils/spielplan-filter.js'
|
||||
import { filterSpielplanRows, toApiTeamParam } from '~/utils/spielplan-filter.js'
|
||||
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { listSpielplanSeasons, readSpielplanData, validateSeasonSlug } from '../../utils/spielplan-data.js'
|
||||
import { formatTeamDisplayName } from '../../../utils/team-display.js'
|
||||
import { formatTeamDisplayName } from '~/utils/team-display.js'
|
||||
|
||||
function teamLabel(teamName, teamAgeGroup, competitionAgeGroup) {
|
||||
return formatTeamDisplayName(teamName, teamAgeGroup, competitionAgeGroup)
|
||||
|
||||
@@ -2,7 +2,7 @@ import fs from 'fs/promises'
|
||||
import path from 'path'
|
||||
import { readSpielplanData, validateSeasonSlug } from '../../utils/spielplan-data.js'
|
||||
import { info as loggerInfo, error as loggerError } from '../../utils/logger.js'
|
||||
import { filterSpielplanRows } from '../../../utils/spielplan-filter.js'
|
||||
import { filterSpielplanRows } from '~/utils/spielplan-filter.js'
|
||||
|
||||
function seasonSlugToLabel(slug) {
|
||||
const match = String(slug || '').match(/^(\d{2})--(\d{2})$/)
|
||||
|
||||
Reference in New Issue
Block a user