From 681cd8c1cc2904c562f9a58db3cbb657d58fb552 Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 16 May 2023 03:53:24 -0400 Subject: feat: rewrite with astro --- src/_includes/components/footer.njk | 6 - src/_includes/components/headerbar.njk | 9 -- src/_includes/components/postlist.njk | 17 --- src/_includes/layouts/base.njk | 17 --- src/_includes/layouts/index.njk | 193 ------------------------------ src/_includes/layouts/page.njk | 7 -- src/blog/index.njk | 8 -- src/blog/posts/2023-03-17_test.md | 9 -- src/blog/posts/2023-04-21_nix-lib.md | 172 --------------------------- src/blog/posts/_data.yaml | 2 - src/components/Head.astro | 11 ++ src/components/Nav.astro | 29 +++++ src/components/PostList.astro | 15 +++ src/env.d.ts | 1 + src/favicon.ico | Bin 15406 -> 0 bytes src/files/chris.webp | Bin 1950 -> 0 bytes src/files/getchoo-modpack.zip | Bin 91883 -> 0 bytes src/files/rickroll.mp4 | Bin 20247438 -> 0 bytes src/files/server-icon.png | Bin 18746 -> 0 bytes src/guzzle.sass | 96 --------------- src/imgs/chris/bkender_bauob.jpg | Bin 7404 -> 0 bytes src/imgs/chris/blurry_chris.jpg | Bin 14954 -> 0 bytes src/imgs/chris/chis_very_fried.jpg | Bin 7966 -> 0 bytes src/imgs/chris/chris_medium_fried.jpg | Bin 7272 -> 0 bytes src/imgs/chris/chris_moshed.jpg | Bin 51242 -> 0 bytes src/imgs/chris/fried_publisher.jpg | Bin 2727 -> 0 bytes src/imgs/chris/help_me.png | Bin 10678 -> 0 bytes src/imgs/chris/nice_chris.png | Bin 157488 -> 0 bytes src/imgs/chris/nice_publisher.png | Bin 98501 -> 0 bytes src/imgs/construction.png | Bin 118352 -> 0 bytes src/imgs/gifs/acab.gif | Bin 8785 -> 0 bytes src/imgs/gifs/anybrowser.gif | Bin 1286 -> 0 bytes src/imgs/gifs/arnold.gif | Bin 5046 -> 0 bytes src/imgs/gifs/bob.gif | Bin 142993 -> 0 bytes src/imgs/gifs/capitalism.gif | Bin 253 -> 0 bytes src/imgs/gifs/chris.gif | Bin 2279 -> 0 bytes src/imgs/gifs/counterstrike.gif | Bin 5023 -> 0 bytes src/imgs/gifs/explorer.gif | Bin 10877 -> 0 bytes src/imgs/gifs/free.gif | Bin 622 -> 0 bytes src/imgs/gifs/gimp.gif | Bin 2602 -> 0 bytes src/imgs/gifs/gnu-linux.gif | Bin 550 -> 0 bytes src/imgs/gifs/imagine.gif | Bin 9865 -> 0 bytes src/imgs/gifs/jsfree.gif | Bin 1695 -> 0 bytes src/imgs/gifs/kmelon.gif | Bin 2964 -> 0 bytes src/imgs/gifs/legalize.gif | Bin 7182 -> 0 bytes src/imgs/gifs/moz.gif | Bin 2864 -> 0 bytes src/imgs/gifs/obras.gif | Bin 5497 -> 0 bytes src/imgs/gifs/poweredbyfedora.gif | Bin 2314 -> 0 bytes src/imgs/gifs/poweredbynix.svg | 187 ------------------------------ src/imgs/gifs/pride.gif | Bin 17783 -> 0 bytes src/imgs/gifs/steam.gif | Bin 2750 -> 0 bytes src/imgs/gifs/tired.gif | Bin 899 -> 0 bytes src/imgs/gifs/vi.gif | Bin 761 -> 0 bytes src/imgs/gifs/web3.gif | Bin 483 -> 0 bytes src/imgs/gifs/weezer.gif | Bin 24883 -> 0 bytes src/index.md | 16 --- src/js/chrisApp.js | 23 ---- src/layouts/Base.astro | 18 +++ src/layouts/Blogpost.astro | 8 ++ src/layouts/Index.astro | 206 +++++++++++++++++++++++++++++++++ src/layouts/Page.astro | 12 ++ src/lul.njk | 11 -- src/pages/blog/index.astro | 10 ++ src/pages/blog/posts/nix-lib.md | 173 +++++++++++++++++++++++++++ src/pages/index.astro | 27 +++++ src/pages/lul.astro | 13 +++ src/styles/global.sass | 52 +++++++++ 67 files changed, 575 insertions(+), 773 deletions(-) delete mode 100644 src/_includes/components/footer.njk delete mode 100644 src/_includes/components/headerbar.njk delete mode 100644 src/_includes/components/postlist.njk delete mode 100644 src/_includes/layouts/base.njk delete mode 100644 src/_includes/layouts/index.njk delete mode 100644 src/_includes/layouts/page.njk delete mode 100644 src/blog/index.njk delete mode 100644 src/blog/posts/2023-03-17_test.md delete mode 100644 src/blog/posts/2023-04-21_nix-lib.md delete mode 100644 src/blog/posts/_data.yaml create mode 100644 src/components/Head.astro create mode 100644 src/components/Nav.astro create mode 100644 src/components/PostList.astro create mode 100644 src/env.d.ts delete mode 100644 src/favicon.ico delete mode 100644 src/files/chris.webp delete mode 100644 src/files/getchoo-modpack.zip delete mode 100644 src/files/rickroll.mp4 delete mode 100644 src/files/server-icon.png delete mode 100644 src/guzzle.sass delete mode 100644 src/imgs/chris/bkender_bauob.jpg delete mode 100644 src/imgs/chris/blurry_chris.jpg delete mode 100644 src/imgs/chris/chis_very_fried.jpg delete mode 100644 src/imgs/chris/chris_medium_fried.jpg delete mode 100644 src/imgs/chris/chris_moshed.jpg delete mode 100644 src/imgs/chris/fried_publisher.jpg delete mode 100644 src/imgs/chris/help_me.png delete mode 100644 src/imgs/chris/nice_chris.png delete mode 100644 src/imgs/chris/nice_publisher.png delete mode 100644 src/imgs/construction.png delete mode 100644 src/imgs/gifs/acab.gif delete mode 100644 src/imgs/gifs/anybrowser.gif delete mode 100644 src/imgs/gifs/arnold.gif delete mode 100644 src/imgs/gifs/bob.gif delete mode 100644 src/imgs/gifs/capitalism.gif delete mode 100644 src/imgs/gifs/chris.gif delete mode 100644 src/imgs/gifs/counterstrike.gif delete mode 100644 src/imgs/gifs/explorer.gif delete mode 100644 src/imgs/gifs/free.gif delete mode 100644 src/imgs/gifs/gimp.gif delete mode 100644 src/imgs/gifs/gnu-linux.gif delete mode 100644 src/imgs/gifs/imagine.gif delete mode 100644 src/imgs/gifs/jsfree.gif delete mode 100644 src/imgs/gifs/kmelon.gif delete mode 100644 src/imgs/gifs/legalize.gif delete mode 100644 src/imgs/gifs/moz.gif delete mode 100644 src/imgs/gifs/obras.gif delete mode 100644 src/imgs/gifs/poweredbyfedora.gif delete mode 100755 src/imgs/gifs/poweredbynix.svg delete mode 100644 src/imgs/gifs/pride.gif delete mode 100644 src/imgs/gifs/steam.gif delete mode 100644 src/imgs/gifs/tired.gif delete mode 100644 src/imgs/gifs/vi.gif delete mode 100644 src/imgs/gifs/web3.gif delete mode 100644 src/imgs/gifs/weezer.gif delete mode 100644 src/index.md delete mode 100644 src/js/chrisApp.js create mode 100644 src/layouts/Base.astro create mode 100644 src/layouts/Blogpost.astro create mode 100644 src/layouts/Index.astro create mode 100644 src/layouts/Page.astro delete mode 100644 src/lul.njk create mode 100644 src/pages/blog/index.astro create mode 100644 src/pages/blog/posts/nix-lib.md create mode 100644 src/pages/index.astro create mode 100644 src/pages/lul.astro create mode 100644 src/styles/global.sass (limited to 'src') diff --git a/src/_includes/components/footer.njk b/src/_includes/components/footer.njk deleted file mode 100644 index 2d88e70..0000000 --- a/src/_includes/components/footer.njk +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/src/_includes/components/headerbar.njk b/src/_includes/components/headerbar.njk deleted file mode 100644 index 0edc922..0000000 --- a/src/_includes/components/headerbar.njk +++ /dev/null @@ -1,9 +0,0 @@ -
- -
diff --git a/src/_includes/components/postlist.njk b/src/_includes/components/postlist.njk deleted file mode 100644 index f7d2b95..0000000 --- a/src/_includes/components/postlist.njk +++ /dev/null @@ -1,17 +0,0 @@ -
- -
diff --git a/src/_includes/layouts/base.njk b/src/_includes/layouts/base.njk deleted file mode 100644 index 51f160b..0000000 --- a/src/_includes/layouts/base.njk +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - {{ title }} - - - - - - - {% block headerbar %} {% include "components/headerbar.njk" %} {% - endblock %} {{ content | safe }} {% block footer %} {% include - "components/footer.njk" %} {% endblock %} - - diff --git a/src/_includes/layouts/index.njk b/src/_includes/layouts/index.njk deleted file mode 100644 index b2373e4..0000000 --- a/src/_includes/layouts/index.njk +++ /dev/null @@ -1,193 +0,0 @@ ---- -layout: "layouts/base.njk" ---- - -
-
{{ content | safe }}
-
-
- legalize now! - acab - - - powered by fedora - - let's crush capitalism! -
-
- best viewed with any browser - weezer fan - - play with steam - - made with vi - pride - imagination -
-
- mozilla is cool - completely free software - graphics by gimp - marijuana mind explorer - javascript free - keep the web free! say no to web3! - tired - hey arnold! - powered by bob - counter-strike player - chris troll -
-
-
diff --git a/src/_includes/layouts/page.njk b/src/_includes/layouts/page.njk deleted file mode 100644 index d355024..0000000 --- a/src/_includes/layouts/page.njk +++ /dev/null @@ -1,7 +0,0 @@ ---- -layout: layouts/base.njk ---- - -
-
{{ content | safe }}
-
diff --git a/src/blog/index.njk b/src/blog/index.njk deleted file mode 100644 index 7922a48..0000000 --- a/src/blog/index.njk +++ /dev/null @@ -1,8 +0,0 @@ ---- -layout: "layouts/page.njk" -title: "getchoo's blog" -description: "getchoo's blog posts" ---- - -{% set postList = search.pages("type=posts", "date=desc", 3) %} {% include -"components/postlist.njk" %} diff --git a/src/blog/posts/2023-03-17_test.md b/src/blog/posts/2023-03-17_test.md deleted file mode 100644 index 7d0a029..0000000 --- a/src/blog/posts/2023-03-17_test.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: test post -description: test test -draft: true ---- - -# uwu - -hello diff --git a/src/blog/posts/2023-04-21_nix-lib.md b/src/blog/posts/2023-04-21_nix-lib.md deleted file mode 100644 index fcff599..0000000 --- a/src/blog/posts/2023-04-21_nix-lib.md +++ /dev/null @@ -1,172 +0,0 @@ ---- -title: making an intuitive, modular nix flake configuration -description: an explanation of my journey through making a modular nix flake configuration ---- - -

making an intuitive, modular nix flake configuration

- -
-as some of my friends may know, recently i've gone off the nixos "deep end" so to speak, moving almost all of my systems and projects to it. i have a lot of reasons for this, but i think all of them might be better told in a different post. for this one, i'm going to go over my approach to making nix flake configurations that scale across multiple systems and users -
- -

first things first

- -
-i started out with [nixos on wsl](https://github.com/nix-community/NixOS-WSL) (heresy i know), mainly because i was on my windows partition when i first thought about it, but also because i wasn't really sure if i liked it yet. similar to a lot of nix beginners, i quickly got a bit overwhelmed by options. - -
- -i kept hearing about custom modules, overlays, and this thing called a "flake." after a quick search, i came across [this](https://nixos.wiki/wiki/Flakes) page. "oh cool, a way to manage dependencies!" i thought, but seeing as nixos-wsl was already installed on my system and me not thinking i was ever going to use a lot of libraries, utils, etc. i didn't pay much attention -- that is, until i wanted to try out native systemd support in nixos-wsl. - -
- -

dipping my toe in

- -
-at the time, in order to use native systemd support i needed to follow the `main` branch of nixos-wsl. since i had been interested in flakes, with some friends using them and the name itself being cool, i decided this might be a good time to learn how to use them! - -
- -...it didn't turn out the way i wanted. - -
- -at first, i couldn't even understand the syntax of the inputs or what they were for, and sadly i couldn't find much on the wiki page to help me there. i tried different formats, but eventually i got `git+https://github.com/nix-community/nixos-wsl?ref=main` to work. - -
- -now another issue: i wasn't really sure how modules worked here. some ideas went through my head like "can i pass them to my config somehow and import them there like i did before?", "can i call the input from the arguments of the file?", "maybe i'm supposed to only use the options since it's already in `inputs`?". all of these could be half correct i guess, but far from the best option. i must have done a few dozen rebuilds in a few hours, but eventually i got to a point where things _mostly_ worked. in the end, i put the `nixos-wsl` module and the attrs i used for it in the `modules` argument for `nixosSystem`. that seemed to work - -
- -

enter: pain

- -
-i felt pretty good now. throughout this, i had been moving a lot of the configs for programs to nix -- which was a much better time than gluing things together -- and started considering it as a replacement to my bare git repo of traditional dotfiles. i had also heard of something called home-manager, and with [great instructions](https://nix-community.github.io/home-manager/index.html#sec-flakes-nixos-module) and not a lot of effort, i was able to get that setup and move even more configurations to nix. - -
- -now i realized a problem: i want to start using this on bare metal. i already have a lot of programs and services configured that i would use there too, so how can i share them? - -
- -a quick solution i came up with (and totally didn't take inspiration from my friend [replaycoding](https://github.com/ReplayCoding) with) was making a common folder that i could import files from in the main machine configurations. this would made it trivial for me to share these (basic) configurations across systems, as well as manage all of them in one place. without even realizing it i think this is when i found main benefit of nixos modules: great composability with minimal effort. - -
- -i failed to do at this first, miserably. my configurations became filled with **a lot** of conditionals, entries in `let; in` expressions, and **_hours_** of mysterious `infinite recursion detected` errors. looking back now, this could have been solved with a bit of docs reading (maybe then i would've known you can't use things from `lib` when declaring `imports`), but it was harder for me to find back then, let alone understand. i was basically just writing stuff blind, but somehow -- and i don't know how -- i got it to work. - -
- -i didn't stop here, though. i realized i was repeating a lot of expressions, primarily when declaring the system configurations themselves with `nixosSystem`. this is when the idea of making my own wrappers and utility functions came to mind. i made one called `mkHost`. All it did was take in the system name, modules, system arch, and instance of `pkgs`, but it took me quite a bit of trial and error (like a lot of things so far) due to not understanding how functions were even made. - -
- -> thanks again to replaycoding here for helping me actually import the file containing `mkHost` correctly, i probably would've given up otherwise. - -
- -i was really proud of myself for pulling this off, and i even made some small improvements like concatenating the attrs for each system to `nixosConfigurations`. i was getting somewhere! - -
- -

diving deeper...

- -
- -`mkHost` was awesome, but i still felt like i could improve more for the future. the next step from `mkHost` was `mkUser`, naturally. this was similar: a very basic function giving me slightly less to type and declaring slightly annoying options. i quickly followed this up with `mkHMUser`, which was again similar, and made portable home-manager configurations trivial. - -
- -this was a really good setup so far, but i still felt like i could make it easier. i saw dotfiles from others such as [hlissner's](https://github.com/hlissner/dotfiles) and projects like [digga](https://github.com/divnix/digga) that seemed to also be accomplishing the same goal i had in mine. being the "diy-er" i am, i of course started going through hlissner's first, and being the "nix noob" i was, i didn't understand almost any of it besides the general concept of automatically importing a lot of files. digga was a bit more interesting, and i was able to start using it without many changes to pre-existing config. i had a few problems with it though, but mainly it was the feeling of not knowing everything that's going on in the background, along with the random (non-standard) outputs it would bring to my flake. - -
- -after a bit of experimenting, i tried to combine ideas from both, but with all of my own home-grown tools. out of this came a function i am still using called `mapFilterDir`. things get a bit advanced here so i think a codeblock might be necessary: - -
- -```nix -{ - mapFilterDir = dir: filter: map: let - dirs = filterAttrs filter (readDir dir); - in - mapAttrs map dirs; -} -``` - -
- -for those of you who are not familiar with nix, this function takes in a path to a directory, a function to filter through a list of files from the previously given directory, and a function who's returned value will be assigned to a variable named after each file in the filtered list. it's short and sweet, but can scale pretty well in my experience (though it could probably use a better name :p). - -
- -this, when combined with `mkHost` and `mkHMUser` (i had dropped `mkUser` at this point since i was declaring things manually somewhere else) allowed me to automagically import all host and home-manager configurations in a folder (assuming the host/user was the same as folder of course). this where i really felt like i had done something, and is mostly what i'm still using today - -
- -

enter: happiness and a near completed product

- -
-this is the most recent part of the story, where i started thinking of making these expressions a bit more generalized, as some people i know have shown a bit of interest in nix (hi sake and hisashi). my first idea was to expand everything i had by a lot, maybe even going full `digga` with a `mkFlake` function! quickly though, i realized even that would be a lot of work; but more interestingly, i also realized that it's not what i needed anyways. i looked back at my old attempt at digga and found it was pretty close to what i'm doing now, except my own solutions fit my needs a lot better. sure, i haven't gotten to the level of hlissner's dotfiles yet, but i think what i have right now is good, so why not go after my original goal of only generalizing everything? - -
- -so that's what i did: i planned out exactly what i want, and what others may want too. i didn't want to make expressions that would change how you write a flake, as i think a big part of them is the standardization, both when interacting with them and hacking at them. instead, i only wanted to make things a bit easier, a la [flake-utils](https://github.com/numtide/flake-utils). - -
- -

quick explanation

- -
-the idea i had for these expressions might be a little bit complicated, so i feel a need to explain it here. given a directory structure like so: - -
- -```shell -| - hosts/ -| - default.nix -| - glados/ -| - default.nix -| - flake.nix -| - users/ -| - default.nix -| - seth/ -| - home.nix -| - default.nix -``` - -
- -in `flake.nix`, you can use this: - -
- -```nix -{ - homeConfigurations = forAllSystems (system: mapHMUsers system ./users); - nixosConfiguration = mapHosts ./hosts; -} -``` - -
- -this will collect basic information from the default.nix file in `hosts/` and `users/`, such as the name of the system/user, `pkgs` instance, state version, modules, etc. these values are then put into `mkHost` and `mkHMUser`, where the `default.nix` file is sourced from `hosts/glados`, along with the `home.nix` in `users/seth`. this can scale to any number of users or hosts, given that some attrs are set in the `default.nix` file of the parent folder. the defaults are pretty minimal and extensible, avoiding the feeling of being locked into doing something that i've felt with similar projects. - -
- -in layman's terms: you can declare what actually matters for your system instead of worrying about gluing them all together as flake outputs :) - -
- -

leaping from the depths of `nix repl`

- -
- -surprisingly, very little changes needed to be made to make everything non-specific to my configuration (thanks past me!). by the time i was done, all i really did was add my previous defaults in `mkHost` and `mkUser` to a [common](https://github.com/getchoo/flake/blob/3066f766ece62acd9b9897082dba28be87889dc1/hosts/default.nix#L3) attrset i use for all hosts in `hosts/default.nix`. there are still some [issues](https://github.com/getchoo/nix-exprs/issues/2), but i think i'm on a good path to having a fully complete "product". - -
- -overall, i feel like i have a sustainable and scalable set of expressions, that along with the _actual_ nixos modules i've made, will give me a nice experience for the long term, with no more worrying about `infinite recursion detected` errors. i just hope that maybe my work can do the same for others :) - -
diff --git a/src/blog/posts/_data.yaml b/src/blog/posts/_data.yaml deleted file mode 100644 index 9287093..0000000 --- a/src/blog/posts/_data.yaml +++ /dev/null @@ -1,2 +0,0 @@ -type: posts -layout: layouts/page.njk diff --git a/src/components/Head.astro b/src/components/Head.astro new file mode 100644 index 0000000..6f96984 --- /dev/null +++ b/src/components/Head.astro @@ -0,0 +1,11 @@ +--- +const { title, description } = Astro.props.title; +--- + + + + + {title} + + + diff --git a/src/components/Nav.astro b/src/components/Nav.astro new file mode 100644 index 0000000..d25b180 --- /dev/null +++ b/src/components/Nav.astro @@ -0,0 +1,29 @@ +--- +const links = { + home: "/", + blog: "/blog", + github: "https://github.com/getchoo", +}; +--- + + + + diff --git a/src/components/PostList.astro b/src/components/PostList.astro new file mode 100644 index 0000000..a537e43 --- /dev/null +++ b/src/components/PostList.astro @@ -0,0 +1,15 @@ +--- +const posts = await Astro.glob("../pages/blog/posts/*.md"); +--- + +
+ +
diff --git a/src/env.d.ts b/src/env.d.ts new file mode 100644 index 0000000..f964fe0 --- /dev/null +++ b/src/env.d.ts @@ -0,0 +1 @@ +/// diff --git a/src/favicon.ico b/src/favicon.ico deleted file mode 100644 index 4880f14..0000000 Binary files a/src/favicon.ico and /dev/null differ diff --git a/src/files/chris.webp b/src/files/chris.webp deleted file mode 100644 index d313814..0000000 Binary files a/src/files/chris.webp and /dev/null differ diff --git a/src/files/getchoo-modpack.zip b/src/files/getchoo-modpack.zip deleted file mode 100644 index e5a3839..0000000 Binary files a/src/files/getchoo-modpack.zip and /dev/null differ diff --git a/src/files/rickroll.mp4 b/src/files/rickroll.mp4 deleted file mode 100644 index b988dc4..0000000 Binary files a/src/files/rickroll.mp4 and /dev/null differ diff --git a/src/files/server-icon.png b/src/files/server-icon.png deleted file mode 100644 index 81bd6b7..0000000 Binary files a/src/files/server-icon.png and /dev/null differ diff --git a/src/guzzle.sass b/src/guzzle.sass deleted file mode 100644 index 47aece9..0000000 --- a/src/guzzle.sass +++ /dev/null @@ -1,96 +0,0 @@ -@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;700&display=swap') -@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500&display=swap') -@import "css/highlight.css" - -@tailwind base -@tailwind components -@tailwind utilities -@tailwind variants - -html - font-family: "Noto Sans", sans-serif - -h1 - @apply text-2xl - -h2 - @apply text-xl - -h3 - @apply text-lg - -p,li - @apply text-base - -a - @apply underline - -button - @apply rounded-xl bg-yellow p-2 text-center - -blockquote - @apply bg-surface2 p-2 rounded-xl - p - @apply bg-surface2 text-text - - code - @apply bg-surface2 text-text p-0 - -code - @apply bg-base text-text p-[0.1em] - -body - @apply bg-base p-10 - -footer - @apply text-xs flex items-center justify-center - -.container - @apply bg-lavender - @apply flex flex-auto flex-col - @apply items-center justify-center - @apply w-fit mx-auto - @apply rounded-lg - -.content - @apply inline-block text-center p-5 - img - // this is dumb - @apply mx-auto - -.headerbar - @apply flex flex-col - @apply items-center justify-center - @apply mx-auto rounded p-3 - -#blogpost - h1 - @apply bg-base text-4xl mx-auto p-5 mb-5 mt-5 text-text text-center w-fit - h2 - @apply bg-base text-xl mx-auto p-3 mb-5 mt-5 text-text text-center w-fit - h3 - @apply bg-base text-lg mx-auto p-1 mb-5 mt-5 text-text text-center w-fit - - @apply lg:max-w-6xl text-left items-center - -#blogText - @apply bg-blue rounded-xl p-5 - -#commitText - @apply text-subtext1 p-2 - -#indexHeader - @apply bg-base w-fit h-fit mx-auto rounded p-5 text-text - -#gifs - @apply bg-base - @apply hidden min-[1280px]:flex flex-col gap-2 - @apply text-center items-center justify-center - @apply m-20 mt-0 mb-5 p-10 - @apply rounded-lg drop-shadow-2xl - -#gif - @apply flex gap-2 - -#vidya - @apply flex justify-center p-5 diff --git a/src/imgs/chris/bkender_bauob.jpg b/src/imgs/chris/bkender_bauob.jpg deleted file mode 100644 index aa32641..0000000 Binary files a/src/imgs/chris/bkender_bauob.jpg and /dev/null differ diff --git a/src/imgs/chris/blurry_chris.jpg b/src/imgs/chris/blurry_chris.jpg deleted file mode 100644 index 331ab3e..0000000 Binary files a/src/imgs/chris/blurry_chris.jpg and /dev/null differ diff --git a/src/imgs/chris/chis_very_fried.jpg b/src/imgs/chris/chis_very_fried.jpg deleted file mode 100644 index e5ee71b..0000000 Binary files a/src/imgs/chris/chis_very_fried.jpg and /dev/null differ diff --git a/src/imgs/chris/chris_medium_fried.jpg b/src/imgs/chris/chris_medium_fried.jpg deleted file mode 100644 index b11f978..0000000 Binary files a/src/imgs/chris/chris_medium_fried.jpg and /dev/null differ diff --git a/src/imgs/chris/chris_moshed.jpg b/src/imgs/chris/chris_moshed.jpg deleted file mode 100644 index 6d1c3de..0000000 Binary files a/src/imgs/chris/chris_moshed.jpg and /dev/null differ diff --git a/src/imgs/chris/fried_publisher.jpg b/src/imgs/chris/fried_publisher.jpg deleted file mode 100644 index 0ac6e38..0000000 Binary files a/src/imgs/chris/fried_publisher.jpg and /dev/null differ diff --git a/src/imgs/chris/help_me.png b/src/imgs/chris/help_me.png deleted file mode 100644 index 3ac2f67..0000000 Binary files a/src/imgs/chris/help_me.png and /dev/null differ diff --git a/src/imgs/chris/nice_chris.png b/src/imgs/chris/nice_chris.png deleted file mode 100644 index af64d6a..0000000 Binary files a/src/imgs/chris/nice_chris.png and /dev/null differ diff --git a/src/imgs/chris/nice_publisher.png b/src/imgs/chris/nice_publisher.png deleted file mode 100644 index 759ef51..0000000 Binary files a/src/imgs/chris/nice_publisher.png and /dev/null differ diff --git a/src/imgs/construction.png b/src/imgs/construction.png deleted file mode 100644 index 1c038b0..0000000 Binary files a/src/imgs/construction.png and /dev/null differ diff --git a/src/imgs/gifs/acab.gif b/src/imgs/gifs/acab.gif deleted file mode 100644 index 6f8ccef..0000000 Binary files a/src/imgs/gifs/acab.gif and /dev/null differ diff --git a/src/imgs/gifs/anybrowser.gif b/src/imgs/gifs/anybrowser.gif deleted file mode 100644 index d7c0e0e..0000000 Binary files a/src/imgs/gifs/anybrowser.gif and /dev/null differ diff --git a/src/imgs/gifs/arnold.gif b/src/imgs/gifs/arnold.gif deleted file mode 100644 index 0035988..0000000 Binary files a/src/imgs/gifs/arnold.gif and /dev/null differ diff --git a/src/imgs/gifs/bob.gif b/src/imgs/gifs/bob.gif deleted file mode 100644 index 90b6dd5..0000000 Binary files a/src/imgs/gifs/bob.gif and /dev/null differ diff --git a/src/imgs/gifs/capitalism.gif b/src/imgs/gifs/capitalism.gif deleted file mode 100644 index c4abb60..0000000 Binary files a/src/imgs/gifs/capitalism.gif and /dev/null differ diff --git a/src/imgs/gifs/chris.gif b/src/imgs/gifs/chris.gif deleted file mode 100644 index a2ddbd5..0000000 Binary files a/src/imgs/gifs/chris.gif and /dev/null differ diff --git a/src/imgs/gifs/counterstrike.gif b/src/imgs/gifs/counterstrike.gif deleted file mode 100644 index 612e116..0000000 Binary files a/src/imgs/gifs/counterstrike.gif and /dev/null differ diff --git a/src/imgs/gifs/explorer.gif b/src/imgs/gifs/explorer.gif deleted file mode 100644 index 676ef7d..0000000 Binary files a/src/imgs/gifs/explorer.gif and /dev/null differ diff --git a/src/imgs/gifs/free.gif b/src/imgs/gifs/free.gif deleted file mode 100644 index 6ed18d1..0000000 Binary files a/src/imgs/gifs/free.gif and /dev/null differ diff --git a/src/imgs/gifs/gimp.gif b/src/imgs/gifs/gimp.gif deleted file mode 100644 index 382315e..0000000 Binary files a/src/imgs/gifs/gimp.gif and /dev/null differ diff --git a/src/imgs/gifs/gnu-linux.gif b/src/imgs/gifs/gnu-linux.gif deleted file mode 100644 index 89e3562..0000000 Binary files a/src/imgs/gifs/gnu-linux.gif and /dev/null differ diff --git a/src/imgs/gifs/imagine.gif b/src/imgs/gifs/imagine.gif deleted file mode 100644 index fc9f559..0000000 Binary files a/src/imgs/gifs/imagine.gif and /dev/null differ diff --git a/src/imgs/gifs/jsfree.gif b/src/imgs/gifs/jsfree.gif deleted file mode 100644 index b83040c..0000000 Binary files a/src/imgs/gifs/jsfree.gif and /dev/null differ diff --git a/src/imgs/gifs/kmelon.gif b/src/imgs/gifs/kmelon.gif deleted file mode 100644 index bc95862..0000000 Binary files a/src/imgs/gifs/kmelon.gif and /dev/null differ diff --git a/src/imgs/gifs/legalize.gif b/src/imgs/gifs/legalize.gif deleted file mode 100644 index 071d4d4..0000000 Binary files a/src/imgs/gifs/legalize.gif and /dev/null differ diff --git a/src/imgs/gifs/moz.gif b/src/imgs/gifs/moz.gif deleted file mode 100644 index ad0653a..0000000 Binary files a/src/imgs/gifs/moz.gif and /dev/null differ diff --git a/src/imgs/gifs/obras.gif b/src/imgs/gifs/obras.gif deleted file mode 100644 index 3c8443e..0000000 Binary files a/src/imgs/gifs/obras.gif and /dev/null differ diff --git a/src/imgs/gifs/poweredbyfedora.gif b/src/imgs/gifs/poweredbyfedora.gif deleted file mode 100644 index a632810..0000000 Binary files a/src/imgs/gifs/poweredbyfedora.gif and /dev/null differ diff --git a/src/imgs/gifs/poweredbynix.svg b/src/imgs/gifs/poweredbynix.svg deleted file mode 100755 index 0bc8c80..0000000 --- a/src/imgs/gifs/poweredbynix.svg +++ /dev/null @@ -1,187 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/imgs/gifs/pride.gif b/src/imgs/gifs/pride.gif deleted file mode 100644 index 9a48896..0000000 Binary files a/src/imgs/gifs/pride.gif and /dev/null differ diff --git a/src/imgs/gifs/steam.gif b/src/imgs/gifs/steam.gif deleted file mode 100644 index 1f4fe29..0000000 Binary files a/src/imgs/gifs/steam.gif and /dev/null differ diff --git a/src/imgs/gifs/tired.gif b/src/imgs/gifs/tired.gif deleted file mode 100644 index bf53872..0000000 Binary files a/src/imgs/gifs/tired.gif and /dev/null differ diff --git a/src/imgs/gifs/vi.gif b/src/imgs/gifs/vi.gif deleted file mode 100644 index 9aa8301..0000000 Binary files a/src/imgs/gifs/vi.gif and /dev/null differ diff --git a/src/imgs/gifs/web3.gif b/src/imgs/gifs/web3.gif deleted file mode 100644 index 4f5a2f1..0000000 Binary files a/src/imgs/gifs/web3.gif and /dev/null differ diff --git a/src/imgs/gifs/weezer.gif b/src/imgs/gifs/weezer.gif deleted file mode 100644 index d7fa9d1..0000000 Binary files a/src/imgs/gifs/weezer.gif and /dev/null differ diff --git a/src/index.md b/src/index.md deleted file mode 100644 index 9432d07..0000000 --- a/src/index.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -layout: layouts/index.njk -title: guzzle guzzle -description: getchoo's website ---- - - -

getchoo's website 🦕

- -
- -this is under construction. i'm experimenting with lume - -![construction](/imgs/gifs/obras.gif) - -[click here](/lul/) diff --git a/src/js/chrisApp.js b/src/js/chrisApp.js deleted file mode 100644 index 133b16d..0000000 --- a/src/js/chrisApp.js +++ /dev/null @@ -1,23 +0,0 @@ -const chrisURL = "/imgs/chris/"; - -function randomChris() { - const files = [ - "chis_very_fried.jpg", - "chris_medium_fried.jpg", - "chris_moshed.jpg", - "fried_publisher.jpg", - "help_me.png", - "nice_chris.png", - "nice_publisher.png", - "bkender_bauob.jpg", - "blurry_chris.jpg", - ]; - - // this chooses a random file from the array - const url = chrisURL + files[Math.floor(Math.random() * files.length)]; - - window.location.href = url; -} - -const chris = document.getElementById("chris_gif"); -chris.addEventListener("click", randomChris); diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro new file mode 100644 index 0000000..2e5b480 --- /dev/null +++ b/src/layouts/Base.astro @@ -0,0 +1,18 @@ +--- +import Head from "@components/Head.astro"; +import Nav from "@components/Nav.astro"; +// import Footer from "@components/Footer.astro"; +import "@styles/global.sass"; +const { title, description } = Astro.props; +--- + + + + + + +