Skip to content

🎥 Make videos programmatically with React

fix for moblie view

MehmetAdemi0d0d8a8d70a5
diff --git a/packages/docs/src/components/icons.tsx b/packages/docs/src/components/icons.tsx
index d294275783..b2cd322932 100644
--- a/packages/docs/src/components/icons.tsx
+++ b/packages/docs/src/components/icons.tsx
@@ -4,7 +4,7 @@ export const TwitterLogo: React.FC = () => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 1059 1059"
+ viewBox="0 0 600 600"
style={{
width: 30,
marginRight: 10,
@@ -12,7 +12,7 @@ export const TwitterLogo: React.FC = () => {
>
<path
fill="white"
- d="M529.5 0.5625C237.404 0.5625 0.5625 237.404 0.5625 529.5C0.5625 821.596 237.404 1058.44 529.5 1058.44C821.596 1058.44 1058.44 821.596 1058.44 529.5C1058.44 237.404 821.596 0.5625 529.5 0.5625ZM783.697 399.273C784.051 404.822 784.051 410.607 784.051 416.274C784.051 589.596 652.053 789.246 410.843 789.246C336.461 789.246 267.511 767.64 209.422 730.449C220.048 731.63 230.202 732.102 241.064 732.102C302.458 732.102 358.894 711.322 403.877 676.138C346.261 674.958 297.854 637.177 281.324 585.227C301.514 588.179 319.696 588.179 340.476 582.866C310.809 576.839 284.143 560.727 265.01 537.267C245.876 513.807 235.454 484.447 235.515 454.174V452.521C252.87 462.32 273.296 468.342 294.666 469.168C276.701 457.195 261.968 440.975 251.774 421.945C241.579 402.915 236.238 381.663 236.223 360.075C236.223 335.635 242.599 313.32 254.051 293.958C286.98 334.494 328.071 367.648 374.652 391.264C421.233 414.88 472.262 428.43 524.423 431.033C505.887 341.892 572.476 269.754 652.525 269.754C690.306 269.754 724.31 285.575 748.277 311.077C777.912 305.528 806.248 294.43 831.514 279.553C821.714 309.896 801.171 335.517 773.897 351.692C800.344 348.858 825.847 341.538 849.46 331.267C831.632 357.477 809.317 380.736 783.697 399.273V399.273Z"
+ d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"
/>
</svg>
);
diff --git a/packages/docs/src/data/experts.tsx b/packages/docs/src/data/experts.tsx
index f7a0222a42..c5d612c168 100644
--- a/packages/docs/src/data/experts.tsx
+++ b/packages/docs/src/data/experts.tsx
@@ -5,7 +5,7 @@ export type Expert = {
image: string;
website: string | null;
description: React.ReactNode;
- twitter: React.ReactNode;
+ x: React.ReactNode;
github: React.ReactNode;
linkedin: React.ReactNode;
email: React.ReactNode;
@@ -19,7 +19,7 @@ export const experts: Expert[] = [
slug: "marcus-stenbeck",
name: "Marcus Stenbeck",
image: "/img/freelancers/marcus.jpeg",
- twitter: "marcusstenbeck",
+ x: "marcusstenbeck",
github: "marcusstenbeck",
linkedin: "in/mstenbeck/",
@@ -50,7 +50,7 @@ export const experts: Expert[] = [
name: "Florent Pergoud",
image: "/img/freelancers/florent.jpeg",
website: null,
- twitter: "florentpergoud",
+ x: "florentpergoud",
github: "florentpergoud",
linkedin: "in/florent-pergoud/",
@@ -75,7 +75,7 @@ export const experts: Expert[] = [
name: "Stephen Sullivan",
image: "/img/freelancers/stephen.png",
website: null,
- twitter: null,
+ x: null,
github: null,
linkedin: "in/sterv/",
@@ -96,7 +96,7 @@ export const experts: Expert[] = [
name: "Mohit Yadav",
image: "/img/freelancers/mohit.jpeg",
website: null,
- twitter: "Just_Moh_it",
+ x: "Just_Moh_it",
github: "Just-Moh-it",
linkedin: "in/just-moh-it/",
@@ -121,7 +121,7 @@ export const experts: Expert[] = [
name: "Yehor Misiats",
image: "/img/freelancers/yehor.jpeg",
website: null,
- twitter: "isatelllte",
+ x: "isatelllte",
github: "satelllte",
linkedin: "in/satelllte/",
@@ -153,7 +153,7 @@ export const experts: Expert[] = [
slug: "benjamin-jameson",
name: "Benjamin Jameson",
image: "/img/freelancers/benjamin.jpeg",
- twitter: null,
+ x: null,
github: "BenjaminJameson",
linkedin: null,
@@ -176,7 +176,7 @@ export const experts: Expert[] = [
name: "Karel Nagel",
image: "/img/freelancers/karel.jpeg",
website: "https://asius.ee/",
- twitter: "KarelETH",
+ x: "KarelETH",
github: "karelnagel",
linkedin: "in/karelnagel/",
since: new Date("2022-08-22").getTime(),
@@ -197,7 +197,7 @@ export const experts: Expert[] = [
name: "Alex Fernandez",
image: "/img/freelancers/alex.jpeg",
website: null,
- twitter: null,
+ x: null,
github: "alexfernandez803",
linkedin: "in/alex-f-17a5bb56/",
@@ -215,7 +215,7 @@ export const experts: Expert[] = [
name: "Matt McGillivray",
image: "/img/freelancers/umungo.png",
website: "https://mattm9y.com",
- twitter: "ProThatwas",
+ x: "ProThatwas",
github: "UmungoBungo",
linkedin: "in/matthew-mcgillivray-68295a55",
@@ -242,7 +242,7 @@ export const experts: Expert[] = [
name: "Ray Lotmar",
image: "/img/freelancers/ray.jpeg",
website: null,
- twitter: "romrif",
+ x: "romrif",
github: "rayBlock",
linkedin: "in/raymond-lotmar/",
@@ -265,7 +265,7 @@ export const experts: Expert[] = [
name: "Lorenzo Bertolini",
image: "/img/freelancers/lorenzo.jpeg",
website: "https://www.lorenzobertolini.com/",
- twitter: "MagoDiSegrate",
+ x: "MagoDiSegrate",
github: "encho",
linkedin: "in/lorenzobertolini/",
@@ -296,7 +296,7 @@ export const experts: Expert[] = [
name: "Antoine Caron",
image: "/img/freelancers/antoine.jpeg",
website: "https://blog.slashgear.dev/",
- twitter: "Slashgear_",
+ x: "Slashgear_",
github: "Slashgear",
linkedin: "in/antoine-caron-slash/",
@@ -322,7 +322,7 @@ export const experts: Expert[] = [
name: "Mickaël Alves",
image: "/img/freelancers/mickael.jpeg",
website: "https://cruuzazul.dev/",
- twitter: "CruuzAzul",
+ x: "CruuzAzul",
github: "CruuzAzul",
linkedin: "in/mickaelalves/",
@@ -348,7 +348,7 @@ export const experts: Expert[] = [
name: "Pranav Kulkarni",
image: "/img/freelancers/pranav.jpg",
website: "https://pranava.dev/",
- twitter: "thecmdrunner",
+ x: "thecmdrunner",
github: "thecmdrunner",
linkedin: "in/pranavk7/",
@@ -372,7 +372,7 @@ export const experts: Expert[] = [
name: "Rahul Bansal",
image: "/img/freelancers/rahul.png",
website: "https://bansalrahul.com/",
- twitter: "BansalRahul14",
+ x: "BansalRahul14",
github: "rahulbansal16",
linkedin: "in/rahulbansalrb/",
diff --git a/packages/docs/src/pages/experts/experts.module.css b/packages/docs/src/pages/experts/experts.module.css
index d1cff83c81..f128a35e54 100644
--- a/packages/docs/src/pages/experts/experts.module.css
+++ b/packages/docs/src/pages/experts/experts.module.css
@@ -86,3 +86,9 @@
text-align: left;
}
}
+
+@media (max-width: 600px) {
+ .card .buttonsInColumn {
+ flex-direction: column !important;
+ }
+}
diff --git a/packages/docs/src/pages/experts/index.tsx b/packages/docs/src/pages/experts/index.tsx
index 48a30105e4..409d0dff76 100644
--- a/packages/docs/src/pages/experts/index.tsx
+++ b/packages/docs/src/pages/experts/index.tsx
@@ -103,6 +103,7 @@ const Experts: React.FC = () => {
flexDirection: "row",
width: "100%",
}}
+ className={`${styles.buttonsInColumn}`}
>
{e.website ? (
<div style={flex} className={styles.docsButton}>
@@ -114,7 +115,7 @@ const Experts: React.FC = () => {
</div>
) : null}
- {e.twitter ? (
+ {e.x ? (
<>
{e.website ? (
<>
@@ -124,12 +125,9 @@ const Experts: React.FC = () => {
) : null}
<div style={flex} className={styles.docsButton}>
- <a
- target={"_blank"}
- href={`https://twitter.com/${e.twitter}`}
- >
+ <a target={"_blank"} href={`https://x.com/${e.x}`}>
<BlueButton loading={false} fullWidth size="sm">
- <TwitterLogo /> Twitter
+ <TwitterLogo /> X
</BlueButton>
</a>
</div>
@@ -138,7 +136,7 @@ const Experts: React.FC = () => {
{e.github ? (
<>
- {e.twitter ? (
+ {e.x ? (
<>
<Spacer />
<Spacer />
@@ -167,6 +165,7 @@ const Experts: React.FC = () => {
flexDirection: "row",
width: "100%",
}}
+ className={`${styles.buttonsInColumn}`}
>
{e.linkedin ? (
<div style={flex} className={styles.docsButton}>