Add buttons
This commit is contained in:
parent
a7e86e2707
commit
57b2d5f034
|
@ -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 {
|
||||||
display: block;
|
.ui-controls, .site-colophon, .social-links, .webring {
|
||||||
> * {
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
order: unset;
|
||||||
}
|
}
|
||||||
.social-links ul, .webring {
|
.social-links ul, .webring {
|
||||||
text-align: unset;
|
text-align: unset;
|
||||||
|
|
|
@ -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 |
Binary file not shown.
After Width: | Height: | Size: 285 B |
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue