Skip to content

Commit

Permalink
some cool changes
Browse files Browse the repository at this point in the history
- Full-sized website window for a modern look.
- Added transitions to everything.
- Added a new Legacy badge.
- Provided a Hugo executable file like `gradlew` (fixes #33).
- Fixed the single-lined code block on notices to look unreadable in light mode.
- Covered some more IDEs in `.gitignore`.
  • Loading branch information
UltimatChamp committed May 10, 2024
1 parent fd81e7d commit d60f06c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 20 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
public/
.hugo_build.lock
.idea
*.sublime-project
*.sublime-workspace
.vscode/*
5 changes: 4 additions & 1 deletion assets/js/neoforge.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,21 @@ async function loadLatestVersions(minecraftVersions) {
let dropDown_VAL;
let badges_beta;
let badges_new;
let badges_legacy;
if (mcVersion.startsWith("1.20.1")) {
gav = LEGACY_GAV;
fn = "forge";
mcvers = "1.20.1";
badges_new = "";
badges_legacy = `<font class="badges_legacy">LEGACY</font>`;
badges_beta = "";
dropDown_VAL = "";
} else {
gav = FORGE_GAV;
fn = "neoforge";
badges_beta = "";
badges_new = `<font class="badges_new">NEW</font>`;
badges_legacy = "";
dropDown_VAL = ` open="open"`;
}

Expand Down Expand Up @@ -63,7 +66,7 @@ async function loadLatestVersions(minecraftVersions) {

document.querySelector(vs).innerHTML = `
<details${dropDown_VAL}>
<summary class="fileinfo__header">${badges_beta} ${badges_new} NeoForge ${version} for Minecraft ${mcvers}</summary>
<summary class="fileinfo__header">${badges_beta} ${badges_new} ${badges_legacy} NeoForge ${version} for Minecraft ${mcvers}</summary>
<div class="fileinfo__body">
<a href="${installerUrl}"><span class="fileinfo__icon"><i class="bi-file-earmark-zip-fill" style="font-size: 2rem;"></i></span>
<span class="fileinfo__content"><span>Latest <em>NeoForge</em> Installer</span><span>${fn}-${version}-installer.jar</span></span></a>
Expand Down
Binary file added hugo.exe
Binary file not shown.
30 changes: 11 additions & 19 deletions themes/mainroad/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
*::before,
*::after {
box-sizing: border-box;
}

html, body, .container--outer {
height: 100%;
transition: all 0.5s;
}

article,
Expand Down Expand Up @@ -68,15 +65,6 @@ body {
margin: 0 auto;
}

.container--outer {
display: flex;
flex-direction: column;
margin: auto;
width: 80%;
max-width: 1920px;
min-width: 1380px;
}

.wrapper {
padding: 25px;
flex-grow: 1;
Expand Down Expand Up @@ -1135,11 +1123,7 @@ summary:hover {
}

/* Installer Badges */
.badges_beta {
padding: 0 5px;
}

.badges_new {
.badges_beta, .badges_new, .badges_legacy {
padding: 0 5px;
}

Expand Down Expand Up @@ -1350,6 +1334,10 @@ summary:hover {
--color-background: #d5e0df;
--color-badges-beta: #d7742f;
--color-badges-new: #e57;
--color-badges-legacy: #13cace;
--color-border-badges-beta: #dd9460;
--color-border-badges-new: #e2899c;
--color-border-badges-legacy: #4cd2d4;
--color-download: #e68c37;
--color-download-highlight: #e5b04c;
--color-box: #bdc7c7;
Expand All @@ -1360,7 +1348,7 @@ summary:hover {
--color-code: #b12a48;
--color-code-background: #bdc7c7;
--color-code-notice: #e57;
--color-code-notice-background: #bdc7c7;
--color-code-notice-background: #fff;
--color-code-block-background: #2e3135;
--color-footer-text: #aab0b3;
--color-footer-link-text: #bdc7c7;
Expand All @@ -1375,6 +1363,10 @@ summary:hover {
--color-highlight: #d7742f;
--color-badges-beta: #d7742f;
--color-badges-new: #e57;
--color-badges-legacy: #13cace;
--color-border-badges-beta: #875938;
--color-border-badges-new: #8b5460;
--color-border-badges-legacy: #218384;
--color-background: #222427;
--color-download: #d7742f;
--color-download-highlight: #e68c37;
Expand Down
7 changes: 7 additions & 0 deletions themes/mainroad/layouts/partials/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,17 @@ details:hover {
/* Installer Badges */
.badges_beta {
background-color: var(--color-badges-beta);
border: 2px solid var(--color-border-badges-beta);
}

.badges_new {
background-color: var(--color-badges-new);
border: 2px solid var(--color-border-badges-new);
}

.badges_legacy {
background-color: var(--color-badges-legacy);
border: 2px solid var(--color-border-badges-legacy);
}

/* News Section */
Expand Down

1 comment on commit d60f06c

@neoforged-pages-deployments
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploying with Cloudflare Pages

Name Result
Last commit: d60f06c706c03f0ad87eceb14311c01e132a30e7
Status: ✅ Deploy successful!
Preview URL: https://d6ecef26.neoforged-website-previews.pages.dev
PR Preview URL: https://pr-34.neoforged-website-previews.pages.dev

Please sign in to comment.