🎥 Make videos programmatically with React
finish contact page
MehmetAdemia931d6c6c18f
diff --git a/packages/docs/src/components/GoogleMaps.module.css b/packages/docs/src/components/GoogleMaps.module.cssnew file mode 100644index 0000000000..c8f7e75767--- /dev/null+++ b/packages/docs/src/components/GoogleMaps.module.css@@ -0,0 +1,8 @@+.mapContainer {+ display: flex;+ margin-top: 50px;+ margin-bottom: 20px;+ justify-content: center;+ align-items: center;+ width: 100%;+}diff --git a/packages/docs/src/components/GoogleMaps.tsx b/packages/docs/src/components/GoogleMaps.tsxnew file mode 100644index 0000000000..287e97f82b--- /dev/null+++ b/packages/docs/src/components/GoogleMaps.tsx@@ -0,0 +1,30 @@+import React from "react";+import styles from "./GoogleMaps.module.css"; // Assuming you have a separate CSS module for this component++const GoogleMaps = () => {+ return (+ <div className={styles.mapContainer}>+ <div+ style={{+ maxWidth: "968px",+ transition: "none",+ overflow: "hidden",+ width: "100%",+ height: "500px",+ }}+ >+ <div+ id="my-map-canvas"+ style={{ height: "100%", width: "100%", maxWidth: "100%" }}+ >+ <iframe+ style={{ height: "100%", width: "100%", border: "0" }}+ src="https://www.google.com/maps/embed/v1/place?q=Remotion,+Hohlstrasse+186,+8004+Zurich&key=AIzaSyBFw0Qbyq9zTFTd-tUY6dZWTgaQzuU17R8"+ />+ </div>+ </div>+ </div>+ );+};++export default GoogleMaps;diff --git a/packages/docs/src/pages/contact/contact.module.css b/packages/docs/src/pages/contact/contact.module.cssdeleted file mode 100644index a346793643..0000000000--- a/packages/docs/src/pages/contact/contact.module.css+++ /dev/null@@ -1,138 +0,0 @@-/* styles from v4.module.css */-.container {- position: relative;- z-index: 1;- margin-top: -5vw;-}--.wrapper {- max-width: 1000px;- margin: auto;- padding-left: 20px;- padding-right: 20px;- display: flex;- flex-direction: column;-}--.panel {- border: 2px solid var(--ifm-font-color-base);- border-bottom-width: 4px;- padding: 14px;- border-radius: 8px;- flex: 1;- padding-bottom: 10px;- display: flex;- flex-direction: column;- min-height: 100px;- position: relative;-}--.title {- font-size: 1.2rem;- margin-bottom: 0;- font-weight: 500;- margin-top: -5px;- font-weight: 600;- margin-bottom: 10px;- text-align: center;-}--.eventtitle {- font-size: 1.2rem;- margin-bottom: 0;- font-weight: 500;- margin-top: -5px;- font-weight: 600;- margin-bottom: 10px;- margin-left: 70px;-}--.pagetitle {- font-size: 5em;- text-align: center;- font-weight: 900;-}--@media screen and (max-width: 900px) {- .pagetitle {- font-size: 3em;- }-}--.button {- background-color: var(--ifm-color-primary);- border: none;- border-radius: 8px;- padding: 3px 12px;- font-size: 1.1rem;- font-weight: 500;- cursor: pointer;- margin-top: 10px;- margin-bottom: 10px;- display: inline-block;- text-align: center;- border: 2px solid black;- border-bottom-width: 4px;-}--.button:focus {- border-bottom-width: 2px;-}--.calendarbutton {- margin-top: -20px;- position: relative;- color: white;-}--.button a {- color: white;- font-family: "GTPlanar";- text-decoration: none;-}--.date {- background-color: var(--ifm-color-primary);- border: 2px solid black;- border-bottom: 3px solid black;- color: white;- border-radius: 8px;- font-family: "GTPlanar";- padding: 3px 8px;- display: inline;- font-weight: bold;- position: absolute;- margin-left: -20px;- margin-top: -8px;-}--.grid {- display: grid;- grid-template-columns: repeat(2, 1fr);- grid-gap: 20px;- margin-top: 20px;- grid-auto-rows: 1fr;-}--@media screen and (max-width: 900px) {- .grid {- grid-template-columns: repeat(1, 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;-}diff --git a/packages/docs/src/pages/contact/index.tsx b/packages/docs/src/pages/contact/index.tsxindex 1862f338bb..985e39f67b 100644--- a/packages/docs/src/pages/contact/index.tsx+++ b/packages/docs/src/pages/contact/index.tsx@@ -3,7 +3,7 @@ import React from "react";import { PlainButton } from "../../../components/layout/Button";import { Spacer } from "../../../components/layout/Spacer";import { ContactUsHeader } from "../../components/ContactUsHeader";-import styles from "./contact.module.css";+import GoogleMaps from "../../components/GoogleMaps";import Head from "@docusaurus/Head";@@ -14,6 +14,12 @@ const container: React.CSSProperties = {paddingRight: 16,};+const button: React.CSSProperties = {+ color: "white",+ fontFamily: "GTPlanar",+ textDecoration: "none",+};+export default () => {return (<Layout>@@ -32,14 +38,7 @@ export default () => {justifyContent: "left",}}>- <a- style={{- textDecoration: "none",- }}- className={styles.a}- target="_blank"- href="mailto:[email protected]"- >+ <a style={button} target="_blank" href="mailto:[email protected]"><PlainButton size="sm" loading={false} fullWidth={false}>Contact via email</PlainButton>@@ -47,10 +46,7 @@ export default () => {<Spacer /><Spacer /><a- style={{- textDecoration: "none",- }}- className={styles.a}+ style={button}target="_blank"href="https://cal.com/remotion/evaluate">@@ -81,20 +77,14 @@ export default () => {justifyContent: "left",}}>- <a- style={{- textDecoration: "none",- }}- className={styles.a}- target="_blank"- href="https://remotion.dev/discord"- >+ <a style={button} target="_blank" href="https://remotion.dev/discord"><PlainButton size="sm" loading={false} fullWidth={false}>Join Discord</PlainButton></a></div></div>+ <GoogleMaps /></Layout>);};