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
3 changes: 1 addition & 2 deletions assets/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions assets/sass/headings.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
h1 {
font-size: 3.6rem;
line-height: 1.25;
font-weight: 700;
margin-bottom: 2rem;
}

h2 {
font-size: 2.4rem;
line-height: 1.25;
margin-bottom: 1.6rem;
font-weight: 700;
}

h3 {
font-size: 2rem;
line-height: 1.25;
margin-bottom: 1.4rem;
font-weight: 700;
}

h4 {
font-size: 1.8rem;
line-height: 1.25;
margin-bottom: 1.2rem;
font-weight: 700;
}
1 change: 1 addition & 0 deletions assets/sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
@import "footer.scss";
@import "content.scss";
@import "textHighlight.scss";
@import "headings.scss";
@import 'node_modules/@material-design-icons/font/round.scss';
14 changes: 14 additions & 0 deletions assets/sass/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,20 @@
display: flex;
padding: 1rem;
margin: .3rem;
position: relative;

h1 {
position: absolute;
top: 1.6rem;
left: 1.7rem;
margin: 0;
font-size: 1.5rem;
color: black;
}

img {
width: 8rem;
}
}

.o-header__nav menu {
Expand Down
12 changes: 12 additions & 0 deletions assets/sass/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,16 @@ details[open] summary ~ * {
opacity: 1;
transform: translateY(0);
}
}

p {
margin-bottom: 3.2rem;
}

p:has(p + ul) {
margin-bottom: 0;
}

article p:last-child {
margin-bottom: 0;
}
14 changes: 14 additions & 0 deletions assets/sass/teaser.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
.m-teaser {
text-decoration: none;
color: #000;

&:nth-child(-n+3) {
@include media-breakpoint-down(lg) {
margin-bottom: 2rem;
}
}
}

.m-teaser img {
Expand All @@ -9,6 +15,14 @@
border-radius: 1rem;
}

.m-teaser__dateline {
font-size: 1.4rem;
}

.m-teaser__headline {
margin-bottom: .5rem;
}

.o-stage {
display: flex;
justify-content: center;
Expand Down
10 changes: 6 additions & 4 deletions content/_index.de.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
### Hallo Welt
## Willkommen beim FIP-Guide!

Wir sind der FIP Guide, warum wieso weshalb
Momentan gibt es die Infos für die Länder Belgien und Slowakei.
Auf dieser Webseite findest du Informationen zu den FIP-Regelungen verschiedener europäischer Länder.
Momentan gibt es die Infos für die Länder **Belgien** und **Slowakei**.

Der FIPGuide soll wachsen: [GitHub Repository](https://github.com/fipguide/fipguide.github.io)
### Unterstütze uns
Du möchtest dein Wissen rund um FIP-Regelungen teilen? Schau auf unserem [GitHub Repository](https://github.com/fipguide/fipguide.github.io) vorbei, um Inhalte beizutragen.
Alternativ kannst du uns auch über das [Kontaktformular]({{< ref "contact" >}}) schreiben.
13 changes: 9 additions & 4 deletions content/_index.en.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
### Hello World
## Welcome to the FIP Guide!

On this website, you will find information about the FIP regulations of various European countries.
Currently, we have information for the countries **Belgium** and **Slovakia**.

### Support Us
Would you like to share your knowledge about FIP regulations? Visit our [GitHub Repository](https://github.com/fipguide/fipguide.github.io) to contribute content.
Alternatively, you can also write to us via the [contact form]({{< ref "contact" >}}).


We are the FIP Guide, explaining why and how
Currently, there is information available for Belgium and Slovakia.

The FIPGuide aims to grow: [GitHub Repository](https://github.com/fipguide/fipguide.github.io)
4 changes: 3 additions & 1 deletion i18n/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ country:
other: Länder
search-placeholder: Gib ein Land oder Bahnunternehmen ein
search-button: Suchen
footer-love: Made with ♥️ in Frankfurt & Köln
footer-love:
text: Made with ♥️ in Frankfurt & Köln
aria-label: Made with love in Frankfurt & Köln
menu-open: Menü
menu-close: Schließen
general: Übergreifendes
Expand Down
4 changes: 3 additions & 1 deletion i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ country:
other: countries
search-placeholder: Type in a country or train operator
search-button: Search
footer-love: Made with ♥️ in Frankfurt & Cologne
footer-love:
text: Made with ♥️ in Frankfurt & Cologne
aria-label: Made with love in Frankfurt & Cologne
menu-open: Menu
menu-close: Close
general: general
Expand Down
8 changes: 2 additions & 6 deletions layouts/_default/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@
{{ partial "stage.html" }}
<section class="container">
{{ .Content }}
{{ T "country"}}:
{{ range where site.RegularPages "Section" "country"}}
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
</section>
<section class="container">
<div class="row">
<h3>Die neuesten Neuigkeiten 🔥</h3>
<div class="row justify-content-center">
<h2>Die neuesten Neuigkeiten 🔥</h2>
{{ range first 3 (where site.RegularPages "Section" "news") }}
{{ partial "teaser.html" . }}
{{ end }}
Expand Down
9 changes: 7 additions & 2 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
<div class="container">
<h1 data-pagefind-meta="title">{{ .Title }}</h1>
{{ .Content }} {{ range .Pages }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }} {{ end }}
<div class="m-teaser">
<a href="{{ .RelPermalink }}">
<h2 class="m-teaser__headline">{{ .LinkTitle }}</h2>
</a>
<div>{{ .Summary | plainify | truncate 200 }}</div>
</div>
{{ end }}
</div>
{{ end }}
6 changes: 2 additions & 4 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{{ define "main" }}
<div class="container">
<article class="container">
<h1 data-pagefind-meta="title">{{ .Title }}</h1>

{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<div class="updateDate">
<time datetime="{{ $dateMachine }}">Zuletzt aktualisiert: {{ $dateHuman }}</time>
</div>
<br>
<br>

<div class="content">
{{ .Content }}
Expand All @@ -24,5 +22,5 @@ <h3>See Also</h3>
</ul>
{{ end }}
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
</div>
</article>
{{ end }}
9 changes: 4 additions & 5 deletions layouts/country/single.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{{ define "main" }}
<div class="container">
<article class="container">
<h1 data-pagefind-meta="title">{{ .Title }}</h1>

{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<div class="updateDate">
<time datetime="{{ $dateMachine }}">Zuletzt aktualisiert: {{ $dateHuman }}</time>
</div>
<br>
<br>

<hr>
<div class="tableOfContents">
{{ .TableOfContents }}
</div>
<hr>

<div class="content" data-pagefind-weight="2">
{{ .Content }}
Expand All @@ -28,5 +27,5 @@ <h3>See Also</h3>
</ul>
{{ end }}
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
</div>
</article>
{{ end }}
8 changes: 3 additions & 5 deletions layouts/operator/single.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
{{ define "main" }}
<div class="container">
<article class="container">
<h1 data-pagefind-meta="title">{{ .Title }}</h1>

{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<div class="updateDate">
<time datetime="{{ $dateMachine }}">Zuletzt aktualisiert: {{ $dateHuman }}</time>
</div>
<br>
<br>

<hr>
<div class="tableOfContents">
{{ .TableOfContents }}
</div>

<hr>
<div class="content" data-pagefind-weight="3">
{{ .Content }}
</div>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="o-footer container">
<div>{{ T "footer-love"}}</div>
<div aria-label="{{ T "footer-love.aria-label"}}">{{ T "footer-love.text"}}</div>
<div class="col-12">
{{ $contactPage := site.GetPage "contact" }}
{{ if $contactPage }}
Expand Down
1 change: 1 addition & 0 deletions layouts/partials/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<div class="container o-header">
<a id="skip-link" class="o-header__skip-link" href="#content">zum Inhalt springen</a>
<a href="/" aria-label="FIP-Guide Startseite" class="o-header__logo">
<h1>FIP-Guide</h1>
<img aria-hidden="true" src="{{ $logo.RelPermalink }}" alt="">
</a>
<div class="o-header__curtain"></div>
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/teaser.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a href="{{ .RelPermalink }}" class="m-teaser col-12 col-lg-4">
<a href="{{ .RelPermalink }}" class="m-teaser col-12 col-lg-4 col-md-6">
{{ $image := .Page.Resources.GetMatch "image.webp" }}
<div class="m-teaser__image">
{{ partial "image.html" $image }}
Expand All @@ -8,6 +8,6 @@
<time class="m-teaser__dateline" datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
<h3 class="m-teaser__headline">{{ .Title }}</h3>
<div class="m-teaser__text">
{{ .Summary | truncate 100 }}
{{ .Summary | plainify | truncate 100 }}
</div>
</a>