Add buttons

This commit is contained in:
Shadowfacts 2023-01-04 19:04:18 -05:00
parent a7e86e2707
commit 57b2d5f034
6 changed files with 26 additions and 4 deletions

View File

@ -786,9 +786,15 @@ table {
font-size: 1.5em; font-size: 1.5em;
} }
.ui-controls { .site-colophon {
order: 1; order: 1;
img {
display: inline-block;
margin: 0;
}
}
.ui-controls {
input { input {
display: none; display: none;
} }
@ -905,9 +911,10 @@ table {
@media (max-width: 768px) { @media (max-width: 768px) {
.site-footer { .site-footer {
.ui-controls, .site-colophon, .social-links, .webring {
display: block; display: block;
> * {
width: 100%; width: 100%;
order: unset;
} }
.social-links ul, .webring { .social-links ul, .webring {
text-align: unset; text-align: unset;

View File

@ -69,7 +69,7 @@
</div> </div>
<footer class="site-footer container"> <footer class="site-footer container">
<h2 class="site-title">Shadowfacts</h2> <!-- <h2 class="site-title">Shadowfacts</h2> -->
<span class="ui-controls"> <span class="ui-controls">
Theme: Theme:
<input type="radio" name="theme" id="auto" value="auto"> <input type="radio" name="theme" id="auto" value="auto">
@ -79,6 +79,14 @@
<input type="radio" name="theme" id="dark" value="dark"> <input type="radio" name="theme" id="dark" value="dark">
<label for="dark">dark</label> <label for="dark">dark</label>
</span> </span>
<span class="site-colophon">
Generated on {{ Self::generated_at() | pretty_date }} by <a href="https://git.shadowfacts.net/shadowfacts/v6">v6</a>.
<br>
<img src="/buttons/vi.png" alt="Made with vi" />
<img src="/buttons/rust.png" alt="Powered by Rust" />
<img src="/buttons/html.png" alt="HTML: Learn it today!" />
</span>
<nav class="social-links"> <nav class="social-links">
<ul> <ul>
<li>{{ Self::fancy_link("Email", "mailto:me@shadowfacts.net", Some("rel=me"))|safe }}</li> <li>{{ Self::fancy_link("Email", "mailto:me@shadowfacts.net", Some("rel=me"))|safe }}</li>

Binary file not shown.

After

Width:  |  Height:  |  Size: 964 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 553 B

BIN
site/static/buttons/vi.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

View File

@ -1,4 +1,5 @@
use crate::activitypub::DOMAIN; use crate::activitypub::DOMAIN;
use chrono::{DateTime, Utc};
use once_cell::sync::Lazy; use once_cell::sync::Lazy;
use std::time::SystemTime; use std::time::SystemTime;
@ -9,6 +10,8 @@ static CB: Lazy<u64> = Lazy::new(|| {
.as_secs() .as_secs()
}); });
static GENERATED_AT: Lazy<DateTime<Utc>> = Lazy::new(|| Utc::now());
pub trait TemplateCommon { pub trait TemplateCommon {
fn domain() -> String { fn domain() -> String {
DOMAIN.to_owned() DOMAIN.to_owned()
@ -28,6 +31,10 @@ pub trait TemplateCommon {
text text
) )
} }
fn generated_at() -> &'static DateTime<Utc> {
&*GENERATED_AT
}
} }
pub mod filters { pub mod filters {