Browse Source

serve: add footer

master
Astro 10 months ago
parent
commit
cd6cb485f2
2 changed files with 22 additions and 1 deletions
  1. 8
    0
      ticker-serve/src/index.rs
  2. 14
    1
      ticker-serve/static/style.css

+ 8
- 0
ticker-serve/src/index.rs View File

@@ -122,6 +122,14 @@ fn render_index(app_state: &AppState) -> String {
122 122
                  )) }
123 123
            </div>)
124 124
           }) }
125
+          <footer>
126
+            <p>
127
+              "Ein Projekt des "
128
+              <a href="https://www.c3d2.de/">"C3D2"</a>
129
+              " - "
130
+              <a href="https://gitea.c3d2.de/astro/ticker">"Code"</a>
131
+            </p>
132
+          </footer>
125 133
         </body>
126 134
       </html>
127 135
     );

+ 14
- 1
ticker-serve/static/style.css View File

@@ -1,7 +1,7 @@
1 1
 body {
2 2
     font-family: sans-serif;
3 3
     margin: 0 auto;
4
-    padding: 1rem 0;
4
+    padding: 1rem 0 0 0.5rem;
5 5
     background-color: #373737;
6 6
     color: #e7e7e7;
7 7
     max-width: 40rem;
@@ -78,3 +78,16 @@ h3 a {
78 78
     line-height: 1.1em;
79 79
     display: inline;
80 80
 }
81
+
82
+footer {
83
+    text-align: center;
84
+}
85
+footer p {
86
+    margin: 1rem 0 0;
87
+}
88
+footer a {
89
+    color: #F7F7F7;
90
+    text-decoration: none;
91
+    font-size: 85%;
92
+    font-weight: 500;
93
+}

Loading…
Cancel
Save