Skip to content

🎥 Make videos programmatically with React

adding website button and alignment

MehmetAdemi239e521b4b53
diff --git a/packages/docs/src/components/icons.tsx b/packages/docs/src/components/icons.tsx
index 90e29b47d6..d294275783 100644
--- a/packages/docs/src/components/icons.tsx
+++ b/packages/docs/src/components/icons.tsx
@@ -76,35 +76,34 @@ export const VideoCallLogo: React.FC = () => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 1339 1339"
- fill="none"
+ viewBox="0 0 576 576"
style={{
width: 30,
marginRight: 10,
}}
>
- <g filter="url(#filter0_d_1118_90)">
- <path
- d="M229 483.994C229 450.86 255.86 424 288.994 424H708.949C792.654 424 860.511 491.857 860.511 575.563V855.006C860.511 888.14 833.651 915 800.518 915H380.563C296.857 915 229 847.143 229 763.437V483.994Z"
- fill="white"
- />
- <path
- d="M288.994 431.105H708.949C788.731 431.105 853.407 495.781 853.407 575.563V855.006C853.407 884.216 829.727 907.896 800.518 907.896H380.563C300.781 907.896 236.105 843.219 236.105 763.437V483.994C236.105 454.784 259.784 431.105 288.994 431.105Z"
- stroke="#505050"
- strokeWidth="14.209"
- />
- </g>
- <g filter="url(#filter1_d_1118_90)">
- <path
- d="M898.402 597.835C898.402 577.414 907.19 557.98 922.522 544.492L1042.84 438.648C1068.34 416.217 1108.38 434.323 1108.38 468.283V871.921C1108.38 905.562 1068.99 923.782 1043.35 902L932.908 808.163C911.019 789.565 898.402 762.29 898.402 733.567V597.835Z"
- fill="white"
- />
- <path
- d="M927.215 549.827L1047.53 443.982C1068.44 425.589 1101.28 440.436 1101.28 468.283V871.921C1101.28 899.506 1068.98 914.447 1047.95 896.586L937.508 802.748C917.207 785.5 905.507 760.206 905.507 733.567V597.835C905.507 579.456 913.415 561.966 927.215 549.827Z"
- stroke="#505050"
- strokeWidth="14.209"
- />
- </g>
+ <path
+ fill="white"
+ d="M64 112c-8.8 0-16 7.2-16 16V384c0 8.8 7.2 16 16 16H320c8.8 0 16-7.2 16-16V128c0-8.8-7.2-16-16-16H64zM0 128C0 92.7 28.7 64 64 64H320c35.3 0 64 28.7 64 64v33V351v33c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128zM528 363.4V148.6L416 199V146.4L520.3 99.5c5.1-2.3 10.6-3.5 16.2-3.5c21.8 0 39.5 17.7 39.5 39.5v241c0 21.8-17.7 39.5-39.5 39.5c-5.6 0-11.1-1.2-16.2-3.5L416 365.6V313l112 50.4z"
+ />
+ </svg>
+ );
+};
+
+export const PersonalWebsite: React.FC = () => {
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 576 576"
+ style={{
+ width: 30,
+ marginRight: 10,
+ }}
+ >
+ <path
+ fill="white"
+ d="M317.9 422.7C296.4 465.6 272.7 480 256 480c-7.9 0-17.3-3.2-27.3-11l-6.9 18.6c-2.9 7.8-7.7 14.7-13.9 19.9c15.6 3 31.6 4.5 48.1 4.5c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256c0 16.4 1.5 32.5 4.5 48.1c5.3-6.2 12.1-11 19.9-13.9l9.6-3.5c-1.4-10-2.1-20.2-2.1-30.6c0-22.2 3.2-43.7 9.3-64H132c-2.5 19.2-3.9 39.3-4 60l32.2-11.9c.5-16.7 1.9-32.8 4.1-48.1H347.7c2.8 20.2 4.3 41.7 4.3 64s-1.5 43.8-4.3 64H283.6l-11.8 32H342c-5.9 27-14.2 50.9-24.1 70.7zM194.1 89.3C215.6 46.4 239.3 32 256 32s40.4 14.4 61.9 57.3c9.9 19.8 18.2 43.7 24.1 70.7H170c5.9-27 14.2-50.9 24.1-70.7zM384 256c0-22.1-1.4-43.5-4-64h90.8c6 20.3 9.3 41.8 9.3 64s-3.2 43.7-9.3 64H380c2.6-20.5 4-41.9 4-64zm-9.3-96c-9.6-47.6-26.2-88-47.2-116.3c57.8 19.5 105 61.8 130.9 116.3H374.7zM53.6 160c25.9-54.5 73.1-96.9 130.9-116.3c-21 28.3-37.5 68.8-47.2 116.3H53.6zM374.7 352h83.8c-25.9 54.5-73.1 96.9-130.9 116.3c21-28.3 37.6-68.8 47.2-116.3zM271 261.5c2.2-5.9 .7-12.4-3.7-16.8s-11-5.9-16.8-3.7l-215 79.2c-6.2 2.3-10.3 8.1-10.5 14.7s3.8 12.6 9.9 15.1l74 30.5L4.7 484.7c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L131.5 403.1l30.5 74c2.5 6.1 8.5 10 15.1 9.9s12.4-4.3 14.7-10.5l79.2-215zM143.3 360L85.1 336 229 283 176 426.9l-24-58.2c-1.6-3.9-4.8-7.1-8.7-8.7z"
+ />
</svg>
);
};
diff --git a/packages/docs/src/data/experts.tsx b/packages/docs/src/data/experts.tsx
index f78a3b8923..f7a0222a42 100644
--- a/packages/docs/src/data/experts.tsx
+++ b/packages/docs/src/data/experts.tsx
@@ -214,7 +214,7 @@ export const experts: Expert[] = [
slug: "matthew-mcgillivray",
name: "Matt McGillivray",
image: "/img/freelancers/umungo.png",
- website: null,
+ website: "https://mattm9y.com",
twitter: "ProThatwas",
github: "UmungoBungo",
linkedin: "in/matthew-mcgillivray-68295a55",
@@ -314,11 +314,6 @@ export const experts: Expert[] = [
</a>
, with Mickaël Alves
</p>
- <p>
- <a href="https://blog.slashgear.dev/" target={"_blank"}>
- Personal website
- </a>
- </p>
</div>
),
},
@@ -345,11 +340,6 @@ export const experts: Expert[] = [
</a>
, with Antoine Caron
</p>
- <p>
- <a href="https://cruuzazul.dev/" target={"_blank"}>
- Personal website
- </a>
- </p>
</div>
),
},
diff --git a/packages/docs/src/pages/experts/index.tsx b/packages/docs/src/pages/experts/index.tsx
index 65f5ef0c75..48a30105e4 100644
--- a/packages/docs/src/pages/experts/index.tsx
+++ b/packages/docs/src/pages/experts/index.tsx
@@ -10,6 +10,7 @@ import {
EmailLogo,
GitHubLogo,
LinkedInLogo,
+ PersonalWebsite,
TwitterLogo,
VideoCallLogo,
} from "../../components/icons";
@@ -103,19 +104,38 @@ const Experts: React.FC = () => {
width: "100%",
}}
>
- {e.twitter ? (
+ {e.website ? (
<div style={flex} className={styles.docsButton}>
- <a
- target={"_blank"}
- href={`https://twitter.com/${e.twitter}`}
- >
+ <a target={"_blank"} href={`${e.website}`}>
<BlueButton loading={false} fullWidth size="sm">
- <TwitterLogo /> Twitter
+ <PersonalWebsite /> Website
</BlueButton>
</a>
</div>
) : null}
+ {e.twitter ? (
+ <>
+ {e.website ? (
+ <>
+ <Spacer />
+ <Spacer />
+ </>
+ ) : null}
+
+ <div style={flex} className={styles.docsButton}>
+ <a
+ target={"_blank"}
+ href={`https://twitter.com/${e.twitter}`}
+ >
+ <BlueButton loading={false} fullWidth size="sm">
+ <TwitterLogo /> Twitter
+ </BlueButton>
+ </a>
+ </div>
+ </>
+ ) : null}
+
{e.github ? (
<>
{e.twitter ? (
@@ -161,25 +181,28 @@ const Experts: React.FC = () => {
</a>
</div>
) : null}
- {e.linkedin && e.email ? (
+
+ {e.email ? (
<>
- <Spacer />
- <Spacer />
+ {e.linkedin ? (
+ <>
+ <Spacer />
+ <Spacer />
+ </>
+ ) : null}
+ <div style={flex} className={styles.docsButton}>
+ <a
+ style={docsButton}
+ target={"_blank"}
+ href={`mailto:${e.email}`}
+ >
+ <BlueButton loading={false} fullWidth size="sm">
+ <EmailLogo /> Email
+ </BlueButton>
+ </a>
+ </div>
</>
) : null}
- {e.email ? (
- <div style={flex} className={styles.docsButton}>
- <a
- style={docsButton}
- target={"_blank"}
- href={`mailto:${e.email}`}
- >
- <BlueButton loading={false} fullWidth size="sm">
- <EmailLogo /> Email
- </BlueButton>
- </a>
- </div>
- ) : null}
{e.videocall ? (
<>
@@ -192,7 +215,7 @@ const Experts: React.FC = () => {
href={`https://cal.com/${e.videocall}`}
>
<BlueButton loading={false} fullWidth size="sm">
- <VideoCallLogo /> Video call
+ <VideoCallLogo /> Call
</BlueButton>
</a>
</div>