🎥 Make videos programmatically with React
yes
evoxf168b561474622
diff --git a/packages/docs/src/components/Credits.tsx b/packages/docs/src/components/Credits.tsxindex edea58eaf6..b4e97e156c 100644--- a/packages/docs/src/components/Credits.tsx+++ b/packages/docs/src/components/Credits.tsx@@ -1,5 +1,4 @@import React from "react";-import contributorsData from "../data/contributorsData";const containerStyle: React.CSSProperties = {margin: "20px 0",@@ -47,32 +46,42 @@ const labelStyle: React.CSSProperties = {marginTop: "10px",};-const ContributorCard = ({ name, username, avatarUrl, contributionType }) => {- return (- <div style={cardStyle}>- <img src={avatarUrl} alt={username} style={avatarStyle} />- <div style={infoStyle}>- <a- href={`https://github.com/${username}`}- target="_blank"- rel="noopener noreferrer"- style={linkStyle}- >- <strong>{name}</strong>- </a>- <p style={labelStyle}>{contributionType}</p>- </div>- </div>- );-};+interface Contributor {+ id: number;+ name: string;+ username: string;+ avatarUrl: string;+ contributionType: string;+}++interface CreditsProps {+ contributors: Contributor[];+}-const Credits = () => {+const Credits: React.FC<CreditsProps> = ({ contributors }) => {return (<div style={containerStyle}><h3 style={{ fontSize: "2em", marginBottom: "20px" }}>Credits</h3><div style={cardContainerStyle}>- {contributorsData.map((contributor) => (- <ContributorCard key={contributor.id} {...contributor} />+ {contributors.map((contributor) => (+ <div key={contributor.id} style={cardStyle}>+ <img+ src={contributor.avatarUrl}+ alt={contributor.username}+ style={avatarStyle}+ />+ <div style={infoStyle}>+ <a+ href={`https://github.com/${contributor.username}`}+ target="_blank"+ rel="noopener noreferrer"+ style={linkStyle}+ >+ <strong>{contributor.name}</strong>+ </a>+ <p style={labelStyle}>{contributor.contributionType}</p>+ </div>+ </div>))}</div></div>diff --git a/packages/docs/src/data/contributorsData.ts b/packages/docs/src/data/contributorsData.tsdeleted file mode 100644index 3d74c9114f..0000000000--- a/packages/docs/src/data/contributorsData.ts+++ /dev/null@@ -1,21 +0,0 @@-// contributorsData.ts-interface Contributor {- id: number;- name: string;- username: string;- avatarUrl: string;- contributionType: string;-}--const contributorsData: Contributor[] = [- {- id: 1,- name: "Sahil Bhardwaj",- username: "evoxf1",- avatarUrl: "https://github.com/evoxf1.png",- contributionType: "Contribution of passing FFmpeg filter to change the pitch of the audio",- },- // Add more contributors here-];--export default contributorsData;