Skip to content

Jm/intorg 729 hero network animated2 Fixes INTORG-729 #304

Closed
JonathanMatthey wants to merge 43 commits into
stagingfrom
jm/intorg-729-hero-network-animated2
Closed

Jm/intorg 729 hero network animated2 Fixes INTORG-729 #304
JonathanMatthey wants to merge 43 commits into
stagingfrom
jm/intorg-729-hero-network-animated2

Conversation

@JonathanMatthey
Copy link
Copy Markdown
Collaborator

Summary

  • Rebuild Foundation header nav with new structure and mega-menu support (FoundationNavMenu, FoundationNavActions)
  • Refactor FoundationLogo to use separate .svg files via ?raw imports instead of inline base64 constants
  • Add scroll-driven AnimatedNetwork component to homepage (CSS-only, no JS, reduced-motion safe)
  • Fix nav background/transition flash on page load via scoped CSS dark-theme baseline

Related Issue

Fixes INTORG-729

Checks

  • pnpm run format
  • pnpm run lint

PR Checklist

  • PR title follows Conventional Commits (e.g. feat: ..., fix: ...)
  • Linked issue included
  • Scope is focused (target ~10-20 files when possible)
  • Screenshots for UI changes (if applicable)

JonathanMatthey and others added 30 commits May 19, 2026 15:27
…tion-nav2

# Conflicts:
#	src/components/layout/FoundationFooter.astro
#	src/components/shared/Button.astro
#	src/components/shared/Icon.astro
#	src/components/shared/LinkButton.astro
#	src/components/shared/buttonVariants.ts
#	src/config/foundation-navigation.es.json
#	src/config/foundation-navigation.json
#	src/data/ui.ts
#	src/layouts/FoundationPageLayout.astro
#	src/types/navigation.ts
Co-authored-by: Cursor <cursoragent@cursor.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 20, 2026

Deploy Preview for interledger-org-v5 ready!

Name Link
🔨 Latest commit c34b6ac
🔍 Latest deploy log https://app.netlify.com/projects/interledger-org-v5/deploys/6a1591248860220008a07c55
😎 Deploy Preview https://deploy-preview-304--interledger-org-v5.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@JonathanMatthey JonathanMatthey changed the base branch from staging to jm/intorg-677-foundation-nav2 May 20, 2026 20:53
Base automatically changed from jm/intorg-677-foundation-nav2 to staging May 21, 2026 05:36
transform-origin: 50% 52%; /* registration mark in the SVG (960/1920, 1648/3186) */
will-change: transform;
animation: network-rotate linear both;
animation-timeline: --network-track;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this tested on Firefox as well? from what I can see the property is not supported in firefox so we should confirm the fallback https://caniuse.com/?search=animation-timeline

slot="media"
class="mx-auto flex w-full items-center overflow-hidden rounded-3xl bg-black tablet:w-[80%] desktop:mx-0 desktop:w-full"
>
<VideoEmbed
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the section is being repeated twice I think

alt=""
width="1920"
height="3186"
loading="lazy"
Copy link
Copy Markdown
Contributor

@Infi-Knight Infi-Knight May 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This decoration sits immediately after the hero, so on most viewports it's near-fold. Lazy-loading + scroll-driven animation can mean the animation runs against an undecoded image on first scroll. For a 5–6 KB SVG, just drop loading="lazy" (or use eager).

opacity: 1;
}
to {
width: 1500vmax;
Copy link
Copy Markdown
Contributor

@Infi-Knight Infi-Knight May 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4vw → 1500vmax is layout-bound and wasteful.
Width animations trigger layout each frame. Combined with will-change: width (which only hints layers for transforms it doesn't help width), this is the most expensive way to do a growing disc. Use transform: scale() from a fixed seed size with will-change: transform and you get the same visual on the compositor.

@JonathanMatthey JonathanMatthey marked this pull request as ready for review May 26, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants