Make Swift and Rust clickable in the landing page SDK animation - #6555
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
Make Swift and Rust clickable in the landing page SDK animation#6555devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Contributor
|
🌿 Preview your docs: https://fern-preview-devin-1785978439-sdk-swift-rust-tabs.docs.buildwithfern.com/learn Here are the markdown pages you've updated: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Swift and Rust tabs in the landing page SDK card render grey and do nothing on hover/click. They are static artwork inside the compiled
sdk-rive.riv(hosted on the Webflow CDN): its state machine only defines TypeScript, Python, GO, Java, NET, PHP and Ruby, so there is nothing in this repo to enable. Fixing it properly requires re-authoring the Rive file.Workaround: two real anchors are layered over those two tab positions in
welcome.mdx, styled to be indistinguishable from the neighboring tabs (same icon size, JetBrains Mono label, matching#fcfcfd/#111113panel background so the grey artwork underneath is fully covered) and pointing at/sdks/generators/{swift,rust}/quickstart.Geometry is expressed as percentages of the
369x93artboard, withcontainer-type: inline-sizeon.rive-containerso icon/label sizes scale incqwand stay aligned at any width:That only holds while the container box matches the artboard ratio.
rive-animation.jssetcontainer.style.height = width / aspectRatioonce at load and never again, so after a window resize the artwork letterboxed inside a stale-height container. The height computation is now asyncContainerHeight()closure called from the existing resize handler as well:Verified against the live page with the final CSS/markup injected, in light and dark mode and at a narrowed container width; the overlay tabs line up with the Rive-rendered ones and the existing hover interactions for the other languages are untouched.
Link to Devin session: https://app.devin.ai/sessions/3f1fa02d46d94431b1331d3d9ae97933