From e444c73e5f003d00d2804916597a729dbf3fc930 Mon Sep 17 00:00:00 2001 From: mbakalarski <64490638+mbakalarski@users.noreply.github.com> Date: Thu, 26 Nov 2026 15:14:55 +0000 Subject: [PATCH] Tell the method on the landing page --- index.html | 641 +++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 500 insertions(+), 141 deletions(-) diff --git a/index.html b/index.html index b7b9bb2..7c3149c 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ netclab - + @@ -12,11 +12,15 @@ :root { color-scheme: light dark; --bg: #ffffff; - --fg: #1a1a1a; - --muted: #5c5c5c; - --rule: #e2e2e2; - --link: #0b5fff; - --latest: #f0f5ff; + --fg: #14181d; + --muted: #59606a; + --rule: #e3e6ea; + --change: #0b5fff; /* the change loop: Git and pull requests */ + --reconcile: #0d8a6a; /* the reconcile loop: Crossplane, every poll */ + --reconcile-tint: #eaf6f1; + --code-bg: #f4f5f7; + --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; + --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; } @media (prefers-color-scheme: dark) { :root { @@ -24,45 +28,120 @@ --fg: #e8e8e8; --muted: #9aa0a6; --rule: #2c3136; - --link: #7aa7ff; - --latest: #1a2333; + --change: #7aa7ff; + --reconcile: #4cc9a6; + --reconcile-tint: #14261f; + --code-bg: #1c2024; } } * { box-sizing: border-box; } body { margin: 0; - padding: 4rem 1.5rem 6rem; background: var(--bg); color: var(--fg); - font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; + font: 16px/1.6 var(--font); + padding: 0 max(16px, env(safe-area-inset-right, 0px)) 5rem max(16px, env(safe-area-inset-left, 0px)); } - main { max-width: 46rem; margin: 0 auto; } - h1 { font-size: 2.25rem; margin: 0 0 .35rem; letter-spacing: -0.02em; } - h1 img { display: block; height: 2.5rem; width: auto; } - .tagline { color: var(--muted); margin: 0 0 3rem; font-size: 1.05rem; } - h2 { - font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; - color: var(--muted); font-weight: 600; - margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--rule); + main { max-width: 46rem; margin: 0 auto; padding-top: 4rem; } + a { color: var(--change); text-decoration: none; } + a:hover { text-decoration: underline; } + a:focus-visible { outline: 2px solid var(--change); outline-offset: 2px; border-radius: 2px; } + code { font-family: var(--mono); font-size: .9em; background: var(--code-bg); padding: .05em .35em; border-radius: 3px; } + + .logo { display: block; margin-bottom: 2.5rem; } + .logo img { display: block; height: 2.5rem; width: auto; } + h1 { font-size: 2.4rem; line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 1rem; text-wrap: balance; } + .lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.5rem; max-width: 40rem; } + .cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; } + .cta a { padding: .5rem 1rem; border-radius: 4px; border: 1px solid var(--change); font-weight: 600; font-size: .95rem; } + .cta a.primary { background: var(--change); color: var(--bg); } + + /* The parts of the story, stuck to the top once scrolled to; the current one marked. */ + nav.parts { + position: sticky; top: 0; z-index: 5; + background: var(--bg); border-bottom: 1px solid var(--rule); + display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; padding: .7rem 0; + font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; } - ul { list-style: none; margin: 0 0 3rem; padding: 0; } - li { padding: 1rem 0; border-bottom: 1px solid var(--rule); } - li:last-child { border-bottom: none; } - .name { font-weight: 600; font-size: 1.05rem; } - .desc { color: var(--muted); margin: .2rem 0 .5rem; } - .links a { margin-right: 1.1rem; font-size: .9rem; } - /* The latest work, as cards above the index of things. */ - h2.latest { color: var(--link); border-bottom-color: var(--link); } - ul.latest li { - background: var(--latest); border: none; border-left: 3px solid var(--link); - border-radius: 4px; padding: 1rem 1.25rem; margin-bottom: .75rem; + nav.parts a { color: var(--muted); padding: .15rem 0; border-bottom: 2px solid transparent; } + nav.parts a:hover { color: var(--fg); text-decoration: none; } + nav.parts a.current { color: var(--fg); border-bottom-color: var(--change); } + /* The index is no part of the story: apart, on the right. */ + nav.parts a.aside { margin-left: auto; display: inline-flex; align-items: center; } + nav.parts a.aside::before { + content: ""; width: 1px; height: 1em; background: var(--muted); opacity: .5; margin-right: 1.5rem; } - ul.latest .name { font-size: 1.15rem; } - /* What a card's subject does, under its description. */ - ul.points { list-style: disc; margin: .2rem 0 .6rem; padding-left: 1.2rem; color: var(--muted); } - ul.points li { background: none; border: none; border-radius: 0; padding: .1rem 0; margin: 0; } - a { color: var(--link); text-decoration: none; } - a:hover { text-decoration: underline; } + + /* Every section opens on a full rule: one h2 per section, h3 for its parts. */ + section { border-top: 1px solid var(--rule); padding-top: 2.75rem; margin: 0 0 4rem; } + /* A jump lands every section the same way: its rule hidden under the bar, its label the same distance below. */ + section { scroll-margin-top: calc(var(--nav-h, 3.2rem) - 2px); } + nav.parts + section { border-top-color: transparent; } + h2 { font-size: 1.8rem; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 1.25rem; text-wrap: balance; } + h3 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 .4rem; } + section > h3 { margin-top: 3rem; } + /* The part of the story a section belongs to (why, how, proof, your turn), on the right of its title. */ + section { position: relative; } + .part { + position: absolute; right: 0; top: 3.2rem; + font-size: .75rem; line-height: 1.2rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; + } + .part + h2 { padding-right: 7rem; } + p { margin: 0 0 1rem; } + .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; } + .pair > div { min-width: 0; } + @media (max-width: 640px) { .pair { grid-template-columns: 1fr; gap: 0; } h1 { font-size: 1.9rem; } } + + .diagram { overflow-x: auto; margin: 2rem 0; } + .diagram svg { display: block; width: 100%; min-width: 620px; height: auto; } + svg text { font-family: var(--font); fill: var(--fg); } + svg .muted { fill: var(--muted); } + svg .t-change { fill: var(--change); } + svg .t-reconcile { fill: var(--reconcile); } + svg .box { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; } + svg .box-object { fill: var(--bg); stroke: var(--fg); stroke-width: 2; } + svg .l-change { fill: none; stroke: var(--change); stroke-width: 2.5; } + svg .l-reconcile { fill: none; stroke: var(--reconcile); stroke-width: 2.5; } + svg .h-change { fill: var(--change); } + svg .h-reconcile { fill: var(--reconcile); } + svg .step-observe { fill: var(--bg); stroke: var(--reconcile); stroke-width: 1.5; stroke-dasharray: 5 4; } + svg .step-merge { fill: var(--bg); stroke: var(--reconcile); stroke-width: 1.5; } + svg .step-replace { fill: var(--reconcile-tint); stroke: var(--reconcile); stroke-width: 2; } + svg .plain { fill: none; stroke: var(--muted); stroke-width: 1.5; } + svg .h-plain { fill: var(--muted); } + + .points { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; } + .points li { padding-left: 1rem; border-left: 3px solid var(--rule); } + .points li.c { border-left-color: var(--change); } + .points li.r { border-left-color: var(--reconcile); } + + .table-wrap { overflow-x: auto; margin: 1.5rem 0; } + table { width: 100%; border-collapse: collapse; font-size: .95rem; } + th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: .4rem .6rem .4rem 0; border-bottom: 1px solid var(--rule); } + td { padding: .55rem .6rem .55rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; } + td:first-child { width: 45%; } + tr:last-child td { border-bottom: none; } + + pre { background: var(--code-bg); padding: .8rem 1rem; border-radius: 4px; overflow-x: auto; font: .9rem/1.5 var(--mono); margin: 0 0 1rem; } + pre.yaml { font-size: .85rem; line-height: 1.45; } + .k-spec { color: var(--change); font-weight: 700; } + .k-status { color: var(--reconcile); font-weight: 700; } + .cm { color: var(--muted); } + + .cards { display: grid; gap: 1rem; } + .card { border: 1px solid var(--rule); border-radius: 6px; padding: 1.1rem 1.25rem; } + .card p { color: var(--muted); margin: 0 0 .5rem; } + .card ul { margin: 0 0 .6rem; padding-left: 1.1rem; } + .card li { margin: .15rem 0; } + .shows { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: .4rem 0 .2rem; } + .links { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .9rem; } + + .index { list-style: none; margin: 0; padding: 0; } + .index li { padding: .75rem 0; border-bottom: 1px solid var(--rule); } + .index li:last-child { border-bottom: none; } + .index .name { font-weight: 600; } + .index .desc { color: var(--muted); margin: .1rem 0 .3rem; } + footer { color: var(--muted); font-size: .875rem; border-top: 1px solid var(--rule); padding-top: 1.25rem; } footer p { margin: 0 0 .35rem; } @@ -70,123 +149,378 @@
-

+

-

Networks operated from Kubernetes and Crossplane, from one tunnel to a whole fabric's design. Lab twins to try each change on first.

- -

Latest

- - -

AVD in Kubernetes

- - -

Run a lab

- - -

Configure devices

- - -

Reading

- + + + +
+
Your turn
+

Build your own

+

A new kind of object is two pieces of YAML, with no controller code:

+
+ + A kind is an XRD, the shape of a configuration section, and a composition, how it reaches the device. + + + + + XRD + the shape of your section: + its fields and the rules they keep + + + Composition + how it reaches the device: + a template of RESTCONF or eAPI calls + + + one kind + +
+

If you have written Jinja templates for Ansible, the composition will look familiar.

+ +

Floor by floor

+

A kind can compose other kinds. Each floor is a package of its own, with its own releases, and speaks its own words: the router's at the bottom, the service's above.

+
+ + Connection, from configuration-aws-vpn, composes the device floor: IOS XE kinds from configuration-iosxe and AWS resources from the AWS provider, which reach the router and the AWS API. + + + + CONNECTION + DEVICE + + + Connection + configuration-aws-vpn + + + + + + TunnelInterface, IpsecProfile, + Ikev2Profile, Ikev2Keyring, ... + configuration-iosxe + + + CustomerGateway, VPNConnection + AWS provider + + + + router: RESTCONF, CLI by RPC + AWS API + +
+

The device floor is worth having on its own: configuration-iosxe keeps a router's IPsec sections with nothing above it. Build up when a service needs it. Then the VPN team works with the few fields of a Connection, and what the IOS XE expert encoded in the floor below is used without being repeated.

+

Where a good model already exists, adopt it instead of building one. An AVD repository keeps Arista AVD's own design model, the knowledge its community encoded, and the cluster runs it as it is.

+ +

Start with the exercises

+

It started with Arista EOS: configuration-eos holds the first exercises, settings over eAPI and RESTCONF, rough in places. It is being rewritten as a tutorial, a step a page: a device, then a BGP neighbor between two cEOS nodes, with the session's state in the status.

+ +
+ +
+
Your turn
+

What stays your decision

+ +
+ +
+

Everything here

+ +
+