From 3f250d4ed3b9d543678280ff4aaa7a93cbf77955 Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Sat, 15 Jul 2023 02:23:31 +0300 Subject: [PATCH] update site --- flake.lock | 8 ++-- flake.nix | 76 +++++++++++++++++++++++++++++++++++++- src/index.md | 22 ++++++----- src/resources/wave-alt.svg | 11 ++++++ src/resources/wave.svg | 10 +++++ 5 files changed, 113 insertions(+), 14 deletions(-) create mode 100644 src/resources/wave-alt.svg create mode 100644 src/resources/wave.svg diff --git a/flake.lock b/flake.lock index 072e4bc..bab58ea 100644 --- a/flake.lock +++ b/flake.lock @@ -6,11 +6,11 @@ "parts": "parts" }, "locked": { - "lastModified": 1680758443, - "narHash": "sha256-MDokBU3VJbCHRDkgU2OzyuVlJcsaeIjVo7UTlFIBfHw=", + "lastModified": 1689376761, + "narHash": "sha256-T3UBWQAqmMmsIpgNySzxlbel9UjREGQJPJDyGY8BUWQ=", "ref": "refs/heads/master", - "rev": "3df7d11df595477a496df07086da693714cd7ffc", - "revCount": 70, + "rev": "1f8450f6e4c42e2fd6204df95e513531001733b3", + "revCount": 71, "type": "git", "url": "https://git.gaze.systems/dusk/html.nix.git" }, diff --git a/flake.nix b/flake.nix index 389741e..a3f7cce 100644 --- a/flake.nix +++ b/flake.nix @@ -31,6 +31,10 @@ "posts" = "A listing of posts published on the website."; "_exporting_ssh_key_from_gpg" = "Instructions explaining how to export SSH keys from GPG."; }; + footerContent = '' +
+
+ ''; }; templater = ctx: l.pipe ctx [ @@ -38,7 +42,77 @@ (ctx: l.recursiveUpdate ctx { site."resources"."icon.png" = ./src/resources/icon.png; - }) + site."resources"."wave.svg" = ./src/resources/wave.svg; + site."resources"."wavealt.svg" = ./src/resources/wave-alt.svg; + site."site.css" = '' + ${ctx.site."site.css"} + + .bg-svg, .bg-svg-fg { + position: absolute; + bottom: 0; + left: 0; + width: 100vw; + + background-size: cover; + background-repeat: repeat-x; + } + + .bg-svg { + z-index: -2; + height: 50vh; + + background-image: url(resources/wave.svg); + + animation: move-svg 200s linear infinite; + } + + .bg-svg-fg { + z-index: -1; + height: 40vh; + + background-image: url(resources/wavealt.svg); + + animation: move-svg 100s linear infinite reverse; + } + + @keyframes move-svg { + 0% { + background-position: 0 0; + } + + 50% { + background-position: 100vw 0; + } + + 100% { + background-position: 200vw 0; + } + } + + body { + background: #3d1f7a; + color: #fff; + } + + a { + color: #007fff; + } + + a.novisited:visited { + color: #007fff; + } + + a:visited { + color: #bf40bf; + } + + pre,code { + background: #333; + color: #fff; + } + ''; + } + ) ]; }; dev = html-nix.mkServeFromSite (site true); diff --git a/src/index.md b/src/index.md index f84ba53..1340e1c 100644 --- a/src/index.md +++ b/src/index.md @@ -1,20 +1,24 @@ + + # About -Hi, I'm dusk (aka yusdacra)! This is where I post about stuff. -Feel free to send an e-mail or DM me on Matrix if you have anything to ask. +Hi, I'm dusk, a software engineer and aspiring game developer. +Feel free to send an e-mail or DM me on Matrix / Discord if you have anything to ask. + Contact: - Matrix: [@dusk:gaze.systems](https://matrix.to/#/@dusk:gaze.systems) + - Discord: yusdacra - E-Mail: y.bera003.06@pm.me - - GitHub: - - Gitea: ## Bio -I love using Nix / NixOS for any kind of purpose, but mainly for DevOps. -I also use Rust and Zig for my hobby or other more serious projects. +I love using Nix / NixOS for anything. +I like developing with Rust and Zig for my hobby or work projects. -I work at [Platonic Systems](https://platonic.systems). +I love playing (and making) video games. Also a massive Splatoon nerd. -+ I use a NixOS system, you can [find my configuration here](https://git.gaze.systems/dusk/ark). -+ [This site's source is available here](https://git.gaze.systems/dusk/website). +###### [This site's source is available here](https://git.gaze.systems/dusk/website). diff --git a/src/resources/wave-alt.svg b/src/resources/wave-alt.svg new file mode 100644 index 0000000..a0ccefa --- /dev/null +++ b/src/resources/wave-alt.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/resources/wave.svg b/src/resources/wave.svg new file mode 100644 index 0000000..f19c85e --- /dev/null +++ b/src/resources/wave.svg @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file