changed event copy-link and navbar
All checks were successful
publish / publish (push) Successful in 26s

This commit is contained in:
Jannik Menzel 2025-06-24 10:45:56 +02:00
parent 387a6f95a1
commit 7fa6d886a0
8 changed files with 80 additions and 11 deletions

View file

@ -632,6 +632,10 @@ footer {
transition: background-color 0.3s ease;
}
.fc-day a {
text-decoration: none !important;
}
.fc-day-today {
background-color: var(--color-today-highlight) !important;
}

View file

@ -9,7 +9,7 @@ Der Fachschaftsrat Informatik der Technischen Universität Dresden ist bemüht,
## Erstellung dieser Erklärung zur Barrierefreiheit
Diese Erklärung wurde am 22.09.2020 erstellt und zuletzt am 22.09.2020 aktualisiert. Grundlage der Erstellung dieser Erklärung zur Barrierefreiheit ist eine am 22.09.2020 von uns durchgegührten BITV-Selbstbewertung.
Diese Erklärung wurde am 24.06.2025 erstellt und zuletzt am 24.06.2025 aktualisiert. Grundlage der Erstellung dieser Erklärung zur Barrierefreiheit ist eine am 24.06.2025 von uns durchgegührten BITV-Selbstbewertung.
## Stand der Barrierefreiheit

View file

@ -9,7 +9,7 @@ The Computer Science Student Council of the Technical University of Dresden stri
## Creation of this Accessibility Statement
This statement was created on 22.09.2020 and last updated on 22.09.2020. The basis for creating this accessibility statement is a BITV self-assessment conducted by us on 22.09.2020.
This statement was created on 24.06.2025 and last updated on 24.06.2025. The basis for creating this accessibility statement is a BITV self-assessment conducted by us on 24.06.2025.
## Accessibility Status

View file

@ -3,8 +3,10 @@ title: Events
draft: false
---
# Events
> Du kannst den Kalender auch abonnieren
> ## Hinweis
> Du kannst den iFSR-Kalender auch in deinem präferierten Programm abonnieren
> 1. Klicke auf den Button unten, um den Kalender-Link zu kopieren
>
> https://nc.ifsr.de/remote.php/dav/public-calendars/W5Sk7zLD28n6ze44/?export
> 2. Öffne dein Kalenderprogramm, z.B. Apple Kalender oder Outlook
>
> 3. Füge den Kalender als "Neues Kalenderabonnement" ein

View file

@ -3,8 +3,11 @@ title: Events
draft: false
---
# Events
> You can also subscribe to the calendar
> ## Note
> You can also subscribe to the iFSR calendar using your preferred calendar application.
> 1. Click the button below to copy the calendar link.
>
> 2. Open your calendar application, e.g., Apple Calendar or Outlook.
>
> 3. Add the calendar as a “New Calendar Subscription.”
>
> https://nc.ifsr.de/remote.php/dav/public-calendars/W5Sk7zLD28n6ze44/?export

View file

@ -8,6 +8,25 @@ name = "Home"
url = "/"
weight = 1
# Untermenüs von "Home"
[[menu.main]]
parent = "Home"
name = "ESE Website"
url = "https://ese.ifsr.de/"
weight = 1
[[menu.main]]
parent = "Home"
name = "Events"
url = "/events"
weight = 2
[[menu.main]]
parent = "Home"
name = "Neuigkeiten"
url = "/neuigkeiten"
weight = 3
# ====================
# Hauptmenü: Über uns
# ====================

View file

@ -8,6 +8,25 @@ name = "Home"
url = "/en/"
weight = 1
# Untermenüs von "Home"
[[menu.main]]
parent = "Home"
name = "ESE Website"
url = "https://ese.ifsr.de/"
weight = 1
[[menu.main]]
parent = "Home"
name = "Events"
url = "/en/events"
weight = 2
[[menu.main]]
parent = "Home"
name = "News"
url = "/en/neuigkeiten"
weight = 3
# ====================
# Main menu: About Us
# ====================

View file

@ -1,8 +1,30 @@
{{ define "main" }}
<div class="container">
<div id="markdown" class="title-center">
{{ .Content }}
<h1>Events</h1>
</div>
<div id='calendar'></div>
<div id="markdown">
{{ .Content }}
<div class="text-center">
<button class="mt-3 btn btn-secondary" data-copy="https://nc.ifsr.de/remote.php/dav/public-calendars/W5Sk7zLD28n6ze44/?export" data-lang="{{ .Site.Language.Lang }}">
{{ if eq .Site.Language.Lang "de" }}Kalender-Link kopieren{{ else }}Copy Calendar-Link{{ end }}
</button>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function () {
document.querySelectorAll('[data-copy]').forEach(button => {
button.addEventListener('click', () => {
const text = button.getAttribute('data-copy');
navigator.clipboard.writeText(text).then(() => {
const original = button.innerText;
button.innerText = button.dataset.lang === 'de' ? 'Kopiert!' : 'Copied!';
setTimeout(() => button.innerText = original, 2000);
});
});
});
});
</script>
</div>
{{ end }}