Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: adde new component - github sponsors
dev_wandry04d9cb544d01
diff --git a/content/docs/social/github-sponsors.mdx b/content/docs/social/github-sponsors.mdxnew file mode 100644index 00000000..a285559d--- /dev/null+++ b/content/docs/social/github-sponsors.mdx@@ -0,0 +1,133 @@+---+title: GitHub Sponsors+description: Animated GitHub Sponsors lockup — a self-drawing heart that docks to a header, every sponsor avatar blur-staggering into a grid, then a thank-you headline and a CTA+---++<ComponentPreview name="github-sponsors" />++## Installation++<InstallBlock name="github-sponsors" />++## Usage++Standalone in a Remotion `<Composition>` — renders immediately from built-in sample sponsors so the video works right after install.++```tsx+// src/Root.tsx+import { Composition } from "remotion";+import { GitHubSponsors } from "@/components/remocn/github-sponsors";++const GitHubSponsorsScene = () => (+ <GitHubSponsors+ account="remotion-dev"+ accentColor="#db61a2"+ speed={1}+ theme="light"+ />+);++export const RemotionRoot = () => (+ <Composition+ id="GitHubSponsors"+ component={GitHubSponsorsScene}+ durationInFrames={270}+ fps={30}+ width={1280}+ height={720}+ />+);+```++### With live data++Pass a `sponsors` array of `{ login, avatarUrl }` to replace the built-in sample. Every sponsor in the array is shown — the grid sizes itself to the count, and the "Powered by N sponsors" line uses the array length.++```tsx+// src/Root.tsx+import { Composition } from "remotion";+import { GitHubSponsors } from "@/components/remocn/github-sponsors";++const sponsors = [+ {+ login: "octocat",+ avatarUrl: "https://avatars.githubusercontent.com/u/583231",+ },+ // …+];++const GitHubSponsorsScene = () => (+ <GitHubSponsors+ account="remotion-dev"+ sponsors={sponsors}+ accentColor="#db61a2"+ speed={1}+ theme="light"+ />+);++export const RemotionRoot = () => (+ <Composition+ id="GitHubSponsors"+ component={GitHubSponsorsScene}+ durationInFrames={270}+ fps={30}+ width={1280}+ height={720}+ />+);+```++## Props++<PropsTable+ rows={[+ {+ name: "account",+ type: "string",+ default: "\"remotion-dev\"",+ description: "GitHub account shown in the lockup (github.com/sponsors/account)",+ },+ {+ name: "sponsors",+ type: "Sponsor[]",+ default: "SAMPLE_SPONSORS",+ description: "Every entry is shown — avatars blur-stagger into a grid that sizes to the array. Falls back to built-in sample data when omitted.",+ },+ {+ name: "accentColor",+ type: "string",+ default: "\"#db61a2\"",+ description: "Accent for the heart and the CTA pill (GitHub Sponsors pink)",+ },+ {+ name: "speed",+ type: "number",+ default: "1",+ description: "Animation speed multiplier (minimum 1; the headline and CTA must land before the final frame)",+ },+ {+ name: "theme",+ type: "\"light\" | \"dark\"",+ default: "\"light\"",+ description: "Color theme for background and text",+ },+ ]}+/>++### Sponsor shape++<PropsTable+ rows={[+ {+ name: "login",+ type: "string",+ description: "GitHub username (used for the avatar fallback initial)",+ },+ {+ name: "avatarUrl",+ type: "string",+ description: "Full URL to the avatar image (must be CORS-accessible for MP4 export)",+ },+ ]}+/>diff --git a/content/docs/social/meta.json b/content/docs/social/meta.jsonindex 49f7176b..a0487617 100644--- a/content/docs/social/meta.json+++ b/content/docs/social/meta.json@@ -4,6 +4,7 @@"pages": ["index","github-stars",+ "github-sponsors","x-follow-card","x-followers-overview","logo-enter"diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex a4044d6c..4c0b50d6 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -67,6 +67,8 @@ import { EcosystemConstellation } from "@/registry/remocn/ecosystem-constellatioimport { ecosystemConstellationConfig } from "@/registry/remocn/ecosystem-constellation/config";import { FrostedGlassWipe } from "@/registry/remocn/frosted-glass-wipe";import { frostedGlassWipeConfig } from "@/registry/remocn/frosted-glass-wipe/config";+import { GitHubSponsors } from "@/registry/remocn/github-sponsors";+import { githubSponsorsConfig } from "@/registry/remocn/github-sponsors/config";import { GitHubStars } from "@/registry/remocn/github-stars";import { githubStarsConfig } from "@/registry/remocn/github-stars/config";import { LogoEnter } from "@/registry/remocn/logo-enter";@@ -404,6 +406,10 @@ const registry: Record<string, RegistryEntry> = {Component: ImageExpandToFullscreen,config: imageExpandToFullscreenConfig,},+ "github-sponsors": {+ Component: GitHubSponsors,+ config: githubSponsorsConfig,+ },"github-stars": { Component: GitHubStars, config: githubStarsConfig },"logo-enter": { Component: LogoEnter, config: logoEnterConfig },"number-wheel": { Component: NumberWheel, config: numberWheelConfig },@@ -531,6 +537,21 @@ if (githubStars) {};}+// github-sponsors plays its heart draw, avatar blur-stagger, and headline/CTA+// off the shared progress timeline; a speed < 1 would stall the driver before+// the lockup completes, so cap min:1 like github-stars.+const githubSponsors = registry["github-sponsors"];+if (githubSponsors) {+ githubSponsors.config.controls.speed = {+ type: "number",+ default: 1,+ min: 1,+ max: 4,+ step: 0.25,+ label: "Speed",+ };+}+const numberWheel = registry["number-wheel"];if (numberWheel) {numberWheel.config.controls.speed = {diff --git a/registry/remocn/github-sponsors/__tests__/github-sponsors.test.ts b/registry/remocn/github-sponsors/__tests__/github-sponsors.test.tsnew file mode 100644index 00000000..02515229--- /dev/null+++ b/registry/remocn/github-sponsors/__tests__/github-sponsors.test.ts@@ -0,0 +1,111 @@+import { describe, expect, it } from "vitest";++import {+ SAMPLE_SPONSORS,+ gridColumns,+ gridLayout,+ heartDrawProgress,+ heartPulseScale,+} from "../index";++describe("gridColumns", () => {+ it("is 0 for an empty set", () => {+ expect(gridColumns(0)).toBe(0);+ });++ it("never exceeds the count", () => {+ for (let n = 1; n <= 30; n++) {+ expect(gridColumns(n)).toBeLessThanOrEqual(n);+ expect(gridColumns(n)).toBeGreaterThanOrEqual(1);+ }+ });++ it("keeps the grid within a few rows for typical counts", () => {+ for (const n of [6, 12, 14, 20, 24]) {+ const cols = gridColumns(n);+ const rows = Math.ceil(n / cols);+ expect(rows).toBeLessThanOrEqual(4);+ }+ });+});++describe("gridLayout", () => {+ it("returns one point per cell", () => {+ expect(gridLayout(12, 6, 120, 120)).toHaveLength(12);+ expect(gridLayout(7, 4, 120, 120)).toHaveLength(7);+ });++ it("returns an empty array for non-positive counts or cols", () => {+ expect(gridLayout(0, 6, 120, 120)).toEqual([]);+ expect(gridLayout(6, 0, 120, 120)).toEqual([]);+ });++ it("centers a single full row horizontally on cx", () => {+ const cx = 640;+ const pts = gridLayout(6, 6, 120, 120, cx, 304);+ const avg = pts.reduce((s, p) => s + p.x, 0) / pts.length;+ expect(avg).toBeCloseTo(cx, 6);+ });++ it("stacks rows symmetrically around cy", () => {+ const cy = 304;+ const pts = gridLayout(12, 6, 120, 120, 640, cy);+ const avg = pts.reduce((s, p) => s + p.y, 0) / pts.length;+ expect(avg).toBeCloseTo(cy, 6);+ });++ it("keeps a short last row centered (centered grid, not left-packed)", () => {+ const cx = 640;+ const pts = gridLayout(8, 6, 120, 120, cx, 304);+ const lastRow = pts.slice(6);+ const avg = lastRow.reduce((s, p) => s + p.x, 0) / lastRow.length;+ expect(avg).toBeCloseTo(cx, 6);+ });+});++describe("heartDrawProgress", () => {+ it("is 0 at frame 0", () => {+ expect(heartDrawProgress(0)).toBe(0);+ });++ it("reaches 1 by the end of the draw window and clamps after", () => {+ expect(heartDrawProgress(40)).toBeCloseTo(1, 6);+ expect(heartDrawProgress(120)).toBe(1);+ });++ it("is monotonically non-decreasing", () => {+ let prev = -Infinity;+ for (let f = 0; f <= 45; f++) {+ const v = heartDrawProgress(f);+ expect(v).toBeGreaterThanOrEqual(prev);+ prev = v;+ }+ });+});++describe("heartPulseScale", () => {+ it("settles back to 1 after the pulse window", () => {+ expect(heartPulseScale(62)).toBeCloseTo(1, 6);+ expect(heartPulseScale(200)).toBe(1);+ });++ it("dips below 1 during the compress beat", () => {+ expect(heartPulseScale(46)).toBeLessThan(1);+ });+});++describe("SAMPLE_SPONSORS", () => {+ it("ships a usable set of avatars", () => {+ expect(SAMPLE_SPONSORS.length).toBeGreaterThanOrEqual(8);+ });++ it("each entry has a login and an https github avatar url", () => {+ for (const s of SAMPLE_SPONSORS) {+ expect(typeof s.login).toBe("string");+ expect(s.login.length).toBeGreaterThan(0);+ expect(s.avatarUrl).toMatch(+ /^https:\/\/avatars\.githubusercontent\.com\//,+ );+ }+ });+});diff --git a/registry/remocn/github-sponsors/config.ts b/registry/remocn/github-sponsors/config.tsnew file mode 100644index 00000000..cff28b4a--- /dev/null+++ b/registry/remocn/github-sponsors/config.ts@@ -0,0 +1,24 @@+import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";++export const githubSponsorsConfig: ComponentConfig = {+ componentName: "GitHubSponsors",+ importPath: "@/components/remocn/github-sponsors",+ controls: {+ account: {+ type: "text",+ default: "remocn",+ label: "Account",+ },+ accentColor: { type: "color", default: "#db61a2", label: "Accent" },+ theme: {+ type: "select",+ default: "light",+ options: ["light", "dark"],+ label: "Theme",+ },+ },+ durationInFrames: 270,+ fps: FPS,+ compositionWidth: W,+ compositionHeight: H,+};diff --git a/registry/remocn/github-sponsors/index.tsx b/registry/remocn/github-sponsors/index.tsxnew file mode 100644index 00000000..9002976c--- /dev/null+++ b/registry/remocn/github-sponsors/index.tsx@@ -0,0 +1,566 @@+"use client";++import { memo, useMemo, useState } from "react";+import { loadFont as loadSans } from "@remotion/google-fonts/Manrope";+import {+ AbsoluteFill,+ Easing,+ Img,+ interpolate,+ Sequence,+ useCurrentFrame,+ useVideoConfig,+} from "remotion";++import { SoftBlurIn } from "@/components/remocn/soft-blur-in";+import { BlurOutUp } from "@/components/remocn/blur-out-up";++export interface Sponsor {+ login: string;+ avatarUrl: string;+}++export interface GitHubSponsorsProps {+ account?: string;+ sponsors?: Sponsor[];+ accentColor?: string;+ speed?: number;+ theme?: "light" | "dark";+}++export const SAMPLE_SPONSORS: Sponsor[] = [+ {+ login: "mojombo",+ avatarUrl: "https://avatars.githubusercontent.com/u/1?v=4",+ },+ {+ login: "defunkt",+ avatarUrl: "https://avatars.githubusercontent.com/u/2?v=4",+ },+ {+ login: "pjhyett",+ avatarUrl: "https://avatars.githubusercontent.com/u/3?v=4",+ },+ {+ login: "wycats",+ avatarUrl: "https://avatars.githubusercontent.com/u/4?v=4",+ },+ {+ login: "schacon",+ avatarUrl: "https://avatars.githubusercontent.com/u/70?v=4",+ },+ {+ login: "rtomayko",+ avatarUrl: "https://avatars.githubusercontent.com/u/5?v=4",+ },+ {+ login: "bmizerany",+ avatarUrl: "https://avatars.githubusercontent.com/u/6?v=4",+ },+ {+ login: "atmos",+ avatarUrl: "https://avatars.githubusercontent.com/u/38?v=4",+ },+ {+ login: "ezmobius",+ avatarUrl: "https://avatars.githubusercontent.com/u/14?v=4",+ },+ {+ login: "macournoyer",+ avatarUrl: "https://avatars.githubusercontent.com/u/15?v=4",+ },+ {+ login: "ivey",+ avatarUrl: "https://avatars.githubusercontent.com/u/18?v=4",+ },+ {+ login: "uggedal",+ avatarUrl: "https://avatars.githubusercontent.com/u/16?v=4",+ },+ {+ login: "anotherjesse",+ avatarUrl: "https://avatars.githubusercontent.com/u/9?v=4",+ },+ {+ login: "technoweenie",+ avatarUrl: "https://avatars.githubusercontent.com/u/21?v=4",+ },+ {+ login: "takeo",+ avatarUrl: "https://avatars.githubusercontent.com/u/22?v=4",+ },+ {+ login: "evanphx",+ avatarUrl: "https://avatars.githubusercontent.com/u/25?v=4",+ },+ {+ login: "vanpelt",+ avatarUrl: "https://avatars.githubusercontent.com/u/26?v=4",+ },+ {+ login: "wayneeseguin",+ avatarUrl: "https://avatars.githubusercontent.com/u/28?v=4",+ },+ {+ login: "brynary",+ avatarUrl: "https://avatars.githubusercontent.com/u/30?v=4",+ },+ {+ login: "kevinclark",+ avatarUrl: "https://avatars.githubusercontent.com/u/31?v=4",+ },+ {+ login: "kballard",+ avatarUrl: "https://avatars.githubusercontent.com/u/7?v=4",+ },+ {+ login: "jnewland",+ avatarUrl: "https://avatars.githubusercontent.com/u/12?v=4",+ },+ {+ login: "caged",+ avatarUrl: "https://avatars.githubusercontent.com/u/13?v=4",+ },+ { login: "sr", avatarUrl: "https://avatars.githubusercontent.com/u/19?v=4" },+];++const { fontFamily: SANS_FAMILY } = loadSans();+const FONT_FAMILY = SANS_FAMILY;++const HEART_PATH =+ "M12.0001 4.52853C14.2745 2.23823 17.9866 2.23823 20.2611 4.52853C22.5784 6.86156 22.5784 10.667 20.2611 13.0001L12.0001 21.3199L3.73907 13.0001C1.42175 10.667 1.42175 6.86156 3.73907 4.52853C6.01353 2.23823 9.72563 2.23823 12.0001 4.52853Z";++const REF_W = 1280;+const REF_H = 720;+const GRID_CX = 640;+const GRID_CY = 304;+const GRID_BOX_W = 900;+const GRID_BOX_H = 236;+const HEART_START_Y = 286;+const HEART_HEADER_Y = 120;++const DRAW_END = 40;+const PULSE_END = 62;+const HEART_DOCK_START = 52;+const HEART_DOCK_END = 84;+const AVATAR_START = 70;+const AVATAR_STEP = 3;+const AVATAR_DUR = 22;+const AVATAR_WINDOW = 56;+const THANK_START = 150;+const SUB_START = 166;+const CTA_START = 182;+const CTA_DUR = 22;++interface Theme {+ bg: string;+ bgSubtle: string;+ fg: string;+ fgMuted: string;+ border: string;+}++const THEMES: Record<"light" | "dark", Theme> = {+ light: {+ bg: "#ffffff",+ bgSubtle: "#fafafa",+ fg: "#171717",+ fgMuted: "#737373",+ border: "#ededed",+ },+ dark: {+ bg: "#0a0a0a",+ bgSubtle: "#161618",+ fg: "#fafafa",+ fgMuted: "#a1a1aa",+ border: "#262626",+ },+};++export interface Point {+ x: number;+ y: number;+}++export function gridColumns(+ count: number,+ boxW = GRID_BOX_W,+ boxH = GRID_BOX_H,+): number {+ if (count <= 0) return 0;+ return Math.max(+ 1,+ Math.min(count, Math.round(Math.sqrt((count * boxW) / boxH))),+ );+}++export function gridLayout(+ count: number,+ cols: number,+ cellW: number,+ cellH: number,+ cx = GRID_CX,+ cy = GRID_CY,+): Point[] {+ if (count <= 0 || cols <= 0) return [];+ const rows = Math.ceil(count / cols);+ const out: Point[] = [];+ for (let i = 0; i < count; i++) {+ const r = Math.floor(i / cols);+ const c = i % cols;+ const rowCount = Math.min(cols, count - r * cols);+ const rowW = (rowCount - 1) * cellW;+ const x = cx - rowW / 2 + c * cellW;+ const totalH = (rows - 1) * cellH;+ const y = cy - totalH / 2 + r * cellH;+ out.push({ x, y });+ }+ return out;+}++export function heartDrawProgress(frame: number, speed = 1): number {+ return interpolate(frame * speed, [0, DRAW_END], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.bezier(0.22, 1, 0.36, 1),+ });+}++export function heartPulseScale(frame: number, speed = 1): number {+ return interpolate(+ frame * speed,+ [DRAW_END - 2, DRAW_END + 6, DRAW_END + 17, PULSE_END],+ [1, 0.9, 1.06, 1],+ {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.ease),+ },+ );+}++function ramp(+ frame: number,+ speed: number,+ start: number,+ end: number,+ easing = Easing.bezier(0.22, 1, 0.36, 1),+): number {+ return interpolate(frame * speed, [start, end], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing,+ });+}++function Avatar({+ login,+ avatarUrl,+ size,+ theme,+ grayscale,+}: {+ login: string;+ avatarUrl: string;+ size: number;+ theme: Theme;+ grayscale: number;+}) {+ const [errored, setErrored] = useState(false);+ const base = {+ width: size,+ height: size,+ borderRadius: 9999,+ border: `1px solid ${theme.border}`,+ flexShrink: 0,+ filter: `grayscale(${grayscale})`,+ } as const;++ if (errored || !avatarUrl) {+ return (+ <div+ style={{+ ...base,+ background: theme.bgSubtle,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ color: theme.fgMuted,+ fontSize: size * 0.42,+ fontWeight: 600,+ fontFamily: FONT_FAMILY,+ }}+ >+ {login.charAt(0).toUpperCase()}+ </div>+ );+ }++ return (+ <Img+ src={avatarUrl}+ crossOrigin="anonymous"+ onError={() => setErrored(true)}+ style={{ ...base, objectFit: "cover" }}+ />+ );+}++const SponsorNode = memo(function SponsorNode({+ sponsor,+ cell,+ progress,+ size,+ theme,+}: {+ sponsor: Sponsor;+ cell: Point;+ progress: number;+ size: number;+ theme: Theme;+}) {+ const y = (1 - progress) * 14;+ const blur = (1 - progress) * 10;++ return (+ <div+ style={{+ position: "absolute",+ left: cell.x,+ top: cell.y,+ transform: `translate(-50%, -50%) translateY(${y}px)`,+ opacity: progress,+ filter: `blur(${blur}px)`,+ willChange: "transform, opacity, filter",+ }}+ >+ <Avatar+ login={sponsor.login}+ avatarUrl={sponsor.avatarUrl}+ size={size}+ theme={theme}+ grayscale={1 - progress}+ />+ </div>+ );+});++function HeartGlyph({+ size,+ accent,+ draw,+ fill,+}: {+ size: number;+ accent: string;+ draw: number;+ fill: number;+}) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 24 24"+ width={size}+ height={size}+ >+ <title>GitHub Sponsors</title>+ <path+ d={HEART_PATH}+ pathLength={1}+ fill={accent}+ fillOpacity={fill}+ stroke={accent}+ strokeWidth={1.4}+ strokeLinejoin="round"+ strokeLinecap="round"+ strokeDasharray={1}+ strokeDashoffset={1 - draw}+ />+ </svg>+ );+}++export function GitHubSponsors({+ account = "remocn",+ sponsors = SAMPLE_SPONSORS,+ accentColor = "#db61a2",+ speed = 1,+ theme = "light",+}: GitHubSponsorsProps) {+ const frame = useCurrentFrame();+ const { width, height } = useVideoConfig();+ const t = THEMES[theme] ?? THEMES.light;+ const stageScale = Math.min(width / REF_W, height / REF_H);++ const count = sponsors.length;+ const avatarStep =+ count > 1 ? Math.min(AVATAR_STEP, AVATAR_WINDOW / (count - 1)) : 0;+ const cols = gridColumns(count);+ const rows = Math.max(1, Math.ceil(count / Math.max(1, cols)));+ const cellW = GRID_BOX_W / Math.max(1, cols);+ const cellH = GRID_BOX_H / rows;+ const avatarSize = Math.min(84, Math.min(cellW, cellH) * 0.76);++ const cells = useMemo(+ () => gridLayout(count, cols, cellW, cellH),+ [count, cols, cellW, cellH],+ );++ const draw = heartDrawProgress(frame, speed);+ const fillO = ramp(frame, speed, DRAW_END - 8, PULSE_END, Easing.linear);+ const pulse = heartPulseScale(frame, speed);+ const dock = ramp(frame, speed, HEART_DOCK_START, HEART_DOCK_END);++ const heartBase = 168;+ const heartScale = (1 - 0.62 * dock) * pulse;+ const heartDy = (HEART_HEADER_Y - HEART_START_Y) * dock;++ const ctaProgress = ramp(frame, speed, CTA_START, CTA_START + CTA_DUR);+ const ctaBlur = (1 - ctaProgress) * 10;+ const ctaY = (1 - ctaProgress) * 12;+ const accountOpacity = ramp(+ frame,+ speed,+ CTA_START + 8,+ CTA_START + CTA_DUR + 8,+ );++ return (+ <AbsoluteFill style={{ background: t.bg }}>+ <div+ style={{+ position: "absolute",+ left: "50%",+ top: "50%",+ width: REF_W,+ height: REF_H,+ transform: `translate(-50%, -50%) scale(${stageScale})`,+ }}+ >+ {sponsors.map((sponsor, i) => (+ <SponsorNode+ key={`node-${sponsor.login}-${i}`}+ sponsor={sponsor}+ cell={cells[i]}+ progress={ramp(+ frame,+ speed,+ AVATAR_START + i * avatarStep,+ AVATAR_START + i * avatarStep + AVATAR_DUR,+ )}+ size={avatarSize}+ theme={t}+ />+ ))}++ <div+ style={{+ position: "absolute",+ left: GRID_CX,+ top: HEART_START_Y,+ transform: `translate(-50%, -50%) translate(0px, ${heartDy}px) scale(${heartScale})`,+ width: heartBase,+ height: heartBase,+ display: "flex",+ alignItems: "center",+ justifyContent: "center",+ willChange: "transform",+ }}+ >+ <HeartGlyph+ size={heartBase}+ accent={accentColor}+ draw={draw}+ fill={fillO}+ />+ </div>++ <div+ style={{+ position: "absolute",+ left: 0,+ top: 444,+ width: REF_W,+ height: 84,+ }}+ >+ <Sequence from={Math.round(THANK_START / speed)} layout="none">+ <SoftBlurIn+ text="Thank you"+ fontSize={54}+ fontWeight={600}+ color={t.fg}+ speed={speed}+ />+ </Sequence>+ </div>++ <div+ style={{+ position: "absolute",+ left: 0,+ top: 532,+ width: REF_W,+ height: 36,+ }}+ >+ <Sequence from={Math.round(SUB_START / speed)} layout="none">+ <BlurOutUp+ text={`Powered by ${count} sponsors`}+ fontSize={24}+ fontWeight={500}+ color={t.fgMuted}+ speed={speed}+ />+ </Sequence>+ </div>++ <div+ style={{+ position: "absolute",+ left: 0,+ top: 584,+ width: REF_W,+ display: "flex",+ flexDirection: "column",+ alignItems: "center",+ gap: 12,+ }}+ >+ <div+ style={{+ transform: `translateY(${ctaY}px)`,+ opacity: ctaProgress,+ filter: `blur(${ctaBlur}px)`,+ display: "flex",+ alignItems: "center",+ gap: 10,+ padding: "14px 26px",+ borderRadius: 9999,+ background: accentColor,+ color: "#ffffff",+ fontSize: 24,+ fontWeight: 600,+ fontFamily: FONT_FAMILY,+ willChange: "transform, opacity, filter",+ }}+ >+ <HeartGlyph size={22} accent="#ffffff" draw={1} fill={1} />+ Become a sponsor+ </div>+ <div+ style={{+ opacity: accountOpacity * 0.9,+ fontSize: 18,+ fontWeight: 400,+ color: t.fgMuted,+ fontFamily: FONT_FAMILY,+ }}+ >+ github.com/sponsors/{account}+ </div>+ </div>+ </div>+ </AbsoluteFill>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex 78b4198e..fa13fc6b 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -1053,6 +1053,27 @@}]},+ {+ "name": "github-sponsors",+ "type": "registry:component",+ "title": "GitHub Sponsors",+ "description": "Self-drawing Sponsors heart that docks to a header, every sponsor avatar blur-staggering into a grid, then a thank-you headline and a CTA. Single seek-safe timeline, 270 frames at 30fps.",+ "dependencies": [+ "remotion",+ "@remotion/google-fonts"+ ],+ "registryDependencies": [+ "@remocn/soft-blur-in",+ "@remocn/blur-out-up"+ ],+ "files": [+ {+ "path": "github-sponsors/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/github-sponsors.tsx"+ }+ ]+ },{"name": "github-stars","type": "registry:component",diff --git a/tsconfig.json b/tsconfig.jsonindex d78c00c1..719bf9e9 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -15,35 +15,79 @@"incremental": true,"plugins": [{- "name": "next"- }+ "name": "next",+ },],"paths": {"@/lib/remocn-ui": ["./registry/remocn-ui/core/index.ts"],"@/lib/remocn-ui/*": ["./registry/remocn-ui/core/*"],- "@/components/remocn/use-cursor-path": ["./registry/remocn-ui/cursor/use-cursor-path.ts"],- "@/components/remocn/use-button-transition": ["./registry/remocn-ui/button/use-button-transition.ts"],- "@/components/remocn/use-input-transition": ["./registry/remocn-ui/input/use-input-transition.ts"],- "@/components/remocn/use-checkbox-transition": ["./registry/remocn-ui/checkbox/use-checkbox-transition.ts"],- "@/components/remocn/use-toast-transition": ["./registry/remocn-ui/toast/use-toast-transition.ts"],- "@/components/remocn/use-skeleton-transition": ["./registry/remocn-ui/skeleton/use-skeleton-transition.ts"],- "@/components/remocn/use-toggle-group-transition": ["./registry/remocn-ui/toggle-group/use-toggle-group-transition.ts"],- "@/components/remocn/use-dialog-transition": ["./registry/remocn-ui/dialog/use-dialog-transition.ts"],- "@/components/remocn/use-radio-transition": ["./registry/remocn-ui/radio/use-radio-transition.ts"],- "@/components/remocn/use-stepper-transition": ["./registry/remocn-ui/stepper/use-stepper-transition.ts"],- "@/components/remocn/use-switch-transition": ["./registry/remocn-ui/switch/use-switch-transition.ts"],- "@/components/remocn/use-select-transition": ["./registry/remocn-ui/select/use-select-transition.ts"],- "@/components/remocn/use-select-item-transition": ["./registry/remocn-ui/select-item/use-select-item-transition.ts"],- "@/components/remocn/use-slider-transition": ["./registry/remocn-ui/slider/use-slider-transition.ts"],- "@/components/remocn/use-blur-in-transition": ["./registry/remocn-ui/blur-in/use-blur-in-transition.ts"],- "@/components/remocn/use-message-bubble-transition": ["./registry/remocn-ui/message-bubble/use-message-bubble-transition.ts"],+ "@/components/remocn/use-cursor-path": [+ "./registry/remocn-ui/cursor/use-cursor-path.ts",+ ],+ "@/components/remocn/use-button-transition": [+ "./registry/remocn-ui/button/use-button-transition.ts",+ ],+ "@/components/remocn/use-input-transition": [+ "./registry/remocn-ui/input/use-input-transition.ts",+ ],+ "@/components/remocn/use-checkbox-transition": [+ "./registry/remocn-ui/checkbox/use-checkbox-transition.ts",+ ],+ "@/components/remocn/use-toast-transition": [+ "./registry/remocn-ui/toast/use-toast-transition.ts",+ ],+ "@/components/remocn/use-skeleton-transition": [+ "./registry/remocn-ui/skeleton/use-skeleton-transition.ts",+ ],+ "@/components/remocn/use-toggle-group-transition": [+ "./registry/remocn-ui/toggle-group/use-toggle-group-transition.ts",+ ],+ "@/components/remocn/use-dialog-transition": [+ "./registry/remocn-ui/dialog/use-dialog-transition.ts",+ ],+ "@/components/remocn/use-radio-transition": [+ "./registry/remocn-ui/radio/use-radio-transition.ts",+ ],+ "@/components/remocn/use-stepper-transition": [+ "./registry/remocn-ui/stepper/use-stepper-transition.ts",+ ],+ "@/components/remocn/use-switch-transition": [+ "./registry/remocn-ui/switch/use-switch-transition.ts",+ ],+ "@/components/remocn/use-select-transition": [+ "./registry/remocn-ui/select/use-select-transition.ts",+ ],+ "@/components/remocn/use-select-item-transition": [+ "./registry/remocn-ui/select-item/use-select-item-transition.ts",+ ],+ "@/components/remocn/use-slider-transition": [+ "./registry/remocn-ui/slider/use-slider-transition.ts",+ ],+ "@/components/remocn/use-blur-in-transition": [+ "./registry/remocn-ui/blur-in/use-blur-in-transition.ts",+ ],+ "@/components/remocn/use-message-bubble-transition": [+ "./registry/remocn-ui/message-bubble/use-message-bubble-transition.ts",+ ],"@/components/remocn/confetti": ["./registry/remocn/confetti/index.tsx"],- "@/components/remocn/glass-code-block": ["./registry/remocn/glass-code-block/index.tsx"],- "@/components/remocn/number-wheel": ["./registry/remocn/number-wheel/index.tsx"],- "@/components/remocn/terminal-simulator": ["./registry/remocn/terminal-simulator/index.tsx"],+ "@/components/remocn/glass-code-block": [+ "./registry/remocn/glass-code-block/index.tsx",+ ],+ "@/components/remocn/number-wheel": [+ "./registry/remocn/number-wheel/index.tsx",+ ],+ "@/components/remocn/terminal-simulator": [+ "./registry/remocn/terminal-simulator/index.tsx",+ ],+ "@/components/remocn/soft-blur-in": [+ "./registry/remocn/soft-blur-in/index.tsx",+ ],+ "@/components/remocn/blur-out-up": [+ "./registry/remocn/blur-out-up/index.tsx",+ ],"@/components/remocn/*": ["./registry/remocn-ui/*/index.tsx"],- "@/*": ["./*"]- }+ "@/*": ["./*"],+ },},"include": ["next-env.d.ts",@@ -51,7 +95,7 @@"**/*.tsx",".next/types/**/*.ts",".next/dev/types/**/*.ts",- "**/*.mts"+ "**/*.mts",],- "exclude": ["node_modules"]+ "exclude": ["node_modules"],}