Skip to content

Phase 13: OG image for shared loadout URLs #348

@elfensky

Description

@elfensky

Summary

Dynamic OG image for /loadout?b=<hash> URLs — rich preview in Discord, Twitter, and social platforms.

Parent: #162

Design

Uses next/og ImageResponse (same approach as existing src/app/opengraph-image.jsx).

1200x630 image showing:

  • Loadout name
  • 4 stratagem icons with names
  • Weapon names
  • Perk name
  • "helldivers.bot" branding
  • Gold (#c8a832) accent color

Falls back to generic "Loadout Builder" image when no ?b= param or invalid hash.

Files

  • CREATE src/app/loadout/opengraph-image.jsx (~200-300 LOC)

Reference

Follow exact pattern in src/app/opengraph-image.jsx for exports, inline styles, data URI embedding.

Size: L

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementUpdate to an existing featurefrontendUI/UX and frontend work

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions