From ca7ca6581233221892e1ae6f8d8c92a9691c5ab7 Mon Sep 17 00:00:00 2001 From: Can Mingir Date: Sun, 26 May 2024 19:48:53 -0400 Subject: [PATCH] Add chat section --- src/pages/landing.jsx | 3 ++ src/sections/Chat.jsx | 70 +++++++++++++++++++++++++ src/sections/marketing-landing-hero.jsx | 4 +- 3 files changed, 75 insertions(+), 2 deletions(-) create mode 100644 src/sections/Chat.jsx diff --git a/src/pages/landing.jsx b/src/pages/landing.jsx index 41a1f6c..d480a24 100644 --- a/src/pages/landing.jsx +++ b/src/pages/landing.jsx @@ -2,6 +2,7 @@ import { useEffect } from "react"; import { Helmet } from "react-helmet-async"; import gtag from "../gtag"; +import Chat from "../sections/Chat"; import Steps from "../sections/Steps"; import HelloWorld from "../sections/HelloWorld"; import MarketingServices from "../sections/marketing-services"; @@ -31,6 +32,8 @@ export default function MarketingLandingPage() { + + diff --git a/src/sections/Chat.jsx b/src/sections/Chat.jsx new file mode 100644 index 0000000..e6b167c --- /dev/null +++ b/src/sections/Chat.jsx @@ -0,0 +1,70 @@ +import React from "react"; + +import Box from "@mui/material/Box"; +import { Button } from "@mui/material"; +import Container from "@mui/material/Container"; + +import { useResponsive } from "../hooks/use-responsive"; + +// ---------------------------------------------------------------------- + +export default function Chat() { + const mdUp = useResponsive("up", "md"); + return ( + + + + {mdUp && ( + // eslint-disable-next-line jsx-a11y/media-has-caption + + + + + + + ); +} diff --git a/src/sections/marketing-landing-hero.jsx b/src/sections/marketing-landing-hero.jsx index 3abae36..e0db875 100644 --- a/src/sections/marketing-landing-hero.jsx +++ b/src/sections/marketing-landing-hero.jsx @@ -89,13 +89,13 @@ export default function MarketingLandingHero() { alignItems="center" sx={{ typography: "h6" }} onClick={() => - window.location.assign("https://nucleoid.com/ide/") + window.location.assign("https://nucleoid.com/ide/chat") } > - Try it out + Nucleoid Chat