Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 27 additions & 4 deletions website/dist/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
'use strict';
const preferredLanguages = navigator.languages?.length ? navigator.languages : [navigator.language || 'en'];
const language = preferredLanguages.map(value => {
const code = value.toLowerCase().split(/[-_]/)[0];
return code === 'iw' ? 'he' : code;
}).find(code => Object.hasOwn(translations, code)) || 'en';
const messages = translations[language];
const markupKeys = new Set(['heroTitle', 'mediaTypes', 'featureTitle', 'featureIntro', 'faqTitle']);
function translatePage() {
document.documentElement.lang = language;
document.documentElement.dir = language === 'he' ? 'rtl' : 'ltr';
document.querySelectorAll('[data-i18n]').forEach(element => {
const key = element.dataset.i18n;
if (!Object.hasOwn(messages, key)) return;
if (markupKeys.has(key)) element.innerHTML = messages[key];
else element.textContent = messages[key];
});
document.querySelectorAll('[data-i18n-attr]').forEach(element => {
const [key, attribute] = element.dataset.i18nAttr.split(':');
if (Object.hasOwn(messages, key)) element.setAttribute(attribute, messages[key]);
});
}
translatePage();
const repository = 'sudo-py-dev/fmx';
const patterns = {
windows: /windows.*setup\.exe$/i,
Expand All @@ -21,19 +43,20 @@ async function loadRelease() {
available[platform] = asset.browser_download_url;
document.querySelectorAll(`[data-platform="${platform}"]`).forEach(link => {
link.href = asset.browser_download_url;
link.replaceChildren(document.createTextNode(platform === 'portable' ? 'Download portable archive ' : `Download ${platform === 'android' ? 'Android APK' : platform === 'macos' ? 'for macOS' : `for ${platform === 'windows' ? 'Windows' : 'Linux'}`} `));
const label = platform === 'portable' ? messages.downloadPortable : platform === 'android' ? messages.downloadAndroid : messages.downloadFor.replace('{platform}', {windows:'Windows', macos:'macOS', linux:'Linux'}[platform]);
link.replaceChildren(document.createTextNode(`${label} `));
const arrow = document.createElement('span'); arrow.textContent = '↓'; link.append(arrow);
});
}
const detected = /Android/i.test(navigator.userAgent) ? 'android' : /Windows/i.test(navigator.userAgent) ? 'windows' : /Macintosh|MacIntel/i.test(navigator.userAgent) ? 'macos' : /Linux/i.test(navigator.userAgent) ? 'linux' : null;
if (detected && available[detected]) {
const primary = document.querySelector('#smart-download');
primary.href = available[detected];
primary.textContent = `Download for ${ {windows:'Windows',macos:'macOS',linux:'Linux',android:'Android'}[detected]} ↓`;
primary.textContent = `${messages.downloadFor.replace('{platform}', {windows:'Windows',macos:'macOS',linux:'Linux',android:'Android'}[detected])} ↓`;
}
status.textContent = `${release.tag_name || 'Latest release'} · Downloads served directly from GitHub`;
status.textContent = `${release.tag_name || messages.latestRelease} · ${messages.releaseServed}`;
} catch {
status.textContent = 'Browse the latest GitHub release to choose your download.';
status.textContent = messages.releaseFallback;
}
}
loadRelease();
22 changes: 11 additions & 11 deletions website/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
<html lang="en">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#f7f8f4"><meta name="description" content="Download FMX, the free and open source media converter for Windows, macOS and Linux. Explore the Android app.">
<title>FMX — Your files. More possibilities.</title>
<link rel="icon" href="assets/fmx-icon.png"><link rel="stylesheet" href="style.css"><script src="app.js" defer></script>
<meta name="theme-color" content="#f7f8f4"><meta name="description" data-i18n-attr="description:content" content="Download FMX, the free and open source media converter for Windows, macOS and Linux. Explore the Android app.">
<title data-i18n="title">FMX — Your files. More possibilities.</title>
<link rel="icon" href="assets/fmx-icon.png"><link rel="stylesheet" href="style.css"><script src="translations.js" defer></script><script src="app.js" defer></script>
</head>
<body>
<a class="skip" href="#main">Skip to content</a>
<header class="nav wrap"><a class="brand" href="#" aria-label="FMX home"><img src="assets/fmx-icon.png" width="36" height="36" alt="">FMX<span>Free Media Xpress</span></a><nav aria-label="Main navigation"><a href="#features">Explore</a><a href="#downloads">Downloads</a><a class="source" href="https://github.com/sudo-py-dev/fmx">GitHub <span aria-hidden="true">↗</span></a></nav></header>
<a class="skip" href="#main" data-i18n="skip">Skip to content</a>
<header class="nav wrap"><a class="brand" href="#" aria-label="FMX home" data-i18n-attr="home:aria-label"><img src="assets/fmx-icon.png" width="36" height="36" alt="">FMX<span>Free Media Xpress</span></a><nav aria-label="Main navigation" data-i18n-attr="navigation:aria-label"><a href="#features" data-i18n="explore">Explore</a><a href="#downloads" data-i18n="downloads">Downloads</a><a class="source" href="https://github.com/sudo-py-dev/fmx">GitHub <span aria-hidden="true">↗</span></a></nav></header>
<main id="main">
<section class="hero wrap"><div class="hero-copy"><p class="eyebrow"><span></span> OPEN SOURCE. OPEN POSSIBILITIES.</p><h1>Your files.<br>More <em>possibilities.</em></h1><p class="intro">Video to audio. Photos to PDFs. Big ideas to smaller files. Meet the free media toolkit that keeps things simple.</p><div class="hero-actions"><a class="button primary" id="smart-download" href="#downloads">Get FMX for desktop <span aria-hidden="true">↓</span></a><a class="text-link" href="#android">Explore Android <span aria-hidden="true">↗</span></a></div><p class="micro">Free to use. No ads. No account needed.</p></div><div class="hero-art"><div class="orbit one">.mp4 <span>↗</span> .mp3</div><div class="app-frame"><div class="window-top"><span></span><span></span><span></span><small>Less friction. More creating.</small></div><img src="assets/fmx-desktop.png" alt="FMX desktop application showing media conversion tools" width="1200" height="675"></div><div class="orbit two"><span class="check">✓</span> A new format. A fresh start.</div></div></section>
<div class="platform-strip wrap"><span>ONE TOOLKIT, ALL YOUR MEDIA</span><p>Video <b>✳</b> Audio <b>✳</b> Images <b>✳</b> Documents <b>✳</b> Discs</p></div>
<section id="features" class="features wrap"><div class="section-heading"><p class="eyebrow">MADE FOR THE EVERYDAY</p><h2>A little less busywork.<br>A lot more done.</h2><p>Everything you need to move between formats,<br>in one calm, familiar place.</p></div><div class="feature-grid"><article><span class="feature-icon">↔</span><h3>Different files. One home.</h3><p>Convert videos, music, pictures, documents and discs without jumping between apps.</p><div class="format-tags"><span>MP4</span><span>MP3</span><span>WebP</span><span>PDF</span></div></article><article><span class="feature-icon">≋</span><h3>Bring the whole folder.</h3><p>Add multiple files, choose a format and let the queue take care of the rest.</p><div class="queue-demo" aria-hidden="true"><span>holiday-video.mp4</span><b>✓ Complete</b></div></article><article><span class="feature-icon">◐</span><h3>Feels right at home.</h3><p>Light and dark themes, five languages, and a clean interface that stays out of your way.</p><div class="language-tags">Hello <span>Hola</span> Bonjour <span dir="rtl" lang="he">שלום</span></div></article></div></section>
<section id="downloads" class="downloads"><div class="wrap"><div class="download-heading"><div><p class="eyebrow">YOURS TO DOWNLOAD</p><h2>Make room for possibilities.</h2></div><p>Choose your platform. Make something new.</p></div><p id="release-status" class="release-status" role="status">Choose a platform to view its latest release.</p><div class="download-grid"><article class="download-card"><span class="platform-icon" aria-hidden="true">⊞</span><h3>Windows</h3><p>For Windows 10 & 11</p><a class="button secondary" data-platform="windows" href="https://github.com/sudo-py-dev/fmx/releases/latest">View Windows release <span>↗</span></a><small>64-bit · Setup installer</small></article><article class="download-card"><span class="platform-icon" aria-hidden="true">⌘</span><h3>macOS</h3><p>For Intel & Apple silicon</p><a class="button secondary" data-platform="macos" href="https://github.com/sudo-py-dev/fmx/releases/latest">View macOS release <span>↗</span></a><small>Universal · DMG</small></article><article class="download-card"><span class="platform-icon" aria-hidden="true">❋</span><h3>Linux</h3><p>For your favorite distribution</p><a class="button secondary" data-platform="linux" href="https://github.com/sudo-py-dev/fmx/releases/latest">View Linux release <span>↗</span></a><small>x86_64 · Debian package</small><a class="archive" data-platform="portable" href="https://github.com/sudo-py-dev/fmx/releases/latest">Portable archive ↗</a></article></div><article id="android" class="android-card"><div class="android-symbol" aria-hidden="true">↟</div><div><p class="eyebrow">A LITTLE MORE MOBILE</p><h3>Your toolkit, on the go.</h3><p>Explore FMX for Android 10 and newer. Currently a development build; a signed production APK is not available yet.</p></div><a class="button dark" data-platform="android" href="https://github.com/sudo-py-dev/fmx/tree/main/android">Explore Android <span>↗</span></a></article><p class="download-note">Downloads come directly from the FMX GitHub repository. <a href="https://github.com/sudo-py-dev/fmx/releases">Release notes & all downloads ↗</a></p></div></section>
<section class="faq wrap"><div><p class="eyebrow">GOOD TO KNOW</p><h2>Simple from<br>the start.</h2></div><div class="questions"><details><summary>Is FMX really free?</summary><p>Yes. FMX is open source under the MIT or Apache 2.0 license. You can use, share and modify it.</p></details><details><summary>How do I convert my first file?</summary><p>Choose a category and output format, add your files, then click “Add to queue”. Your converted files are saved next to the originals, or in a folder you choose.</p></details><details><summary>Do I need extra tools?</summary><p>The desktop download bundles its core media tools. Some document and disc features need optional programs. See the <a href="https://github.com/sudo-py-dev/fmx#-optional-extras">installation guide</a> for details.</p></details><details><summary>Where can I get help?</summary><p>Read the <a href="https://github.com/sudo-py-dev/fmx#-something-went-wrong">troubleshooting guide</a> or <a href="https://github.com/sudo-py-dev/fmx/issues">report an issue on GitHub</a>.</p></details></div></section>
</main><footer class="wrap"><a class="brand" href="#"><img src="assets/fmx-icon.png" width="28" height="28" alt="">FMX</a><p>Made for your files. Free for everyone.</p><a href="https://github.com/sudo-py-dev/fmx">Built with Rust · Open source ↗</a></footer>
<section class="hero wrap"><div class="hero-copy"><p class="eyebrow"><span></span><span data-i18n="heroEyebrow"> OPEN SOURCE. OPEN POSSIBILITIES.</span></p><h1 data-i18n="heroTitle">Your files.<br>More <em>possibilities.</em></h1><p class="intro" data-i18n="intro">Video to audio. Photos to PDFs. Big ideas to smaller files. Meet the free media toolkit that keeps things simple.</p><div class="hero-actions"><a class="button primary" id="smart-download" href="#downloads"> <span data-i18n="getDesktop">Get FMX for desktop</span> <span aria-hidden="true">↓</span></a><a class="text-link" href="#android"><span data-i18n="exploreAndroid">Explore Android</span> <span aria-hidden="true">↗</span></a></div><p class="micro" data-i18n="micro">Free to use. No ads. No account needed.</p></div><div class="hero-art"><div class="orbit one">.mp4 <span>↗</span> .mp3</div><div class="app-frame"><div class="window-top"><span></span><span></span><span></span><small data-i18n="windowCaption">Less friction. More creating.</small></div><img src="assets/fmx-desktop.png" alt="FMX desktop application showing media conversion tools" data-i18n-attr="imageAlt:alt" width="1200" height="675"></div><div class="orbit two"><span class="check">✓</span> <span data-i18n="orbit">A new format. A fresh start.</span></div></div></section>
<div class="platform-strip wrap"><span data-i18n="platformStrip">ONE TOOLKIT, ALL YOUR MEDIA</span><p data-i18n="mediaTypes">Video <b>✳</b> Audio <b>✳</b> Images <b>✳</b> Documents <b>✳</b> Discs</p></div>
<section id="features" class="features wrap"><div class="section-heading"><p class="eyebrow" data-i18n="featureEyebrow">MADE FOR THE EVERYDAY</p><h2 data-i18n="featureTitle">A little less busywork.<br>A lot more done.</h2><p data-i18n="featureIntro">Everything you need to move between formats,<br>in one calm, familiar place.</p></div><div class="feature-grid"><article><span class="feature-icon">↔</span><h3 data-i18n="feature1Title">Different files. One home.</h3><p data-i18n="feature1">Convert videos, music, pictures, documents and discs without jumping between apps.</p><div class="format-tags"><span>MP4</span><span>MP3</span><span>WebP</span><span>PDF</span></div></article><article><span class="feature-icon">≋</span><h3 data-i18n="feature2Title">Bring the whole folder.</h3><p data-i18n="feature2">Add multiple files, choose a format and let the queue take care of the rest.</p><div class="queue-demo" aria-hidden="true"><span>holiday-video.mp4</span><b data-i18n="complete">✓ Complete</b></div></article><article><span class="feature-icon">◐</span><h3 data-i18n="feature3Title">Feels right at home.</h3><p data-i18n="feature3">Light and dark themes, six languages, and a clean interface that stays out of your way.</p><div class="language-tags">Hello <span>Hola</span> Bonjour <span dir="rtl" lang="he">שלום</span></div></article></div></section>
<section id="downloads" class="downloads"><div class="wrap"><div class="download-heading"><div><p class="eyebrow" data-i18n="downloadEyebrow">YOURS TO DOWNLOAD</p><h2 data-i18n="downloadTitle">Make room for possibilities.</h2></div><p data-i18n="downloadIntro">Choose your platform. Make something new.</p></div><p id="release-status" class="release-status" role="status" data-i18n="releaseInitial">Choose a platform to view its latest release.</p><div class="download-grid"><article class="download-card"><span class="platform-icon" aria-hidden="true">⊞</span><h3>Windows</h3><p data-i18n="windowsInfo">For Windows 10 &amp; 11</p><a class="button secondary" data-platform="windows" href="https://github.com/sudo-py-dev/fmx/releases/latest"> <span data-i18n="viewWindows">View Windows release</span> <span>↗</span></a><small data-i18n="windowsDetail">64-bit · Setup installer</small></article><article class="download-card"><span class="platform-icon" aria-hidden="true">⌘</span><h3>macOS</h3><p data-i18n="macInfo">For Intel &amp; Apple silicon</p><a class="button secondary" data-platform="macos" href="https://github.com/sudo-py-dev/fmx/releases/latest"> <span data-i18n="viewMac">View macOS release</span> <span>↗</span></a><small data-i18n="macDetail">Universal · DMG</small></article><article class="download-card"><span class="platform-icon" aria-hidden="true">❋</span><h3>Linux</h3><p data-i18n="linuxInfo">For your favorite distribution</p><a class="button secondary" data-platform="linux" href="https://github.com/sudo-py-dev/fmx/releases/latest"> <span data-i18n="viewLinux">View Linux release</span> <span>↗</span></a><small data-i18n="linuxDetail">x86_64 · Debian package</small><a class="archive" data-platform="portable" href="https://github.com/sudo-py-dev/fmx/releases/latest"> <span data-i18n="portable">Portable archive</span> ↗</a></article></div><article id="android" class="android-card"><div class="android-symbol" aria-hidden="true">↟</div><div><p class="eyebrow" data-i18n="androidEyebrow">A LITTLE MORE MOBILE</p><h3 data-i18n="androidTitle">Your toolkit, on the go.</h3><p data-i18n="androidInfo">Explore FMX for Android 10 and newer. Currently a development build; a signed production APK is not available yet.</p></div><a class="button dark" data-platform="android" href="https://github.com/sudo-py-dev/fmx/tree/main/android"> <span data-i18n="exploreAndroid">Explore Android</span> <span>↗</span></a></article><p class="download-note"><span data-i18n="downloadNote">Downloads come directly from the FMX GitHub repository.</span> <a href="https://github.com/sudo-py-dev/fmx/releases" data-i18n="releaseNotes">Release notes &amp; all downloads ↗</a></p></div></section>
<section class="faq wrap"><div><p class="eyebrow" data-i18n="faqEyebrow">GOOD TO KNOW</p><h2 data-i18n="faqTitle">Simple from<br>the start.</h2></div><div class="questions"><details><summary data-i18n="faq1q">Is FMX really free?</summary><p data-i18n="faq1a">Yes. FMX is open source under the MIT or Apache 2.0 license. You can use, share and modify it.</p></details><details><summary data-i18n="faq2q">How do I convert my first file?</summary><p data-i18n="faq2a">Choose a category and output format, add your files, then click “Add to queue”. Your converted files are saved next to the originals, or in a folder you choose.</p></details><details><summary data-i18n="faq3q">Do I need extra tools?</summary><p><span data-i18n="faq3a">The desktop download bundles its core media tools. Some document and disc features need optional programs. See the</span> <a href="https://github.com/sudo-py-dev/fmx#-optional-extras" data-i18n="installationGuide">installation guide</a><span data-i18n="faq3end"> for details.</span></p></details><details><summary data-i18n="faq4q">Where can I get help?</summary><p><span data-i18n="faq4a">Read the</span> <a href="https://github.com/sudo-py-dev/fmx#-something-went-wrong" data-i18n="troubleshooting">troubleshooting guide</a> <span data-i18n="or">or</span> <a href="https://github.com/sudo-py-dev/fmx/issues" data-i18n="reportIssue">report an issue on GitHub</a>.</p></details></div></section>
</main><footer class="wrap"><a class="brand" href="#"><img src="assets/fmx-icon.png" width="28" height="28" alt="">FMX</a><p data-i18n="footer">Made for your files. Free for everyone.</p><a href="https://github.com/sudo-py-dev/fmx"> <span data-i18n="builtWith">Built with Rust · Open source ↗</span></a></footer>
</body></html>
Loading
Loading