Open History to see the last commit
1---
2import { GITHUB_REPOSITORY_URL, MARKETING_STATS } from "../lib/site";
3
4interface Props {
5 title?: string;
6 description?: string;
7 pageClass?: string;
8}
9
10const {
11 title = "T3 Code",
12 description = "T3 Code — The open-source control plane for coding agents.",
13 pageClass,
14} = Astro.props;
15---
16
17<html lang="en">
18 <head>
19 <meta charset="UTF-8" />
20 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
21 <meta name="description" content={description} />
22 <link rel="preconnect" href="https://fonts.googleapis.com" />
23 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
24 <link
25 href="https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&family=JetBrains+Mono:wght@400;500&display=swap"
26 rel="stylesheet"
27 />
28 <link rel="icon" href="/favicon.ico" sizes="48x48" />
29 <link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32" />
30 <link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16" />
31 <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
32 <title>{title}</title>
33 </head>
34 <body>
35 <div class:list={["page", pageClass]}>
36 <nav class="nav">
37 <div class="nav-inner">
38 <a href="/" class="nav-brand" aria-label="T3 Code home">
39 <span class="nav-brand-name">T3 Code</span>
40 </a>
41 <div class="nav-right">
42 <a
43 class="nav-stars"
44 href={GITHUB_REPOSITORY_URL}
45 target="_blank"
46 rel="noopener noreferrer"
47 aria-label={`Star T3 Code on GitHub — ${MARKETING_STATS.githubStars} stars`}
48 >
49 <svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
50 <path d="M12 2.3l2.9 5.88 6.49.94-4.7 4.58 1.11 6.47L12 17.12l-5.8 3.05 1.11-6.47-4.7-4.58 6.49-.94L12 2.3z"/>
51 </svg>
52 <span><strong>{MARKETING_STATS.githubStars}</strong> GitHub stars</span>
53 </a>
54 </div>
55 </div>
56 </nav>
57
58 <main class="main">
59 <slot />
60 </main>
61
62 <footer class="footer">
63 <div class="footer-inner">
64 <div class="footer-brand">
65 <img src="/icon.webp" alt="" />
66 <span>© {new Date().getFullYear()} T3 Tools Inc · MIT licensed</span>
67 </div>
68 <div class="footer-links">
69 <a href={GITHUB_REPOSITORY_URL} target="_blank" rel="noopener noreferrer">GitHub</a>
70 <a href="https://discord.gg/jn4EGJjrvv" target="_blank" rel="noopener noreferrer">Discord</a>
71 <a href="/download">Download</a>
72 <a href="/terms-of-service">Terms</a>
73 <a href="/privacy-policy">Privacy</a>
74 <a href="/security-policy">Security</a>
75 </div>
76 </div>
77 </footer>
78 </div>
79
80 <script>
81 const nav = document.querySelector(".nav");
82 const onScroll = () => {
83 if (!nav) return;
84 if (window.scrollY > 12) nav.classList.add("is-scrolled");
85 else nav.classList.remove("is-scrolled");
86 };
87 window.addEventListener("scroll", onScroll, { passive: true });
88 onScroll();
89 </script>
90 </body>
91</html>
92
93<style is:global>
94 :root {
95 --bg: #09090b;
96 --bg-elev: #0c0c0e;
97 --bg-card: #111113;
98 --fg: #fafafa;
99 --fg-muted: #a1a1aa;
100 --fg-dim: #71717a;
101 --fg-faint: #52525b;
102 --border: rgba(255, 255, 255, 0.08);
103 --border-strong: rgba(255, 255, 255, 0.14);
104 --accent-h: 250;
105 --accent: oklch(0.68 0.17 var(--accent-h));
106 --accent-dim: oklch(0.68 0.17 var(--accent-h) / 0.15);
107 --ok: oklch(0.72 0.16 150);
108 --warn: oklch(0.76 0.15 75);
109 --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
110 --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
111 --radius: 12px;
112 --radius-sm: 8px;
113 --radius-lg: 16px;
114 }
115
116 * {
117 box-sizing: border-box;
118 margin: 0;
119 padding: 0;
120 }
121
122 html {
123 color-scheme: dark;
124 scroll-behavior: smooth;
125 }
126
127 body {
128 background: var(--bg);
129 color: var(--fg);
130 font-family: var(--font-sans);
131 font-feature-settings: "ss01", "ss02";
132 -webkit-font-smoothing: antialiased;
133 -moz-osx-font-smoothing: grayscale;
134 min-height: 100vh;
135 overflow-x: hidden;
136 line-height: 1.5;
137 }
138
139 body::after {
140 content: "";
141 position: fixed;
142 inset: 0;
143 pointer-events: none;
144 opacity: 0.035;
145 background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
146 background-repeat: repeat;
147 background-size: 256px 256px;
148 z-index: 9999;
149 }
150
151 a {
152 color: inherit;
153 text-decoration: none;
154 }
155
156 button {
157 font-family: inherit;
158 cursor: pointer;
159 border: 0;
160 background: none;
161 color: inherit;
162 }
163
164 img,
165 svg {
166 display: block;
167 max-width: 100%;
168 }
169
170 .eyebrow {
171 font-family: var(--font-mono);
172 font-size: 11px;
173 letter-spacing: 0.14em;
174 text-transform: uppercase;
175 color: var(--fg-dim);
176 font-weight: 500;
177 }
178
179 .display {
180 font-weight: 500;
181 letter-spacing: -0.035em;
182 line-height: 1.05;
183 }
184
185 .container {
186 width: 100%;
187 max-width: 1240px;
188 margin: 0 auto;
189 padding: 0 32px;
190 }
191
192 .btn {
193 display: inline-flex;
194 align-items: center;
195 justify-content: center;
196 gap: 8px;
197 font-weight: 500;
198 font-size: 14px;
199 padding: 10px 18px;
200 border-radius: 8px;
201 transition: transform 0.18s ease, background 0.18s ease,
202 border-color 0.18s ease, color 0.18s ease;
203 white-space: nowrap;
204 }
205
206 .btn-primary {
207 background: var(--fg);
208 color: #09090b;
209 font-weight: 600;
210 }
211
212 .btn-primary:hover {
213 transform: translateY(-1px);
214 background: #fff;
215 }
216
217 .btn-primary:active {
218 transform: translateY(0);
219 }
220
221 .btn-ghost {
222 color: var(--fg-muted);
223 border: 1px solid var(--border);
224 background: transparent;
225 }
226
227 .btn-ghost:hover {
228 color: var(--fg);
229 border-color: var(--border-strong);
230 background: rgba(255, 255, 255, 0.02);
231 }
232
233 .btn-lg {
234 padding: 14px 22px;
235 font-size: 15px;
236 border-radius: 10px;
237 }
238
239 .tile {
240 position: relative;
241 border: 1px solid var(--border);
242 border-radius: var(--radius);
243 background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
244 overflow: hidden;
245 }
246
247 :focus-visible {
248 outline: 2px solid var(--accent);
249 outline-offset: 2px;
250 border-radius: 4px;
251 }
252
253 @keyframes fade-in {
254 from {
255 opacity: 0;
256 transform: translateY(8px);
257 }
258 to {
259 opacity: 1;
260 transform: translateY(0);
261 }
262 }
263
264 @keyframes pulse {
265 50% { opacity: 0.4; }
266 }
267
268 @keyframes spin {
269 to { transform: rotate(360deg); }
270 }
271
272 @keyframes floatDrift {
273 0%, 100% { translate: 0 0; }
274 50% { translate: 0 -10px; }
275 }
276
277 @keyframes blink {
278 50% { opacity: 0; }
279 }
280</style>
281
282<style>
283 .page {
284 min-height: 100vh;
285 display: flex;
286 flex-direction: column;
287 overflow-x: clip;
288 }
289
290 .nav {
291 position: sticky;
292 top: 0;
293 z-index: 50;
294 backdrop-filter: blur(18px);
295 -webkit-backdrop-filter: blur(18px);
296 background: color-mix(in srgb, var(--bg) 75%, transparent);
297 border-bottom: 1px solid transparent;
298 transition: border-color 0.3s ease;
299 }
300
301 .nav.is-scrolled {
302 border-bottom-color: var(--border);
303 }
304
305 .nav-inner {
306 max-width: 1240px;
307 margin: 0 auto;
308 padding: 12px 32px;
309 display: flex;
310 align-items: center;
311 justify-content: space-between;
312 gap: 24px;
313 }
314
315 .nav-brand {
316 display: inline-flex;
317 align-items: center;
318 color: var(--fg);
319 transition: color 0.2s ease;
320 }
321
322 .nav-brand:hover {
323 color: #fff;
324 }
325
326 .nav-brand-name {
327 font-size: 16px;
328 font-weight: 650;
329 letter-spacing: -0.025em;
330 line-height: 1;
331 }
332
333 .nav-right {
334 display: inline-flex;
335 align-items: center;
336 gap: 8px;
337 }
338
339 .nav-stars {
340 display: inline-flex;
341 align-items: center;
342 gap: 7px;
343 height: 36px;
344 padding: 0 14px;
345 border: 1px solid var(--border);
346 border-radius: 999px;
347 background: rgba(255, 255, 255, 0.02);
348 color: var(--fg-muted);
349 font-size: 13px;
350 letter-spacing: -0.01em;
351 white-space: nowrap;
352 transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
353 }
354
355 .nav-stars:hover {
356 color: var(--fg);
357 border-color: var(--border-strong);
358 background: rgba(255, 255, 255, 0.04);
359 }
360
361 .nav-stars strong {
362 color: var(--fg);
363 font-weight: 600;
364 }
365
366 .nav-stars svg {
367 color: var(--warn);
368 flex-shrink: 0;
369 }
370
371 .main {
372 flex: 1;
373 display: flex;
374 flex-direction: column;
375 }
376
377 .footer {
378 margin-top: auto;
379 border-top: 1px solid var(--border);
380 padding: 40px 0 32px;
381 }
382
383 .footer-inner {
384 max-width: 1240px;
385 margin: 0 auto;
386 padding: 0 32px;
387 display: flex;
388 flex-wrap: wrap;
389 gap: 24px;
390 align-items: center;
391 justify-content: space-between;
392 }
393
394 .footer-brand {
395 display: flex;
396 align-items: center;
397 gap: 10px;
398 font-size: 13px;
399 color: var(--fg-dim);
400 }
401
402 .footer-brand img {
403 width: 20px;
404 height: 20px;
405 border-radius: 4px;
406 }
407
408 .footer-links {
409 display: flex;
410 flex-wrap: wrap;
411 justify-content: flex-end;
412 gap: 20px;
413 }
414
415 .footer-links a {
416 font-size: 13px;
417 color: var(--fg-dim);
418 transition: color 0.2s ease;
419 }
420
421 .footer-links a:hover {
422 color: var(--fg);
423 }
424
425 @media (max-width: 820px) {
426 .nav-inner,
427 .footer-inner {
428 padding-left: 20px;
429 padding-right: 20px;
430 }
431
432 .legal-document-page .nav {
433 display: none;
434 }
435
436 .footer {
437 padding-bottom: max(32px, env(safe-area-inset-bottom));
438 }
439
440 .footer-inner {
441 align-items: flex-start;
442 flex-direction: column;
443 gap: 28px;
444 }
445
446 .footer-links {
447 display: grid;
448 grid-template-columns: repeat(3, minmax(0, 1fr));
449 width: 100%;
450 gap: 14px 20px;
451 justify-content: initial;
452 }
453 }
454
455 @media (max-width: 420px) {
456 .nav-inner {
457 gap: 12px;
458 }
459
460 .nav-stars {
461 height: 34px;
462 gap: 6px;
463 padding: 0 12px;
464 font-size: 12px;
465 }
466 }
467</style>