diff --git a/oedb/resources/demo/demo_main.py b/oedb/resources/demo/demo_main.py index 49182af..1a971dc 100644 --- a/oedb/resources/demo/demo_main.py +++ b/oedb/resources/demo/demo_main.py @@ -124,12 +124,84 @@ class DemoMainResource: h2 { margin-top: 0; } ul { padding-left: 20px; } a { color: #0078ff; text-decoration: none; } - a:hover { text-decoration: underline; } + a svg{ + margin-right: 1ch ; + } + a:hover { text-decoration: underline; color: white; } .event-popup { max-width: 300px; } + + /* Style pour le toast d'erreur */ + .error-toast { + position: fixed; + top: 20px; + right: 20px; + background-color: #f44336; + color: white; + padding: 15px; + border-radius: 5px; + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); + z-index: 1000; + max-width: 350px; + opacity: 0; + visibility: hidden; + transition: opacity 0.3s, visibility 0.3s; + } + .error-toast.show { + opacity: 1; + visibility: visible; + } + .error-toast a { + color: #fff; + text-decoration: underline; + font-weight: bold; + } + .error-toast-close { + position: absolute; + right: 10px; + top: 10px; + cursor: pointer; + font-weight: bold; + } + + /* Style pour le bouton de feedback */ + .feedback-button { + position: fixed; + left: 10px; + bottom: 20px; + background-color: #0078ff; + color: white; + padding: 10px 15px; + border-radius: 5px; + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); + z-index: 900; + text-decoration: none; + font-weight: bold; + display: flex; + align-items: center; + } + .feedback-button i { + margin-right: 8px; + } + .feedback-button:hover { + background-color: #0056b3; + text-decoration: none; + }
+ + +Une erreur s'est produite lors du chargement des événements.
+Consultez le forum OSM pour plus d'informations.
+This map shows current events from the OpenEventDatabase.
@@ -192,17 +265,19 @@ class DemoMainResource: