π₯ Make videos programmatically with React
Update License Features
MehmetAdemib14603c14ebe
diff --git a/packages/docs/components/LandingPage/CompanyPricing.tsx b/packages/docs/components/LandingPage/CompanyPricing.tsxindex 08d301d8a7..e7d555d212 100644--- a/packages/docs/components/LandingPage/CompanyPricing.tsx+++ b/packages/docs/components/LandingPage/CompanyPricing.tsx@@ -1,5 +1,6 @@import React, {useCallback, useMemo} from 'react';import {Counter} from './Counter';+import {InfoTooltip} from './InfoToolTip';import {PricingBulletPoint} from './PricingBulletPoint';import styles from './pricing.module.css';@@ -51,6 +52,9 @@ export const CompanyPricing: React.FC = () => {<PricingBulletPoint text="Everything in Free License" checked /><PricingBulletPoint text="Prioritized Support" checked /><PricingBulletPoint text="Remotion Recorder included" checked />+ <PricingBulletPoint text="$250 Mux credits" checked>+ <InfoTooltip text="Credits for Mux.com. Applies only to new Mux customers." />+ </PricingBulletPoint><div style={{height: 30}} /><div className={styles.rowcontainer}><div style={textUnitWrapper}>diff --git a/packages/docs/components/LandingPage/EnterpriseLicense.tsx b/packages/docs/components/LandingPage/EnterpriseLicense.tsxindex a50dd83e2e..5fe60f3ba2 100644--- a/packages/docs/components/LandingPage/EnterpriseLicense.tsx+++ b/packages/docs/components/LandingPage/EnterpriseLicense.tsx@@ -12,6 +12,7 @@ export const EnterpriseLicense: React.FC = () => {<div className={styles.pricingcontainer}><div className={styles.audience}>For advanced needs</div><h2 className={styles.pricingtitle}>Enterprise License</h2>+ <PricingBulletPoint text="Everything in Company License" checked /><PricingBulletPoint text="Custom terms, billing and pricing" checked /><PricingBulletPoint text="Compliance forms" checked /><PricingBulletPoint text="Prioritized feature requests" checked />diff --git a/packages/docs/components/LandingPage/InfoToolTip.module.css b/packages/docs/components/LandingPage/InfoToolTip.module.cssnew file mode 100644index 0000000000..35ea10fe95--- /dev/null+++ b/packages/docs/components/LandingPage/InfoToolTip.module.css@@ -0,0 +1,32 @@+.infoIcon {+ display: inline-block;+ margin-left: 5px;+ color: #999; /* Subtle grey color */+ cursor: help;+ position: relative;+}++.tooltip {+ position: absolute;+ bottom: 100%;+ left: 50%;+ transform: translateX(-50%);+ background-color: #333;+ color: #fff;+ padding: 5px 10px;+ border-radius: 4px;+ font-size: 0.8rem;+ white-space: nowrap;+ z-index: 1;+}++.tooltip::after {+ content: '';+ position: absolute;+ top: 100%;+ left: 50%;+ margin-left: -5px;+ border-width: 5px;+ border-style: solid;+ border-color: #333 transparent transparent transparent;+}diff --git a/packages/docs/components/LandingPage/InfoToolTip.tsx b/packages/docs/components/LandingPage/InfoToolTip.tsxnew file mode 100644index 0000000000..40361dabcd--- /dev/null+++ b/packages/docs/components/LandingPage/InfoToolTip.tsx@@ -0,0 +1,21 @@+import React, {useState} from 'react';+import styles from './InfoTooltip.module.css';++interface InfoTooltipProps {+ text: string;+}++export const InfoTooltip: React.FC<InfoTooltipProps> = ({text}) => {+ const [isVisible, setIsVisible] = useState(false);++ return (+ <span+ className={styles.infoIcon}+ onMouseEnter={() => setIsVisible(true)}+ onMouseLeave={() => setIsVisible(false)}+ >+ <span style={{fontSize: '1rem'}}>β</span>+ {isVisible && <span className={styles.tooltip}>{text}</span>}+ </span>+ );+};diff --git a/packages/docs/components/LandingPage/PricingBulletPoint.tsx b/packages/docs/components/LandingPage/PricingBulletPoint.tsxindex d52cba457a..44937d6c2d 100644--- a/packages/docs/components/LandingPage/PricingBulletPoint.tsx+++ b/packages/docs/components/LandingPage/PricingBulletPoint.tsx@@ -1,47 +1,51 @@-import React from "react";-import styles from "./pricing.module.css";+import React from 'react';+import styles from './pricing.module.css';const container: React.CSSProperties = {- display: "flex",- flexDirection: "row",- alignItems: "center",- gap: "10px",+ display: 'flex',+ flexDirection: 'row',+ alignItems: 'center',+ gap: '10px',};const greyCircle: React.CSSProperties = {- width: 20,- height: 20,- borderRadius: 10,- backgroundColor: "var(--footer-border)",+ width: 20,+ height: 20,+ borderRadius: 10,+ backgroundColor: 'var(--footer-border)',};export const PricingBulletPoint: React.FC<{- text: string;- checked: boolean;-}> = ({ text, checked }) => {- const checkmarkSVG = (- <svg- width="20"- height="20"- viewBox="0 0 20 20"- fill="none"- xmlns="http://www.w3.org/2000/svg"- style={{- flexShrink: 0,- }}- >- <circle cx="10" cy="10" r="10" fill="#0B84F3" />- <path- d="M14.7908 7.20505C15.0697 7.47844 15.0697 7.92243 14.7908 8.19583L9.07711 13.795C8.79813 14.0683 8.34505 14.0683 8.06606 13.795L5.20924 10.9954C4.93025 10.722 4.93025 10.278 5.20924 10.0046C5.48823 9.73121 5.9413 9.73121 6.22029 10.0046L8.5727 12.3077L13.7819 7.20505C14.0609 6.93165 14.514 6.93165 14.793 7.20505H14.7908Z"- fill="white"- />- </svg>- );+ text: string;+ checked: boolean;+ children?: React.ReactNode;+}> = ({text, checked, children}) => {+ const checkmarkSVG = (+ <svg+ width="20"+ height="20"+ viewBox="0 0 20 20"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ style={{+ flexShrink: 0,+ }}+ >+ <circle cx="10" cy="10" r="10" fill="#0B84F3" />+ <path+ d="M14.7908 7.20505C15.0697 7.47844 15.0697 7.92243 14.7908 8.19583L9.07711 13.795C8.79813 14.0683 8.34505 14.0683 8.06606 13.795L5.20924 10.9954C4.93025 10.722 4.93025 10.278 5.20924 10.0046C5.48823 9.73121 5.9413 9.73121 6.22029 10.0046L8.5727 12.3077L13.7819 7.20505C14.0609 6.93165 14.514 6.93165 14.793 7.20505H14.7908Z"+ fill="white"+ />+ </svg>+ );- return (- <div style={container}>- {checked ? checkmarkSVG : <div style={greyCircle} />}- <div className={styles.text}>{text}</div>- </div>- );+ return (+ <div style={container}>+ {checked ? checkmarkSVG : <div style={greyCircle} />}+ <div className={styles.text}>+ {text}+ {children}+ </div>+ </div>+ );};