Hi, I'm tzainten. I like coding.

United States

DEVELOPMENT INFO

Role: Sole Developer

Development Time: 1 week

Tools:

HTML
CSS
JavaScript
node.js

Source: GitHub

DESCRIPTION

A website built to showcase all of my documented projects.

The Goal

I needed a website that I could link people towards whenever they want to see my capabilities.

I wanted something very simple. I didn't need anything fancy, this shouldn't require an entire pipeline. It just needs to be simple HTML pages.

Figuring It Out

At first, I did try using Blazor, Next.js, and then 11ty before I eventually landed on just writing most of this website myself.

The things I enjoyed about Blazor and Next.js were the ability to write reusable components. But it felt like I had so much overhead just to use 1 simple feature.

I wanted to keep things as simple as possible while writing this website. 11ty was close, but I felt like it wasn't quite the perfect fit for me. Honorable mention though!

What I Ended Up Doing

I wrote a simple node.js script that scans html files in my src folder for #include directives, which allowed me to write reusable HTML code that can be put anywhere.

<!DOCTYPE html>
<html lang="en">

#include "components/head.html"

<body style="visibility: hidden;">
<div class="body-container">
<div class="page-container">

#include "components/masthead.html"

#include "components/breadcrumbs.html"

<div class="projects">
    {projects}
</div>

</div>
</div>

#include "components/footer.html"

</body>
</html>

Then all I have to do is run the script, and it will compile everything into a publish folder. Then, I just upload that to GitHub!

I admit, it's jank, but it's simple to use!

Summary

I really enjoyed making this website! Using razor in s&box equipped me with enough know-how to piece everything together.

I would like to try Blazor or Next.js sometime in the future, so maybe I can come up with a better use case for them!