From 5c2388d3a2092505aff9f7b2e78e561c4db65385 Mon Sep 17 00:00:00 2001 From: marudor Date: Thu, 16 May 2019 15:02:17 +0200 Subject: Add dark mode (only available with prefers-color-scheme currently) --- templates/account.html.ep | 4 ++-- templates/add_journey.html.ep | 4 ++-- templates/landingpage.html.ep | 14 +++++++------- templates/layouts/default.html.ep | 20 ++++++++++++++++++-- templates/privacy.html.ep | 2 +- 5 files changed, 30 insertions(+), 14 deletions(-) (limited to 'templates') diff --git a/templates/account.html.ep b/templates/account.html.ep index f41f07f..b0e60cb 100644 --- a/templates/account.html.ep +++ b/templates/account.html.ep @@ -119,7 +119,7 @@ - %= end @@ -213,7 +213,7 @@
%= csrf_field -
diff --git a/templates/add_journey.html.ep b/templates/add_journey.html.ep index 10e74eb..02f30d5 100644 --- a/templates/add_journey.html.ep +++ b/templates/add_journey.html.ep @@ -2,7 +2,7 @@ % if (not get_oldest_journey_ts()) {
-
+
Hinweis

travelynx ist darauf ausgelegt, über die Hauptseite in @@ -16,7 +16,7 @@ % if ($error) {

-
+
Ungültige Eingabe

<%= $error %>

diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep index 725640a..dfe3361 100644 --- a/templates/landingpage.html.ep +++ b/templates/landingpage.html.ep @@ -2,7 +2,7 @@ % if (stash('error')) {
-
+
Backend-Fehler

<%= stash('error') %>

@@ -18,7 +18,7 @@ %= include '_checked_in', journey => $status; % } % elsif ($status->{cancelled}) { -
+
Zugausfall dokumentieren

Prinzipiell wärest du nun eingecheckt in @@ -47,20 +47,20 @@

% } % else { -
-
+
+
Hallo, <%= current_user()->{name} %>!

Du bist gerade nicht eingecheckt.

- +
%= form_for 'list_departures' => begin
- %= text_field 'station', id => 'station', class => 'autocomplete white-text', required => undef + %= text_field 'station', id => 'station', class => 'autocomplete contrast-color-text', required => undef
- diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index a63242c..40793e1 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -18,7 +18,23 @@ - %= stylesheet "/static/${av}/css/materialize.min.css" + + %= stylesheet "/static/${av}/css/material-icons.css" %= stylesheet "/static/${av}/css/local.css" %= javascript "/static/${av}/js/jquery-3.4.1.min.js" @@ -66,7 +82,7 @@ % if (app->mode eq 'development') {
-
+
Development Mode – Datenbank: <%= app->config->{db}->{database} %> @ <%= app->config->{db}->{host} %>
diff --git a/templates/privacy.html.ep b/templates/privacy.html.ep index 9fa2048..4469154 100644 --- a/templates/privacy.html.ep +++ b/templates/privacy.html.ep @@ -14,7 +14,7 @@
-- cgit v1.2.3