Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a booking and changed the careers link #51

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions components/Booking.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import React, { useEffect } from "react";
import styles from './Booking.module.css';

const CalendlyForm = ({ url }) => {
const [isClient, setIsClient] = React.useState(false);

useEffect(() => {
const head = document.querySelector("head");
const script = document.createElement("script");
script.setAttribute(
"src",
"https://assets.calendly.com/assets/external/widget.js"
);
head.appendChild(script);
setIsClient(true);
}, []);

return isClient ? (
<div>
<h1 className="font-light text-3xl text-black my-0 bg-white pt-8 text-center">Book a Demo</h1>
<div className={`calendly-inline-widget ${styles.calendly}`} data-url={url}></div>
<script type="text/javascript" src="https://assets.calendly.com/assets/external/widget.js" async></script>
</div>
) : <></>
};

export default CalendlyForm
5 changes: 5 additions & 0 deletions components/Booking.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/*calendly-inline-widget w-screen h-screen*/
.calendly {
min-width:320px;
height:700px;
}
2 changes: 1 addition & 1 deletion components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function Footer() {
</div>
<div className={styles.footerContent}>
<div className={`${styles.footerLinks} pt-20`}>
<a href="https://github.com/OpenAdaptAI/OpenAdapt?tab=readme-ov-file#-open-contract-positions-at-openadaptai" className={styles.link}>Careers</a>
<a href={`https://www.careers-page.com/${process.env.NEXT_PUBLIC_CAREER_LINK}`} className={styles.link}>Careers</a>
<a onClick={revealEmail} className={styles.link}>Contact</a>
</div>
<div className={styles.footerLinks}>
Expand Down
2 changes: 2 additions & 0 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import FeedbackForm from '@components/FeedbackForm';
import Footer from "@components/Footer";
import IndustriesGrid from '@components/IndustriesGrid';
import MastHead from '@components/MastHead';
import CalendlyForm from '@components/Booking';

export default function Home() {
const [feedbackData, setFeedbackData] = useState({
Expand All @@ -22,6 +23,7 @@ export default function Home() {
<div ref={sectionRef}>
<FeedbackForm feedbackData={feedbackData} setFeedbackData={setFeedbackData} />
</div>
<CalendlyForm url={process.env.NEXT_PUBLIC_CALENDLY_LINK}/>
<Footer />
</div>
)
Expand Down