Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/landing/src/components/sections/more.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
import Heading from '@/components/heading.astro'
import OutLink from '@/components/out-link.astro'
import Sketch from '@/components/sketch.astro'
import { landingCopy } from '@/i18n/copy'
import type { Lang } from '@/lib/site'
Expand Down Expand Up @@ -41,6 +42,7 @@ function clauses(text: string): { clause: string; whole: boolean }[] {
<Sketch id={item.id} lang={lang} />
<h4>{item.t}</h4>
<p>{clauses(item.d).map(({ clause, whole }) => (whole ? <span class="clause">{clause}</span> : clause))}</p>
{item.link && <OutLink href={item.link.href}>{item.link.label}</OutLink>}
</li>
))}
</ul>
Expand Down
5 changes: 5 additions & 0 deletions apps/landing/src/components/sketch.astro
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ const LOG: [time: string, action: string, user: string][] = [
</span>
<span class="sk-warn">{copy.tailscale.relayed}</span>
</div>
<div class="sk-peer">
<b>nyc-web</b>
<span class="sk-sas">Z1T-T1D</span>
<b class="sk-ok sk-after">{copy.tailscale.approved}</b>
</div>
<div class="sk-row sk-dim">
<span>{copy.tailscale.panel}</span>
<span>{copy.tailscale.tailnet}</span>
Expand Down
38 changes: 26 additions & 12 deletions apps/landing/src/i18n/copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export type KitId =
| 'upgrades'

interface KitCopy {
groups: { items: (PointCopy & { id: KitId })[]; t: string }[]
groups: { items: (PointCopy & { id: KitId; link?: LinkCopy })[]; t: string }[]
h2: string
/**
* The words inside the sketches. The sample values around them are the same in both languages and live in the
Expand All @@ -146,7 +146,7 @@ interface KitCopy {
monitors: [string, string, string, string, string]
security: { blocked: string; blocklist: string; failed: string }
status: { ago: string; today: string }
tailscale: { direct: string; panel: string; relayed: string; tailnet: string }
tailscale: { approved: string; direct: string; panel: string; relayed: string; tailnet: string }
traffic: { cycle: string; forecast: string; monthly: string; over: string; perCore: string }
upgrades: { rollback: string; verified: string }
}
Expand Down Expand Up @@ -403,7 +403,7 @@ const zh: LandingCopy = {
points: [
{
t: '扫码配对',
d: '在网页面板生成二维码,iPhone 一扫即登,省去手敲地址和密码。二维码 5 分钟有效,单次使用。'
d: '在网页面板生成二维码,iPhone 一扫即登,省去手敲地址和密码,支持 Tailscale HTTPS 私网直连。二维码 5 分钟有效,单次使用。'
},
{
t: '加密告警推送',
Expand Down Expand Up @@ -492,7 +492,11 @@ const zh: LandingCopy = {
{
id: 'tailscale',
t: 'Tailscale 与 Headscale',
d: '面板无需暴露公网。'
d: '同网设备自动发现、核码一键接入,支持 SSH 远程部署,面板不暴露公网。',
link: {
label: 'Tailscale 文档',
href: docsUrl('zh', 'tailscale')
}
},
{
id: 'audit',
Expand All @@ -509,7 +513,7 @@ const zh: LandingCopy = {
monitors: ['43 天后到期', 'A 记录未变', '200,命中关键词', '443 端口可达', '212 天后到期'],
security: { blocked: '已拦截', blocklist: 'nftables 黑名单', failed: '登录失败' },
status: { ago: '90 天前', today: '今天' },
tailscale: { direct: '直连', panel: '面板', relayed: '中继', tailnet: '仅 Tailnet' },
tailscale: { approved: '已批准', direct: '直连', panel: '面板', relayed: '中继', tailnet: '仅 Tailnet' },
traffic: { cycle: '本周期', forecast: '预计', monthly: '$1.50 / 月', over: '2.3 TB,超 0.3', perCore: '每核' },
upgrades: { rollback: '启动失败自动回滚', verified: 'sha256 已校验' }
}
Expand Down Expand Up @@ -546,7 +550,7 @@ const zh: LandingCopy = {
},
{
t: '接入服务器',
d: '在面板里点「添加服务器」,把生成的命令贴到目标 VPS 执行。注册码单次有效,10 分钟过期,之后自动续连。'
d: '在面板里点「添加服务器」,把生成的命令贴到目标 VPS 执行;同在 Tailnet 时可自动发现并核码一键批准,或经 Tailscale SSH 远程部署。注册码单次有效,10 分钟过期,之后自动续连。'
}
],
stats: [
Expand Down Expand Up @@ -592,7 +596,7 @@ const zh: LandingCopy = {
},
{
q: '被监控的 VPS 要开端口吗?',
a: '不用。Agent 主动外连服务端的 WebSocket,被监控机器不需要放行任何入站端口。服务端建议挂在 HTTPS 后面,安装脚本传 --domain 就能自动配好 Caddy 和证书。'
a: '不用。Agent 主动外连服务端的 WebSocket,被监控机器不需要放行任何入站端口。服务端建议挂在 HTTPS 后面,安装脚本传 --domain 可自动配好 Caddy 和证书,也可经 Tailscale Serve 仅在私网内提供 HTTPS 访问。'
},
{
q: '三网延迟到底测的是什么?',
Expand Down Expand Up @@ -861,7 +865,7 @@ const en: LandingCopy = {
points: [
{
t: 'Scan to pair',
d: 'Pop up a QR code in the web panel and scan it on your phone. No URLs or passwords to type; codes work once and expire in 5 minutes.'
d: 'Pop up a QR code in the web panel and scan it on your phone, including over private Tailscale HTTPS. No URLs or passwords to type; codes work once and expire in 5 minutes.'
},
{
t: 'Encrypted push alerts',
Expand Down Expand Up @@ -950,7 +954,11 @@ const en: LandingCopy = {
{
id: 'tailscale',
t: 'Tailscale & Headscale',
d: 'Keeps the panel off the public internet.'
d: 'Auto-discover tailnet peers, approve by code or deploy via SSH, and keep the panel private.',
link: {
label: 'Tailscale docs',
href: docsUrl('en', 'tailscale')
}
},
{
id: 'audit',
Expand All @@ -967,7 +975,13 @@ const en: LandingCopy = {
monitors: ['expires in 43 d', 'A record unchanged', '200, keyword found', 'port 443 open', 'expires in 212 d'],
security: { blocked: 'blocked', blocklist: 'nftables blocklist', failed: 'failed logins' },
status: { ago: '90 days ago', today: 'today' },
tailscale: { direct: 'direct', panel: 'panel', relayed: 'relayed', tailnet: 'tailnet only' },
tailscale: {
approved: 'approved',
direct: 'direct',
panel: 'panel',
relayed: 'relayed',
tailnet: 'tailnet only'
},
traffic: {
cycle: 'this cycle',
forecast: 'forecast',
Expand Down Expand Up @@ -1010,7 +1024,7 @@ const en: LandingCopy = {
},
{
t: 'Enroll a server',
d: 'Click Add server in the panel and run the generated command on your VPS. The enrollment code works once, expires in 10 minutes, and the agent reconnects on its own after that.'
d: 'Click Add server in the panel and run the generated command on your VPS, or auto-discover tailnet peers to approve by code or deploy over Tailscale SSH. Enrollment codes work once, expire in 10 minutes, and the agent reconnects on its own after that.'
}
],
stats: [
Expand Down Expand Up @@ -1056,7 +1070,7 @@ const en: LandingCopy = {
},
{
q: 'Do monitored servers need open ports?',
a: 'No. Agents dial out to the server over WebSocket, so monitored hosts need zero inbound ports. Put the server behind HTTPS; pass --domain to the installer to set up Caddy and a certificate automatically.'
a: 'No. Agents dial out to the server over WebSocket, so monitored hosts need zero inbound ports. Put the server behind HTTPS: pass --domain to the installer for automatic Caddy and TLS, or keep the panel private behind Tailscale Serve HTTPS.'
},
{
q: 'What do the carrier probes actually measure?',
Expand Down
1 change: 1 addition & 0 deletions apps/landing/src/lib/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const docsPages = [
'mobile',
'monitoring',
'quick-start',
'tailscale',
'testing'
] as const
export type DocsPage = (typeof docsPages)[number]
Expand Down
19 changes: 18 additions & 1 deletion apps/landing/src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,11 @@ section[id] {
line-height: 1.6;
}

.more-tile .out {
margin-top: 8px;
font-size: 0.875rem;
}

/* Four sketches in a row need about 200px each for their longest line. */
@media (max-width: 1099px) {
.more-tiles {
Expand Down Expand Up @@ -1561,7 +1566,7 @@ section[id] {

/* Tailscale: one peer reached directly, one through a relay. */
.sketch-tailscale {
row-gap: 5px;
row-gap: 4px;
}

.sk-peer {
Expand All @@ -1571,6 +1576,18 @@ section[id] {
align-items: center;
}

.sk-sas {
justify-self: center;
padding: 0 6px;
font-size: 0.625rem;
line-height: 1.5;
color: var(--ink-2);
letter-spacing: 0.04em;
background: var(--sunken);
border: 1px solid var(--line-strong);
border-radius: 3px;
}

.sk-link {
position: relative;
height: 1px;
Expand Down
4 changes: 4 additions & 0 deletions apps/landing/src/styles/motion.css
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,10 @@
--after: 1500ms;
}

.sketch-tailscale {
--after: 650ms;
}

/* The empty sketch. */
.sketch[data-empty] .sk-days i,
.sketch[data-empty] .sk-chip,
Expand Down
Loading