Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/js/anchorlinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function initAnchorlinkEventListener() {
anchorLinks.forEach((element) => {

element.addEventListener('click', () => {
navigator.clipboard.writeText(element.href).then(() => {
navigator.clipboard.writeText(window.location.origin + window.location.pathname + element.getAttribute('data-anchor')).then(() => {
showSnackbar();
}).catch(err => {
console.error("Fehler beim Kopieren des Textes:", err);
Expand Down
4 changes: 4 additions & 0 deletions assets/sass/anchorlink.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
border-radius: var(--border-radius-s);
opacity: .8;
text-decoration: none;
color: var(--link-default);
border: none;
background-color: transparent;
transition: all .3s ease;

&:hover,
&:focus {
Expand Down
27 changes: 0 additions & 27 deletions assets/sass/booking.scss
Original file line number Diff line number Diff line change
@@ -1,30 +1,3 @@
.o-booking__summary {
position: relative;
&:hover,
&:focus {
.o-booking__title-text {
text-decoration: underline;
}
}
}

.details-screen .o-booking__header-actions::before {
content: "keyboard_arrow_down";
font-size: 2.4rem;
@extend .material-symbols-rounded
}

.details-screen[open] .o-booking__header-actions::before {
content: "keyboard_arrow_up";
font-size: 2.4rem;
@extend .material-symbols-rounded
}

.o-booking__header-actions {
width: 24px;
height: 24px;
}

.o-booking__header-content {
display: grid;
grid-template-columns: 1.5fr 1fr 1fr;
Expand Down
13 changes: 11 additions & 2 deletions assets/sass/expander.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
text-decoration: underline;
}
}

&--booking {
&:hover,
&:focus {
.o-booking__title-text {
text-decoration: underline;
}
}
}
}

.details-print {
Expand Down Expand Up @@ -54,6 +63,7 @@ details > summary::-webkit-details-marker {
position: absolute;
right: 1.2rem;
font-size: 2.4rem;
align-self: center;
@extend .material-symbols-rounded
}

Expand All @@ -63,11 +73,10 @@ details > summary::-webkit-details-marker {
@extend .material-symbols-rounded
}

details[open] > .o-expander__summary {
details[open] > .o-expander__summary:not(.o-expander__summary--booking) {
font-weight: 700;
}


@media print {
.details-screen {
display: none;
Expand Down
10 changes: 10 additions & 0 deletions assets/sass/form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,20 @@
border-radius: var(--border-radius-l);
transition: background-color .3s ease;
font-weight: 700;
cursor: pointer;

&:hover,
&:focus {
background-color: var(--bg-accent2);
}
}
}

#success {
display: none;
padding: 1rem;
border-radius: var(--border-radius-m);
background-color: green;
color: white;
text-align: left;
}
33 changes: 16 additions & 17 deletions assets/sass/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@
}
}

.o-header__nav nav h2 {
display: block;

@media (min-width: #{$breakpoint-md}) {
display: none;
}
}

.o-header__logo {
display: flex;
margin: .6rem 0;
Expand Down Expand Up @@ -229,18 +221,25 @@
.o-header__item {
height: fit-content;
}

h2 {
padding-right: 1rem;
text-align: right;
margin-bottom: 0;
font-size: 1.4rem;
text-transform: uppercase;
font-weight: 300;
}
}
}

body:has(.o-header__nav--open) {
overflow: hidden;
}

#menu-country-list-title,
#menu-general-list-title {
padding-right: 1rem;
text-align: right;
margin-bottom: 0;
font-size: 1.4rem;
text-transform: uppercase;
font-weight: 300;

display: block;

@media (min-width: #{$breakpoint-md}) {
display: none;
}
}
7 changes: 4 additions & 3 deletions assets/sass/startpage.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.o-startpage h2:not(#welcome-to-the-fip-guide) {
.o-startpage h2:not(.m-teaser__headline) {
margin-top: 2rem;
}

Expand All @@ -14,19 +14,20 @@
flex-direction: column;
}

h2 {
h1 {
font-family: Sansita,Arial,Helvetica,sans-serif;
font-weight: 800;
font-size: 6.2rem;
line-height: 1.1;
margin-bottom: 1rem;
}

> div {
align-content: center;
}

@media (max-width: #{$breakpoint-md}) {
h2 {
h1 {
font-size: 4.8rem;
}
}
Expand Down
4 changes: 2 additions & 2 deletions assets/sass/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ img {
border-radius: var(--border-radius-l);
}

&__content {
&__content-wrapper {
display: flex;
flex-direction: column;
gap: 1.5rem;

p {
text-align: justify;
text-align: justify;
}
}

Expand Down
29 changes: 17 additions & 12 deletions assets/sass/teaser.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,26 @@
}
}

.m-teaser--listview .m-teaser__wrapper {
.m-teaser--listview {
margin-bottom: 2.4rem;
display: grid;
grid-template-columns: 1fr 2fr;

@media (max-width: #{$breakpoint-md}) {
display: flex;
flex-direction: column;
}
.m-teaser__wrapper {

.m-teaser__image img {
border-radius: var(--border-radius-l) 0 0 var(--border-radius-l);
display: grid;
grid-template-columns: 1fr 2fr;

@media (max-width: #{$breakpoint-md}) {
border-radius: var(--border-radius-l) var(--border-radius-l) 0 0;
width: 100%;
display: flex;
flex-direction: column;
}

.m-teaser__image img {
border-radius: var(--border-radius-l) 0 0 var(--border-radius-l);

@media (max-width: #{$breakpoint-md}) {
border-radius: var(--border-radius-l) var(--border-radius-l) 0 0;
width: 100%;
}
}
}
}
Expand All @@ -57,12 +61,13 @@
}

a {
h3 {
h2 {
overflow-wrap: normal;
word-break: normal;
white-space: normal;
hyphens: manual;
margin-bottom: 0;
font-size: 2rem;
}

transition: background 0.2s, color 0.2s;
Expand Down
2 changes: 1 addition & 1 deletion content/_index.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: "Die Community-Website für alle Informationen zu FIP (internationa
In diesem Projekt sind Informationen und Nutzungshinweise zu FIP sowie Besonderheiten zu den jeweiligen beteiligten Bahngesellschaften aufgeführt."
---

## Willkommen beim FIP Guide!
# Willkommen beim FIP Guide!

Finde relevante Informationen und Nutzungshinweise zu FIP sowie Besonderheiten zu den jeweiligen beteiligten Bahngesellschaften.

Expand Down
2 changes: 1 addition & 1 deletion content/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: "The community website for all information about FIP.
This project includes information and usage instructions for FIP as well as special features of the respective participating railway companies."
---

## Welcome to the FIP Guide!
# Welcome to the FIP Guide!

Find relevant information and usage instructions for FIP, as well as specifics about the participating railway companies.

Expand Down
6 changes: 6 additions & 0 deletions content/booking/_index.de.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "Buchungsplattformen"
description: "Übersicht über die Buchungswege, über welche FIP-Vergünstigungen gebucht werden können."
---

Für die jeweiligen Länder sind unterschiedliche Buchungswege möglich. Schau am besten auf der jeweiligen Betreiberseite nach der passenden Buchungsoption für Deine Reise.
6 changes: 6 additions & 0 deletions content/booking/_index.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "Booking Platforms"
description: "Overview of the booking channels through which FIP discounts can be booked."
---

Different booking options are available for each country. It's best to check the respective operator's website for the right booking option for your trip.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Tickets sind biliger im Vorverkauf (1 Tag vor der Fahrt oder 15 Tage vor der Fah
{{% booking-section "reservations" %}}
**Reservierungen**

Der Reservierungspreis wird pro Zug berechnet. Für Strecken mit mehreren Zügen kann es daher günstiger sein über die ([Deutsche Bahn zu reservieren]({{% ref "/booking/db_website" %}} "Deutsche Bahn")).
Der Reservierungspreis wird pro Zug berechnet. Für Strecken mit mehreren Zügen kann es daher günstiger sein über die ([Deutsche Bahn zu reservieren]({{% ref "/booking/db-website" %}} "Deutsche Bahn")).

Dafür können bei der ÖBB Sitzplatzreservierungen jedoch storniert werden:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Tickets are cheaper if purchased in advance (1 day before travel or 15 days befo
{{% booking-section "reservations" %}}
**Reservations**

The reservation price is charged per train. For journeys with multiple trains, it may be cheaper to book via the ([Deutsche Bahn]({{% ref "/booking/db_website" %}} "Deutsche Bahn")).
The reservation price is charged per train. For journeys with multiple trains, it may be cheaper to book via the ([Deutsche Bahn]({{% ref "/booking/db-website" %}} "Deutsche Bahn")).

However, seat reservations made with ÖBB can be cancelled:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Fahrkarten (inkl. FIP 50 Tickets) sind billiger im Vorverkauf (1 Tag vor der Fah
{{% booking-section "reservations" %}}
**Reservierungen**

Der Reservierungspreis wird pro Zug berechnet. Für Strecken mit mehreren Zügen kann es daher günstiger sein über die ([Deutsche Bahn zu reservieren]({{% ref "/booking/db_website" %}} "Deutsche Bahn")).
Der Reservierungspreis wird pro Zug berechnet. Für Strecken mit mehreren Zügen kann es daher günstiger sein über die ([Deutsche Bahn zu reservieren]({{% ref "/booking/db-website" %}} "Deutsche Bahn")).

Dafür können bei der ÖBB Sitzplatzreservierungen jedoch storniert werden:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Tickets (including FIP 50 tickets) are cheaper if bought in advance (1 day befor
{{% booking-section "reservations" %}}
**Reservations**

The reservation price is calculated per train. For journeys with multiple trains, it may be cheaper to book reservations via the ([Deutsche Bahn]({{% ref "/booking/db_website" %}} "Deutsche Bahn")).
The reservation price is calculated per train. For journeys with multiple trains, it may be cheaper to book reservations via the ([Deutsche Bahn]({{% ref "/booking/db-website" %}} "Deutsche Bahn")).

However, seat reservations made with ÖBB can be cancelled:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ params:
{{% booking-section "reservations" %}}
**Reservierungen**

Der Reservierungspreis wird pro Zug berechnet. Für Strecken mit mehreren Zügen kann es daher günstiger sein über die ([Deutsche Bahn zu reservieren]({{% ref "/booking/db_website" %}} "Deutsche Bahn")).
Der Reservierungspreis wird pro Zug berechnet. Für Strecken mit mehreren Zügen kann es daher günstiger sein über die ([Deutsche Bahn zu reservieren]({{% ref "/booking/db-website" %}} "Deutsche Bahn")).

Dafür können bei der ÖBB Sitzplatzreservierungen jedoch storniert werden:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ params:
{{% booking-section "reservations" %}}
**Reservations**

The reservation price is calculated per train. For journeys with multiple trains, it may be cheaper to book through the ([Deutsche Bahn]({{% ref "/booking/db_website" %}} "Deutsche Bahn")).
The reservation price is calculated per train. For journeys with multiple trains, it may be cheaper to book through the ([Deutsche Bahn]({{% ref "/booking/db-website" %}} "Deutsche Bahn")).

However, seat reservations made via ÖBB can be cancelled:

Expand Down
22 changes: 20 additions & 2 deletions content/contact/index.de.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@
description: "Kontaktiere das Team hinter dem FIP Guide – wir sind für Fragen und Anmerkungen erreichbar und freuen uns auf deinen Inhaltsbeitrag."
---

<form action="https://api.web3forms.com/submit" method="POST" class="m-form" aria-label="Kontaktformular">
<p>Kontaktiere das Team hinter dem FIP Guide – wir sind für Fragen und Anmerkungen erreichbar und freuen uns auf deinen Inhaltsbeitrag.</p>

<p id="success">
Vielen Dank! Deine Nachricht wurde erfolgreich gesendet.
Wir melden uns schnellstmöglich zurück.
</p>

<form action="https://api.web3forms.com/submit" method="POST" class="m-form" aria-label="Kontaktformular" id="form">
<input type="hidden" name="access_key" value="29293094-c9cc-48b7-9ff6-31b42534e211">
<input type="hidden" name="from_name" value="FIPGuide">
<input type="hidden" name="subject" value="New Message from FIPGuide">
<input type="hidden" name="redirect" value='{{< ref "success" >}}'>
<input type="hidden" name="redirect" value='{{< ref "contact" >}}?success=true'>

<label for="name">Name:
<input type="text" id="name" name="name" autocomplete="name" required>
Expand All @@ -25,3 +32,14 @@
</form>

Oder schreibe uns eine Mail: <a href="mailto:[email protected]">[email protected]</a>

<script>
const urlParams = new URLSearchParams(window.location.search);

window.addEventListener("DOMContentLoaded", () => {
if (urlParams.get('success') === 'true') {
document.getElementById('form').style.display = "none";
document.getElementById('success').style.display = "block";
}
});
</script>
Loading
Loading