From 34281d91a9717ac98a8c522f9d1477a242b311b0 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 12 Jun 2023 22:03:57 -0400 Subject: [PATCH] Misc changes --- content/_index.md | 3 + content/blog/_index.md | 4 +- content/blog/drawing-simple-cubes/index.md | 17 +++++ content/music.md | 4 +- content/software/_index.md | 6 ++ data/recent-changes.json | 5 ++ themes/red/assets/css/site.css | 55 +++++++++++++--- themes/red/layouts/_default/art.html | 62 ++++++++++--------- themes/red/layouts/_default/software.html | 23 ++++--- .../layouts/shortcodes/recent-changes.html | 10 +++ 10 files changed, 139 insertions(+), 50 deletions(-) create mode 100644 content/blog/drawing-simple-cubes/index.md create mode 100644 data/recent-changes.json create mode 100644 themes/red/layouts/shortcodes/recent-changes.html diff --git a/content/_index.md b/content/_index.md index 36dfd4c..534f032 100644 --- a/content/_index.md +++ b/content/_index.md @@ -18,3 +18,6 @@ Enjoyed what you see? Consider signing the [guestbook]({{< ref "guestbook" >}})! # Recent Blog Posts {{< recent-posts >}} + +# Recent Changes +{{< recent-changes >}} diff --git a/content/blog/_index.md b/content/blog/_index.md index abc350b..b882174 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -7,6 +7,8 @@ aliases: {{< insert-pic "pic-blog.webp" "Blog" >}} -Posts of [Linux](/blog/tags/linux/), [KDE](/blog/tags/kde), personal thoughts and [reviews](/blog/tags/review/). +Rambles and writings usually consisting of [Linux](/blog/tags/linux/), [KDE](/blog/tags/kde), personal thoughts and [reviews](/blog/tags/review/). + +If you're interested, you can follow this blog using [RSS](/blog/index.xml). _Warning_: most of it is mindlessly technical. diff --git a/content/blog/drawing-simple-cubes/index.md b/content/blog/drawing-simple-cubes/index.md new file mode 100644 index 0000000..c823abe --- /dev/null +++ b/content/blog/drawing-simple-cubes/index.md @@ -0,0 +1,17 @@ +--- +title: "Drawing simple cubes" +date: 2023-06-10 +draft: true +summary: "When working on my engine, I wanted to clean up my debug gizmos a bit. The first thing to tackle is drawing bounding boxes!" +tags: +- C++ +--- + +If you are writing graphical tools, one of the most common shapes you draw is boxes. They can represent areas (like the affected area of an environment capture) or a box collision. + +One common problem that I run into, is dealing with these diagonals: + +Of course this is natural due to the way that GPUs work, they work in triangles and when drawing the wireframe of a cube doesn't just draw the edges but everything in-between: + + + diff --git a/content/music.md b/content/music.md index 65e1f67..b563d23 100644 --- a/content/music.md +++ b/content/music.md @@ -4,6 +4,6 @@ layout: "audio-gallery" json: "music" --- -I don't usually make music, but I somehow made enough to warrant it's own page. +I'm really new to the music creation process, but I somehow ended up with enough where I think it warrants it's own page. It's simple beats for now, don't really expect anything special. -Every modern browser supports Opus in an OGG container, except for **Safari**. Sorry Apple users. \ No newline at end of file +_Note_: Every modern browser supports Opus in an OGG container, except for Safari. _Sigh_, sorry Apple users. diff --git a/content/software/_index.md b/content/software/_index.md index de3793e..45c722b 100644 --- a/content/software/_index.md +++ b/content/software/_index.md @@ -4,3 +4,9 @@ aliases: - /projects layout: "software" --- + +During the day I like to program, and at night I... also like to program. If you're reading this page you probably want to know what I'm up to! + +I like working with Qt, C++ but also branching out into Rust and tiny bits of web development (like this website). My primary operating system is +Linux, so making sure things build and run across different operating systems is an interesting challenge. I love working with graphics APIs, +like Vulkan and OpenGL. diff --git a/data/recent-changes.json b/data/recent-changes.json new file mode 100644 index 0000000..3c50086 --- /dev/null +++ b/data/recent-changes.json @@ -0,0 +1,5 @@ +{ + "changes": [ + "2023-06-12: Added a changelog, updated some of the pages stylings. Hello!" + ] +} diff --git a/themes/red/assets/css/site.css b/themes/red/assets/css/site.css index f1193ab..9c3449b 100644 --- a/themes/red/assets/css/site.css +++ b/themes/red/assets/css/site.css @@ -34,12 +34,23 @@ } .grid-sizer, .grid-item { - width: 49%; + width: 32%; } .page-pic { float: right; - margin: 10px; + margin-bottom: 10px; + } + + .art-outer { + display: flex; + flex-direction: row; + } + + .art-inner { + display: flex; + flex-direction: column; + flex-grow: 1; } } @@ -96,6 +107,14 @@ margin-top: 10px; margin-bottom: 10px; } + + .art-outer .gallery-img { + margin-left: auto; + margin-right: auto; + display: block; + margin-top: 10px; + margin-bottom: 10px; + } } body { @@ -273,8 +292,8 @@ figure figcaption { } .grid { - padding-top: 20px; - margin: 0 auto; + padding: 0; + margin: 0; } td { @@ -347,18 +366,21 @@ pre { border: 1px solid gray; border-radius: 3px; - padding: 1em; margin: .5em; - box-shadow: var(--shadow) + box-shadow: var(--shadow); + + display: flex; + flex-direction: column; } .nice-list { + border-top: 1px solid var(--border-color); display: inline; list-style: none; - padding-left: 0; margin-bottom: 0; margin-top: 0; + padding: 0.5em; } .nice-list li { @@ -434,7 +456,6 @@ pre { border: 1px outset black; border-radius: 5px; margin-top: 10px; - margin-bottom: 10px; } .new-banner { @@ -442,8 +463,7 @@ pre { border-radius: 5px; padding: 5px; text-align: center; - margin-bottom: 10px; - width: fit-content; + margin: 10px; } .no-decoration { @@ -467,3 +487,18 @@ model-viewer { width: 200px; height: 200px; } + +.project-header { + margin: 0; + padding: 0.5em; + background-color: var(--background-tertiary); + background-image: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.01) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.01) 50%); + background-size: 24px 24px; + border-bottom: 1px solid var(--border-color); +} + +.project-desc { + padding-left: 0.5em; + padding-right: 0.5em; + flex-grow: 1; +} diff --git a/themes/red/layouts/_default/art.html b/themes/red/layouts/_default/art.html index 8009438..47201c8 100644 --- a/themes/red/layouts/_default/art.html +++ b/themes/red/layouts/_default/art.html @@ -3,40 +3,44 @@
- {{ with resources.Get "pics/pic-gallery.png" }} - Gallery - {{ end }} - {{ $paginator := .Paginate (where .RegularPagesRecursive "Type" "art") }} {{ if eq $paginator.PageNumber 1}} - {{ $alertimg := resources.Get "alert.png" }} - {{ with $.Params.new_banner }} -
{{ . }}
- {{ end }} - -
Contains risque art, so you should probably not view this on a work computer.
- -

Welcome to my art gallery! I have saved my art since 2016, and this site contains the most complete archive of my work.

- -

If you want to see other cool artists and their websites, see the links page.

- -

You can follow me on Mastodon, Pixiv, Newgrounds, or if you like RSS feeds I have an art-only feed!

- -

Featured

- {{ partial "featured-art" . }} - - {{ partial "art-years" . }} - -
- Characters - Tags - Stats - - {{ if $.Params.commissions }} - Commissions +
+
+ {{ $alertimg := resources.Get "alert.png" }} + {{ with $.Params.new_banner }} +
{{ . }}
{{ end }} + +
Contains risque art, so you should probably not view this on a work computer.
+ +

Welcome to my art gallery! I have saved my art since 2016, and this site contains the most complete archive of my work.

+ +

If you want to see other cool artists and their websites, see the links page.

+ +

You can follow me on Mastodon, Pixiv, Newgrounds, or if you like RSS feeds I have an art-only feed!

+ + {{ with resources.Get "pics/pic-gallery.png" }} + Gallery + {{ end }} +
+ +

Featured

+ {{ partial "featured-art" . }} + + {{ partial "art-years" . }} + +
+ Characters + Tags + Stats + + {{ if $.Params.commissions }} + Commissions + {{ end }} +
{{ end }} {{ partial "art-gallery" . }} diff --git a/themes/red/layouts/_default/software.html b/themes/red/layouts/_default/software.html index f78e386..af9e40c 100644 --- a/themes/red/layouts/_default/software.html +++ b/themes/red/layouts/_default/software.html @@ -2,22 +2,22 @@

{{ .Title }}


- {{ .Content }} - {{ with resources.Get "pics/pic-software.webp" }} {{ end }} + {{ .Content }} +

Personal Projects

-

These are projects I made for my own use, but they're all freely licensed!

+

I really like to start projects in my free time (maybe too often). Here's an almost-comprehensive list of them, most of them are freely licensed as well!

{{ range .Data.Pages.ByDate.Reverse }}
- {{ .Title }} +

{{ .Title }}

-

{{ .Summary }}

+

{{ .Summary }}

  • @@ -36,16 +36,16 @@

    Contributions

    -

    This a list of software projects I contributed code to.

    +

    I also do plenty of open-source work, here's a list of some of the projects I contributed to!

    {{ $contrib := (index site.Data "contributions") }}
    {{ range $contrib.contributions }}
    - {{ .name }} +

    {{ .name }}

    -

    {{ .description }}

    +

    {{ .description }}

      {{ if eq .type "kde" }} @@ -71,6 +71,13 @@
    • MRs
    • + {{ else }} +
    • + Commits +
    • +
    • + PRs +
    • {{ end }} {{ end }} {{ end }} diff --git a/themes/red/layouts/shortcodes/recent-changes.html b/themes/red/layouts/shortcodes/recent-changes.html new file mode 100644 index 0000000..8c74f8d --- /dev/null +++ b/themes/red/layouts/shortcodes/recent-changes.html @@ -0,0 +1,10 @@ +
      +
        + {{ $changes := (index site.Data "recent-changes") }} + {{ range $changes.changes }} +
      • +

        {{ . }}

        +
      • + {{ end }} +
      +