ctucx.git: trainsearch

web based trip-planner, fork of https://cyberchaos.dev/yuka/trainsearch

commit 5c72687c934c066258f287387ca928240a5d1a49
parent f3287c3363ba079d0a5554bb3f0e539d58bb6ffd
Author: Katja (ctucx) <git@ctu.cx>
Date: Tue, 21 Jan 2025 14:22:22 +0100

searchView: add footer with link to git and imprint
2 files changed, 26 insertions(+), 1 deletion(-)
M
src/searchView.js
|
6
++++++
M
static/style.css
|
21
++++++++++++++++++++-
diff --git a/src/searchView.js b/src/searchView.js
@@ -136,7 +136,13 @@ const searchTemplate = (journeysHistory) => html`
 				<div id="historyButton" class="loadMore icon-arrow2" title="History" @click=${toggleHistory}></div>
 			` : ''}
 		</form>
+
 		${journeysHistoryTemplate(journeysHistory)}
+
+		<footer>
+			<a href="https://git.ctu.cx/trainsearch">Source-Code</a>
+			<a href="https://ctu.cx/imprint.html">Imprint</a>
+		</footer>
 	</div>
 `;
 
diff --git a/static/style.css b/static/style.css
@@ -176,7 +176,6 @@ header {
 #searchView {	
 	background-color: #222;
 	flex-grow: 1;
-	padding-bottom: 5em;
 
 	.title {
 		display: flex;

@@ -353,6 +352,26 @@ header {
 			width: 25px;
 		}
 	}
+
+	footer {
+		display: flex;
+		justify-content: center;
+		color: #ddd;
+		padding: 5em 0 1em 0;
+
+		a {
+			text-decoration: none;
+		}
+
+		a:after {
+			margin:0 8px;
+			content: "•";
+		}
+
+		:last-child:after {
+			content: none;
+		}
+	}
 }
 
 .card {