diff --git a/Cargo.lock b/Cargo.lock index ef4eeb2..8b3be7d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9,6 +9,7 @@ dependencies = [ "askama", "axum", "tokio", + "tower-http", ] [[package]] @@ -182,6 +183,12 @@ version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" +[[package]] +name = "futures-sink" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893" + [[package]] name = "futures-task" version = "0.3.32" @@ -233,6 +240,12 @@ dependencies = [ "pin-project-lite", ] +[[package]] +name = "http-range-header" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9171a2ea8a68358193d15dd5d70c1c10a2afc3e7e4c5bc92bc9f025cebd7359c" + [[package]] name = "httparse" version = "1.10.1" @@ -326,6 +339,16 @@ version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" +[[package]] +name = "mime_guess" +version = "2.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" +dependencies = [ + "mime", + "unicase", +] + [[package]] name = "mio" version = "1.1.1" @@ -571,6 +594,19 @@ dependencies = [ "syn", ] +[[package]] +name = "tokio-util" +version = "0.7.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + [[package]] name = "tower" version = "0.5.3" @@ -587,6 +623,32 @@ dependencies = [ "tracing", ] +[[package]] +name = "tower-http" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8" +dependencies = [ + "bitflags", + "bytes", + "futures-core", + "futures-util", + "http", + "http-body", + "http-body-util", + "http-range-header", + "httpdate", + "mime", + "mime_guess", + "percent-encoding", + "pin-project-lite", + "tokio", + "tokio-util", + "tower-layer", + "tower-service", + "tracing", +] + [[package]] name = "tower-layer" version = "0.3.3" @@ -619,6 +681,12 @@ dependencies = [ "once_cell", ] +[[package]] +name = "unicase" +version = "2.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbc4bc3a9f746d862c45cb89d705aa10f187bb96c76001afab07a0d35ce60142" + [[package]] name = "unicode-ident" version = "1.0.24" diff --git a/Cargo.toml b/Cargo.toml index cd56e5e..1d23c15 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,3 +7,4 @@ edition = "2024" askama = { version = "0.15.4", features = ["std", "derive"] } axum = "0.8.8" tokio = { version = "1.50.0", features = ["full"] } +tower-http = { version = "0.6.8", features = ["fs"] } diff --git a/src/main.rs b/src/main.rs index e7a11a9..5f93eee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,14 @@ -fn main() { - println!("Hello, world!"); +use axum::{Router, routing::get}; +use tower_http::services::ServeDir; + +#[tokio::main] +async fn main() { + let app = Router::new() + .route("/", get(|| async { "Hello World" })) + .nest_service("/static", ServeDir::new("static")); + + let listener = tokio::net::TcpListener::bind("0.0.0.0:7122") + .await + .expect("Failed to bind to port 7122"); + axum::serve(listener, app).await.expect("Server error"); } diff --git a/static/audio/startup.mp3 b/static/audio/startup.mp3 new file mode 100644 index 0000000..763e7ff Binary files /dev/null and b/static/audio/startup.mp3 differ diff --git a/static/badges/88x31computer.gif b/static/badges/88x31computer.gif new file mode 100644 index 0000000..0b43d5a Binary files /dev/null and b/static/badges/88x31computer.gif differ diff --git a/static/badges/cssisawesome.webp b/static/badges/cssisawesome.webp new file mode 100644 index 0000000..5ad96e0 Binary files /dev/null and b/static/badges/cssisawesome.webp differ diff --git a/static/badges/kirby.gif b/static/badges/kirby.gif new file mode 100644 index 0000000..e0e40b7 Binary files /dev/null and b/static/badges/kirby.gif differ diff --git a/static/badges/pink.gif b/static/badges/pink.gif new file mode 100644 index 0000000..17ac655 Binary files /dev/null and b/static/badges/pink.gif differ diff --git a/static/badges/queer.webp b/static/badges/queer.webp new file mode 100644 index 0000000..aa0b0e3 Binary files /dev/null and b/static/badges/queer.webp differ diff --git a/static/badges/skywardsword.webp b/static/badges/skywardsword.webp new file mode 100644 index 0000000..60d247b Binary files /dev/null and b/static/badges/skywardsword.webp differ diff --git a/static/badges/trans.gif b/static/badges/trans.gif new file mode 100644 index 0000000..4ca680e Binary files /dev/null and b/static/badges/trans.gif differ diff --git a/static/badges/transrightsnow.webp b/static/badges/transrightsnow.webp new file mode 100644 index 0000000..997a741 Binary files /dev/null and b/static/badges/transrightsnow.webp differ diff --git a/static/gifs/aboutme.gif b/static/gifs/aboutme.gif new file mode 100644 index 0000000..3dd8ac9 Binary files /dev/null and b/static/gifs/aboutme.gif differ diff --git a/static/gifs/abstract.gif b/static/gifs/abstract.gif new file mode 100644 index 0000000..b1e7882 Binary files /dev/null and b/static/gifs/abstract.gif differ diff --git a/static/gifs/areasofinterest.gif b/static/gifs/areasofinterest.gif new file mode 100644 index 0000000..19d8a66 Binary files /dev/null and b/static/gifs/areasofinterest.gif differ diff --git a/static/gifs/decoration1.gif b/static/gifs/decoration1.gif new file mode 100644 index 0000000..8605f28 Binary files /dev/null and b/static/gifs/decoration1.gif differ diff --git a/static/gifs/divider2.gif b/static/gifs/divider2.gif new file mode 100644 index 0000000..ed9d7d0 Binary files /dev/null and b/static/gifs/divider2.gif differ diff --git a/static/gifs/globe.gif b/static/gifs/globe.gif new file mode 100644 index 0000000..7cec009 Binary files /dev/null and b/static/gifs/globe.gif differ diff --git a/static/gifs/literatureabout.gif b/static/gifs/literatureabout.gif new file mode 100644 index 0000000..f7b0c7c Binary files /dev/null and b/static/gifs/literatureabout.gif differ diff --git a/static/gifs/music.gif b/static/gifs/music.gif new file mode 100644 index 0000000..6587526 Binary files /dev/null and b/static/gifs/music.gif differ diff --git a/static/gifs/musicabout.gif b/static/gifs/musicabout.gif new file mode 100644 index 0000000..6505dc0 Binary files /dev/null and b/static/gifs/musicabout.gif differ diff --git a/static/gifs/otherabout.gif b/static/gifs/otherabout.gif new file mode 100644 index 0000000..2992302 Binary files /dev/null and b/static/gifs/otherabout.gif differ diff --git a/static/gifs/pcgif.gif b/static/gifs/pcgif.gif new file mode 100644 index 0000000..f7dc149 Binary files /dev/null and b/static/gifs/pcgif.gif differ diff --git a/static/gifs/projects.gif b/static/gifs/projects.gif new file mode 100644 index 0000000..b55a696 Binary files /dev/null and b/static/gifs/projects.gif differ diff --git a/static/gifs/tekken.gif b/static/gifs/tekken.gif new file mode 100644 index 0000000..db21cc4 Binary files /dev/null and b/static/gifs/tekken.gif differ diff --git a/static/gifs/title.gif b/static/gifs/title.gif new file mode 100644 index 0000000..d55dd7e Binary files /dev/null and b/static/gifs/title.gif differ diff --git a/static/gifs/updates.gif b/static/gifs/updates.gif new file mode 100644 index 0000000..12c682c Binary files /dev/null and b/static/gifs/updates.gif differ diff --git a/static/gifs/vgabout.gif b/static/gifs/vgabout.gif new file mode 100644 index 0000000..7c68794 Binary files /dev/null and b/static/gifs/vgabout.gif differ diff --git a/static/gifs/wtfis.gif b/static/gifs/wtfis.gif new file mode 100644 index 0000000..5c5c081 Binary files /dev/null and b/static/gifs/wtfis.gif differ diff --git a/static/icons/github.webp b/static/icons/github.webp new file mode 100644 index 0000000..d6095c8 Binary files /dev/null and b/static/icons/github.webp differ diff --git a/static/icons/insta.webp b/static/icons/insta.webp new file mode 100644 index 0000000..5296f40 Binary files /dev/null and b/static/icons/insta.webp differ diff --git a/static/icons/spotify.webp b/static/icons/spotify.webp new file mode 100644 index 0000000..02cec31 Binary files /dev/null and b/static/icons/spotify.webp differ diff --git a/static/images/about.webp b/static/images/about.webp new file mode 100644 index 0000000..ab64b78 Binary files /dev/null and b/static/images/about.webp differ diff --git a/static/images/ashen.webp b/static/images/ashen.webp new file mode 100644 index 0000000..f9a6e15 Binary files /dev/null and b/static/images/ashen.webp differ diff --git a/static/images/bibidraw.webp b/static/images/bibidraw.webp new file mode 100644 index 0000000..4816746 Binary files /dev/null and b/static/images/bibidraw.webp differ diff --git a/static/images/bibou.webp b/static/images/bibou.webp new file mode 100644 index 0000000..d5244a8 Binary files /dev/null and b/static/images/bibou.webp differ diff --git a/static/images/bibu2.webp b/static/images/bibu2.webp new file mode 100644 index 0000000..ede66cc Binary files /dev/null and b/static/images/bibu2.webp differ diff --git a/static/images/boubou.webp b/static/images/boubou.webp new file mode 100644 index 0000000..7eaeb09 Binary files /dev/null and b/static/images/boubou.webp differ diff --git a/static/images/boubouille.webp b/static/images/boubouille.webp new file mode 100644 index 0000000..3378b35 Binary files /dev/null and b/static/images/boubouille.webp differ diff --git a/static/images/cornerbl.webp b/static/images/cornerbl.webp new file mode 100644 index 0000000..00b2749 Binary files /dev/null and b/static/images/cornerbl.webp differ diff --git a/static/images/cornerbr.webp b/static/images/cornerbr.webp new file mode 100644 index 0000000..f2cfaba Binary files /dev/null and b/static/images/cornerbr.webp differ diff --git a/static/images/cornertl.webp b/static/images/cornertl.webp new file mode 100644 index 0000000..7cc3d4c Binary files /dev/null and b/static/images/cornertl.webp differ diff --git a/static/images/cornertr.webp b/static/images/cornertr.webp new file mode 100644 index 0000000..b7193c6 Binary files /dev/null and b/static/images/cornertr.webp differ diff --git a/static/images/dev.webp b/static/images/dev.webp new file mode 100644 index 0000000..fa2719a Binary files /dev/null and b/static/images/dev.webp differ diff --git a/static/images/leuf.webp b/static/images/leuf.webp new file mode 100644 index 0000000..3b338fc Binary files /dev/null and b/static/images/leuf.webp differ diff --git a/static/images/life.webp b/static/images/life.webp new file mode 100644 index 0000000..9d045fe Binary files /dev/null and b/static/images/life.webp differ diff --git a/static/images/music.webp b/static/images/music.webp new file mode 100644 index 0000000..f6d7faa Binary files /dev/null and b/static/images/music.webp differ diff --git a/static/images/pfp.webp b/static/images/pfp.webp new file mode 100644 index 0000000..84dcd23 Binary files /dev/null and b/static/images/pfp.webp differ diff --git a/static/images/rapla.webp b/static/images/rapla.webp new file mode 100644 index 0000000..7783387 Binary files /dev/null and b/static/images/rapla.webp differ diff --git a/static/images/savall.webp b/static/images/savall.webp new file mode 100644 index 0000000..6dc9310 Binary files /dev/null and b/static/images/savall.webp differ diff --git a/static/images/tiledbgpink.webp b/static/images/tiledbgpink.webp new file mode 100644 index 0000000..437a197 Binary files /dev/null and b/static/images/tiledbgpink.webp differ diff --git a/static/images/welcome.webp b/static/images/welcome.webp new file mode 100644 index 0000000..fdc3dfc Binary files /dev/null and b/static/images/welcome.webp differ diff --git a/static/music/DAWN.mp3 b/static/music/DAWN.mp3 new file mode 100644 index 0000000..fdb611e Binary files /dev/null and b/static/music/DAWN.mp3 differ diff --git a/static/music/carcer.mp3 b/static/music/carcer.mp3 new file mode 100644 index 0000000..072e84b Binary files /dev/null and b/static/music/carcer.mp3 differ diff --git a/static/music/dark.mp3 b/static/music/dark.mp3 new file mode 100644 index 0000000..849c611 Binary files /dev/null and b/static/music/dark.mp3 differ diff --git a/static/music/elevator.mp3 b/static/music/elevator.mp3 new file mode 100644 index 0000000..e0590b6 Binary files /dev/null and b/static/music/elevator.mp3 differ diff --git a/static/music/fading.mp3 b/static/music/fading.mp3 new file mode 100644 index 0000000..6f91a31 Binary files /dev/null and b/static/music/fading.mp3 differ diff --git a/static/music/farewells.mp3 b/static/music/farewells.mp3 new file mode 100644 index 0000000..2b4f9fa Binary files /dev/null and b/static/music/farewells.mp3 differ diff --git a/static/music/hindsight.mp3 b/static/music/hindsight.mp3 new file mode 100644 index 0000000..7482b7c Binary files /dev/null and b/static/music/hindsight.mp3 differ diff --git a/static/music/infinity.mp3 b/static/music/infinity.mp3 new file mode 100644 index 0000000..a368e01 Binary files /dev/null and b/static/music/infinity.mp3 differ diff --git a/static/music/listening.mp3 b/static/music/listening.mp3 new file mode 100644 index 0000000..79d7c6b Binary files /dev/null and b/static/music/listening.mp3 differ diff --git a/static/music/machines.mp3 b/static/music/machines.mp3 new file mode 100644 index 0000000..1d8f71a Binary files /dev/null and b/static/music/machines.mp3 differ diff --git a/static/music/move_on.mp3 b/static/music/move_on.mp3 new file mode 100644 index 0000000..1686d37 Binary files /dev/null and b/static/music/move_on.mp3 differ diff --git a/static/music/perfect_light.mp3 b/static/music/perfect_light.mp3 new file mode 100644 index 0000000..edf088d Binary files /dev/null and b/static/music/perfect_light.mp3 differ diff --git a/static/music/switch.mp3 b/static/music/switch.mp3 new file mode 100644 index 0000000..07b018f Binary files /dev/null and b/static/music/switch.mp3 differ diff --git a/static/music/times.mp3 b/static/music/times.mp3 new file mode 100644 index 0000000..9ed3072 Binary files /dev/null and b/static/music/times.mp3 differ diff --git a/static/music/without.mp3 b/static/music/without.mp3 new file mode 100644 index 0000000..7909fe3 Binary files /dev/null and b/static/music/without.mp3 differ diff --git a/static/videos/about.webm b/static/videos/about.webm new file mode 100644 index 0000000..0018aaf Binary files /dev/null and b/static/videos/about.webm differ diff --git a/static/videos/dev.webm b/static/videos/dev.webm new file mode 100644 index 0000000..8998579 Binary files /dev/null and b/static/videos/dev.webm differ diff --git a/static/videos/dev2.webm b/static/videos/dev2.webm new file mode 100644 index 0000000..e05a4f7 Binary files /dev/null and b/static/videos/dev2.webm differ diff --git a/static/videos/landing.webm b/static/videos/landing.webm new file mode 100644 index 0000000..0a9fc56 Binary files /dev/null and b/static/videos/landing.webm differ diff --git a/static/videos/music.webm b/static/videos/music.webm new file mode 100644 index 0000000..0476403 Binary files /dev/null and b/static/videos/music.webm differ