From 0e82b7e28024635772e84a8326c702b34b42cc61 Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Tue, 26 Sep 2023 09:58:32 -0400 Subject: [PATCH] Refactored project page formatting, made code blocks more readable for all screens. --- projects.html | 40 ++++++++++++++++----------------- styles/article.css | 4 ++++ styles/project.css | 56 +++++++++++++--------------------------------- styles/style.css | 2 +- 4 files changed, 41 insertions(+), 61 deletions(-) diff --git a/projects.html b/projects.html index 8bc822e..05f46ed 100644 --- a/projects.html +++ b/projects.html @@ -39,7 +39,7 @@
-
+

LiteList

An extremely barebones web application to demonstrate the viability of my own HTTP server. It's just your average ToDo list app, with basic JWT-based authentication. @@ -51,9 +51,9 @@ D programming language logo Vue JS framework logo

-
+ -
+

Ace of Shades

A top-down 2D shooter game inspired by Ace of Spades, and was made as a submission the 2021 Java Discord server's Java Jam. Includes a dedicated server, client, and server registry application. @@ -69,9 +69,9 @@

Java programming language logo
-
+ -
+

Ace of Shades 2

A 3D first-person shooter designed as the successor to Ace of Shades. This was again made as a 2022 Java Discord Java Jam submission, but I continued to develop it well beyond that. @@ -80,9 +80,9 @@ Java programming language logo OpenGL API logo

-
+ -
+

Handy-Httpd

An extremely lightweight and flexible HTTP server implemented in the D programming language. Below is an example of a "Hello world" server that just says "Hello" in response to any request. @@ -100,9 +100,9 @@

D programming language logo
-
+ -
+

Movescript & Itemscript

Simple grammars for concisely defining robotic movement and inventory management for ComputerCraft robots in Minecraft. @@ -129,9 +129,9 @@

Lua programming language logo
-
+ -
+

Rail Signal

API and web app for designing and managing rail systems, with real-time data updates via websockets. Originally designed for use with Minecraft and the Immersive Railroading mod, but practically can be used anywhere, as long as you've got the right device driver. @@ -143,9 +143,9 @@ Vue JS framework logo Lua programming language logo

-
+ -
+

SLF4D

A common logging interface for D projects, inspired by Java's SLF4J interfaces, but in an idiomatic D way. Any library can make use of SLF4D, while still letting the application developer decide how log messages are handled. @@ -170,9 +170,9 @@

D programming language logo
-
+ -
+

Streams

A library that defines compile-time primitives and helper functions for working with streams of elements. A stream is anything which provides a readFromStream or writeToStream method. Also includes many stream implementations for things like files, sockets, chunked encoding, buffering, and more. @@ -180,9 +180,9 @@

D programming language logo
-
+ -
+

Record-Net

A Java library for defining common protocol of binary messages to transmit over the network, similar to Protocol Buffers, but for pure Java applications, so it can take advantage of records and avoid code-generation. @@ -190,9 +190,9 @@

Java programming language logo
-
+ -
+

Coyote Credit

A web application for students to learn the basics of real-world stock trading through a simplified user interface and simulated accounts. @@ -201,7 +201,7 @@ Java programming language logo Spring Framework logo

-
+
diff --git a/styles/article.css b/styles/article.css index 483328f..68bc04d 100644 --- a/styles/article.css +++ b/styles/article.css @@ -19,3 +19,7 @@ figure { code { color: var(--code-color); } + +pre { + padding: 0.25em !important; +} diff --git a/styles/project.css b/styles/project.css index 0561878..58de5f0 100644 --- a/styles/project.css +++ b/styles/project.css @@ -1,62 +1,38 @@ -body { - max-width: 100%; -} - -/* This is the container for all cards. */ -main { - display: flex; - flex-direction: row; - flex-wrap: wrap; - justify-content: flex-start; - align-items: stretch; - align-content: flex-start; - gap: 2em 2em; -} - -article { +.project-card { background-color: var(--background-color-2); padding: 0.5em; - width: calc((100% / 3) - 2.4em); - display: flex; - flex-direction: column; + display: inline-block; } -@media(max-width: 1000px) { - article { - width: calc((100% / 2) - 2.4em); - } +.project-card + .project-card { + margin-top: 1em; } -@media(max-width: 480px) { - article { - width: 100%; - } +.project-card > h2 { + margin: 0 0 0.25em 0; } -article:nth-child(odd) { - background-color: var(--background-color-3); +.project-card > h2:hover { + text-decoration: underline; } -article h2 { - margin-top: 0; - margin-bottom: 0.5em; -} - -article p { - margin-top: 0.25em; - margin-bottom: 0.25em; +.project-card > p { + margin: 0.5em 0; } .icons-row { width: 100%; - margin-top: auto; - padding-top: 0.5em; + margin-top: 0.5em; } .lang-icon { - max-height: 2.5em; + max-height: 2em; } .lang-icon:not(:last-child) { margin-right: 0.5em; } + +pre { + padding: 0.25em !important; +} diff --git a/styles/style.css b/styles/style.css index 6187bd1..f29fb51 100644 --- a/styles/style.css +++ b/styles/style.css @@ -24,7 +24,7 @@ body { font-family: "IBM Plex Sans", sans-serif; max-width: 50ch; margin: 0 auto; - padding: 0 1em; + padding: 0 0.5em; padding-bottom: 1em; }