Skip to content

Commit 7d34adc

Browse files
committed
Add download page
1 parent 84277d2 commit 7d34adc

4 files changed

Lines changed: 245 additions & 14 deletions

File tree

blog.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,12 @@
188188
<span></span>
189189
</button>
190190
<ul class="nav-menu">
191-
<li><a href="index.html#features" class="nav-link">Features</a></li>
191+
<li><a href="features.html" class="nav-link">Features</a></li>
192192
<li><a href="index.html#screenshots" class="nav-link">Screenshots</a></li>
193193
<li><a href="blog.html" class="nav-link">Blog</a></li>
194-
<li><a href="https://text-forge.github.io/docs/" class="nav-link" target="_blank">Docs</a></li>
195-
<li><a href="https://text-forge.github.io/marketplace/" class="nav-link" target="_blank">Marketplace</a></li>
194+
<li><a href="download.html" class="nav-link active">Download</a></li>
195+
<li><a href="https://text-forge.github.io/docs/" target="_blank" class="nav-link">Docs</a></li>
196+
<li><a href="https://text-forge.github.io/marketplace/" target="_blank" class="nav-link">Marketplace</a></li>
196197
<li><a href="https://github.com/text-forge/text-forge" class="nav-link nav-link-github" target="_blank">
197198
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>
198199
GitHub

download.html

Lines changed: 228 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,228 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1" />
6+
<title>Download Text Forge</title>
7+
<link rel="stylesheet" href="css/styles.css">
8+
<style>
9+
body { padding-top: 4rem; }
10+
.download-hero { text-align: center; padding: 3rem 0; }
11+
.download-section { max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }
12+
.download-card {
13+
border: 1px solid var(--color-border);
14+
border-radius: 12px;
15+
padding: 1.5rem;
16+
margin-bottom: 1.5rem;
17+
background: var(--color-surface);
18+
transition: 0.25s ease;flex: 1;
19+
min-width: 340px;
20+
}
21+
/* ⭐ Highlight detected platform */
22+
.download-card.highlight {
23+
border-color: var(--color-cyan);
24+
box-shadow: 0 0 15px rgba(44, 226, 247, 0.25);
25+
}
26+
27+
.download-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
28+
.download-desc { color: var(--color-text-secondary); line-height: 1.5; margin-bottom: 1rem; }
29+
30+
/* ⭐ Button text changed to dark */
31+
.download-btn {
32+
display: inline-block;
33+
padding: 0.7rem 1.2rem;
34+
border-radius: 8px;
35+
background: var(--color-cyan);
36+
color: #0d1117; /* DARK TEXT */
37+
font-weight: 600;
38+
text-decoration: none;
39+
}
40+
.download-btn.disabled { background: #555; cursor: default; pointer-events: none; color: #ccc; }
41+
42+
.version-label { margin-top: 0.5rem; font-size: 0.9rem; color: var(--color-text-secondary); }
43+
44+
.download-row {
45+
display: flex;
46+
gap: 1.5rem;
47+
justify-content: center;
48+
flex-wrap: wrap;
49+
}
50+
51+
.version-label a {
52+
color: var(--color-cyan); /* Make it look like a link */
53+
font-weight: 600; /* Optional: make it stand out */
54+
text-decoration: underline; /* Optional: show underline */
55+
}
56+
57+
.version-label a:hover {
58+
opacity: 0.8;
59+
}
60+
</style>
61+
</head>
62+
63+
<body>
64+
65+
<header class="header">
66+
<nav class="nav container">
67+
<a href="index.html" class="nav-logo">
68+
<img src="assets/images/logo.png" class="logo-img">
69+
<span class="logo-text">Text Forge</span>
70+
</a>
71+
<button class="nav-toggle" aria-label="Toggle navigation">
72+
<span></span><span></span><span></span>
73+
</button>
74+
<ul class="nav-menu">
75+
<li><a href="features.html" class="nav-link">Features</a></li>
76+
<li><a href="index.html#screenshots" class="nav-link">Screenshots</a></li>
77+
<li><a href="blog.html" class="nav-link">Blog</a></li>
78+
<li><a href="download.html" class="nav-link active">Download</a></li>
79+
<li><a href="https://text-forge.github.io/docs/" target="_blank" class="nav-link">Docs</a></li>
80+
<li><a href="https://text-forge.github.io/marketplace/" target="_blank" class="nav-link">Marketplace</a></li>
81+
<li><a href="https://github.com/text-forge/text-forge" class="nav-link nav-link-github" target="_blank">
82+
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>
83+
GitHub
84+
</a></li>
85+
</ul>
86+
</nav>
87+
</header>
88+
89+
<main class="container">
90+
91+
<section class="download-hero">
92+
<h1 class="section-title">Download Text Forge</h1>
93+
<p class="section-subtitle">Choose your platform and start using Text Forge in minutes.</p>
94+
<p id="latest-version" class="version-label">Checking latest version...</p>
95+
</section>
96+
97+
<section class="download-section">
98+
<div class="download-row">
99+
<div id="card-windows" class="download-card">
100+
<div class="download-title">Windows (Portable ZIP)</div>
101+
<div class="download-desc">
102+
Portable build for Windows (x86_64). No installer — unpack and run.
103+
</div>
104+
<a id="download-windows" class="download-btn disabled">Loading...</a>
105+
</div>
106+
107+
<div id="card-linux" class="download-card">
108+
<div class="download-title">Linux (ZIP Bundle)</div>
109+
<div class="download-desc">
110+
ZIP archive including x86_64 binary and launch script.
111+
</div>
112+
<a id="download-linux" class="download-btn disabled">Loading...</a>
113+
</div>
114+
</div>
115+
116+
<p class="version-label" style="text-align:center;">
117+
Looking for older versions? Visit
118+
<a href="https://github.com/text-forge/text-forge/releases" target="_blank">GitHub Releases</a>.
119+
<br><br>
120+
All files are fetched from GitHub.
121+
</p>
122+
123+
</section>
124+
125+
</main>
126+
127+
<footer class="footer">
128+
<div class="container">
129+
<div class="footer-content">
130+
<div class="footer-brand">
131+
<a href="index.html" class="footer-logo">
132+
<img src="assets/images/logo.png" alt="Text Forge Logo" class="logo-img">
133+
<span>Text Forge</span>
134+
</a>
135+
<p class="footer-tagline">Simplicity to start, power to grow!</p>
136+
</div>
137+
<div class="footer-links">
138+
<div class="footer-column">
139+
<h4>Project</h4>
140+
<ul>
141+
<li><a href="https://github.com/text-forge/text-forge" target="_blank">GitHub</a></li>
142+
<li><a href="https://github.com/text-forge/text-forge/releases" target="_blank">Releases</a></li>
143+
<li><a href="https://text-forge.github.io/docs/" target="_blank">Documentation</a></li>
144+
</ul>
145+
</div>
146+
<div class="footer-column">
147+
<h4>Community</h4>
148+
<ul>
149+
<li><a href="https://github.com/text-forge/text-forge/discussions" target="_blank">Discussions</a></li>
150+
<li><a href="https://text-forge.github.io/marketplace" target="_blank">Marketplace</a></li>
151+
<li><a href="https://github.com/text-forge/mode-library" target="_blank">Mode Library</a></li>
152+
</ul>
153+
</div>
154+
<div class="footer-column">
155+
<h4>More</h4>
156+
<ul>
157+
<li><a href="blog.html">Blog</a></li>
158+
<li><a href="https://github.com/text-forge/text-forge/blob/main/LICENSE" target="_blank">License (MIT)</a></li>
159+
</ul>
160+
</div>
161+
</div>
162+
</div>
163+
<div class="footer-bottom">
164+
<p>&copy; 2025 Text Forge. Open source under MIT License.</p>
165+
</div>
166+
</div>
167+
</footer>
168+
169+
<script>
170+
async function loadLatestRelease() {
171+
const versionLabel = document.getElementById("latest-version");
172+
const winBtn = document.getElementById("download-windows");
173+
const linuxBtn = document.getElementById("download-linux");
174+
const winCard = document.getElementById("card-windows");
175+
const linuxCard = document.getElementById("card-linux");
176+
177+
try {
178+
const res = await fetch("https://api.github.com/repos/text-forge/text-forge/releases/latest");
179+
const data = await res.json();
180+
181+
const version = data.tag_name;
182+
const assets = data.assets;
183+
184+
versionLabel.textContent = "Latest Version: " + version;
185+
186+
const winAsset = assets.find(a =>
187+
a.name.toLowerCase().includes("windows") &&
188+
a.name.toLowerCase().endsWith(".zip")
189+
);
190+
191+
if (winAsset) {
192+
winBtn.textContent = "Download for Windows";
193+
winBtn.href = winAsset.browser_download_url;
194+
winBtn.classList.remove("disabled");
195+
} else {
196+
winBtn.textContent = "Windows build unavailable";
197+
}
198+
199+
const linuxAsset = assets.find(a =>
200+
a.name.toLowerCase().includes("linux") &&
201+
a.name.toLowerCase().endsWith(".zip")
202+
);
203+
204+
if (linuxAsset) {
205+
linuxBtn.textContent = "Download for Linux";
206+
linuxBtn.href = linuxAsset.browser_download_url;
207+
linuxBtn.classList.remove("disabled");
208+
} else {
209+
linuxBtn.textContent = "Linux build unavailable";
210+
}
211+
212+
// ⭐ Auto-highlight detected OS
213+
const ua = navigator.userAgent.toLowerCase();
214+
if (ua.includes("windows")) winCard.classList.add("highlight");
215+
else if (ua.includes("linux")) linuxCard.classList.add("highlight");
216+
217+
} catch (e) {
218+
versionLabel.textContent = "Failed to load version.";
219+
winBtn.textContent = "Error";
220+
linuxBtn.textContent = "Error";
221+
}
222+
}
223+
224+
loadLatestRelease();
225+
</script>
226+
227+
</body>
228+
</html>

features.html

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,16 @@
130130
<span></span><span></span><span></span>
131131
</button>
132132
<ul class="nav-menu">
133-
<li><a href="features.html" class="nav-link">Features</a></li>
134-
<li><a href="#screenshots" class="nav-link">Screenshots</a></li>
135-
<li><a href="blog.html" class="nav-link">Blog</a></li>
136-
<li><a href="https://text-forge.github.io/docs/" class="nav-link" target="_blank">Docs</a></li>
137-
<li><a href="https://text-forge.github.io/marketplace/" class="nav-link" target="_blank">Marketplace</a></li>
138-
<li><a href="https://github.com/text-forge/text-forge" class="nav-link nav-link-github" target="_blank">
139-
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>
140-
GitHub
141-
</a></li>
133+
<li><a href="features.html" class="nav-link">Features</a></li>
134+
<li><a href="index.html#screenshots" class="nav-link">Screenshots</a></li>
135+
<li><a href="blog.html" class="nav-link">Blog</a></li>
136+
<li><a href="download.html" class="nav-link active">Download</a></li>
137+
<li><a href="https://text-forge.github.io/docs/" target="_blank" class="nav-link">Docs</a></li>
138+
<li><a href="https://text-forge.github.io/marketplace/" target="_blank" class="nav-link">Marketplace</a></li>
139+
<li><a href="https://github.com/text-forge/text-forge" class="nav-link nav-link-github" target="_blank">
140+
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>
141+
GitHub
142+
</a></li>
142143
</ul>
143144
</nav>
144145
</header>

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
<li><a href="features.html" class="nav-link">Features</a></li>
2929
<li><a href="#screenshots" class="nav-link">Screenshots</a></li>
3030
<li><a href="blog.html" class="nav-link">Blog</a></li>
31-
<li><a href="https://text-forge.github.io/docs/" class="nav-link" target="_blank">Docs</a></li>
32-
<li><a href="https://text-forge.github.io/marketplace/" class="nav-link" target="_blank">Marketplace</a></li>
31+
<li><a href="download.html" class="nav-link active">Download</a></li>
32+
<li><a href="https://text-forge.github.io/docs/" target="_blank" class="nav-link">Docs</a></li>
33+
<li><a href="https://text-forge.github.io/marketplace/" target="_blank" class="nav-link">Marketplace</a></li>
3334
<li><a href="https://github.com/text-forge/text-forge" class="nav-link nav-link-github" target="_blank">
3435
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>
3536
GitHub

0 commit comments

Comments
 (0)