Compare commits
98 Commits
Author | SHA1 | Date |
---|---|---|
Bauke | 8d9cfa8ad0 | |
Bauke | 2352cb5a61 | |
Bauke | 0a646f0763 | |
Bauke | 9b434f8cfe | |
Bauke | aa37acf1dc | |
Bauke | 1549473c46 | |
Bauke | 4e40f961fa | |
Bauke | 0929822465 | |
Bauke | fa55c8dc17 | |
Bauke | 9e64b06c12 | |
Bauke | 3beb305cdf | |
Bauke | 7f8d171825 | |
Bauke | 796befb383 | |
Bauke | f4fce844ca | |
Bauke | 27d913a4cb | |
Bauke | 3eb2cd2381 | |
Bauke | 2bfe826454 | |
Bauke | 46bf389dc3 | |
Bauke | fa7c98e079 | |
Bauke | 023c6a1dde | |
Bauke | c8c9d7c507 | |
Bauke | 78187bbe07 | |
Bauke | 6e1a953d63 | |
Bauke | 774e1411bb | |
Bauke | 9bfc8477be | |
Bauke | aa6da0069b | |
Bauke | 4f206aa95e | |
Bauke | ce8be9e120 | |
Bauke | cf28b65d16 | |
Bauke | 2e6fddfac8 | |
Bauke | eb21f1b777 | |
Bauke | 235064a0ae | |
Bauke | 9581974eda | |
Bauke | f2e4ef64ee | |
Bauke | 420c6cd93b | |
Bauke | a4b22db9e4 | |
Bauke | 3d34c3b377 | |
Bauke | bcf68d985a | |
Bauke | 7d3a89f2b6 | |
Bauke | ed0920d324 | |
Bauke | 62d1d33970 | |
Bauke | 08bff090ce | |
Bauke | 1e88509682 | |
Bauke | d8adc87ee7 | |
Bauke | cd2b6cb03e | |
Bauke | 6be1edc0b4 | |
Bauke | 163f676cb1 | |
Bauke | b92e5c31bc | |
Bauke | 03d473fb8d | |
Bauke | 50bdc5bfea | |
Bauke | 4da9622185 | |
Bauke | 0a1f6f2ef1 | |
Bauke | abc9e983dd | |
Bauke | ed739a3421 | |
Bauke | b4c1daeea9 | |
Bauke | cd88730d1c | |
Bauke | 110bc4eb28 | |
Bauke | 3426ba66c0 | |
Bauke | 4a4188243b | |
Bauke | 2b92f2d5be | |
Bauke | e275324581 | |
Bauke | 5d5f305514 | |
Bauke | 7a11421702 | |
Bauke | a89419f3b9 | |
Bauke | 2d2778df9d | |
Bauke | 8c8c8970d8 | |
Bauke | 11a3a083db | |
Bauke | 4fe695f90c | |
Bauke | 3c054bdaf0 | |
Bauke | 1a764d2926 | |
Bauke | 05c0637d69 | |
Bauke | d0e08574cb | |
Bauke | 107a2b762e | |
Bauke | 6afa125e46 | |
Bauke | c8fa1c5d76 | |
Bauke | 10305c021a | |
Bauke | 260cb50bb5 | |
Bauke | 55f523fe48 | |
Bauke | 514b10ef84 | |
Bauke | 5e2d50af5b | |
Bauke | 475e4b3c1b | |
Bauke | 375e9be9cf | |
Bauke | 2d8611aa06 | |
Bauke | f3f77b6d5a | |
Bauke | c900caaf1c | |
Bauke | 06f17f7b93 | |
Bauke | b8cdc833f3 | |
Bauke | 97ccb7539b | |
Bauke | b3f855440f | |
Bauke | a03db59c65 | |
Bauke | 203e37c35f | |
Bauke | 4849fb9ebc | |
Bauke | 72fd3351b3 | |
Bauke | 7918707dd9 | |
Bauke | 4b389f9d9e | |
Bauke | 5a6d1e8fc7 | |
Bauke | 422b9452a2 | |
Bauke | 78b3fe8065 |
|
@ -1,118 +1,8 @@
|
||||||
# Logs
|
.direnv/
|
||||||
logs
|
.netlify/
|
||||||
*.log
|
|
||||||
npm-debug.log*
|
|
||||||
yarn-debug.log*
|
|
||||||
yarn-error.log*
|
|
||||||
lerna-debug.log*
|
|
||||||
|
|
||||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
|
||||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|
||||||
|
|
||||||
# Runtime data
|
|
||||||
pids
|
|
||||||
*.pid
|
|
||||||
*.seed
|
|
||||||
*.pid.lock
|
|
||||||
|
|
||||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
||||||
lib-cov
|
|
||||||
|
|
||||||
# Coverage directory used by tools like istanbul
|
|
||||||
coverage
|
|
||||||
*.lcov
|
|
||||||
|
|
||||||
# nyc test coverage
|
|
||||||
.nyc_output
|
|
||||||
|
|
||||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
|
||||||
.grunt
|
|
||||||
|
|
||||||
# Bower dependency directory (https://bower.io/)
|
|
||||||
bower_components
|
|
||||||
|
|
||||||
# node-waf configuration
|
|
||||||
.lock-wscript
|
|
||||||
|
|
||||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
||||||
build/Release
|
|
||||||
|
|
||||||
# Dependency directories
|
|
||||||
node_modules/
|
node_modules/
|
||||||
jspm_packages/
|
|
||||||
|
|
||||||
# TypeScript v1 declaration files
|
|
||||||
typings/
|
|
||||||
|
|
||||||
# TypeScript cache
|
|
||||||
*.tsbuildinfo
|
|
||||||
|
|
||||||
# Optional npm cache directory
|
|
||||||
.npm
|
|
||||||
|
|
||||||
# Optional eslint cache
|
|
||||||
.eslintcache
|
|
||||||
|
|
||||||
# Microbundle cache
|
|
||||||
.rpt2_cache/
|
|
||||||
.rts2_cache_cjs/
|
|
||||||
.rts2_cache_es/
|
|
||||||
.rts2_cache_umd/
|
|
||||||
|
|
||||||
# Optional REPL history
|
|
||||||
.node_repl_history
|
|
||||||
|
|
||||||
# Output of 'npm pack'
|
|
||||||
*.tgz
|
|
||||||
|
|
||||||
# Yarn Integrity file
|
|
||||||
.yarn-integrity
|
|
||||||
|
|
||||||
# dotenv environment variables file
|
|
||||||
.env
|
|
||||||
.env.test
|
|
||||||
|
|
||||||
# parcel-bundler cache (https://parceljs.org/)
|
|
||||||
.cache
|
|
||||||
|
|
||||||
# Next.js build output
|
|
||||||
.next
|
|
||||||
|
|
||||||
# Nuxt.js build / generate output
|
|
||||||
.nuxt
|
|
||||||
dist
|
|
||||||
|
|
||||||
# Gatsby files
|
|
||||||
.cache/
|
|
||||||
# Comment in the public line in if your project uses Gatsby and *not* Next.js
|
|
||||||
# https://nextjs.org/blog/next-9-1#public-directory-support
|
|
||||||
# public
|
|
||||||
|
|
||||||
# vuepress build output
|
|
||||||
.vuepress/dist
|
|
||||||
|
|
||||||
# Serverless directories
|
|
||||||
.serverless/
|
|
||||||
|
|
||||||
# FuseBox cache
|
|
||||||
.fusebox/
|
|
||||||
|
|
||||||
# DynamoDB Local files
|
|
||||||
.dynamodb/
|
|
||||||
|
|
||||||
# TernJS port file
|
|
||||||
.tern-port
|
|
||||||
|
|
||||||
# Generated by Cargo
|
|
||||||
# will have compiled files and executables
|
|
||||||
/target/
|
|
||||||
|
|
||||||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
|
||||||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
|
|
||||||
Cargo.lock
|
|
||||||
|
|
||||||
# These are backup files generated by rustfmt
|
|
||||||
**/*.rs.bk
|
|
||||||
|
|
||||||
# Build directory
|
|
||||||
public/
|
public/
|
||||||
|
target/
|
||||||
|
|
||||||
|
Cargo.lock
|
||||||
|
pnpm-lock.yaml
|
||||||
|
|
38
Cargo.toml
38
Cargo.toml
|
@ -2,24 +2,36 @@
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "bauke-xyz"
|
name = "bauke-xyz"
|
||||||
description = "https://bauke.xyz"
|
description = "Bauke's website."
|
||||||
version = "1.0.0"
|
repository = "https://git.bauke.xyz/Bauke/bauke-xyz"
|
||||||
edition = "2018"
|
|
||||||
repository = "https://git.holllo.cc/Bauke/bauke.xyz"
|
|
||||||
license = "AGPL-3.0-or-later"
|
license = "AGPL-3.0-or-later"
|
||||||
|
version = "1.0.0"
|
||||||
|
authors = ["Bauke <me@bauke.xyz>"]
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "bauke-xyz"
|
name = "bauke-xyz"
|
||||||
path = "source/main.rs"
|
path = "source/main.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
gloo-console = "0.1.0"
|
askama = "0.12.1"
|
||||||
gloo-timers = "0.2.1"
|
color-eyre = "0.6.2"
|
||||||
log = "0.4.14"
|
comrak = "0.20.0"
|
||||||
rand = "0.8.4"
|
minify-html = "0.15.0"
|
||||||
wasm-logger = "0.2.0"
|
rsass = "0.23.4"
|
||||||
yew = "0.18.0"
|
toml-frontmatter = "0.1.0"
|
||||||
|
|
||||||
[dependencies.getrandom]
|
[dependencies.serde]
|
||||||
version = "0.2.3"
|
features = ["derive"]
|
||||||
features = ["js"]
|
version = "1.0.152"
|
||||||
|
|
||||||
|
[dependencies.userstyles]
|
||||||
|
git = "https://git.bauke.xyz/Bauke/userstyles"
|
||||||
|
rev = "8aa9ad3"
|
||||||
|
|
||||||
|
[lints.clippy]
|
||||||
|
missing_docs_in_private_items = "warn"
|
||||||
|
|
||||||
|
[lints.rust]
|
||||||
|
missing_docs = "warn"
|
||||||
|
unsafe_code = "forbid"
|
||||||
|
|
|
@ -0,0 +1,41 @@
|
||||||
|
# Build the website.
|
||||||
|
[tasks.build]
|
||||||
|
clear = true
|
||||||
|
command = "cargo"
|
||||||
|
args = ["run", "--release"]
|
||||||
|
|
||||||
|
# Remove build directories.
|
||||||
|
[tasks.clean]
|
||||||
|
clear = true
|
||||||
|
command = "pnpm"
|
||||||
|
args = ["trash", "public"]
|
||||||
|
|
||||||
|
# Deploy the website to Netlify.
|
||||||
|
[tasks.deploy-netlify]
|
||||||
|
clear = true
|
||||||
|
command = "pnpm"
|
||||||
|
dependencies = ["clean", "lint", "build"]
|
||||||
|
args = ["netlify", "deploy", "-p", "-d", "public/", "-s", "bauke.xyz"]
|
||||||
|
|
||||||
|
# Run all other linting tasks.
|
||||||
|
[tasks.lint]
|
||||||
|
clear = true
|
||||||
|
dependencies = ["lint-clippy", "lint-js", "lint-scss"]
|
||||||
|
|
||||||
|
# Run Clippy.
|
||||||
|
[tasks.lint-clippy]
|
||||||
|
clear = true
|
||||||
|
command = "cargo"
|
||||||
|
args = ["clippy"]
|
||||||
|
|
||||||
|
# Run XO.
|
||||||
|
[tasks.lint-js]
|
||||||
|
clear = true
|
||||||
|
command = "pnpm"
|
||||||
|
args = ["xo"]
|
||||||
|
|
||||||
|
# Run Stylelint.
|
||||||
|
[tasks.lint-scss]
|
||||||
|
clear = true
|
||||||
|
command = "pnpm"
|
||||||
|
args = ["stylelint", "source/**/*.scss"]
|
|
@ -0,0 +1,11 @@
|
||||||
|
# Bauke 🦖 XYZ
|
||||||
|
|
||||||
|
> **Bauke's website.**
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
|
With [Nix flakes](https://nixos.wiki/wiki/Flakes) and [direnv](https://direnv.net/) installed and enabled, all the required dependencies are automatically loaded from [`shell.nix`](./shell.nix). Then [cargo-make](https://sagiegurari.github.io/cargo-make/) can be used to build, deploy and lint the code. The available tasks are all described in the [`Makefile.toml`](Makefile.toml) configuration.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Distributed under the [AGPL-3.0-or-later](https://spdx.org/licenses/AGPL-3.0-or-later.html) license, see [LICENSE](https://git.bauke.xyz/Bauke/bauke-xyz/src/branch/main/LICENSE) for more information.
|
|
@ -1,9 +0,0 @@
|
||||||
[build]
|
|
||||||
dist = "public"
|
|
||||||
|
|
||||||
[serve]
|
|
||||||
no_autoreload = false
|
|
||||||
port = 5500
|
|
||||||
|
|
||||||
[clean]
|
|
||||||
dist = "public"
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
[general]
|
||||||
|
dirs = ["source/templates"]
|
|
@ -0,0 +1,59 @@
|
||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1705309234,
|
||||||
|
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1705242415,
|
||||||
|
"narHash": "sha256-a8DRYrNrzTudvO7XHUPNJD89Wbf1ZZT0VbwCsPnHWaE=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "ea780f3de2d169f982564128804841500e85e373",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "nixpkgs",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs, flake-utils }:
|
||||||
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
|
let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShells.default = import ./shell.nix { inherit pkgs; };
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
19
index.html
19
index.html
|
@ -1,19 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>bauke.xyz</title>
|
|
||||||
<link data-trunk rel="sass" href="source/scss/modern-normalize.scss" />
|
|
||||||
<link data-trunk rel="sass" href="source/scss/index.scss" />
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<noscript>
|
|
||||||
This website requires JavaScript and WebAssembly to work.
|
|
||||||
</noscript>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
42
package.json
42
package.json
|
@ -1,32 +1,24 @@
|
||||||
{
|
{
|
||||||
"name": "bauke.xyz",
|
"private": "true",
|
||||||
"version": "0.0.0",
|
"dependencies": {
|
||||||
"license": "AGPL-3.0-or-later",
|
"modern-normalize": "^2.0.0"
|
||||||
"scripts": {
|
|
||||||
"deploy": "trunk clean && trunk build --release && yarn deploy:netlify",
|
|
||||||
"deploy:netlify": "netlify deploy --prod --dir 'public/' -s bauke.xyz",
|
|
||||||
"test": "stylelint 'source/**/*.scss'"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"netlify-cli": "^6.7.6",
|
"@bauke/eslint-config": "^0.1.5",
|
||||||
"stylelint": "^13.13.1",
|
"@bauke/prettier-config": "^0.1.5",
|
||||||
"stylelint-config-xo-scss": "^0.14.0",
|
"@bauke/stylelint-config": "^0.1.5",
|
||||||
"stylelint-config-xo-space": "^0.15.1"
|
"netlify-cli": "^17.13.2",
|
||||||
|
"stylelint": "^16.1.0",
|
||||||
|
"trash-cli": "^5.0.0",
|
||||||
|
"xo": "^0.56.0"
|
||||||
},
|
},
|
||||||
|
"prettier": "@bauke/prettier-config",
|
||||||
"stylelint": {
|
"stylelint": {
|
||||||
"extends": [
|
"extends": "@bauke/stylelint-config"
|
||||||
"stylelint-config-xo-scss",
|
},
|
||||||
"stylelint-config-xo-space"
|
"xo": {
|
||||||
],
|
"extends": "@bauke/eslint-config",
|
||||||
"ignoreFiles": [
|
"prettier": true,
|
||||||
"**/*.css"
|
"space": true
|
||||||
],
|
|
||||||
"rules": {
|
|
||||||
"at-rule-empty-line-before": null,
|
|
||||||
"at-rule-no-unknown": null,
|
|
||||||
"no-descending-specificity": null,
|
|
||||||
"scss/at-import-partial-extension": null,
|
|
||||||
"scss/at-rule-no-unknown": null
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
{ pkgs ? import <nixpkgs> { } }:
|
||||||
|
|
||||||
|
with pkgs;
|
||||||
|
|
||||||
|
mkShell rec {
|
||||||
|
packages = [ cargo-make nodejs nodePackages.pnpm ];
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 118 KiB |
Binary file not shown.
After Width: | Height: | Size: 563 KiB |
Binary file not shown.
After Width: | Height: | Size: 121 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 9.1 KiB |
|
@ -1,10 +0,0 @@
|
||||||
/// Contains the main page `<footer>` component.
|
|
||||||
mod page_footer;
|
|
||||||
/// Contains the main page `<header>` component.
|
|
||||||
mod page_header;
|
|
||||||
/// Contains the main page `<main>` component.
|
|
||||||
mod page_main;
|
|
||||||
|
|
||||||
pub(crate) use page_footer::PageFooter;
|
|
||||||
pub(crate) use page_header::PageHeader;
|
|
||||||
pub(crate) use page_main::PageMain;
|
|
|
@ -1,164 +0,0 @@
|
||||||
use gloo_timers::callback::Interval;
|
|
||||||
use rand::Rng;
|
|
||||||
use yew::prelude::*;
|
|
||||||
|
|
||||||
/// The main page `<footer>` element.
|
|
||||||
pub(crate) struct PageFooter {
|
|
||||||
/// The handle to the `setInterval`, this is stored so it doesn't get dropped
|
|
||||||
/// and stop the interval from happening.
|
|
||||||
_interval_handle: Interval,
|
|
||||||
/// The number of which square is currently active.
|
|
||||||
active_square: u32,
|
|
||||||
/// The link to this component.
|
|
||||||
link: ComponentLink<Self>,
|
|
||||||
/// The maximum number of squares to render.
|
|
||||||
max_squares: u32,
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The possible messages for [`PageFooter`].
|
|
||||||
#[derive(Debug)]
|
|
||||||
pub(crate) enum PageFooterMessage {
|
|
||||||
/// The message to decrease the max squares by 1.
|
|
||||||
DecrementMaxSquares,
|
|
||||||
/// The message to increase the max squares by 1.
|
|
||||||
IncrementMaxSquares,
|
|
||||||
/// The message from the interval to update the active square.
|
|
||||||
TickActiveSquare,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Component for PageFooter {
|
|
||||||
type Message = PageFooterMessage;
|
|
||||||
type Properties = ();
|
|
||||||
|
|
||||||
fn create(_props: Self::Properties, link: ComponentLink<Self>) -> Self {
|
|
||||||
log::trace!("Creating PageFooter");
|
|
||||||
|
|
||||||
let interval_handle = {
|
|
||||||
let link = link.clone();
|
|
||||||
Interval::new(1000, move || {
|
|
||||||
link.send_message(Self::Message::TickActiveSquare)
|
|
||||||
})
|
|
||||||
};
|
|
||||||
|
|
||||||
Self {
|
|
||||||
_interval_handle: interval_handle,
|
|
||||||
active_square: 0,
|
|
||||||
link,
|
|
||||||
max_squares: 5,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn update(&mut self, msg: Self::Message) -> ShouldRender {
|
|
||||||
log::trace!("PageFooterMessage::{:?}", msg);
|
|
||||||
|
|
||||||
match msg {
|
|
||||||
Self::Message::DecrementMaxSquares => {
|
|
||||||
if self.max_squares > 1 {
|
|
||||||
self.max_squares -= 1;
|
|
||||||
log::debug!("Max squares set to {}", self.max_squares);
|
|
||||||
true
|
|
||||||
} else {
|
|
||||||
false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Self::Message::IncrementMaxSquares => {
|
|
||||||
if self.max_squares < 360 {
|
|
||||||
self.max_squares += 1;
|
|
||||||
log::debug!("Max squares set to {}", self.max_squares);
|
|
||||||
true
|
|
||||||
} else {
|
|
||||||
false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Self::Message::TickActiveSquare => {
|
|
||||||
if self.max_squares == 1 {
|
|
||||||
if self.active_square == 0 {
|
|
||||||
self.active_square = 1;
|
|
||||||
} else {
|
|
||||||
self.active_square = 0;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
self.active_square += 1;
|
|
||||||
if self.active_square >= self.max_squares {
|
|
||||||
self.active_square = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn change(&mut self, _props: Self::Properties) -> ShouldRender {
|
|
||||||
false
|
|
||||||
}
|
|
||||||
|
|
||||||
fn view(&self) -> Html {
|
|
||||||
let squares = (0..self.max_squares)
|
|
||||||
.into_iter()
|
|
||||||
.map(|square| {
|
|
||||||
let mut classes = classes!("square");
|
|
||||||
if square == self.active_square {
|
|
||||||
classes.push("active");
|
|
||||||
}
|
|
||||||
|
|
||||||
let hue = {
|
|
||||||
if self.max_squares == 1 {
|
|
||||||
rand::thread_rng().gen_range(0..=360)
|
|
||||||
} else {
|
|
||||||
(360 / self.max_squares) * square
|
|
||||||
}
|
|
||||||
};
|
|
||||||
let style = format!("background-color: hsl({}, 100%, 50%);", hue);
|
|
||||||
|
|
||||||
return html! {
|
|
||||||
<div style=style class=classes />
|
|
||||||
};
|
|
||||||
})
|
|
||||||
.collect::<Html>();
|
|
||||||
|
|
||||||
let squares = {
|
|
||||||
let style = format!(
|
|
||||||
"--square-transition: {0}s; --squares: {0};",
|
|
||||||
self.max_squares
|
|
||||||
);
|
|
||||||
let decrement = self
|
|
||||||
.link
|
|
||||||
.callback(|_| PageFooterMessage::DecrementMaxSquares);
|
|
||||||
let increment = self
|
|
||||||
.link
|
|
||||||
.callback(|_| PageFooterMessage::IncrementMaxSquares);
|
|
||||||
|
|
||||||
html! {
|
|
||||||
<div style=style class="squares">
|
|
||||||
<button onclick=decrement>{"-"}</button>
|
|
||||||
{squares}
|
|
||||||
<button onclick=increment>{"+"}</button>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
let technologies = html! {
|
|
||||||
<p class="technologies">
|
|
||||||
{"Written in "}
|
|
||||||
<a target="_blank" href="https://www.rust-lang.org">{"Rust"}</a>
|
|
||||||
{" with "}
|
|
||||||
<a target="_blank" href="https://yew.rs">{"Yew"}</a>
|
|
||||||
{" and compiled to "}
|
|
||||||
<a target="_blank" href="https://webassembly.org">{"WebAssembly"}</a>
|
|
||||||
{" with "}
|
|
||||||
<a target="_blank" href="https://trunkrs.dev">{"Trunk"}</a>
|
|
||||||
{"."}
|
|
||||||
</p>
|
|
||||||
};
|
|
||||||
|
|
||||||
html! {
|
|
||||||
<footer class="page-footer">
|
|
||||||
{squares}
|
|
||||||
{technologies}
|
|
||||||
</footer>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,31 +0,0 @@
|
||||||
use yew::prelude::*;
|
|
||||||
|
|
||||||
/// The main page `<header>` element.
|
|
||||||
pub(crate) struct PageHeader;
|
|
||||||
|
|
||||||
impl Component for PageHeader {
|
|
||||||
type Message = ();
|
|
||||||
type Properties = ();
|
|
||||||
|
|
||||||
fn create(_props: Self::Properties, _link: ComponentLink<Self>) -> Self {
|
|
||||||
log::trace!("Creating PageHeader");
|
|
||||||
|
|
||||||
Self
|
|
||||||
}
|
|
||||||
|
|
||||||
fn update(&mut self, _msg: Self::Message) -> ShouldRender {
|
|
||||||
unimplemented!()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn change(&mut self, _props: Self::Properties) -> ShouldRender {
|
|
||||||
false
|
|
||||||
}
|
|
||||||
|
|
||||||
fn view(&self) -> Html {
|
|
||||||
html! {
|
|
||||||
<header class="page-header">
|
|
||||||
<h1>{"bauke.xyz"}</h1>
|
|
||||||
</header>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,43 +0,0 @@
|
||||||
use yew::prelude::*;
|
|
||||||
|
|
||||||
/// The main page `<main>` element.
|
|
||||||
pub(crate) struct PageMain;
|
|
||||||
|
|
||||||
impl Component for PageMain {
|
|
||||||
type Message = ();
|
|
||||||
type Properties = ();
|
|
||||||
|
|
||||||
fn create(_props: Self::Properties, _link: ComponentLink<Self>) -> Self {
|
|
||||||
log::trace!("Creating PageMain");
|
|
||||||
|
|
||||||
Self
|
|
||||||
}
|
|
||||||
|
|
||||||
fn update(&mut self, _msg: Self::Message) -> ShouldRender {
|
|
||||||
unimplemented!()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn change(&mut self, _props: Self::Properties) -> ShouldRender {
|
|
||||||
false
|
|
||||||
}
|
|
||||||
|
|
||||||
fn view(&self) -> Html {
|
|
||||||
html! {
|
|
||||||
<main class="page-main">
|
|
||||||
<div class="contact-links">
|
|
||||||
<a target="_blank" href="mailto:me@bauke.xyz">
|
|
||||||
{"me@bauke.xyz"}
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<a target="_blank" href="https://matrix.to/#/@baukexyz:matrix.org">
|
|
||||||
{"@baukexyz:matrix.org"}
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<a target="_blank" href="https://mastodon.social/@bauke">
|
|
||||||
{"@bauke@mastodon.social"}
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -0,0 +1,42 @@
|
||||||
|
//! The logic for files that need be directly copied over.
|
||||||
|
|
||||||
|
use std::{fs, path::Path, process::Command};
|
||||||
|
|
||||||
|
use color_eyre::Result;
|
||||||
|
|
||||||
|
/// Struct to contain functionality for copying.
|
||||||
|
pub struct Copy;
|
||||||
|
|
||||||
|
impl Copy {
|
||||||
|
/// Copy all the files to their respective destinations.
|
||||||
|
pub fn write(
|
||||||
|
build_dir: &Path,
|
||||||
|
public_dir: &Path,
|
||||||
|
source_dir: &Path,
|
||||||
|
) -> Result<()> {
|
||||||
|
let files_to_copy = vec![(
|
||||||
|
source_dir.join("netlify/_redirects"),
|
||||||
|
public_dir.join("_redirects"),
|
||||||
|
)];
|
||||||
|
|
||||||
|
for (source, destination) in files_to_copy {
|
||||||
|
fs::copy(source, destination)?;
|
||||||
|
}
|
||||||
|
|
||||||
|
let dirs_to_copy = vec![
|
||||||
|
(source_dir.join("assets"), &public_dir),
|
||||||
|
(source_dir.join("js"), &public_dir),
|
||||||
|
(build_dir.join("userstyles"), &public_dir),
|
||||||
|
];
|
||||||
|
|
||||||
|
for (source, destination) in dirs_to_copy {
|
||||||
|
Command::new("cp")
|
||||||
|
.arg("-r")
|
||||||
|
.arg(source)
|
||||||
|
.arg(destination)
|
||||||
|
.output()?;
|
||||||
|
}
|
||||||
|
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,99 @@
|
||||||
|
/* global document window */
|
||||||
|
|
||||||
|
window.addEventListener("DOMContentLoaded", async () => {
|
||||||
|
const loop = async () => {
|
||||||
|
const listen = await getCurrentListen();
|
||||||
|
if (listen === undefined) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
let image;
|
||||||
|
try {
|
||||||
|
image = await getCoverArt(listen);
|
||||||
|
} catch (error) {
|
||||||
|
console.warn(error);
|
||||||
|
}
|
||||||
|
|
||||||
|
insertHtml(listen, image);
|
||||||
|
};
|
||||||
|
|
||||||
|
await loop();
|
||||||
|
|
||||||
|
setInterval(loop, 5 * 60 * 1000);
|
||||||
|
});
|
||||||
|
|
||||||
|
async function getCoverArt(listen) {
|
||||||
|
const releaseMbid = listen.track_metadata.additional_info?.release_mbid;
|
||||||
|
if (releaseMbid === undefined) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const result = await window.fetch(
|
||||||
|
`https://coverartarchive.org/release/${releaseMbid}`,
|
||||||
|
{
|
||||||
|
headers: {
|
||||||
|
Accept: "application/json",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
);
|
||||||
|
if (!result.ok) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const data = await result.json();
|
||||||
|
if (data.images[0]?.thumbnails === undefined) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const thumbnails = data.images[0].thumbnails;
|
||||||
|
return (
|
||||||
|
thumbnails.small ?? thumbnails["250"] ?? thumbnails["500"] ?? undefined
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
async function getCurrentListen() {
|
||||||
|
const result = await window.fetch(
|
||||||
|
"https://api.listenbrainz.org/1/user/BaukeXYZ/playing-now",
|
||||||
|
);
|
||||||
|
if (!result.ok) {
|
||||||
|
console.warn(result.status);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const data = await result.json();
|
||||||
|
if (data.payload.listens.length === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
return data.payload.listens[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
function insertHtml(listen, image) {
|
||||||
|
if (listen === undefined) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const existing = document.querySelector(".listenbrainz") ?? undefined;
|
||||||
|
if (existing !== undefined) {
|
||||||
|
existing.remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
const text = `${listen.track_metadata.artist_name} - ${listen.track_metadata.track_name}`;
|
||||||
|
const alt = image === undefined ? "ListenBrainz Logo" : `${text} Cover Art`;
|
||||||
|
|
||||||
|
image = image ?? "https://listenbrainz.org/static/img/logo_big.svg";
|
||||||
|
image = image.startsWith("http://") ? "https" + image.slice(4) : image;
|
||||||
|
|
||||||
|
const listenHtml = `
|
||||||
|
<p class="listenbrainz">
|
||||||
|
<img alt="${alt}" title="${alt}" src="${image}">
|
||||||
|
<span class="byline">Currently listening to</span>
|
||||||
|
<a href="https://listenbrainz.org/user/BaukeXYZ/" target="_blank">
|
||||||
|
${text}
|
||||||
|
</a>
|
||||||
|
</p>`;
|
||||||
|
|
||||||
|
document
|
||||||
|
.querySelector(".page-header")
|
||||||
|
.insertAdjacentHTML("beforeend", listenHtml);
|
||||||
|
}
|
|
@ -1,48 +1,54 @@
|
||||||
#![forbid(unsafe_code)]
|
//! # Bauke 🦖 XYZ
|
||||||
#![warn(missing_docs, clippy::missing_docs_in_private_items)]
|
//!
|
||||||
|
//! > **Bauke's website.**
|
||||||
|
|
||||||
//! # [bauke.xyz](https://bauke.xyz)
|
use std::{
|
||||||
|
fs,
|
||||||
|
path::{Path, PathBuf},
|
||||||
|
};
|
||||||
|
|
||||||
use yew::prelude::*;
|
use color_eyre::{install, Result};
|
||||||
|
|
||||||
/// Components collection.
|
mod copy;
|
||||||
pub(crate) mod components;
|
mod minify;
|
||||||
|
mod scss;
|
||||||
|
mod templates;
|
||||||
|
mod video;
|
||||||
|
|
||||||
use components::{PageFooter, PageHeader, PageMain};
|
fn main() -> Result<()> {
|
||||||
|
install()?;
|
||||||
|
|
||||||
/// The main component.
|
let build_dir = PathBuf::from("target");
|
||||||
pub(crate) struct Model;
|
let public_dir = PathBuf::from("public");
|
||||||
|
let source_dir = PathBuf::from("source");
|
||||||
|
|
||||||
impl Component for Model {
|
build_userstyles(&build_dir)?;
|
||||||
type Message = ();
|
templates::Index::write(&public_dir)?;
|
||||||
type Properties = ();
|
scss::Scss::write(&public_dir, &source_dir)?;
|
||||||
|
copy::Copy::write(&build_dir, &public_dir, &source_dir)?;
|
||||||
|
video::write_all(&public_dir)?;
|
||||||
|
|
||||||
fn create(_props: Self::Properties, _link: ComponentLink<Self>) -> Self {
|
Ok(())
|
||||||
Self
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn update(&mut self, _msg: Self::Message) -> ShouldRender {
|
/// Write the userstyle files to the right place in the build directory.
|
||||||
unimplemented!()
|
fn build_userstyles(build_dir: &Path) -> Result<()> {
|
||||||
}
|
for target in userstyles::ALL_USERSTYLES {
|
||||||
|
let style = userstyles::Userstyle::load(target)?;
|
||||||
|
let style_name = style.metadata.name.to_lowercase().replace(' ', "-");
|
||||||
|
|
||||||
fn change(&mut self, _props: Self::Properties) -> ShouldRender {
|
let style_dir = build_dir.join("userstyles");
|
||||||
false
|
fs::create_dir_all(&style_dir)?;
|
||||||
}
|
|
||||||
|
|
||||||
fn view(&self) -> Html {
|
let style_file = style_dir.join(format!("{}.user.css", style_name));
|
||||||
html! {
|
let formatted = style.format();
|
||||||
<>
|
fs::write(style_file, formatted)?;
|
||||||
<PageHeader />
|
|
||||||
<PageMain />
|
if let Some(image) = style.image {
|
||||||
<PageFooter />
|
let image_file = style_dir.join(format!("{}.png", style_name));
|
||||||
</>
|
fs::write(image_file, image)?;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Our main function.
|
Ok(())
|
||||||
pub(crate) fn main() {
|
|
||||||
wasm_logger::init(wasm_logger::Config::new(log::Level::Debug));
|
|
||||||
log::debug!("Initializing Yew");
|
|
||||||
yew::start_app::<Model>();
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
//! Code for minifying.
|
||||||
|
|
||||||
|
use color_eyre::Result;
|
||||||
|
|
||||||
|
/// Minify HTML using [`minify-html`].
|
||||||
|
pub fn html(data: String) -> Result<String> {
|
||||||
|
let minify_config = minify_html::Cfg {
|
||||||
|
do_not_minify_doctype: true,
|
||||||
|
ensure_spec_compliant_unquoted_attribute_values: true,
|
||||||
|
keep_closing_tags: true,
|
||||||
|
keep_comments: false,
|
||||||
|
keep_html_and_head_opening_tags: true,
|
||||||
|
keep_input_type_text_attr: true,
|
||||||
|
keep_spaces_between_attributes: true,
|
||||||
|
keep_ssi_comments: false,
|
||||||
|
minify_css: false,
|
||||||
|
minify_js: false,
|
||||||
|
preserve_brace_template_syntax: false,
|
||||||
|
preserve_chevron_percent_template_syntax: false,
|
||||||
|
remove_bangs: false,
|
||||||
|
remove_processing_instructions: false,
|
||||||
|
};
|
||||||
|
|
||||||
|
let minified_data = minify_html::minify(&data.into_bytes(), &minify_config);
|
||||||
|
String::from_utf8(minified_data).map_err(Into::into)
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
# Redirect any non-existing files to /
|
||||||
|
/* / 404
|
||||||
|
|
||||||
|
# Other redirects
|
||||||
|
/driftingnebula https://driftingnebula.com
|
||||||
|
/git https://git.bauke.xyz
|
||||||
|
/github https://github.com/Bauke
|
||||||
|
/gitlab https://gitlab.com/Bauke
|
||||||
|
/holllo https://holllo.org
|
||||||
|
/tildes https://tildes.net/user/Bauke
|
|
@ -1,5 +0,0 @@
|
||||||
@mixin responsive-container {
|
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
width: 1000px;
|
|
||||||
}
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
@use "mixins";
|
||||||
|
|
||||||
|
.listenbrainz {
|
||||||
|
align-items: center;
|
||||||
|
background-color: #0002;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: min-content auto;
|
||||||
|
padding: 8px;
|
||||||
|
width: fit-content;
|
||||||
|
|
||||||
|
@media (max-width: mixins.$breakpoint) {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
width: fit-content;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
grid-row: 1 / 3;
|
||||||
|
margin-right: 8px;
|
||||||
|
width: 48px;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,40 +1,7 @@
|
||||||
|
@use "mixins";
|
||||||
|
|
||||||
.page-footer {
|
.page-footer {
|
||||||
@include responsive-container;
|
@include mixins.responsive-container;
|
||||||
margin-top: 1rem;
|
|
||||||
|
|
||||||
.squares {
|
margin-bottom: 2rem;
|
||||||
display: grid;
|
|
||||||
grid-template-columns: min-content repeat(var(--squares, 5), 1fr) min-content;
|
|
||||||
height: 1rem;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
|
|
||||||
button {
|
|
||||||
align-items: center;
|
|
||||||
border: none;
|
|
||||||
display: flex;
|
|
||||||
font-family: monospace;
|
|
||||||
font-size: 1rem;
|
|
||||||
height: 100%;
|
|
||||||
justify-content: center;
|
|
||||||
width: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.square {
|
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
&.active {
|
|
||||||
opacity: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:not(.active) {
|
|
||||||
opacity: 0%;
|
|
||||||
transition: opacity var(--square-transition, 5s);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.technologies {
|
|
||||||
background-color: #333;
|
|
||||||
padding: 1rem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,32 @@
|
||||||
|
@use "mixins";
|
||||||
|
|
||||||
.page-header {
|
.page-header {
|
||||||
@include responsive-container;
|
--anchor-color: #000;
|
||||||
background-color: #333;
|
--anchor-hover: #fff;
|
||||||
margin-top: 1rem;
|
|
||||||
padding: 1rem;
|
background: linear-gradient(to right, #5bc2e7, #b7cf81);
|
||||||
|
height: 256px;
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
@media (max-width: mixins.$breakpoint) {
|
||||||
|
height: 50vh;
|
||||||
|
|
||||||
|
.subtitle {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
border-bottom: 2px dotted;
|
||||||
|
padding-left: 64px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.subtitle {
|
||||||
|
display: flex;
|
||||||
|
gap: 16px;
|
||||||
|
margin-left: 64px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,24 +1,41 @@
|
||||||
|
@use "mixins";
|
||||||
|
|
||||||
.page-main {
|
.page-main {
|
||||||
@include responsive-container;
|
|
||||||
background-color: #333;
|
|
||||||
margin-top: 1rem;
|
|
||||||
padding: 1rem;
|
|
||||||
|
|
||||||
.contact-links {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 1rem;
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
border: 2px solid;
|
align-items: center;
|
||||||
color: #fff;
|
display: flex;
|
||||||
padding: 1rem;
|
height: calc(50vh - 128px);
|
||||||
|
justify-content: center;
|
||||||
|
padding: 64px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
|
@media (max-width: mixins.$breakpoint) {
|
||||||
|
height: 50vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.driftingnebula {
|
||||||
|
background: url("/assets/driftingnebula 2022-03-09.jpeg");
|
||||||
|
background-position: center center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: #fff;
|
filter: hue-rotate(180deg);
|
||||||
color: #000;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.holllo {
|
||||||
|
background: url("/assets/holllo-mark-square-pattern.png");
|
||||||
|
background-color: #1f1731;
|
||||||
|
background-repeat: repeat;
|
||||||
|
background-size: 48px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
filter: grayscale(100%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 256px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,30 +1,49 @@
|
||||||
@import 'reset';
|
@use "reset";
|
||||||
@import 'mixins';
|
|
||||||
|
|
||||||
html {
|
html {
|
||||||
font-size: 62.5%;
|
font-size: 62.5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: #111;
|
--anchor-color: #f0f;
|
||||||
color: #fff;
|
--anchor-hover: #000;
|
||||||
|
|
||||||
|
background-color: #000;
|
||||||
|
color: #000;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #ff0;
|
color: var(--anchor-color);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
text-decoration: 2px dotted underline;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: var(--anchor-color);
|
||||||
|
color: var(--anchor-hover);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:focus {
|
||||||
|
outline: 2px dotted #f0f;
|
||||||
|
}
|
||||||
|
|
||||||
.monospace {
|
.monospace {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
@import 'components/page-footer';
|
.divider {
|
||||||
@import 'components/page-header';
|
border-top: 2px dotted var(--foreground-1);
|
||||||
@import 'components/page-main';
|
margin-bottom: 2rem;
|
||||||
|
margin-top: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@use "components/page-footer";
|
||||||
|
@use "components/page-header";
|
||||||
|
@use "components/page-main";
|
||||||
|
@use "components/listenbrainz";
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
$breakpoint: 900px;
|
||||||
|
|
||||||
|
@mixin responsive-container {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
width: $breakpoint;
|
||||||
|
|
||||||
|
@media (max-width: $breakpoint) {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,39 @@
|
||||||
|
//! Logic for building and writing the SCSS.
|
||||||
|
|
||||||
|
use std::{
|
||||||
|
fs::{create_dir_all, write},
|
||||||
|
path::Path,
|
||||||
|
};
|
||||||
|
|
||||||
|
use color_eyre::Result;
|
||||||
|
use rsass::{
|
||||||
|
compile_scss_path,
|
||||||
|
output::{Format, Style},
|
||||||
|
};
|
||||||
|
|
||||||
|
/// Struct to contain functionality for building the SCSS.
|
||||||
|
pub struct Scss;
|
||||||
|
|
||||||
|
impl Scss {
|
||||||
|
/// Build the SCSS and write the CSS to their respective places.
|
||||||
|
pub fn write(public_dir: &Path, source_dir: &Path) -> Result<()> {
|
||||||
|
let css_dir = public_dir.join("css");
|
||||||
|
create_dir_all(&css_dir)?;
|
||||||
|
|
||||||
|
let scss_dir = source_dir.join("scss");
|
||||||
|
let scss_filenames = vec!["index", "modern-normalize", "video"];
|
||||||
|
|
||||||
|
let format = Format {
|
||||||
|
precision: 5,
|
||||||
|
style: Style::Compressed,
|
||||||
|
};
|
||||||
|
for filename in scss_filenames {
|
||||||
|
let scss_path = scss_dir.join(format!("{}.scss", filename));
|
||||||
|
let css = compile_scss_path(&scss_path, format)?;
|
||||||
|
let css_path = css_dir.join(format!("{}.css", filename));
|
||||||
|
write(css_path, css)?;
|
||||||
|
}
|
||||||
|
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,283 +1 @@
|
||||||
/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
|
@use "../../node_modules/modern-normalize/modern-normalize.css";
|
||||||
|
|
||||||
/*
|
|
||||||
Document
|
|
||||||
========
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
Use a better box model (opinionated).
|
|
||||||
*/
|
|
||||||
|
|
||||||
*,
|
|
||||||
::before,
|
|
||||||
::after {
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
Use a more readable tab size (opinionated).
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
1. Correct the line height in all browsers.
|
|
||||||
2. Prevent adjustments of font size after orientation changes in iOS.
|
|
||||||
*/
|
|
||||||
|
|
||||||
html {
|
|
||||||
-moz-tab-size: 4;
|
|
||||||
tab-size: 4;
|
|
||||||
line-height: 1.15; /* 1 */
|
|
||||||
text-size-adjust: 100%; /* 2 */
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
Sections
|
|
||||||
========
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
Remove the margin in all browsers.
|
|
||||||
*/
|
|
||||||
|
|
||||||
body {
|
|
||||||
font-family: system-ui;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
Grouping content
|
|
||||||
================
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
1. Add the correct height in Firefox.
|
|
||||||
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
|
||||||
*/
|
|
||||||
|
|
||||||
hr {
|
|
||||||
height: 0; /* 1 */
|
|
||||||
color: inherit; /* 2 */
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
Text-level semantics
|
|
||||||
====================
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
Add the correct text decoration in Chrome, Edge, and Safari.
|
|
||||||
*/
|
|
||||||
|
|
||||||
abbr[title] {
|
|
||||||
text-decoration: underline dotted;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
Add the correct font weight in Edge and Safari.
|
|
||||||
*/
|
|
||||||
|
|
||||||
b,
|
|
||||||
strong {
|
|
||||||
font-weight: bolder;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
|
|
||||||
2. Correct the odd 'em' font sizing in all browsers.
|
|
||||||
*/
|
|
||||||
|
|
||||||
code,
|
|
||||||
kbd,
|
|
||||||
samp,
|
|
||||||
pre {
|
|
||||||
font-family:
|
|
||||||
ui-monospace,
|
|
||||||
SFMono-Regular,
|
|
||||||
Consolas,
|
|
||||||
'Liberation Mono',
|
|
||||||
Menlo,
|
|
||||||
monospace; /* 1 */
|
|
||||||
font-size: 1em; /* 2 */
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
Add the correct font size in all browsers.
|
|
||||||
*/
|
|
||||||
|
|
||||||
small {
|
|
||||||
font-size: 80%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
|
|
||||||
*/
|
|
||||||
|
|
||||||
sub,
|
|
||||||
sup {
|
|
||||||
font-size: 75%;
|
|
||||||
line-height: 0;
|
|
||||||
position: relative;
|
|
||||||
vertical-align: baseline;
|
|
||||||
}
|
|
||||||
|
|
||||||
sub {
|
|
||||||
bottom: -0.25em;
|
|
||||||
}
|
|
||||||
|
|
||||||
sup {
|
|
||||||
top: -0.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
Tabular data
|
|
||||||
============
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
|
|
||||||
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
|
||||||
*/
|
|
||||||
|
|
||||||
table {
|
|
||||||
text-indent: 0; /* 1 */
|
|
||||||
border-color: inherit; /* 2 */
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
Forms
|
|
||||||
=====
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
1. Change the font styles in all browsers.
|
|
||||||
2. Remove the margin in Firefox and Safari.
|
|
||||||
*/
|
|
||||||
|
|
||||||
button,
|
|
||||||
input,
|
|
||||||
optgroup,
|
|
||||||
select,
|
|
||||||
textarea {
|
|
||||||
font-family: inherit; /* 1 */
|
|
||||||
font-size: 100%; /* 1 */
|
|
||||||
line-height: 1.15; /* 1 */
|
|
||||||
margin: 0; /* 2 */
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
Remove the inheritance of text transform in Edge and Firefox.
|
|
||||||
1. Remove the inheritance of text transform in Firefox.
|
|
||||||
*/
|
|
||||||
|
|
||||||
button,
|
|
||||||
select { /* 1 */
|
|
||||||
text-transform: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
Correct the inability to style clickable types in iOS and Safari.
|
|
||||||
*/
|
|
||||||
|
|
||||||
button,
|
|
||||||
[type='button'],
|
|
||||||
[type='reset'],
|
|
||||||
[type='submit'] {
|
|
||||||
-webkit-appearance: button;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
Remove the inner border and padding in Firefox.
|
|
||||||
*/
|
|
||||||
|
|
||||||
::-moz-focus-inner {
|
|
||||||
border-style: none;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
Restore the focus styles unset by the previous rule.
|
|
||||||
*/
|
|
||||||
|
|
||||||
:-moz-focusring {
|
|
||||||
outline: 1px dotted ButtonText;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
Remove the additional ':invalid' styles in Firefox.
|
|
||||||
See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
|
|
||||||
*/
|
|
||||||
|
|
||||||
:-moz-ui-invalid {
|
|
||||||
box-shadow: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
|
|
||||||
*/
|
|
||||||
|
|
||||||
legend {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
Add the correct vertical alignment in Chrome and Firefox.
|
|
||||||
*/
|
|
||||||
|
|
||||||
progress {
|
|
||||||
vertical-align: baseline;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
Correct the cursor style of increment and decrement buttons in Safari.
|
|
||||||
*/
|
|
||||||
|
|
||||||
::-webkit-inner-spin-button,
|
|
||||||
::-webkit-outer-spin-button {
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
1. Correct the odd appearance in Chrome and Safari.
|
|
||||||
2. Correct the outline style in Safari.
|
|
||||||
*/
|
|
||||||
|
|
||||||
[type='search'] {
|
|
||||||
-webkit-appearance: textfield; /* 1 */
|
|
||||||
outline-offset: -2px; /* 2 */
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
Remove the inner padding in Chrome and Safari on macOS.
|
|
||||||
*/
|
|
||||||
|
|
||||||
::-webkit-search-decoration {
|
|
||||||
-webkit-appearance: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
1. Correct the inability to style clickable types in iOS and Safari.
|
|
||||||
2. Change font properties to 'inherit' in Safari.
|
|
||||||
*/
|
|
||||||
|
|
||||||
::-webkit-file-upload-button {
|
|
||||||
-webkit-appearance: button; /* 1 */
|
|
||||||
font: inherit; /* 2 */
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
Interactive
|
|
||||||
===========
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
Add the correct display in Chrome and Safari.
|
|
||||||
*/
|
|
||||||
|
|
||||||
summary {
|
|
||||||
display: list-item;
|
|
||||||
}
|
|
||||||
|
|
|
@ -0,0 +1,64 @@
|
||||||
|
@use "mixins";
|
||||||
|
@use "reset";
|
||||||
|
|
||||||
|
body {
|
||||||
|
// Colors.
|
||||||
|
--foreground: #f1ebff;
|
||||||
|
--background: #1f003e;
|
||||||
|
--anchor: #89c3ff;
|
||||||
|
|
||||||
|
// Spacing constants.
|
||||||
|
--spacing-small: 8px;
|
||||||
|
--spacing-medium: 16px;
|
||||||
|
--spacing-large: 32px;
|
||||||
|
|
||||||
|
background-color: var(--background);
|
||||||
|
color: var(--foreground);
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: var(--anchor);
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
list-style-type: square;
|
||||||
|
margin-left: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
iframe,
|
||||||
|
h2 {
|
||||||
|
margin-top: var(--spacing-large);
|
||||||
|
}
|
||||||
|
|
||||||
|
iframe {
|
||||||
|
aspect-ratio: 16 / 9;
|
||||||
|
border: 2px dashed;
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: var(--spacing-large);
|
||||||
|
max-width: 1280px;
|
||||||
|
padding: var(--spacing-small);
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-header {
|
||||||
|
border-bottom: 2px dashed;
|
||||||
|
padding: var(--spacing-medium);
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
@include mixins.responsive-container;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-main {
|
||||||
|
@include mixins.responsive-container;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timestamp-link {
|
||||||
|
font-family: monospace;
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<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="/assets/avatar.jpg" type="image/jpeg">
|
||||||
|
<link rel="stylesheet" href="/css/modern-normalize.css">
|
||||||
|
{% block head %}{% endblock %}
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
{% block body %}{% endblock %}
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
|
@ -0,0 +1,9 @@
|
||||||
|
<h2>Mods</h2>
|
||||||
|
<ul>
|
||||||
|
{% for mod_id in mods %}
|
||||||
|
{% let (mod_link, mod_title) = mod_id|drg_mod %}
|
||||||
|
<li>
|
||||||
|
<a href="{{ mod_link }}" target="_blank">{{ mod_title }}</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
|
@ -0,0 +1,32 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block head %}
|
||||||
|
<link rel="stylesheet" href="/css/index.css">
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
<header class="page-header">
|
||||||
|
<h1>Bauke</h1>
|
||||||
|
|
||||||
|
<p class="subtitle">
|
||||||
|
<a href="mailto:me@bauke.xyz" title="me@bauke.xyz">
|
||||||
|
Email
|
||||||
|
</a>
|
||||||
|
<a href="https://git.bauke.xyz/explore/repos">
|
||||||
|
Software
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="page-main">
|
||||||
|
<a class="driftingnebula" href="https://driftingnebula.com">
|
||||||
|
<img alt="driftingnebula" src="/assets/driftingnebula.png">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class="holllo" href="https://holllo.org">
|
||||||
|
<img alt="Holllo" src="/assets/holllo-text.png">
|
||||||
|
</a>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script src="/js/listenbrainz.js"></script>
|
||||||
|
{% endblock %}
|
|
@ -0,0 +1,33 @@
|
||||||
|
//! The main [`askama`] templates.
|
||||||
|
|
||||||
|
use std::{
|
||||||
|
fs::{create_dir_all, write},
|
||||||
|
path::Path,
|
||||||
|
};
|
||||||
|
|
||||||
|
use askama::Template;
|
||||||
|
use color_eyre::Result;
|
||||||
|
|
||||||
|
/// The template for the home page.
|
||||||
|
#[derive(Debug, Template)]
|
||||||
|
#[template(path = "index.html")]
|
||||||
|
pub struct Index {
|
||||||
|
/// The text for the `<title>` element.
|
||||||
|
pub page_title: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Index {
|
||||||
|
/// Build, minify and write the template.
|
||||||
|
pub fn write(public_dir: &Path) -> Result<()> {
|
||||||
|
let destination = public_dir.join("index.html");
|
||||||
|
create_dir_all(destination.parent().unwrap())?;
|
||||||
|
|
||||||
|
let template = Self {
|
||||||
|
page_title: "Bauke".to_string(),
|
||||||
|
};
|
||||||
|
|
||||||
|
write(destination, crate::minify::html(template.render()?)?)?;
|
||||||
|
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,62 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block head %}
|
||||||
|
<link rel="stylesheet" href="/css/video.css">
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
<header class="page-header">
|
||||||
|
<h1>{{ page_title }}</h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="page-main">
|
||||||
|
{{ rendered_markdown|safe }}
|
||||||
|
|
||||||
|
{% if let Some(speedrun) = speedrun %}
|
||||||
|
<h2>Speedrun</h2>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="{{ speedrun.entry }}" target="_blank">Entry</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{{ speedrun.leaderboard }}" target="_blank">Leaderboard</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
{% if let Some(mods) = speedrun.mods %}
|
||||||
|
{% include "drg-mods.html" %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if let Some(chapters) = speedrun.chapters %}
|
||||||
|
<h2>Chapters</h2>
|
||||||
|
<ul>
|
||||||
|
{% for (timestamp, text) in chapters %}
|
||||||
|
<li>
|
||||||
|
<p>
|
||||||
|
<a
|
||||||
|
class="timestamp-link"
|
||||||
|
href="https://youtu.be/{{ video_id }}?t={{ timestamp|timestamp_to_seconds }}"
|
||||||
|
target="_blank"
|
||||||
|
>{{ timestamp }}</a>
|
||||||
|
{{ text }}
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if let Some(drg) = drg %}
|
||||||
|
{% if let Some(mods) = drg.mods %}
|
||||||
|
{% include "drg-mods.html" %}
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<iframe
|
||||||
|
src="https://www.youtube-nocookie.com/embed/{{ video_id }}"
|
||||||
|
title="Embedded YouTube video player"
|
||||||
|
frameborder="0"
|
||||||
|
allowfullscreen>
|
||||||
|
</iframe>
|
||||||
|
</main>
|
||||||
|
{% endblock %}
|
|
@ -0,0 +1,18 @@
|
||||||
|
---toml
|
||||||
|
id = "Ip5J1LTd8Gk"
|
||||||
|
page_title = "Solo Industrial Sabotage Speedrun (13:30)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/y6nn9kqz"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Industrial_Sabotage?h=SOLO_RUNS"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Start"],
|
||||||
|
["00:51", "Power Station 1"],
|
||||||
|
["05:07", "Power Station 2"],
|
||||||
|
["10:34", "Caretaker"],
|
||||||
|
["12:47", "Extraction"],
|
||||||
|
["14:22", "Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "VjU-Id4gs18"
|
||||||
|
page_title = "Hazard 5 Solo Mining Expedition Speedrun (200 Morkite, 4:49)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/m7ww3x0z"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Mining_Expedition_%7C_200_Morkite?h=SOLO_HAZARD_5"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:46", "Mission Start"],
|
||||||
|
["05:36", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,18 @@
|
||||||
|
---toml
|
||||||
|
id = "m6Yah6GyW-g"
|
||||||
|
page_title = "Solo Industrial Sabotage Speedrun (11:52)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/zn77e1lm"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Industrial_Sabotage?h=SOLO_RUNS"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Start"],
|
||||||
|
["00:55", "Power Station 1"],
|
||||||
|
["04:53", "Power Station 2"],
|
||||||
|
["08:57", "Caretaker"],
|
||||||
|
["11:05", "Extraction"],
|
||||||
|
["12:47", "Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "w4oRDd2fybk"
|
||||||
|
page_title = "Hazard 5 Solo Egg Hunt Speedrun (4 Eggs, 2:49)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/z5vvl6nm"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Egg_Hunt_%7C_4_Egg?h=SOLO_HAZARD_5"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:53", "Mission Start"],
|
||||||
|
["03:43", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "Gloz61Dw8x4"
|
||||||
|
page_title = "Hazard 5 Solo On-site Refining Speedrun (8:37)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/y6nnkppz"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/On-Site_Refining?h=SOLO_HAZARD_5"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:40", "Mission Start"],
|
||||||
|
["09:20", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "cMzU0nE1cSo"
|
||||||
|
page_title = "Hazard 5 Solo Escort Duty Speedrun (13:14)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/ydwwkl0m"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Escort_Duty_%7C_1-Stop?h=SOLO_HAZARD_5"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:46", "Mission Start"],
|
||||||
|
["14:01", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "8xUq2JO9ETc"
|
||||||
|
page_title = "Hazard 5 Solo Elimination Speedrun (6:25)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/z5v27nem"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Elimination_%7C_2_Dreadnoughts?h=SOLO_HAZARD_5 "
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:50", "Mission Start"],
|
||||||
|
["07:16", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "tfOMqvli_Pg"
|
||||||
|
page_title = "Solo Salvage Operation Speedrun (8:01)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/mej3410y"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Salvage_%7C_3_Mules?h=SOLO_RUNS"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["01:00", "Mission Start"],
|
||||||
|
["09:01", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "vUhm3UoTf78"
|
||||||
|
page_title = "Solo Escort Duty Speedrun (11:18)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/zp296w8y"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Escort_Duty_%7C_1-Stop?h=SOLO_RUNS"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:44", "Mission Start"],
|
||||||
|
["11:59", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "hc_PwibsZRI"
|
||||||
|
page_title = "Solo Elimination Speedrun (2:51)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/mej3r92y"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Elimination_%7C_2_Dreadnoughts?h=SOLO_RUNS"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:46", "Mission Start"],
|
||||||
|
["03:37", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "qTGumEaVE3g"
|
||||||
|
page_title = "Solo On-site Refining Speedrun (6:06)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/m7wxwwez"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/On-Site_Refining?h=SOLO_RUNS"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:49", "Mission Start"],
|
||||||
|
["06:55", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,19 @@
|
||||||
|
---toml
|
||||||
|
id = "0kW5RVGAYno"
|
||||||
|
page_title = "Solo All Missions Speedrun (34:41)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/zq09j2ry"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/full_game?h=All_missions_Solo"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:54", "Salvage Operation (2 Mules)"],
|
||||||
|
["10:23", "Egg Hunt (6 Eggs)"],
|
||||||
|
["14:32", "Point Extraction (7 Aquarqs)"],
|
||||||
|
["21:41", "Mining Expedition (225 Morkite)"],
|
||||||
|
["30:10", "Elimination (2 Dreadnoughts)"],
|
||||||
|
["35:35", "Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "SgyWLeUPDeE"
|
||||||
|
page_title = "Solo Industrial Sabotage Speedrun (10:53)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/z12g7ojy"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Industrial_Sabotage?h=SOLO_RUNS"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:56", "Mission Start"],
|
||||||
|
["11:50", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,19 @@
|
||||||
|
---toml
|
||||||
|
id = "InqqFwV0jWI"
|
||||||
|
page_title = "Co-op Industrial Sabotage Speedrun (7:17)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/mked6k3m"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Industrial_Sabotage?h=COOP_RUNS"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:52", "Mission Start"],
|
||||||
|
["08:09", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
||||||
|
|
||||||
|
## Featuring
|
||||||
|
|
||||||
|
- [Nxiety](https://www.youtube.com/channel/UCi1bh6yImZVLSFo4rlrt2NQ)
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "z-G49AcwgB8"
|
||||||
|
page_title = "Hazard 5 Solo Industrial Sabotage Speedrun (19:59)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/yjx864gz"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Industrial_Sabotage?h=SOLO_HAZARD_5"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["01:16", "Mission Start"],
|
||||||
|
["21:17", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "jSCZ14mZI9s"
|
||||||
|
page_title = "Solo Egg Hunt Speedrun (4 Eggs, 1:31)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/mr6o6lgm"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Egg_Hunt_%7C_4_Egg?h=SOLO_RUNS"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:44", "Mission Start"],
|
||||||
|
["02:15", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "RlvDM3_lPc0"
|
||||||
|
page_title = "Hazard 5 Solo Point Extraction Speedrun (7:13)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/z5vekl5m"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Point_Extraction_%7C_10_AquarQ?h=SOLO_HAZARD_5"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:59", "Mission Start"],
|
||||||
|
["08:12", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "YCjH0GvytBc"
|
||||||
|
page_title = "Solo Industrial Sabotage Speedrun (9:47)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/ylenwn3z"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Industrial_Sabotage?h=SOLO_RUNS"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:46", "Mission Start"],
|
||||||
|
["10:32", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "r-_QyaigSgg"
|
||||||
|
page_title = "Solo Salvage Operation Speedrun (7:56)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/z5ve6kgm"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Salvage_%7C_3_Mules?h=SOLO_RUNS"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["01:05", "Mission Start"],
|
||||||
|
["09:01", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "36vWJjwL_ho"
|
||||||
|
page_title = "Solo Point Extraction Speedrun (4:41)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/zgd20enz"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Point_Extraction_%7C_10_AquarQ?h=SOLO_RUNS"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:59", "Mission Start"],
|
||||||
|
["05:41", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "gr6UD4Ud_WI"
|
||||||
|
page_title = "Hazard 5 Solo Egg Hunt Speedrun (8 Eggs, 7:36)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/zxlnrn8z"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Egg_Hunt_%7C_8_Egg?h=SOLO_HAZARD_5"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading"],
|
||||||
|
["00:52", "Start"],
|
||||||
|
["08:28", "Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "4o2xfNnIktk"
|
||||||
|
page_title = "Hazard 5 Solo Salvage Operation Speedrun (13:37)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/yvq8k8em"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Salvage_%7C_3_Mules?h=SOLO_HAZARD_5"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading"],
|
||||||
|
["00:56", "Start"],
|
||||||
|
["14:33", "Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "8oyxCcJ8yEU"
|
||||||
|
page_title = "Hazard 5 Solo Salvage Operation Speedrun (11:06)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/y6n27qjz"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Salvage_%7C_3_Mules?h=SOLO_HAZARD_5"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading"],
|
||||||
|
["00:45", "Start"],
|
||||||
|
["11:53", "Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "8uqrfl4WBvQ"
|
||||||
|
page_title = "Hazard 5 Solo Mining Expedition Speedrun (325 Morkite, 7:09)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/y48o913m"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Mining_Expedition_%7C_325_Morkite?h=SOLO_HAZARD_5"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading"],
|
||||||
|
["00:56", "Start"],
|
||||||
|
["08:07", "Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "PqFr-qAA58Q"
|
||||||
|
page_title = "Solo Industrial Sabotage Speedrun (8:34)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/ywjrxr0z"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Industrial_Sabotage?h=SOLO_RUNS"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading"],
|
||||||
|
["00:58", "Start"],
|
||||||
|
["09:33", "Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "L7EQ_O4Q3zE"
|
||||||
|
page_title = "Hazard 5 Solo Mining Expedition Speedrun (200 Morkite, 4:09)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/m7w0o0ez"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Mining_Expedition_%7C_200_Morkite?h=SOLO_HAZARD_5"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:43", "Mission Start"],
|
||||||
|
["04:53", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "diKBY6D8XQg"
|
||||||
|
page_title = "Hazard 5 Solo Point Extraction Speedrun (5:48)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/yvqvg4om"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Point_Extraction_%7C_10_AquarQ?h=SOLO_HAZARD_5"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:45", "Mission Start"],
|
||||||
|
["06:34", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "o7r8UV8isHc"
|
||||||
|
page_title = "Hazard 5 Solo Escort Duty Speedrun (12:22)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/zq0dkxxy"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Escort_Duty_%7C_1-Stop?h=SOLO_HAZARD_5"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:53", "Mission Start"],
|
||||||
|
["13:16", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "yAFgpw-YSe8"
|
||||||
|
page_title = "Hazard 5 Solo Salvage Operation Speedrun (9:57)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/mr62e07m"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Salvage_%7C_3_Mules?h=SOLO_HAZARD_5"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:46", "Mission Start"],
|
||||||
|
["10:44", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "1rQoSxwLklw"
|
||||||
|
page_title = "Hazard 5 Solo Mining Expedition Speedrun (200 Morkite, 3:16)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/yjxw5xdz"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Mining_Expedition_%7C_200_Morkite?h=SOLO_HAZARD_5"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:43", "Mission Start"],
|
||||||
|
["03:59", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "Yn8LB4sXpJw"
|
||||||
|
page_title = "Solo On-site Refining Speedrun (5:47)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/ylelnvkz"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/On-Site_Refining?h=SOLO_RUNS"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:48", "Mission Start"],
|
||||||
|
["06:36", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "bp83fj0lGtk"
|
||||||
|
page_title = "Solo Egg Hunt Speedrun (8 Eggs, 3:34)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/ylelxekz"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Egg_Hunt_%7C_8_Egg"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["01:01", "Mission Start"],
|
||||||
|
["03:34", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "57E-cUobZkg"
|
||||||
|
page_title = "Solo Escort Duty Speedrun (10:56)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/m36kj7wm"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Escort_Duty_%7C_1-Stop"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:48", "Mission Start"],
|
||||||
|
["11:45", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "sxZ85FSbQeo"
|
||||||
|
page_title = "Hazard 5 Solo On-site Refining Speedrun (7:37)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/mr6v8d2m"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/On-Site_Refining?h=SOLO_HAZARD_5"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:56", "Mission Start"],
|
||||||
|
["08:33", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "ZgTm21GpfYE"
|
||||||
|
page_title = "Hazard 5 Solo Elimination Speedrun (5:40)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/z5v81wgm"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Elimination_%7C_2_Dreadnoughts?h=SOLO_HAZARD_5"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:59", "Mission Start"],
|
||||||
|
["06:40", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "6t05P9bgjQU"
|
||||||
|
page_title = "Hazard 5 Solo Egg Hunt Speedrun (4 Eggs, 2:39)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/yled5xrz"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Egg_Hunt_%7C_4_Egg?h=SOLO_HAZARD_5"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["00:50", "Mission Start"],
|
||||||
|
["03:29", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,15 @@
|
||||||
|
---toml
|
||||||
|
id = "UShJaRrBhVY"
|
||||||
|
page_title = "Solo Elimination Speedrun (2:29)"
|
||||||
|
tags = ["Deep Rock Galactic", "Speedrun"]
|
||||||
|
|
||||||
|
[speedrun]
|
||||||
|
entry = "https://www.speedrun.com/deep_rock_galactic/run/z5v84lnm"
|
||||||
|
leaderboard = "https://www.speedrun.com/deep_rock_galactic/level/Elimination_%7C_2_Dreadnoughts?h=SOLO_RUNS"
|
||||||
|
chapters = [
|
||||||
|
["00:00", "Loading In"],
|
||||||
|
["01:05", "Mission Start"],
|
||||||
|
["03:35", "Mission Finish"],
|
||||||
|
]
|
||||||
|
mods = ["drglib", "simplemissiontimer"]
|
||||||
|
---
|
|
@ -0,0 +1,16 @@
|
||||||
|
---toml
|
||||||
|
id = "_9xtYCGWtn4"
|
||||||
|
page_title = "No HUD Hazard 5 Mining Expedition"
|
||||||
|
tags = ["Deep Rock Galactic", "No HUD"]
|
||||||
|
|
||||||
|
[drg]
|
||||||
|
mods = ["brighter-objects"]
|
||||||
|
---
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
Trying something new with Deep Rock Galactic: playing without the HUD. Can't see how much health I have, how far off I'm from completing the mission objective, the terrain scanner no longer works and even where the drop pod will land is a mystery.
|
||||||
|
|
||||||
|
## Build
|
||||||
|
|
||||||
|
The build I used is available on [Karl.gg](https://karl.gg/preview/21636#/). Try it out yourself!
|
|
@ -0,0 +1,27 @@
|
||||||
|
//! Custom filters for [`askama`] templates.
|
||||||
|
|
||||||
|
/// Get the DRG mod link and title from a given ID.
|
||||||
|
pub fn drg_mod(mod_id: &str) -> askama::Result<(String, &str)> {
|
||||||
|
let mods = std::collections::HashMap::<_, _>::from_iter([
|
||||||
|
("brighter-objects", "Brighter Objects"),
|
||||||
|
("drglib", "DRGLib"),
|
||||||
|
("simplemissiontimer", "SimpleMissionTimer"),
|
||||||
|
]);
|
||||||
|
|
||||||
|
let mod_title = mods.get(mod_id).unwrap();
|
||||||
|
Ok((format!("https://drg.mod.io/{mod_id}"), mod_title))
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Turn a timestamp with format `mm:ss` into its total seconds.
|
||||||
|
///
|
||||||
|
/// ## Examples
|
||||||
|
///
|
||||||
|
/// - `00:30` -> 30 seconds
|
||||||
|
/// - `01:00` -> 60 seconds
|
||||||
|
/// - `01:30` -> 90 seconds
|
||||||
|
pub fn timestamp_to_seconds(timestamp: &str) -> askama::Result<i32> {
|
||||||
|
let mut split = timestamp.split(':');
|
||||||
|
let minutes = split.next().map(str::parse::<i32>).unwrap().unwrap();
|
||||||
|
let seconds = split.next().map(str::parse::<i32>).unwrap().unwrap();
|
||||||
|
Ok(minutes * 60 + seconds)
|
||||||
|
}
|
|
@ -0,0 +1,138 @@
|
||||||
|
//! Templates, data structures and logic for the video pages.
|
||||||
|
|
||||||
|
use std::{fs, path::Path};
|
||||||
|
|
||||||
|
use {
|
||||||
|
askama::Template,
|
||||||
|
color_eyre::{eyre::eyre, Result},
|
||||||
|
serde::Deserialize,
|
||||||
|
};
|
||||||
|
|
||||||
|
mod filters;
|
||||||
|
|
||||||
|
/// The template for videos.
|
||||||
|
#[derive(Debug, Template)]
|
||||||
|
#[template(path = "video.html")]
|
||||||
|
pub struct VideoTemplate {
|
||||||
|
/// Deep Rock Galactic data.
|
||||||
|
pub drg: Option<DeepRockGalacticData>,
|
||||||
|
|
||||||
|
/// The title of the page.
|
||||||
|
pub page_title: String,
|
||||||
|
|
||||||
|
/// Markdown rendered by [`comrak`].
|
||||||
|
pub rendered_markdown: String,
|
||||||
|
|
||||||
|
/// Data for a speedrun video.
|
||||||
|
pub speedrun: Option<SpeedrunData>,
|
||||||
|
|
||||||
|
/// The YouTube video ID.
|
||||||
|
pub video_id: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
/// The frontmatter data for a video.
|
||||||
|
#[derive(Debug, Deserialize)]
|
||||||
|
pub struct VideoData {
|
||||||
|
/// Deep Rock Galactic data.
|
||||||
|
pub drg: Option<DeepRockGalacticData>,
|
||||||
|
|
||||||
|
/// The YouTube video ID.
|
||||||
|
pub id: String,
|
||||||
|
|
||||||
|
/// The title of the page.
|
||||||
|
pub page_title: String,
|
||||||
|
|
||||||
|
/// Data for a speedrun video.
|
||||||
|
pub speedrun: Option<SpeedrunData>,
|
||||||
|
|
||||||
|
/// Tags for the video.
|
||||||
|
#[serde(default)]
|
||||||
|
pub tags: Vec<String>,
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Data for speedrun videos.
|
||||||
|
#[derive(Debug, Deserialize)]
|
||||||
|
pub struct SpeedrunData {
|
||||||
|
/// Video chapters as with timestamps and chapter titles.
|
||||||
|
pub chapters: Option<Vec<(String, String)>>,
|
||||||
|
|
||||||
|
/// A link to the entry for this specific speedrun.
|
||||||
|
pub entry: String,
|
||||||
|
|
||||||
|
/// A link to the leaderboard for this speedrun's category.
|
||||||
|
pub leaderboard: String,
|
||||||
|
|
||||||
|
/// Deep Rock Galactic mods used in the run.
|
||||||
|
pub mods: Option<Vec<String>>,
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Additional data for Deep Rock Galactic videos.
|
||||||
|
#[derive(Debug, Deserialize)]
|
||||||
|
pub struct DeepRockGalacticData {
|
||||||
|
/// Deep Rock Galactic mods used in the run.
|
||||||
|
pub mods: Option<Vec<String>>,
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Compile and write all the found videos to their respective locations.
|
||||||
|
pub fn write_all(public_dir: &Path) -> Result<()> {
|
||||||
|
let video_datas = {
|
||||||
|
let mut data = vec![];
|
||||||
|
|
||||||
|
for dir in ["2022", "2023"] {
|
||||||
|
for file in fs::read_dir(format!("source/video/{dir}"))? {
|
||||||
|
let file_path = file?.path();
|
||||||
|
if file_path.extension().unwrap() != "md" {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
let file_contents = fs::read_to_string(&file_path)?;
|
||||||
|
let (video_data, markdown) =
|
||||||
|
match toml_frontmatter::parse::<VideoData>(&file_contents) {
|
||||||
|
Ok(parsed) => parsed,
|
||||||
|
Err(error) => {
|
||||||
|
println!("{:?} {}", file_path.file_name().unwrap(), error);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
data.push((video_data, markdown.to_string()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
data
|
||||||
|
};
|
||||||
|
|
||||||
|
let video_dir = public_dir.join("v");
|
||||||
|
let expected_video_count = video_datas.len();
|
||||||
|
|
||||||
|
for (video_data, markdown) in video_datas {
|
||||||
|
let video_dir = video_dir.join(&video_data.id.to_lowercase());
|
||||||
|
fs::create_dir_all(&video_dir)?;
|
||||||
|
|
||||||
|
let template = VideoTemplate {
|
||||||
|
drg: video_data.drg,
|
||||||
|
page_title: video_data.page_title,
|
||||||
|
rendered_markdown: comrak::markdown_to_html(
|
||||||
|
&markdown,
|
||||||
|
&Default::default(),
|
||||||
|
),
|
||||||
|
speedrun: video_data.speedrun,
|
||||||
|
video_id: video_data.id,
|
||||||
|
};
|
||||||
|
|
||||||
|
fs::write(
|
||||||
|
video_dir.join("index.html"),
|
||||||
|
crate::minify::html(template.render()?)?,
|
||||||
|
)?;
|
||||||
|
}
|
||||||
|
|
||||||
|
let actual_video_count = fs::read_dir(video_dir)?.count();
|
||||||
|
if expected_video_count != actual_video_count {
|
||||||
|
return Err(eyre!(
|
||||||
|
"Expected {} videos, found {}",
|
||||||
|
expected_video_count,
|
||||||
|
actual_video_count
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
Ok(())
|
||||||
|
}
|
Loading…
Reference in New Issue