diff --git a/fern/assets/styles.css b/fern/assets/styles.css index 7f7c9bbbc4..3d96ac7eb3 100644 --- a/fern/assets/styles.css +++ b/fern/assets/styles.css @@ -1084,6 +1084,71 @@ h1, h2, h3 { display: inline-block; } +/* Live Swift and Rust tabs layered over the SDK animation. + Positions and sizes are percentages of the 369x93 Rive artboard, so they track the canvas as it scales. */ +.sdk-rive .rive-container { + container-type: inline-size; +} + +.rive-tab-overlay { + position: absolute; + inset: 0; + z-index: 2; + pointer-events: none; +} + +.rive-tab { + position: absolute; + top: 34.34%; + height: 28.6%; + width: 10.46%; + display: flex; + flex-direction: column; + align-items: center; + gap: 1.92cqw; + text-decoration: none; + background-color: #fcfcfd; + pointer-events: auto; +} + +.dark .rive-tab { + background-color: #111113; +} + +.rive-tab-swift { + left: 76.53%; +} + +.rive-tab-rust { + left: 86.99%; +} + +.rive-tab-icon { + width: 2.88cqw; + height: 2.88cqw; + margin: 0; + object-fit: contain; +} + +.rive-tab-label { + font-family: "JetBrains Mono", ui-monospace, monospace; + font-size: 1.73cqw; + line-height: 1; + color: #4a4a4a; +} + +.dark .rive-tab-label { + color: #a9a9a9; +} + +.rive-tab:hover .rive-tab-label { + color: #21201c; +} + +.dark .rive-tab:hover .rive-tab-label { + color: #fcfcfd; +} + /*** END -- LANDING PAGE STYLING ***/ /* HACK: add a slash to markdown snippet documentation (otherwise it gets parsed by CLI) */ diff --git a/fern/products/home/pages/welcome.mdx b/fern/products/home/pages/welcome.mdx index 0de8f47702..fa43f2e59f 100644 --- a/fern/products/home/pages/welcome.mdx +++ b/fern/products/home/pages/welcome.mdx @@ -45,6 +45,18 @@ layout: custom