Sign in

vitor-internCopy the usernamekit-logo-remix-remix

card.ts

In web/og/

mainHistory

Preview

Code593 B
import { HStack, Img, svgToDataUri } from "@officialunofficial/og";

export const WIDTH = 1200;
export const HEIGHT = 630;
export const UNO_BLUE = "#0067ed";

/** Build the fixed brand card with embedded vector artwork. */
export function brandCard(shapes: string, wordmark: string): string {
  return HStack(
    {
      width: WIDTH,
      height: HEIGHT,
      padding: 72,
      gap: 64,
      justifyContent: "center",
      backgroundColor: UNO_BLUE,
    },
    Img(svgToDataUri(shapes), 500, 326, { flexShrink: 0 }),
    Img(svgToDataUri(wordmark), 440, 131, { flexShrink: 0 }),
  );
}

Files

Loading files

Details

Size
593 B
Object ID
93557fc…959Copy the object ID
  • AGENTS.md
  • README.md
  • build.py
  • cover.png
  • manifest.json
Size
593 B
Object ID
93557fc…959Copy the object ID
Verification
Size
593 B
Object ID
93557fc…959Copy the object ID
Storage
Stored as one object
Size
593 B
Object ID
93557fc…959Copy the object ID
Storage
Stored as one object
Verification