From 89215ac3b118b929094370d6b7ad4a59421f2339 Mon Sep 17 00:00:00 2001 From: ZingerLittleBee <6970999@gmail.com> Date: Fri, 4 Dec 2026 21:23:08 +0800 Subject: [PATCH 1/2] feat(landing): add dedicated interactive tailscale onboarding section --- apps/landing/src/components/landing.astro | 10 +- .../src/components/sections/tailscale.astro | 353 ++++++++++ apps/landing/src/i18n/copy.ts | 243 +++++++ apps/landing/src/lib/site.ts | 7 +- apps/landing/src/scripts/motion/index.ts | 2 + apps/landing/src/scripts/motion/tailscale.ts | 468 +++++++++++++ apps/landing/src/styles/global.css | 630 +++++++++++++++++- apps/landing/src/styles/motion.css | 76 +++ 8 files changed, 1783 insertions(+), 6 deletions(-) create mode 100644 apps/landing/src/components/sections/tailscale.astro create mode 100644 apps/landing/src/scripts/motion/tailscale.ts diff --git a/apps/landing/src/components/landing.astro b/apps/landing/src/components/landing.astro index cff545fa..0328ad27 100644 --- a/apps/landing/src/components/landing.astro +++ b/apps/landing/src/components/landing.astro @@ -12,6 +12,7 @@ import IpQuality from '@/components/sections/ip-quality.astro' import More from '@/components/sections/more.astro' import Network from '@/components/sections/network.astro' import Security from '@/components/sections/security.astro' +import Tailscale from '@/components/sections/tailscale.astro' import { landingCopy } from '@/i18n/copy' import Base from '@/layouts/base.astro' import { featureOrder, type Lang } from '@/lib/site' @@ -21,7 +22,14 @@ interface Props { } const { lang } = Astro.props -const features = { dash: Dashboards, ios: Ios, ipq: IpQuality, network: Network, security: Security } +const features = { + dash: Dashboards, + ios: Ios, + ipq: IpQuality, + network: Network, + security: Security, + tailscale: Tailscale +} --- diff --git a/apps/landing/src/components/sections/tailscale.astro b/apps/landing/src/components/sections/tailscale.astro new file mode 100644 index 00000000..1e6daa1d --- /dev/null +++ b/apps/landing/src/components/sections/tailscale.astro @@ -0,0 +1,353 @@ +--- +import Check from '@lucide/astro/icons/check' +import Lock from '@lucide/astro/icons/lock' +import RotateCcw from '@lucide/astro/icons/rotate-ccw' +import ShieldCheck from '@lucide/astro/icons/shield-check' +import Smartphone from '@lucide/astro/icons/smartphone' +import Terminal from '@lucide/astro/icons/terminal' +import Zap from '@lucide/astro/icons/zap' +import Heading from '@/components/heading.astro' +import OutLink from '@/components/out-link.astro' +import Points from '@/components/points.astro' +import { landingCopy, type TailscaleMode } from '@/i18n/copy' +import type { Lang } from '@/lib/site' + +interface Props { + lang: Lang +} + +const { lang } = Astro.props +const copy = landingCopy[lang].tailscale +const { stage } = copy +const modes: TailscaleMode[] = ['knock', 'ssh', 'baremetal'] +const qrCells = [ + 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, + 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, + 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, + 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, + 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, + 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, + 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, + 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, + 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, + 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, + 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, + 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, + 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1 +] +--- + +
+
+ +
+

{copy.lede}

+ {copy.link.label} +
+
+
+ +
+
+ { + modes.map((mode, index) => ( + + )) + } +
+ +
+ +
+
+
+
+
+ + prod-web-01 +
+
$ install.sh agent --tailscale
+
    + { + stage.knock.terminalSteps.map((line, index) => ( +
  1. +