diff --git a/apps/site/src/App.vue b/apps/site/src/App.vue index 015799e4..f11a78c9 100644 --- a/apps/site/src/App.vue +++ b/apps/site/src/App.vue @@ -3,6 +3,7 @@ import { onMounted, onUnmounted, ref } from 'vue'; import AgentLoop from './components/AgentLoop.vue'; import InstallCommand from './components/InstallCommand.vue'; import LegacyDownloadsPopup from './components/LegacyDownloadsPopup.vue'; +import ParticleField from './components/ParticleField.vue'; import PythinkerMascot from './components/PythinkerMascot.vue'; const version = __PYTHINKER_VERSION__; @@ -20,6 +21,18 @@ const desktopDownloads = { windows: `${DESKTOP_RELEASE_BASE}/Pythinker-${DESKTOP_VERSION}-x64-Setup.exe`, }; +const isWindows = /Win/i.test(navigator.platform || navigator.userAgent); +const heroDownloads = (isWindows + ? [ + { id: 'windows', label: 'Download for Windows', note: 'Windows x64', icon: '/brand/windows11.svg', href: desktopDownloads.windows }, + { id: 'mac', label: 'Download for macOS', note: 'Apple Silicon', icon: '/brand/apple.svg', href: desktopDownloads.mac }, + ] + : [ + { id: 'mac', label: 'Download for macOS', note: 'Apple Silicon', icon: '/brand/apple.svg', href: desktopDownloads.mac }, + { id: 'windows', label: 'Download for Windows', note: 'Windows x64', icon: '/brand/windows11.svg', href: desktopDownloads.windows }, + ]); +const heroDownloadsPage = `https://github.com/PyModel/pythinker-code/releases/tag/v${DESKTOP_VERSION}`; + const installRows = [ ['macOS / Linux', 'curl -fsSL https://code.pythinker.com/pythinker-code/install.sh | bash', '/brand/apple.svg'], ['Windows (PowerShell)', 'irm https://code.pythinker.com/pythinker-code/install.ps1 | iex', '/brand/windows11.svg'], @@ -211,6 +224,7 @@ onUnmounted(() => {