From bb218c9c12f3c0a6cb4bda7de72a1524cd56c84c Mon Sep 17 00:00:00 2001 From: tenkuma Date: Sun, 26 Oct 2025 14:18:41 -0300 Subject: [PATCH] Fixed featured projects in home page. --- _includes/featured.njk | 20 ++++++++++++++++++++ _includes/project.njk | 2 +- assets/featured.js | 28 ---------------------------- assets/featured.json | 1 - assets/index.js | 11 ----------- assets/mod-placeholder.png | Bin 0 -> 1904 bytes assets/styles.css | 19 ++++++++++--------- eleventy.config.js | 5 +++++ index.html | 28 ---------------------------- index.njk | 11 +++++++++++ projects/consolehud/index.md | 19 ------------------- 11 files changed, 47 insertions(+), 97 deletions(-) create mode 100644 _includes/featured.njk delete mode 100644 assets/featured.js delete mode 100644 assets/featured.json delete mode 100644 assets/index.js create mode 100644 assets/mod-placeholder.png delete mode 100644 index.html create mode 100644 index.njk delete mode 100644 projects/consolehud/index.md diff --git a/_includes/featured.njk b/_includes/featured.njk new file mode 100644 index 0000000..9a9c950 --- /dev/null +++ b/_includes/featured.njk @@ -0,0 +1,20 @@ +{% macro projectShowcase(projects, c) %} + +{% endmacro %} \ No newline at end of file diff --git a/_includes/project.njk b/_includes/project.njk index 5bb3186..16f557f 100644 --- a/_includes/project.njk +++ b/_includes/project.njk @@ -17,7 +17,7 @@

{{ name }}

-

by {{ author }}

+

by {{ author }}

{{ subtitle }}

diff --git a/assets/featured.js b/assets/featured.js deleted file mode 100644 index 544d6e6..0000000 --- a/assets/featured.js +++ /dev/null @@ -1,28 +0,0 @@ -const featuredHelper = document.querySelector("#featuredHelper"); - -async function getFeaturedJSON() { - const response = await fetch(`/assets/featured.json`); - if (!response.ok) { - featuredHelper.innerHTML = ` -

;( Oopsie! Could not load featured projects...

- ` - throw new Error("Failed to fetch featured projects JSON"); - } - - const data = await response.json(); - - data.forEach(project => { - const featuredDiv = document.createElement("div"); - featuredDiv.classList.add("featuredProject"); - featuredDiv.id = `featured-${project}`; - featuredDiv.innerHTML = ` - - -

${project}

-
- `; - featuredHelper.appendChild(featuredDiv); - }); -} - -getFeaturedJSON(); \ No newline at end of file diff --git a/assets/featured.json b/assets/featured.json deleted file mode 100644 index 8a93067..0000000 --- a/assets/featured.json +++ /dev/null @@ -1 +0,0 @@ -["aboukkit", "ghostsandstuff", "tenkumalib"] \ No newline at end of file diff --git a/assets/index.js b/assets/index.js deleted file mode 100644 index d1f6889..0000000 --- a/assets/index.js +++ /dev/null @@ -1,11 +0,0 @@ -const featuredHelper = document.querySelector("#featuredHelper") - -async function loadFeatured() { - const response = await fetch(`bananas.json`); - if (!response.ok) { - featuredHelper.innerHTML = ` -

Oops! Failed to fetch featured projects...

- ` - throw new Error("Failed to fetch featured projects JSON"); - } -} \ No newline at end of file diff --git a/assets/mod-placeholder.png b/assets/mod-placeholder.png new file mode 100644 index 0000000000000000000000000000000000000000..e91cc2e7a1694004a0e38d605da33429fdf049e0 GIT binary patch literal 1904 zcmeAS@N?(olHy`uVBq!ia0y~yV9)?z4mJh`hMs>rav2!d%{^TlLn2z=&WOzjjuty! zzuR-xr6tSCJb3rMWDgJa?z+_&_-gVU#&{RDDc=IwYBm@gT5=#P|(@oLfd+~VL7`7GqLXYBqPf5e=&Ts;za)1c_r8TkpH*adbA z$b^PYeQ|1&=b>{-vvV(IY`GS}U?IcD)X2bazqIUeft6s8A7eMi$BZ|}Ur$c^nZ@n( zli6v`ReMuk)os7-8?D}Q)ty@wXEH57U*PSbafd&JUc7RU0+l* z$wTE(x48a{S+h2MiLUy~rK!4bpFv)^uv3AE1(yvQUlhYD1Cvna%ON4I8yhZ9owYJT zXHljUFE1}kvtxIR+GNMeCP6DjUY5+NvFktmR7u=P*>IY|9cKUJo2z0;+R3C zz=TOJPHlQvoTgg#<>O=bu<&q68JQ(;6N{?&Ec z{r&mu`SgzKO%Co8-pzY|aLMw6Ns0^I*RNOK?fGZXHm-lq^rnUGnZ=boamu9A)AgAP zo}ZHq3lG1!uh#lu!Hl*xw(dCsP1E(`7tJtFY~GyXXx-rS-7xV-ly1S+X|WuRMl)Fy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;S4({T!*~W5nQ { const result = collectionApi.getAll().map(item => { diff --git a/index.html b/index.html deleted file mode 100644 index 9ff8241..0000000 --- a/index.html +++ /dev/null @@ -1,28 +0,0 @@ ---- -layout: "base.njk" ---- - - -

Welcome.

-

This is a project that aims to preserve Minecraft Beta mods and plugins through archives of documentation and JARs and showcase new plugins for beta.

- \ No newline at end of file diff --git a/index.njk b/index.njk new file mode 100644 index 0000000..f9434b2 --- /dev/null +++ b/index.njk @@ -0,0 +1,11 @@ +--- +layout: "base.njk" +--- + +{% import "featured.njk" as featured %} + +

Welcome.

+

This is a project that aims to preserve Minecraft Beta mods and plugins through archives of documentation and JARs and showcase new plugins for beta.

+

Featured projects

+ +{{ featured.projectShowcase(["aboukkit", "tenkumalib", "hangglidere", "devilwithin", "timekeeper", "tefreezer"], collections.projects) }} \ No newline at end of file diff --git a/projects/consolehud/index.md b/projects/consolehud/index.md deleted file mode 100644 index 2660523..0000000 --- a/projects/consolehud/index.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -name: "Console HUD" -subtitle: "A simple way to add custom commands with custom responses to your server." -author: "LO6AN" -downloadLink: "https://archive.org/details/console-hud-v-1.1/12548478.png" -tags: mod ---- -## Description -This mod is made to replicate the HUD given to you by the console version of the game. It shifts the hotbar upwards and reorients the way lighting is shown on the blocks to make it better match. The controls are not displayed on the bottom, nor are any other interface elements tweaked. This mod does not allow you to play with a controller, for that I recommend using AntiMicro. - -## Classes Edited -- ```uq.class``` (GuiIngame.java) - -## Installation -- Add files to Minecraft.jar - -For MultiMC, this means creating a Beta 1.7.3 Instance, clicking the "Add to Minecraft.jar" button within the Version Window, and selecting the zip for this mod - -For the Vanilla launcher, this means cramming the edited class files from this mod into your Beta 1.7.3 Jar. \ No newline at end of file