-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
172 additions
and
7 deletions.
There are no files selected for viewing
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,5 +1,5 @@ | ||
{ | ||
"_variables": { | ||
"lastUpdateCheck": 1728399114239 | ||
"lastUpdateCheck": 1729485476687 | ||
} | ||
} |
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
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
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,144 @@ | ||
--- | ||
import Layout from "../layouts/Layout.astro"; | ||
import FeatureSection from "../components/sections/FeatureSection.astro"; | ||
import { features } from "./index.astro"; | ||
--- | ||
|
||
<Layout title="Thanks for downloading!"> | ||
<h1 class="mythic-gradient-text">Thanks for downloading Mythic!</h1> | ||
<p>You're just <span id="countdown-timer">3</span> seconds away from greatness...</p> | ||
<p>If your download hasn't started, please <a href="#" onclick="fetchLatestRelease()">click here</a>.</p> | ||
|
||
<p>Please note that for newer versions of macOS, you may need to toggle the 'Allow apps from' setting in System Settings > Privacy & Security > Security to 'Anywhere'.</p> | ||
<p>For any concerns, please consult the <a href="/faq">FAQ</a> or join the <a href="/discord">Discord</a>.</p> | ||
|
||
<div class="marquee-container"> | ||
<div class="marquee-content"> | ||
{ | ||
features.concat(features).map((feature, index) => ( | ||
<div class="marquee-item"> | ||
<FeatureSection | ||
title={feature.title} | ||
desc={feature.desc} | ||
image={feature.image} | ||
id={String(index + 1)} | ||
color={feature.color} | ||
/> | ||
</div> | ||
)) | ||
} | ||
</div> | ||
<div class="fade-left"></div> | ||
<div class="fade-right"></div> | ||
</div> | ||
|
||
<style> | ||
body { | ||
overflow: hidden; /* Prevent scrolling */ | ||
} | ||
|
||
.marquee-container { | ||
position: relative; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
width: 90vw; | ||
} | ||
|
||
.marquee-content { | ||
display: inline-block; | ||
animation: marquee 90s linear infinite; | ||
} | ||
|
||
.marquee-item { | ||
display: inline-block; | ||
margin-right: 20px; | ||
max-width: 80vw; | ||
} | ||
|
||
@keyframes marquee { | ||
0% { | ||
transform: translateX(0); /* Start immediately with content visible */ | ||
} | ||
100% { | ||
transform: translateX(-100%); | ||
} | ||
} | ||
|
||
.fade-left, | ||
.fade-right { | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
width: 200px; /* Adjust width as needed */ | ||
pointer-events: none; /* Allow clicks to pass through */ | ||
z-index: 1; | ||
} | ||
|
||
.fade-left { | ||
left: 0; | ||
background: linear-gradient( | ||
to right, | ||
var(--primary-color), | ||
rgba(255, 255, 255, 0) | ||
); | ||
} | ||
|
||
.fade-right { | ||
right: 0; | ||
background: linear-gradient( | ||
to left, | ||
var(--primary-color), | ||
rgba(255, 255, 255, 0) | ||
); | ||
} | ||
|
||
.mythic-gradient-text { | ||
/* repeated but im not a webdev lol, see index.astro */ | ||
display: inline; | ||
--bg-size: 400%; | ||
background: linear-gradient( | ||
90deg, | ||
var(--color-one), | ||
var(--color-two), | ||
var(--color-one) | ||
) | ||
0 0 / var(--bg-size) 100%; | ||
color: transparent; | ||
-webkit-background-clip: text; | ||
background-clip: text; | ||
animation: move-bg 40s infinite ease-in-out; | ||
margin-bottom: 0; | ||
} | ||
</style> | ||
|
||
<script> | ||
async function fetchLatestRelease() { | ||
try { | ||
const response = await fetch('https://api.github.com/repos/MythicApp/Mythic/releases'); | ||
const releases = await response.json(); | ||
const latestRelease = releases[0]; | ||
const asset = latestRelease.assets.find((asset: { name: string; browser_download_url: string }) => asset.name === 'Mythic.zip'); | ||
if (asset) { | ||
window.location.href = asset.browser_download_url; | ||
} else { | ||
console.error('Mythic.zip not found in the latest release assets.'); | ||
} | ||
} catch (error) { | ||
console.error('Error fetching the latest release:', error); | ||
} | ||
} | ||
|
||
let countdown = 3; | ||
const countdownTimer = document.getElementById('countdown-timer'); | ||
const interval = setInterval(() => { | ||
countdown -= 1; | ||
if (countdownTimer) { | ||
countdownTimer.textContent = countdown.toString(); | ||
} | ||
if (countdown === 0) { | ||
clearInterval(interval); | ||
fetchLatestRelease(); | ||
} | ||
}, 1000); | ||
</script> | ||
</Layout> |