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::{
|
||||
assets::write_assets,
|
||||
charts::UserCountChart,
|
||||
cli::{
|
||||
Cli, MainSubcommands, MigrateSubcommands, SnapshotSubcommands,
|
||||
|
@ -113,7 +112,6 @@ pub async fn run() -> Result<()> {
|
|||
.render_to_file(&output)
|
||||
.await?;
|
||||
generate_css(&output).await?;
|
||||
write_assets(&output).await?;
|
||||
|
||||
if let Some(group) = user_count_group {
|
||||
let groups =
|
||||
|
|
|
@ -11,7 +11,6 @@ use {
|
|||
tracing_subscriber::filter::{EnvFilter, LevelFilter},
|
||||
};
|
||||
|
||||
pub mod assets;
|
||||
pub mod charts;
|
||||
pub mod cli;
|
||||
pub mod group_data;
|
||||
|
|
|
@ -26,6 +26,11 @@ a:visited {
|
|||
}
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
|
|
|
@ -17,15 +17,8 @@
|
|||
}
|
||||
|
||||
.page-header {
|
||||
align-items: center;
|
||||
border-bottom: 4px solid var(--background-2);
|
||||
display: flex;
|
||||
padding: var(--large-spacing);
|
||||
|
||||
img {
|
||||
height: 4rem;
|
||||
margin-right: var(--large-spacing);
|
||||
}
|
||||
}
|
||||
|
||||
.page-main {
|
||||
|
@ -66,11 +59,6 @@
|
|||
background-color: var(--background-2);
|
||||
}
|
||||
}
|
||||
|
||||
.chart {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.page-footer {
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<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/common.css">
|
||||
{% block head %}{% endblock %}
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
{% block body %}
|
||||
<header class="page-header">
|
||||
<img src="/tildes-statistics.png" alt="Tildes Statistics Logo">
|
||||
<h1>Tildes Statistics</h1>
|
||||
</header>
|
||||
|
||||
|
@ -19,7 +18,7 @@
|
|||
registered users on Tildes.
|
||||
</p>
|
||||
|
||||
<img class="chart" src="/charts/user-count.svg" alt="User Count Chart">
|
||||
<img src="/charts/user-count.svg" alt="User Count Chart">
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
|
|
Loading…
Reference in New Issue