Compare commits
No commits in common. "eb48cc70c1614fb04faa0980c5e9b9115e65d479" and "a3a4ae8ca4816f0705110204b722c763dcc3e3a4" have entirely different histories.
eb48cc70c1
...
a3a4ae8ca4
|
@ -1,14 +0,0 @@
|
||||||
//! Miscellaneous assets.
|
|
||||||
|
|
||||||
use {
|
|
||||||
async_std::{fs::write, path::PathBuf},
|
|
||||||
color_eyre::Result,
|
|
||||||
};
|
|
||||||
|
|
||||||
/// Write all misellaneous asset files to where they belong.
|
|
||||||
pub async fn write_assets(parent: &PathBuf) -> Result<()> {
|
|
||||||
let logo = include_bytes!("tildes-statistics.png");
|
|
||||||
write(parent.join("tildes-statistics.png"), logo).await?;
|
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
|
Binary file not shown.
Before Width: | Height: | Size: 2.3 KiB |
|
@ -6,7 +6,6 @@ use {
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
assets::write_assets,
|
|
||||||
charts::UserCountChart,
|
charts::UserCountChart,
|
||||||
cli::{
|
cli::{
|
||||||
Cli, MainSubcommands, MigrateSubcommands, SnapshotSubcommands,
|
Cli, MainSubcommands, MigrateSubcommands, SnapshotSubcommands,
|
||||||
|
@ -113,7 +112,6 @@ pub async fn run() -> Result<()> {
|
||||||
.render_to_file(&output)
|
.render_to_file(&output)
|
||||||
.await?;
|
.await?;
|
||||||
generate_css(&output).await?;
|
generate_css(&output).await?;
|
||||||
write_assets(&output).await?;
|
|
||||||
|
|
||||||
if let Some(group) = user_count_group {
|
if let Some(group) = user_count_group {
|
||||||
let groups =
|
let groups =
|
||||||
|
|
|
@ -11,7 +11,6 @@ use {
|
||||||
tracing_subscriber::filter::{EnvFilter, LevelFilter},
|
tracing_subscriber::filter::{EnvFilter, LevelFilter},
|
||||||
};
|
};
|
||||||
|
|
||||||
pub mod assets;
|
|
||||||
pub mod charts;
|
pub mod charts;
|
||||||
pub mod cli;
|
pub mod cli;
|
||||||
pub mod group_data;
|
pub mod group_data;
|
||||||
|
|
|
@ -26,6 +26,11 @@ a:visited {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
h2,
|
h2,
|
||||||
h3,
|
h3,
|
||||||
|
|
|
@ -17,15 +17,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-header {
|
.page-header {
|
||||||
align-items: center;
|
|
||||||
border-bottom: 4px solid var(--background-2);
|
border-bottom: 4px solid var(--background-2);
|
||||||
display: flex;
|
|
||||||
padding: var(--large-spacing);
|
padding: var(--large-spacing);
|
||||||
|
|
||||||
img {
|
|
||||||
height: 4rem;
|
|
||||||
margin-right: var(--large-spacing);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-main {
|
.page-main {
|
||||||
|
@ -66,11 +59,6 @@
|
||||||
background-color: var(--background-2);
|
background-color: var(--background-2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.chart {
|
|
||||||
display: block;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-footer {
|
.page-footer {
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>{{ page_title }}</title>
|
<title>{{ page_title }}</title>
|
||||||
<link rel="shortcut icon" href="/tildes-statistics.png" type="image/png">
|
|
||||||
<link rel="stylesheet" href="/css/modern-normalize.css">
|
<link rel="stylesheet" href="/css/modern-normalize.css">
|
||||||
<link rel="stylesheet" href="/css/common.css">
|
<link rel="stylesheet" href="/css/common.css">
|
||||||
{% block head %}{% endblock %}
|
{% block head %}{% endblock %}
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<img src="/tildes-statistics.png" alt="Tildes Statistics Logo">
|
|
||||||
<h1>Tildes Statistics</h1>
|
<h1>Tildes Statistics</h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
@ -19,7 +18,7 @@
|
||||||
registered users on Tildes.
|
registered users on Tildes.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<img class="chart" src="/charts/user-count.svg" alt="User Count Chart">
|
<img src="/charts/user-count.svg" alt="User Count Chart">
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
|
|
Loading…
Reference in New Issue