feat(marketing): add a nightly channel to the download page (#10408)
Co-authored-by: Claude Fable 5.1 <[email protected]>
This commit is contained in:
1 parent
001f06d543
commit
075a86e3b0
5 files changed
+492
-147
No files matched your search
@@ -0,0 +1,44 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 540 112" preserveAspectRatio="xMidYMid slice">
|
||||
<defs>
|
||||
<linearGradient id="night-sky" x1="28" y1="0" x2="510" y2="112" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#07152F"/>
|
||||
<stop offset="0.52" stop-color="#151443"/>
|
||||
<stop offset="1" stop-color="#32155B"/>
|
||||
</linearGradient>
|
||||
<radialGradient id="night-glow" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(420 18) rotate(157) scale(260 126)">
|
||||
<stop stop-color="#5165D8" stop-opacity="0.42"/>
|
||||
<stop offset="0.55" stop-color="#283075" stop-opacity="0.15"/>
|
||||
<stop offset="1" stop-color="#111635" stop-opacity="0"/>
|
||||
</radialGradient>
|
||||
<linearGradient id="night-cloud" x1="18" y1="62" x2="260" y2="112" gradientUnits="userSpaceOnUse">
|
||||
<stop stop-color="#4EA4FF" stop-opacity="0.5"/>
|
||||
<stop offset="0.52" stop-color="#696FEA" stop-opacity="0.62"/>
|
||||
<stop offset="1" stop-color="#A85BEA" stop-opacity="0.5"/>
|
||||
</linearGradient>
|
||||
<filter id="night-soft" x="-24" y="35" width="588" height="101" filterUnits="userSpaceOnUse">
|
||||
<feGaussianBlur stdDeviation="4"/>
|
||||
</filter>
|
||||
</defs>
|
||||
|
||||
|
||||
<rect width="540" height="112" fill="url(#night-sky)"/>
|
||||
<rect width="540" height="112" fill="url(#night-glow)"/>
|
||||
|
||||
<g fill="#E4EAFF">
|
||||
<circle cx="20" cy="18" r="0.8" opacity="0.82"/>
|
||||
<circle cx="76" cy="27" r="0.55" opacity="0.55"/>
|
||||
<circle cx="133" cy="13" r="0.65" opacity="0.7"/>
|
||||
<circle cx="198" cy="28" r="0.5" opacity="0.5"/>
|
||||
<circle cx="258" cy="15" r="0.75" opacity="0.8"/>
|
||||
<circle cx="326" cy="29" r="0.5" opacity="0.55"/>
|
||||
<circle cx="384" cy="12" r="0.65" opacity="0.72"/>
|
||||
<circle cx="455" cy="26" r="0.55" opacity="0.58"/>
|
||||
<circle cx="517" cy="15" r="0.75" opacity="0.78"/>
|
||||
</g>
|
||||
|
||||
<g filter="url(#night-soft)">
|
||||
<path d="M-12 112V101C-12 87 0 76 14 76C18 63 30 54 44 54C58 54 70 62 74 75C79 70 86 67 94 67C110 67 123 79 124 95C132 96 138 101 141 112H-12Z" fill="url(#night-cloud)"/>
|
||||
<path d="M374 112C375 98 387 87 401 87C405 72 418 62 434 62C450 62 463 72 467 87C478 87 488 94 492 104C506 103 518 106 526 112H374Z" fill="url(#night-cloud)" opacity="0.82"/>
|
||||
</g>
|
||||
<path d="M0 111.5H540" stroke="#050A19" stroke-opacity="0.3"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
@@ -80,6 +80,7 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
|
||||
<span class="nav-brand-name">T3 Code</span>
|
||||
</a>
|
||||
<div class="nav-right">
|
||||
<a class="nav-link" href="/download">Download</a>
|
||||
<a
|
||||
class="nav-stars"
|
||||
href={GITHUB_REPOSITORY_URL}
|
||||
@@ -385,6 +386,19 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
padding: 0 10px;
|
||||
color: var(--fg-muted);
|
||||
font-size: 13px;
|
||||
letter-spacing: -0.01em;
|
||||
white-space: nowrap;
|
||||
transition: color 0.18s ease;
|
||||
}
|
||||
|
||||
.nav-link:hover {
|
||||
color: var(--fg);
|
||||
}
|
||||
|
||||
.nav-stars {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
const REPO = "pingdotgg/t3code";
|
||||
|
||||
export const RELEASES_URL = `https://github.com/${REPO}/releases`;
|
||||
export const NIGHTLY_RELEASES_URL = `${RELEASES_URL}?q=nightly&expanded=true`;
|
||||
|
||||
const API_URL = `https://api.github.com/repos/${REPO}/releases/latest`;
|
||||
const CACHE_KEY = "t3code-latest-release";
|
||||
const LATEST_API_URL = `https://api.github.com/repos/${REPO}/releases/latest`;
|
||||
// The `latest` endpoint skips prereleases, so nightly needs the list. GitHub
|
||||
// returns it newest first and nightlies land several times a day, so the first
|
||||
// nightly tag in a small page is the current build.
|
||||
const LIST_API_URL = `https://api.github.com/repos/${REPO}/releases?per_page=10`;
|
||||
|
||||
export type ReleaseChannel = "stable" | "nightly";
|
||||
|
||||
export interface ReleaseAsset {
|
||||
name: string;
|
||||
@@ -13,17 +19,36 @@ export interface ReleaseAsset {
|
||||
export interface Release {
|
||||
tag_name: string;
|
||||
html_url: string;
|
||||
published_at: string;
|
||||
assets: ReleaseAsset[];
|
||||
}
|
||||
|
||||
export async function fetchLatestRelease(): Promise<Release> {
|
||||
const cached = sessionStorage.getItem(CACHE_KEY);
|
||||
function cacheKey(channel: ReleaseChannel) {
|
||||
return `t3code-${channel}-release`;
|
||||
}
|
||||
|
||||
async function fetchStable(): Promise<Release> {
|
||||
return fetch(LATEST_API_URL).then((r) => r.json());
|
||||
}
|
||||
|
||||
async function fetchNightly(): Promise<Release> {
|
||||
const list: Release[] = await fetch(LIST_API_URL).then((r) => r.json());
|
||||
const nightly = Array.isArray(list)
|
||||
? list.find((release) => release.tag_name?.includes("-nightly."))
|
||||
: undefined;
|
||||
if (!nightly) throw new Error("No nightly release in the latest page");
|
||||
return nightly;
|
||||
}
|
||||
|
||||
export async function fetchLatestRelease(channel: ReleaseChannel = "stable"): Promise<Release> {
|
||||
const key = cacheKey(channel);
|
||||
const cached = sessionStorage.getItem(key);
|
||||
if (cached) return JSON.parse(cached);
|
||||
|
||||
const data = await fetch(API_URL).then((r) => r.json());
|
||||
const data = channel === "nightly" ? await fetchNightly() : await fetchStable();
|
||||
|
||||
if (data?.assets) {
|
||||
sessionStorage.setItem(CACHE_KEY, JSON.stringify(data));
|
||||
sessionStorage.setItem(key, JSON.stringify(data));
|
||||
}
|
||||
|
||||
return data;
|
||||
|
||||
@@ -1,134 +1,215 @@
|
||||
---
|
||||
import type { ComponentProps } from "astro/types";
|
||||
import { Image } from "astro:assets";
|
||||
import iconStable from "../assets/icon.webp";
|
||||
import iconNightly from "../assets/icon-nightly.webp";
|
||||
import Layout from "../layouts/Layout.astro";
|
||||
import { RELEASES_URL } from "../lib/releases";
|
||||
import { ANDROID_PLAY_STORE_URL, IOS_APP_STORE_URL } from "../lib/site";
|
||||
|
||||
const imageProps = {
|
||||
alt: "",
|
||||
densities: [1, 2, 3],
|
||||
format: "webp",
|
||||
quality: 90,
|
||||
decoding: "async",
|
||||
} satisfies Partial<ComponentProps<typeof Image>>;
|
||||
---
|
||||
|
||||
<Layout title="Download — T3 Code" description="Download T3 Code for macOS, Windows, or Linux.">
|
||||
<div class="download-page">
|
||||
<h1 class="heading">Download T3 Code</h1>
|
||||
<p class="subheading">
|
||||
<span id="version-label">Loading latest release…</span>
|
||||
<a id="changelog-link" class="changelog-link" href="#" target="_blank" rel="noopener noreferrer" style="display:none">View changelog<span aria-hidden="true"> ↗</span></a>
|
||||
</p>
|
||||
|
||||
<div class="platforms" id="platforms">
|
||||
<!-- macOS -->
|
||||
<section class="platform-section">
|
||||
<div class="platform-header">
|
||||
<svg class="platform-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 814 1000" aria-hidden="true"><path fill="currentColor" d="M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z"/></svg>
|
||||
<h2 class="platform-name">macOS</h2>
|
||||
<div class="download-page" id="download-page" data-channel="stable">
|
||||
<!-- The sky lives behind the header and fades to the page. It only shows on the nightly channel. -->
|
||||
<header class="download-head">
|
||||
<div class="sky" aria-hidden="true"></div>
|
||||
<div class="head-inner" data-rise>
|
||||
<span class="head-icon">
|
||||
<Image class="head-icon--stable" src={iconStable} width={64} height={64} loading="eager" {...imageProps} />
|
||||
<Image class="head-icon--nightly" src={iconNightly} width={64} height={64} loading="eager" {...imageProps} />
|
||||
</span>
|
||||
<h1 class="heading">Download T3 Code</h1>
|
||||
</div>
|
||||
<div class="download-cards">
|
||||
<a class="download-card" data-asset="arm64.dmg" href={RELEASES_URL}>
|
||||
<span class="card-arch">Apple Silicon (arm64)</span>
|
||||
<span class="card-format">.dmg</span>
|
||||
<div class="channel-toggle" role="tablist" aria-label="Release channel" data-rise style="--d:90ms">
|
||||
<span class="channel-thumb" aria-hidden="true"></span>
|
||||
<button type="button" role="tab" data-channel="stable" aria-selected="true">Stable</button>
|
||||
<button type="button" role="tab" data-channel="nightly" aria-selected="false">Nightly</button>
|
||||
</div>
|
||||
<p class="head-meta" data-rise style="--d:180ms">
|
||||
<a id="changelog-link" class="changelog-link" href={RELEASES_URL} target="_blank" rel="noopener noreferrer">
|
||||
<span id="version-label"> </span><span aria-hidden="true"> ↗</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="intel-note">
|
||||
On an Intel Mac? <a data-asset="x64.dmg" href={RELEASES_URL}>Download the x64 build</a>.
|
||||
</p>
|
||||
</section>
|
||||
</header>
|
||||
|
||||
<!-- Windows -->
|
||||
<section class="platform-section">
|
||||
<div class="platform-header">
|
||||
<svg class="platform-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 88 88" aria-hidden="true"><path fill="currentColor" d="m0 12.402 35.687-4.86.016 34.423-35.67.203zm35.67 33.529.028 34.453L.028 75.48.026 45.7zm4.326-39.025L87.314 0v41.527l-47.318.376zm47.329 39.349-.011 41.34-47.318-6.678-.066-34.739z"/></svg>
|
||||
<h2 class="platform-name">Windows</h2>
|
||||
</div>
|
||||
<div class="download-cards">
|
||||
<a class="download-card" data-asset="x64.exe" href={RELEASES_URL}>
|
||||
<span class="card-arch">Windows 10, 11</span>
|
||||
<span class="card-format">.exe</span>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
<div class="platforms">
|
||||
<!-- macOS -->
|
||||
<section class="platform-section" data-rise style="--d:240ms">
|
||||
<div class="platform-header">
|
||||
<svg class="platform-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 814 1000" aria-hidden="true"><path fill="currentColor" d="M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z"/></svg>
|
||||
<h2 class="platform-name">macOS</h2>
|
||||
</div>
|
||||
<div class="download-cards">
|
||||
<a class="download-card" data-asset="arm64.dmg" href={RELEASES_URL}>
|
||||
<span class="card-icon">
|
||||
<Image class="card-icon--stable" src={iconStable} width={28} height={28} loading="lazy" {...imageProps} />
|
||||
<Image class="card-icon--nightly" src={iconNightly} width={28} height={28} loading="lazy" {...imageProps} />
|
||||
</span>
|
||||
<span class="card-text">
|
||||
<span class="card-arch">Apple Silicon (arm64)</span>
|
||||
<span class="card-format">.dmg</span>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="intel-note">
|
||||
On an Intel Mac? <a data-asset="x64.dmg" href={RELEASES_URL}>Download the x64 build</a>.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<!-- Linux -->
|
||||
<section class="platform-section">
|
||||
<div class="platform-header">
|
||||
<svg class="platform-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.043c-.06-.003-.12 0-.18 0h-.016c.151-.467-.182-.825-1.065-1.224-.915-.4-1.646-.336-1.77.465-.008.043-.013.066-.018.135-.068.023-.139.053-.209.064-.43.268-.662.669-.793 1.187-.13.533-.17 1.156-.205 1.869v.003c-.02.334-.17.838-.319 1.35-1.5 1.072-3.58 1.538-5.348.334a2.645 2.645 0 00-.402-.533 1.45 1.45 0 00-.275-.333c.182 0 .338-.03.465-.067a.615.615 0 00.314-.334c.108-.267 0-.697-.345-1.163-.345-.467-.931-.995-1.788-1.521-.63-.4-.986-.87-1.15-1.396-.165-.534-.143-1.085-.015-1.645.245-1.07.873-2.11 1.274-2.763.107-.065.037.135-.408.974-.396.751-1.14 2.497-.122 3.854a8.123 8.123 0 01.647-2.876c.564-1.278 1.743-3.504 1.836-5.268.048.036.217.135.289.202.218.133.38.333.59.465.21.201.477.335.876.335.039.003.075.006.11.006.412 0 .73-.134.997-.268.29-.134.52-.334.74-.4h.005c.467-.135.835-.402 1.044-.7zm2.185 8.958c.037.6.343 1.245.882 1.377.588.134 1.434-.333 1.791-.765l.211-.01c.315-.007.577.01.847.268l.003.003c.208.199.305.53.391.876.085.4.154.78.409 1.066.486.527.645.906.636 1.14l.003-.007v.018l-.003-.012c-.015.262-.185.396-.498.595-.63.401-1.746.712-2.457 1.57-.618.737-1.37 1.14-2.036 1.191-.664.053-1.237-.2-1.574-.898l-.005-.003c-.21-.4-.12-1.025.056-1.69.176-.668.428-1.344.463-1.897.037-.714.076-1.335.195-1.814.12-.465.308-.797.641-.984l.045-.022zm-10.814.049h.01c.053 0 .105.005.157.014.376.055.706.333 1.023.752l.91 1.664.003.003c.243.533.754 1.064 1.189 1.637.434.598.77 1.131.729 1.57v.006c-.057.744-.48 1.148-1.125 1.294-.645.135-1.52.002-2.395-.464-.968-.536-2.118-.469-2.857-.602-.369-.066-.61-.2-.723-.4-.11-.2-.113-.602.123-1.23v-.004l.002-.003c.117-.334.03-.752-.027-1.118-.055-.401-.083-.71.043-.94.16-.334.396-.4.69-.533.294-.135.64-.202.915-.47h.002v-.002c.256-.268.445-.601.668-.838.19-.201.38-.336.663-.336zm7.159-9.074c-.435.201-.945.535-1.488.535-.542 0-.97-.267-1.28-.466-.154-.134-.28-.268-.373-.335-.164-.134-.144-.333-.074-.333.109.016.129.134.199.2.096.066.215.2.36.333.292.2Line truncated
|
||||
<h2 class="platform-name">Linux</h2>
|
||||
</div>
|
||||
<div class="download-cards">
|
||||
<a class="download-card" data-asset="x86_64.AppImage" href={RELEASES_URL}>
|
||||
<span class="card-arch">x86_64</span>
|
||||
<span class="card-format">AppImage</span>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Windows -->
|
||||
<section class="platform-section" data-rise style="--d:300ms">
|
||||
<div class="platform-header">
|
||||
<svg class="platform-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 88 88" aria-hidden="true"><path fill="currentColor" d="m0 12.402 35.687-4.86.016 34.423-35.67.203zm35.67 33.529.028 34.453L.028 75.48.026 45.7zm4.326-39.025L87.314 0v41.527l-47.318.376zm47.329 39.349-.011 41.34-47.318-6.678-.066-34.739z"/></svg>
|
||||
<h2 class="platform-name">Windows</h2>
|
||||
</div>
|
||||
<div class="download-cards">
|
||||
<a class="download-card" data-asset="x64.exe" href={RELEASES_URL}>
|
||||
<span class="card-icon">
|
||||
<Image class="card-icon--stable" src={iconStable} width={28} height={28} loading="lazy" {...imageProps} />
|
||||
<Image class="card-icon--nightly" src={iconNightly} width={28} height={28} loading="lazy" {...imageProps} />
|
||||
</span>
|
||||
<span class="card-text">
|
||||
<span class="card-arch">Windows 10, 11</span>
|
||||
<span class="card-format">.exe</span>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Mobile -->
|
||||
<section class="platform-section">
|
||||
<div class="platform-header">
|
||||
<svg class="platform-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="7" y="2" width="10" height="20" rx="2.5"/><path d="M11 18.5h2"/></svg>
|
||||
<h2 class="platform-name">Mobile</h2>
|
||||
</div>
|
||||
<div class="download-cards">
|
||||
<a class="download-card" href={IOS_APP_STORE_URL} target="_blank" rel="noopener noreferrer">
|
||||
<span class="card-arch">iPhone & iPad</span>
|
||||
<span class="card-format">App Store</span>
|
||||
</a>
|
||||
<a class="download-card" href={ANDROID_PLAY_STORE_URL} target="_blank" rel="noopener noreferrer">
|
||||
<span class="card-arch">Android</span>
|
||||
<span class="card-format">Google Play</span>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<!-- Linux -->
|
||||
<section class="platform-section" data-rise style="--d:360ms">
|
||||
<div class="platform-header">
|
||||
<svg class="platform-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587-.003 1.23-.269 2.26-.334.699-.058 1.574.267 2.577.2.025.134.063.198.114.333l.003.003c.391.778 1.113 1.132 1.884 1.071.771-.06 1.592-.536 2.257-1.306.631-.765 1.683-1.084 2.378-1.503.348-.199.629-.469.649-.853.023-.4-.2-.811-.714-1.376v-.097l-.003-.003c-.17-.2-.25-.535-.338-.926-.085-.401-.182-.786-.492-1.046h-.003c-.059-.054-.123-.067-.188-.135a.357.357 0 00-.19-.064c.431-1.278.264-2.55-.173-3.694-.533-1.41-1.465-2.638-2.175-3.483-.796-1.005-1.576-1.957-1.56-3.368.026-2.152.236-6.133-3.544-6.139zm.529 3.405h.013c.213 0 .396.062.584.198.19.135.33.332.438.533.105.259.158.459.166.724 0-.02.006-.04.006-.06v.105a.086.086 0 01-.004-.021l-.004-.024a1.807 1.807 0 01-.15.706.953.953 0 01-.213.335.71.71 0 00-.088-.042c-.104-.045-.198-.064-.284-.133a1.312 1.312 0 00-.22-.066c.05-.06.146-.133.183-.198.053-.128.082-.264.088-.402v-.02a1.21 1.21 0 00-.061-.4c-.045-.134-.101-.2-.183-.333-.084-.066-.167-.132-.267-.132h-.016c-.093 0-.176.03-.262.132a.8.8 0 00-.205.334 1.18 1.18 0 00-.09.4v.019c.002.089.008.179.02.267-.193-.067-.438-.135-.607-.202a1.635 1.635 0 01-.018-.2v-.02a1.772 1.772 0 01.15-.768c.082-.22.232-.406.43-.533a.985.985 0 01.594-.2zm-2.962.059h.036c.142 0 .27.048.399.135.146.129.264.288.344.465.09.199.14.4.153.667v.004c.007.134.006.2-.002.266v.08c-.03.007-.056.018-.083.024-.152.055-.274.135-.393.2.012-.09.013-.18.003-.267v-.015c-.012-.133-.04-.2-.082-.333a.613.613 0 00-.166-.267.248.248 0 00-.183-.064h-.021c-.071.006-.13.04-.186.132a.552.552 0 00-.12.27.944.944 0 00-.023.33v.015c.012.135.037.2.08.334.046.134.098.2.166.268.01.009.02.018.034.024-.07.057-.117.07-.176.136a.304.304 0 01-.131.068 2.62 2.62 0 01-.275-.402 1.772 1.772 0 01-.155-.667 1.759 1.759 0 01.08-.668 1.43 1.43 0 01.283-.535c.128-.133.26-.2.418-.2zm1.37 1.706c.332 0 .733.065 1.216.399.293.2.523.269 1.052.468h.003c.255.136.405.266.478.399v-.131a.571.571 0 01.016.47c-.123.31-.516.643-1.063.842v.002c-.268.135-.501.333-.775.465-.276.135-.588.292-1.012.267a1.139 1.139 0 01-.448-.067 3.566 3.566 0 01-.322-.198c-.195-.135-.363-.332-.612-.465v-.005h-.005c-.4-.246-.616-.512-.686-.71-.07-.268-.005-.47.193-.6.224-.135.38-.271.483-.336.104-.074.143-.102.176-.131h.002v-.003c.169-.202.436-.47.839-.601.139-.036.294-.065.466-.065zm2.8 2.142c.358 1.417 1.196 3.475 1.735 4.473.286.534.855 1.659 1.102 3.024.156-.005.33.018.513.064.646-1.671-.546-3.467-1.089-3.966-.22-.2-.232-.335-.123-.335.59.534 1.365 1.572 1.646 2.757.13.535.16 1.104.021 1.67.067.028.135.06.205.067 1.032.534 1.413.938 1.23 1.537v-.043c-.06-.003-.12 0-.18 0h-.016c.151-.467-.182-.825-1.065-1.224-.915-.4-1.646-.336-1.77.465-.008.043-.013.066-.018.135-.068.023-.139.053-.209.064-.43.268-.662.669-.793 1.187-.13.533-.17 1.156-.205 1.869v.003c-.02.334-.17.838-.319 1.35-1.5 1.072-3.58 1.538-5.348.334a2.645 2.645 0 00-.402-.533 1.45 1.45 0 00-.275-.333c.182 0 .338-.03.465-.067a.615.615 0 00.314-.334c.108-.267 0-.697-.345-1.163-.345-.467-.931-.995-1.788-1.521-.63-.4-.986-.87-1.15-1.396-.165-.534-.143-1.085-.015-1.645.245-1.07.873-2.11 1.274-2.763.107-.065.037.135-.408.974-.396.751-1.14 2.497-.122 3.854a8.123 8.123 0 01.647-2.876c.564-1.278 1.743-3.504 1.836-5.268.048.036.217.135.289.202.218.133.38.333.59.465.21.201.477.335.876.335.039.003.075.006.11.006.412 0 .73-.134.997-.268.29-.134.52-.334.74-.4h.005c.467-.135.835-.402 1.044-.7zm2.185 8.958c.037.6.343 1.245.882 1.377.588.134 1.434-.333 1.791-.765l.211-.01c.315-.007.577.01.847.268l.003.003c.208.199.305.53.391.876.085.4.154.78.409 1.066.486.527.645.906.636 1.14l.003-.007v.018l-.003-.012c-.015.262-.185.396-.498.595-.63.401-1.746.712-2.457 1.57-.618.737-1.37 1.14-2.036 1.191-.664.053-1.237-.2-1.574-.898l-.005-.003c-.21-.4-.12-1.025.056-1.69.176-.668.428-1.344.463-1.897.037-.714.076-1.335.195-1.814.12-.465.308-.797.641-.984l.045-.022zm-10.814.049h.01c.053 0 .105.005.157.014.376.055.706.333 1.023.752l.91 1.664.003.003c.243.533.754 1.064 1.189 1.637.434.598.77 1.131.729 1.57v.006c-.057.744-.48 1.148-1.125 1.294-.645.135-1.52.002-2.395-.464-.968-.536-2.118-.469-2.857-.602-.369-.066-.61-.2-.723-.4-.11-.2-.113-.602.123-1.23v-.004l.002-.003c.117-.334.03-.752-.027-1.118-.055-.401-.083-.71.043-.94.16-.334.396-.4.69-.533.294-.135.64-.202.915-.47h.002v-.002c.256-.268.445-.601.668-.838.19-.201.38-.336.663-.336zm7.159-9.074c-.435.201-.945.535-1.488.535-.542 0-.97-.267-1.28-.466-.154-.134-.28-.268-.373-.335-.164-.134-.144-.333-.074-.333.109.016.129.134.199.2.096.066.215.2.36.333.292Line truncated
|
||||
<h2 class="platform-name">Linux</h2>
|
||||
</div>
|
||||
<div class="download-cards">
|
||||
<a class="download-card" data-asset="x86_64.AppImage" href={RELEASES_URL}>
|
||||
<span class="card-icon">
|
||||
<Image class="card-icon--stable" src={iconStable} width={28} height={28} loading="lazy" {...imageProps} />
|
||||
<Image class="card-icon--nightly" src={iconNightly} width={28} height={28} loading="lazy" {...imageProps} />
|
||||
</span>
|
||||
<span class="card-text">
|
||||
<span class="card-arch">x86_64</span>
|
||||
<span class="card-format">AppImage</span>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<p class="releases-link">
|
||||
Looking for older versions? Check the{" "}
|
||||
<a href="https://github.com/pingdotgg/t3code/releases" target="_blank" rel="noopener noreferrer">
|
||||
GitHub releases page<span aria-hidden="true"> ↗</span>
|
||||
</a>
|
||||
</p>
|
||||
<!-- Mobile. Stable only, there is no nightly mobile build. -->
|
||||
<section class="platform-section platform-section--mobile" data-rise style="--d:420ms">
|
||||
<div class="platform-header">
|
||||
<svg class="platform-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="7" y="2" width="10" height="20" rx="2.5"/><path d="M11 18.5h2"/></svg>
|
||||
<h2 class="platform-name">Mobile</h2>
|
||||
</div>
|
||||
<div class="download-cards">
|
||||
<a class="download-card" href={IOS_APP_STORE_URL} target="_blank" rel="noopener noreferrer">
|
||||
<span class="card-text">
|
||||
<span class="card-arch">iPhone & iPad</span>
|
||||
<span class="card-format">App Store</span>
|
||||
</span>
|
||||
</a>
|
||||
<a class="download-card" href={ANDROID_PLAY_STORE_URL} target="_blank" rel="noopener noreferrer">
|
||||
<span class="card-text">
|
||||
<span class="card-arch">Android</span>
|
||||
<span class="card-format">Google Play</span>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="platform-section platform-section--cli" data-rise style="--d:420ms">
|
||||
<div class="platform-header">
|
||||
<svg class="platform-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 7l5 5-5 5M12 17h7"/></svg>
|
||||
<h2 class="platform-name">Terminal</h2>
|
||||
</div>
|
||||
<code class="cli-line">npx t3@nightly</code>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<p class="releases-link" data-rise style="--d:480ms">
|
||||
All builds are on the{" "}
|
||||
<a id="releases-page-link" href={RELEASES_URL} target="_blank" rel="noopener noreferrer">
|
||||
GitHub releases page<span aria-hidden="true"> ↗</span>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</Layout>
|
||||
|
||||
<script>
|
||||
import { fetchLatestRelease, RELEASES_URL } from "../lib/releases";
|
||||
import { fetchLatestRelease, RELEASES_URL, NIGHTLY_RELEASES_URL, type ReleaseChannel } from "../lib/releases";
|
||||
|
||||
async function init() {
|
||||
const versionLabel = document.getElementById("version-label");
|
||||
// Only release-asset links; mobile store cards have no data-asset and keep their href.
|
||||
const cards = document.querySelectorAll<HTMLAnchorElement>("a[data-asset]");
|
||||
const page = document.getElementById("download-page")!;
|
||||
const versionLabel = document.getElementById("version-label")!;
|
||||
const changelogLink = document.getElementById("changelog-link") as HTMLAnchorElement;
|
||||
const releasesPageLink = document.getElementById("releases-page-link") as HTMLAnchorElement;
|
||||
const tabs = page.querySelectorAll<HTMLButtonElement>(".channel-toggle button");
|
||||
// Only release-asset links; mobile store cards have no data-asset and keep their href.
|
||||
const cards = page.querySelectorAll<HTMLAnchorElement>("a[data-asset]");
|
||||
|
||||
function readChannel(): ReleaseChannel {
|
||||
return new URLSearchParams(location.search).get("channel") === "nightly" ? "nightly" : "stable";
|
||||
}
|
||||
|
||||
function relativeAge(iso: string): string {
|
||||
const minutes = Math.max(1, Math.round((Date.now() - Date.parse(iso)) / 60_000));
|
||||
if (minutes < 60) return `${minutes} minutes ago`;
|
||||
const hours = Math.round(minutes / 60);
|
||||
if (hours < 48) return `${hours} hours ago`;
|
||||
return `${Math.round(hours / 24)} days ago`;
|
||||
}
|
||||
|
||||
async function load(channel: ReleaseChannel) {
|
||||
const fallback = channel === "nightly" ? NIGHTLY_RELEASES_URL : RELEASES_URL;
|
||||
page.dataset.channel = channel;
|
||||
tabs.forEach((tab) => tab.setAttribute("aria-selected", String(tab.dataset.channel === channel)));
|
||||
releasesPageLink.href = fallback;
|
||||
changelogLink.href = fallback;
|
||||
versionLabel.textContent = "\u00a0";
|
||||
cards.forEach((card) => {
|
||||
card.href = fallback;
|
||||
});
|
||||
|
||||
try {
|
||||
const release = await fetchLatestRelease();
|
||||
|
||||
if (versionLabel && release.tag_name) {
|
||||
versionLabel.textContent = `Latest (${release.tag_name})`;
|
||||
}
|
||||
|
||||
const changelogLink = document.getElementById("changelog-link") as HTMLAnchorElement | null;
|
||||
if (changelogLink && release.html_url) {
|
||||
changelogLink.href = release.html_url;
|
||||
changelogLink.style.display = "";
|
||||
}
|
||||
const release = await fetchLatestRelease(channel);
|
||||
// A toggle click while the fetch was in flight wins; drop the stale result.
|
||||
if (page.dataset.channel !== channel) return;
|
||||
|
||||
// Stable shows its version. Nightly shows how fresh the build is; the tag is noise.
|
||||
versionLabel.textContent =
|
||||
channel === "nightly"
|
||||
? `Built ${relativeAge(release.published_at)}`
|
||||
: release.tag_name;
|
||||
if (release.html_url) changelogLink.href = release.html_url;
|
||||
cards.forEach((card) => {
|
||||
const suffix = card.dataset.asset;
|
||||
if (!suffix) return;
|
||||
|
||||
const match = (release.assets ?? []).find((a) => a.name.endsWith(`-${suffix}`));
|
||||
if (match) {
|
||||
card.href = match.browser_download_url;
|
||||
} else {
|
||||
card.href = RELEASES_URL;
|
||||
}
|
||||
const match = (release.assets ?? []).find((a) => a.name.endsWith(`-${card.dataset.asset}`));
|
||||
card.href = match?.browser_download_url ?? fallback;
|
||||
});
|
||||
} catch {
|
||||
if (versionLabel) {
|
||||
versionLabel.textContent = "Could not load release info.";
|
||||
}
|
||||
cards.forEach((card) => {
|
||||
card.href = RELEASES_URL;
|
||||
});
|
||||
if (page.dataset.channel === channel) versionLabel.textContent = "Releases";
|
||||
}
|
||||
}
|
||||
|
||||
init();
|
||||
tabs.forEach((tab) => {
|
||||
tab.addEventListener("click", () => {
|
||||
const channel = tab.dataset.channel as ReleaseChannel;
|
||||
const url = new URL(location.href);
|
||||
if (channel === "nightly") url.searchParams.set("channel", "nightly");
|
||||
else url.searchParams.delete("channel");
|
||||
history.replaceState(null, "", url);
|
||||
load(channel);
|
||||
});
|
||||
});
|
||||
|
||||
load(readChannel());
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@@ -137,38 +218,158 @@ import { ANDROID_PLAY_STORE_URL, IOS_APP_STORE_URL } from "../lib/site";
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 8vh 1.5rem 4rem;
|
||||
padding: 0 1.5rem 4rem;
|
||||
}
|
||||
|
||||
/* ── Heading ── */
|
||||
/* ── Header ── */
|
||||
|
||||
.download-head {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 9vh 1.5rem 2.5rem;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
/* Sky: the nightly DMG backdrop, masked so it dissolves into the page instead of ending at a line. */
|
||||
.sky {
|
||||
position: absolute;
|
||||
top: -80px;
|
||||
bottom: 0;
|
||||
/* Break out of the page padding so the sky spans the full viewport width. */
|
||||
left: 50%;
|
||||
width: 100vw;
|
||||
margin-left: -50vw;
|
||||
z-index: -1;
|
||||
background: url("/nightly-sky.svg") center / cover no-repeat;
|
||||
-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
|
||||
mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
|
||||
opacity: 0;
|
||||
transform: scale(1.04);
|
||||
transition: opacity 0.9s ease, transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.download-page[data-channel="nightly"] .sky {
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.head-inner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.head-icon {
|
||||
position: relative;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* Both channel icons stay mounted and cross-fade, so the title never moves. */
|
||||
.head-icon img,
|
||||
.card-icon img {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transition: opacity 0.45s ease;
|
||||
}
|
||||
|
||||
.head-icon--nightly,
|
||||
.card-icon--nightly {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.download-page[data-channel="nightly"] .head-icon--stable,
|
||||
.download-page[data-channel="nightly"] .card-icon--stable {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.download-page[data-channel="nightly"] .head-icon--nightly,
|
||||
.download-page[data-channel="nightly"] .card-icon--nightly {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.heading {
|
||||
font-weight: 500;
|
||||
font-size: clamp(1.75rem, 4vw, 2.75rem);
|
||||
letter-spacing: -0.035em;
|
||||
line-height: 1.15;
|
||||
text-align: center;
|
||||
margin-bottom: 0.5rem;
|
||||
opacity: 0;
|
||||
animation: fade-in 1s ease-out forwards;
|
||||
}
|
||||
|
||||
.subheading {
|
||||
font-size: 0.9rem;
|
||||
color: var(--fg-dim);
|
||||
margin-bottom: 3.5rem;
|
||||
opacity: 0;
|
||||
animation: fade-in 1s ease-out 0.1s forwards;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
/* ── Channel toggle ── */
|
||||
|
||||
.channel-toggle {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
margin-top: 1.5rem;
|
||||
padding: 3px;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
transition: border-color 0.45s ease, background 0.45s ease;
|
||||
}
|
||||
|
||||
.download-page[data-channel="nightly"] .channel-toggle {
|
||||
border-color: rgba(255, 255, 255, 0.22);
|
||||
background: rgba(7, 21, 47, 0.5);
|
||||
}
|
||||
|
||||
/* The thumb slides between the two tabs; both tabs are the same width. */
|
||||
.channel-thumb {
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
bottom: 3px;
|
||||
left: 3px;
|
||||
width: calc(50% - 3px);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.45s ease;
|
||||
}
|
||||
|
||||
.download-page[data-channel="nightly"] .channel-thumb {
|
||||
transform: translateX(100%);
|
||||
background: rgba(255, 255, 255, 0.16);
|
||||
}
|
||||
|
||||
.channel-toggle button {
|
||||
position: relative;
|
||||
width: 5.5rem;
|
||||
padding: 7px 0;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
background: transparent;
|
||||
color: var(--fg-muted);
|
||||
font: inherit;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
transition: color 0.25s ease;
|
||||
}
|
||||
|
||||
.channel-toggle button:hover,
|
||||
.channel-toggle button[aria-selected="true"] {
|
||||
color: var(--fg);
|
||||
}
|
||||
|
||||
.channel-toggle button[aria-selected="true"] {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.head-meta {
|
||||
margin-top: 1rem;
|
||||
font-size: 0.8rem;
|
||||
min-height: 1.2em;
|
||||
}
|
||||
|
||||
.changelog-link {
|
||||
color: var(--fg-muted);
|
||||
font-size: 0.8rem;
|
||||
color: var(--fg-dim);
|
||||
text-decoration: underline;
|
||||
text-decoration-color: rgba(161, 161, 170, 0.4);
|
||||
text-decoration-color: transparent;
|
||||
text-underline-offset: 3px;
|
||||
transition: color 0.3s ease, text-decoration-color 0.3s ease;
|
||||
}
|
||||
@@ -178,6 +379,10 @@ import { ANDROID_PLAY_STORE_URL, IOS_APP_STORE_URL } from "../lib/site";
|
||||
text-decoration-color: var(--fg);
|
||||
}
|
||||
|
||||
.download-page[data-channel="nightly"] .changelog-link {
|
||||
color: #b9bdff;
|
||||
}
|
||||
|
||||
/* ── Platforms ── */
|
||||
|
||||
.platforms {
|
||||
@@ -186,8 +391,6 @@ import { ANDROID_PLAY_STORE_URL, IOS_APP_STORE_URL } from "../lib/site";
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2.5rem;
|
||||
opacity: 0;
|
||||
animation: fade-in 1s ease-out 0.2s forwards;
|
||||
}
|
||||
|
||||
.platform-section {
|
||||
@@ -196,6 +399,18 @@ import { ANDROID_PLAY_STORE_URL, IOS_APP_STORE_URL } from "../lib/site";
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.platform-section--cli {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.download-page[data-channel="nightly"] .platform-section--mobile {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.download-page[data-channel="nightly"] .platform-section--cli {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.platform-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -217,6 +432,17 @@ import { ANDROID_PLAY_STORE_URL, IOS_APP_STORE_URL } from "../lib/site";
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.cli-line {
|
||||
align-self: flex-start;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.85rem;
|
||||
padding: 0.6rem 0.9rem;
|
||||
border-radius: 10px;
|
||||
border: 1px solid rgba(105, 111, 234, 0.35);
|
||||
background: rgba(21, 20, 67, 0.3);
|
||||
color: var(--fg);
|
||||
}
|
||||
|
||||
/* ── Download cards ── */
|
||||
|
||||
.download-cards {
|
||||
@@ -227,13 +453,13 @@ import { ANDROID_PLAY_STORE_URL, IOS_APP_STORE_URL } from "../lib/site";
|
||||
|
||||
.download-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.2rem;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0.85rem 1rem;
|
||||
border-radius: 10px;
|
||||
border: 1px solid var(--border);
|
||||
background: rgba(255, 255, 255, 0.02);
|
||||
transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
|
||||
transition: background 0.45s ease, border-color 0.45s ease, transform 0.2s ease;
|
||||
}
|
||||
|
||||
.download-card:hover {
|
||||
@@ -246,6 +472,28 @@ import { ANDROID_PLAY_STORE_URL, IOS_APP_STORE_URL } from "../lib/site";
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.download-page[data-channel="nightly"] .download-card[data-asset] {
|
||||
border-color: rgba(105, 111, 234, 0.4);
|
||||
background: linear-gradient(135deg, rgba(81, 101, 216, 0.1), rgba(168, 91, 234, 0.06));
|
||||
}
|
||||
|
||||
.download-page[data-channel="nightly"] .download-card[data-asset]:hover {
|
||||
border-color: rgba(105, 111, 234, 0.7);
|
||||
}
|
||||
|
||||
.card-icon {
|
||||
position: relative;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.card-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.2rem;
|
||||
}
|
||||
|
||||
.card-arch {
|
||||
font-weight: 600;
|
||||
font-size: 0.95rem;
|
||||
@@ -254,6 +502,11 @@ import { ANDROID_PLAY_STORE_URL, IOS_APP_STORE_URL } from "../lib/site";
|
||||
.card-format {
|
||||
font-size: 0.8rem;
|
||||
color: var(--fg-dim);
|
||||
transition: color 0.45s ease;
|
||||
}
|
||||
|
||||
.download-page[data-channel="nightly"] .card-format {
|
||||
color: #b6b0ff;
|
||||
}
|
||||
|
||||
.intel-note {
|
||||
@@ -261,7 +514,8 @@ import { ANDROID_PLAY_STORE_URL, IOS_APP_STORE_URL } from "../lib/site";
|
||||
color: var(--fg-dim);
|
||||
}
|
||||
|
||||
.intel-note a {
|
||||
.intel-note a,
|
||||
.releases-link a {
|
||||
color: var(--fg-muted);
|
||||
text-decoration: underline;
|
||||
text-decoration-color: rgba(161, 161, 170, 0.4);
|
||||
@@ -269,7 +523,8 @@ import { ANDROID_PLAY_STORE_URL, IOS_APP_STORE_URL } from "../lib/site";
|
||||
transition: color 0.3s ease, text-decoration-color 0.3s ease;
|
||||
}
|
||||
|
||||
.intel-note a:hover {
|
||||
.intel-note a:hover,
|
||||
.releases-link a:hover {
|
||||
color: var(--fg);
|
||||
text-decoration-color: var(--fg);
|
||||
}
|
||||
@@ -280,28 +535,35 @@ import { ANDROID_PLAY_STORE_URL, IOS_APP_STORE_URL } from "../lib/site";
|
||||
margin-top: 3rem;
|
||||
font-size: 0.825rem;
|
||||
color: var(--fg-dim);
|
||||
opacity: 0;
|
||||
animation: fade-in 1s ease-out 0.35s forwards;
|
||||
}
|
||||
|
||||
.releases-link a {
|
||||
color: var(--fg-muted);
|
||||
text-decoration: underline;
|
||||
text-decoration-color: rgba(161, 161, 170, 0.4);
|
||||
text-underline-offset: 3px;
|
||||
transition: color 0.3s ease, text-decoration-color 0.3s ease;
|
||||
}
|
||||
/* ── Motion ── */
|
||||
|
||||
.releases-link a:hover {
|
||||
color: var(--fg);
|
||||
text-decoration-color: var(--fg);
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.sky,
|
||||
.head-icon img,
|
||||
.card-icon img,
|
||||
.channel-thumb,
|
||||
.channel-toggle,
|
||||
.download-card {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Mobile ── */
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.download-page {
|
||||
padding: 5vh 1.25rem 4rem;
|
||||
padding: 0 1.25rem 4rem;
|
||||
}
|
||||
|
||||
.download-head {
|
||||
padding: 6vh 1.25rem 2rem;
|
||||
}
|
||||
|
||||
.head-inner {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.platforms {
|
||||
|
||||
Reference in new issue
Block a user