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) %} +
{{ subtitle }}
;( 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 0000000..e91cc2e Binary files /dev/null and b/assets/mod-placeholder.png differ diff --git a/assets/styles.css b/assets/styles.css index d3a7219..723884a 100644 --- a/assets/styles.css +++ b/assets/styles.css @@ -65,6 +65,10 @@ p, ul { padding-bottom: .6em; } +img { + image-rendering: pixelated; +} + #linksBox { padding: 10px; display: flex; @@ -102,9 +106,6 @@ p, ul { } #featured { - margin-top: 20px; - border: 2px solid greenyellow; - padding: 10px; display: flex; flex-direction: column; } @@ -117,20 +118,19 @@ p, ul { .featuredProject { transition: .2s; - height: fit-content; width: 15%; font-size: smaller; padding: 4px; overflow: hidden; } -.featuredProject:hover { - transition: .2s; - outline: 4px solid gray; +.featuredProjectName { + margin-top: auto; } .featuredProject img { width: 100%; + border: medium solid yellowgreen; } .featuredProject p { @@ -159,11 +159,12 @@ p, ul { padding-top: 20px; gap: 20px; display: flex; - /* text-shadow: 2px 2px gray; */ } #downloadButton { - border: 2px solid gray; + border: none; + background: linear-gradient(yellowgreen, green); + border-radius: 2px; } #downloadLink { diff --git a/eleventy.config.js b/eleventy.config.js index fdbb489..60443c9 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -11,6 +11,11 @@ export default function (eleventyConfig) { eleventyConfig.addPassthroughCopy("authors/**/*.jpg"); eleventyConfig.addPassthroughCopy("authors/**/*.jpeg"); eleventyConfig.addPassthroughCopy("assets"); + + eleventyConfig.addCollection("projects", function(collection) { + return collection.getFilteredByGlob("./projects/**/*.md"); + }); + eleventyConfig.addCollection('searchIndex', (collectionApi) => { 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" ---- - - -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.
-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.
+