Skip to content

🎥 Make videos programmatically with React

cool cool cool

Jonny Burger7050b105a616
diff --git a/packages/docs/components/TextInput.tsx b/packages/docs/components/TextInput.tsx
index ee3ea4583d..7341e17ae0 100644
--- a/packages/docs/components/TextInput.tsx
+++ b/packages/docs/components/TextInput.tsx
@@ -8,6 +8,7 @@ const inputStyle: React.CSSProperties = {
borderRadius: 4,
minWidth: 35,
fontSize: 16,
+ background: "var(--background)",
};
const backgroundStyle = (
@@ -15,12 +16,15 @@ const backgroundStyle = (
fullWidth: boolean
): React.CSSProperties => {
return {
- padding: 3,
- background: focused ? "var(--ifm-color-primary)" : "rgba(0, 0, 0, 0.1)",
+ padding: 2,
+ background: focused
+ ? "var(--ifm-color-primary)"
+ : "var(--ifm-font-color-base)",
display: fullWidth ? "block" : "inline-block",
transition: "0.2s background-color",
borderRadius: 7,
overflow: "hidden",
+ width: "100%",
};
};
diff --git a/packages/docs/src/css/custom.css b/packages/docs/src/css/custom.css
index c2738686b7..bcc53836c3 100644
--- a/packages/docs/src/css/custom.css
+++ b/packages/docs/src/css/custom.css
@@ -80,6 +80,7 @@ h6 {
--clear-hover: rgba(0, 0, 0, 0.04);
--border-color: rgb(234, 234, 234);
--box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
+ --ifm-out-of-focus: #eaeaea;
}
[data-theme="dark"] {
--background: #18191a;
@@ -94,6 +95,7 @@ h6 {
--subtitle: #8d8d8d;
--border-color: rgb(42, 42, 42);
--box-shadow: 0 1px 8px rgba(255, 255, 255, 0.2);
+ --ifm-out-of-focus: #eaeaea;
}
[data-theme="light"] .docusaurus-highlight-code-line {
diff --git a/packages/docs/src/pages/4/index.tsx b/packages/docs/src/pages/4/index.tsx
index 448d556872..48801b3b9c 100644
--- a/packages/docs/src/pages/4/index.tsx
+++ b/packages/docs/src/pages/4/index.tsx
@@ -29,10 +29,10 @@ const V4: React.FC = () => {
const buttonLabel = useMemo(() => {
if (subscribed) {
- return "Subscribed!";
+ return "You're set!";
}
- return loading ? "submitting..." : "submit";
+ return loading ? "Submitting..." : "Remind";
}, [loading, subscribed]);
const isValidEmail = (inputMail: string) =>
/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(inputMail);
@@ -117,7 +117,7 @@ const V4: React.FC = () => {
<div style={{ height: "60px" }} />
<div className={styles.grid}>
<EventComp
- description="Celebrate the launch of Remotion 4.0 and experience the new possibilities of video creation with React."
+ description="Celebrate the launch of Remotion 4.0 and experience the new possibilities of media creation with React."
date="July 3rd"
title="Keynote"
locked={false}
@@ -132,7 +132,7 @@ const V4: React.FC = () => {
locked
date="July 5th"
title="Render button"
- description="Parametrize React content and export React components as videos and other media with the click of a button."
+ description="Configure, queue and track renders with the newest way to render using Remotion."
/>
<EventComp
locked
@@ -150,23 +150,25 @@ const V4: React.FC = () => {
<div style={{ marginBottom: 10 }}>
Get a reminder on July 3rd:
</div>
- <CoolInput
- type="email"
- autoComplete="none"
- onChange={onChange}
- placeholder="Your email adress"
- style={{ width: "100%", fontFamily: "GTPlanar" }}
- />
- <Spacer />
- <Spacer />
-
- <button
- type="submit"
- onClick={onSubmit}
- disabled={loading || subscribed}
- >
- {buttonLabel}
- </button>
+ <form style={{ width: "100%" }} onSubmit={onSubmit}>
+ <CoolInput
+ type="email"
+ autoComplete="none"
+ onChange={onChange}
+ placeholder="Your email adress"
+ style={{ width: "100%", fontFamily: "GTPlanar" }}
+ />
+ <Spacer />
+ <div>
+ <button
+ type="submit"
+ className={styles.submitbutton}
+ disabled={loading || subscribed}
+ >
+ {buttonLabel}
+ </button>
+ </div>
+ </form>
<Spacer />
<div style={errorStyle}>{error}</div>
</div>
@@ -189,6 +191,7 @@ export const EventComp: React.FC<{
<div
style={{
border: "2px solid var(--ifm-font-color-base)",
+ borderBottomWidth: 4,
borderRadius: 8,
padding: 10,
}}
diff --git a/packages/docs/src/pages/4/v4.module.css b/packages/docs/src/pages/4/v4.module.css
index 753e1b7f51..1cb192685e 100644
--- a/packages/docs/src/pages/4/v4.module.css
+++ b/packages/docs/src/pages/4/v4.module.css
@@ -15,13 +15,15 @@
.panel {
border: 2px solid var(--ifm-font-color-base);
+ border-bottom-width: 4px;
padding: 14px;
- border-radius: 15px;
+ border-radius: 8px;
flex: 1;
padding-bottom: 10px;
display: flex;
flex-direction: column;
min-height: 100px;
+ position: relative;
}
.title {
@@ -102,3 +104,20 @@
margin-top: 20px;
grid-auto-rows: 1fr;
}
+
+.submitbutton {
+ background-color: var(--ifm-color-primary);
+ color: white;
+ font-family: GTPlanar;
+ border: none;
+ border-radius: 8px;
+ padding: 3px 12px;
+ font-size: 1rem;
+ font-weight: 500;
+ cursor: pointer;
+ display: inline;
+ position: absolute;
+ right: 20px;
+ border: 2px solid black;
+ margin-top: -30px;
+}