-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redesign entire site in one commit 😎
- Loading branch information
Declan Chidlow
committed
Jun 6, 2024
1 parent
7248495
commit 488877b
Showing
74 changed files
with
2,153 additions
and
2,339 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<footer> | ||
Mutant Remix is not affiliated with <a href="https://adduce.vale.rocks">mutant.tech</a>. | ||
This is a transformation of the original Mutant Standard emoji pack, which is licensed under the Creative Commons | ||
Attribution-NonCommercial-ShareAlike 4.0 International License. | ||
Site built with <a href="https://adduce.vale.rocks">Adduce</a>. | ||
</footer> | ||
</main> | ||
|
||
<footer> | ||
Mutant Remix is not affiliated with <a href="https://adduce.vale.rocks">mutant.tech</a>. This is a transformation of the original Mutant Standard emoji pack, which is licensed under the Creative | ||
Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Site built with <a href="https://adduce.vale.rocks">Adduce</a>. | ||
</footer> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,17 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta property="og:site_name" content="Mutant Remix" /> | ||
<meta name="author" content="Revolt" /> | ||
<meta property="og:locale" content="en_AU" /> | ||
<meta property="og:url" content="https://mutant.revolt.chat" /> | ||
|
||
<title>Mutant Remix</title> | ||
<link rel="icon" type="image/svg" href="/assets/favicon.svg"> | ||
|
||
<meta property="og:title" content="Mutant Remix" /> | ||
<meta property="og:site_name" content="Mutant Remix"> | ||
<meta property="og:url" content="https://mutant.revolt.chat" /> | ||
<meta name="author" content="Revolt"> | ||
<meta property="og:image" content="https://mutant.revolt.chat/assets/embed.svg" /> | ||
<meta property="og:description" content="An emoji pack so good, you'll never want to use another." /> | ||
|
||
<meta property="twitter:title" content="Mutant Remix" /> | ||
<meta property="twitter:site" content="@revoltchat" /> | ||
<meta property="twitter:card" content="summary_large_image" /> | ||
<meta property="twitter:image" content="https://mutant.revolt.chat/assets/embed.svg" /> | ||
<meta property="twitter:image:alt" content='Image consisting of emojis exploding outwards with the text "An emoji pack so good, you will never want to | ||
use another."' /> | ||
<meta property="twitter:description" content="An emoji pack so good, you'll never want to use another." /> | ||
|
||
<meta property="og:image:type" content="image/svg" /> | ||
<meta property="og:image:width" content="1280" /> | ||
<meta property="og:image:height" content="720" /> | ||
<link rel="stylesheet" href="/styles/style.css"> | ||
<link rel="icon" type="image/svg" href="/assets/favicon.svg" /> | ||
|
||
<meta property="og:image" content="https://mutant.revolt.chat/assets/embed.svg" /> | ||
<meta property="og:image:type" content="image/svg" /> | ||
<meta property="og:image:width" content="1280" /> | ||
<meta property="og:image:height" content="720" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
<nav> | ||
<a href="/"><img style="height: 2.5rem; width: auto; display: inline;" src="assets/Mutant_Remix_Wordmark.svg" | ||
alt="Mutant Remix"></a> | ||
<ul> | ||
<li><a href="https://github.com/mutant-remix/mutant-remix/blob/master/CONTRIBUTING.md">contributing</a></li> | ||
<li><a href="/demo">demo</a></li> | ||
<li><a href="https://github.com/mutant-remix/mutant-remix/releases">download</a></li> | ||
</ul> | ||
</nav> | ||
<header id="navbar"> | ||
<a href="/"> | ||
<img src="assets/Mutant_Remix_Wordmark.svg" id="navlanding" alt="Mutant Remix logo" /> | ||
</a> | ||
<nav> | ||
<ul> | ||
<li><a href="/releases">Releases</a></li> | ||
<li><a href="/downloads">Downloads</a></li> | ||
</ul> | ||
</nav> | ||
</header> | ||
|
||
<div id="content"> | ||
<main> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
document.addEventListener("DOMContentLoaded", function () { | ||
const repoOwner = "mutant-remix"; | ||
const repoName = "mutant-remix"; | ||
|
||
async function fetchLatestRelease() { | ||
try { | ||
const response = await fetch(`https://api.github.com/repos/${repoOwner}/${repoName}/releases/latest`); | ||
if (!response.ok) { | ||
throw new Error(`An error occurred: ${response.statusText}`); | ||
} | ||
const data = await response.json(); | ||
const latestVersion = data.tag_name; | ||
return latestVersion; | ||
} catch (error) { | ||
console.error("Error fetching latest release:", error); | ||
} | ||
} | ||
|
||
async function updateButtonsWithLatestRelease() { | ||
try { | ||
const latestVersion = await fetchLatestRelease(); | ||
if (!latestVersion) return; | ||
const buttons = document.querySelectorAll('button[onclick*="https://github.com/mutant-remix/mutant-remix/releases/download/"]'); | ||
buttons.forEach((button) => { | ||
const oldOnclick = button.getAttribute("onclick"); | ||
const newOnclick = oldOnclick.replace(/v00/g, latestVersion); | ||
button.setAttribute("onclick", newOnclick); | ||
}); | ||
} catch (error) { | ||
console.error("Error updating buttons with latest release:", error); | ||
} | ||
} | ||
|
||
updateButtonsWithLatestRelease(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
document.addEventListener("DOMContentLoaded", function () { | ||
const repoOwner = "mutant-remix"; | ||
const repoName = "mutant-remix"; | ||
|
||
const releasesContainer = document.getElementById("releases"); | ||
|
||
async function fetchReleases() { | ||
try { | ||
const response = await fetch(`https://api.github.com/repos/${repoOwner}/${repoName}/releases`); | ||
if (!response.ok) { | ||
throw new Error(`An error occurred: ${response.statusText}`); | ||
} | ||
const releases = await response.json(); | ||
displayReleases(releases); | ||
} catch (error) { | ||
console.error("Error fetching releases:", error); | ||
releasesContainer.innerHTML = `<p>Error fetching releases: ${error.message}</p>`; | ||
} | ||
} | ||
|
||
function displayReleases(releases) { | ||
releasesContainer.innerHTML = ""; | ||
releases.forEach((release) => { | ||
const changelog = extractChangelog(release.body); | ||
const releaseElement = document.createElement("div"); | ||
releaseElement.classList.add("release"); | ||
releaseElement.innerHTML = ` | ||
<a href="${release.html_url}"> | ||
<h2>${release.name}</h2> | ||
<p>${formatDate(new Date(release.published_at))}</p> | ||
<div>${changelog}</div> | ||
</a> | ||
`; | ||
releasesContainer.appendChild(releaseElement); | ||
}); | ||
} | ||
|
||
function extractChangelog(body) { | ||
const changelogIndex = body.indexOf("## Changelog"); | ||
if (changelogIndex === -1) return "No changelog available."; | ||
const changelogContent = body.slice(changelogIndex + "## Changelog".length); | ||
const nextHeadingIndex = changelogContent.search(/## [^\n]+\n/); | ||
return nextHeadingIndex === -1 ? changelogContent.trim() : changelogContent.slice(0, nextHeadingIndex).trim(); | ||
} | ||
|
||
function formatDate(date) { | ||
const options = { year: "numeric", month: "long", day: "numeric" }; | ||
const formattedDate = date.toLocaleDateString("en-US", options); | ||
const day = date.getDate(); | ||
let daySuffix; | ||
if (day > 3 && day < 21) { | ||
daySuffix = "th"; | ||
} else { | ||
switch (day % 10) { | ||
case 1: | ||
daySuffix = "st"; | ||
break; | ||
case 2: | ||
daySuffix = "nd"; | ||
break; | ||
case 3: | ||
daySuffix = "rd"; | ||
break; | ||
default: | ||
daySuffix = "th"; | ||
} | ||
} | ||
return formattedDate.replace(/\d+/, `${day}${daySuffix}`); | ||
} | ||
|
||
fetchReleases(); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.