Skip to content

Commit 97e94fa

Browse files
authored
Improvements (#5)
* minimize css * Remove some classes * remove unused class * Simplify css * Improve copy button * Refactor styles, copy button * Strip layout * Refactor * Improve tags * Refactor date format * More love and refactoring <3
1 parent 6f88a4b commit 97e94fa

11 files changed

Lines changed: 91 additions & 747 deletions

File tree

src/components/BlogPostCard.astro

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
import { formatDate } from "../utils/dateHelpers";
3+
24
const { post } = Astro.props;
35
---
46

@@ -15,12 +17,7 @@ const { post } = Astro.props;
1517
<div class="meta">
1618
<em>
1719
Published on <time datetime={post.data.publishedAt.toISOString()}>
18-
{
19-
new Date(post.data.publishedAt)
20-
.toLocaleDateString("en-GB")
21-
.split("/")
22-
.join(".")
23-
}
20+
{formatDate(post.data.publishedAt)}
2421
</time>
2522
</em>
2623
</div>

src/components/ProjectCard.astro

Lines changed: 0 additions & 81 deletions
This file was deleted.

src/components/ProjectCardGrid.astro

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ const { project } = Astro.props;
33
---
44

55
<article>
6-
<h3>
7-
<a href={`/projects/${project.slug}`}>
8-
{project.data.name}
9-
</a>
10-
</h3>
6+
<h3>{project.data.name}</h3>
117

128
<p>{project.data.description}</p>
139

src/content/projects/tsmc2.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ heroImage: "/src/assets/projects/ts-mc.webp"
99

1010
This is probably the project I spent most of my free time on. There have been many iterations:
1111

12-
1. Minecraft Clone: Simple infinite terrain, hacky, chaotic code written in JavaScript
13-
2. TSMC: A rewrite of Minecraft Clone in TypeScript, better code structure, functional hotbar, water, sand physics, hacky collisions
14-
3. TMSC2: A more sophisticated codebase in TypeScript, multithreading with Webworkers, custom shaders with GLSL, better defined workflow with Pull Requests, attempt at integrating rust with WASM to improve terrain generation performance.
15-
4. RSMC: A Minecraft clone written entirely in Rust, in a very early stage with focus on Multiplayer and performance.
12+
1. [Minecraft Clone](https://github.com/CuddlyBunion341/minecraft-clone): Simple infinite terrain, hacky, chaotic code written in JavaScript
13+
2. [TS-MC](https://github.com/CuddlyBunion341/ts-mc): A rewrite of Minecraft Clone in TypeScript, better code structure, functional hotbar, water, sand physics, hacky collisions
14+
3. [TSMC2](https://github.com/CuddlyBunion341/tsmc2): A more sophisticated codebase in TypeScript, multithreading with Webworkers, custom shaders with GLSL, better defined workflow with Pull Requests, attempt at integrating rust with WASM to improve terrain generation performance.
15+
4. [RSMC](https://github.com/CuddlyBunion341/rsmc): A Minecraft clone written entirely in Rust, in a very early stage with focus on Multiplayer and performance.
16+
17+
Make sure to check out [the blog post](/blog/exploring-rust) for more details about the rust project.
18+
Also feel free to checkout the pull requests for mind-maps, documentation and demo showcases.

0 commit comments

Comments
 (0)