From 2a25618be6f2b03321bfc0445ff05e4b74e15113 Mon Sep 17 00:00:00 2001 From: Mike Smith <89040888+smiggiddy@users.noreply.github.com> Date: Tue, 22 Oct 2024 10:22:34 -0400 Subject: [PATCH] fix: dialog on join now btn --- src/components/Home.jsx | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/src/components/Home.jsx b/src/components/Home.jsx index 64e5a01..f8de9ce 100644 --- a/src/components/Home.jsx +++ b/src/components/Home.jsx @@ -1,8 +1,8 @@ -import React, { useState, useEffect, useRef } from 'react'; -import FeaturedRoadmaps from './FeaturedRoadmaps'; -import MailingListDialog from './MailingListDialog'; -import roadmaps from '../roadmaps.json'; -import './Home.css'; // Import the custom CSS file +import React, { useState, useEffect, useRef } from "react"; +import FeaturedRoadmaps from "./FeaturedRoadmaps"; +import MailingListDialog from "./MailingListDialog"; +import roadmaps from "../roadmaps.json"; +import "./Home.css"; // Import the custom CSS file const Home = () => { const [dialogOpen, setDialogOpen] = useState(false); @@ -14,11 +14,11 @@ const Home = () => { (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { - entry.target.classList.add('animate-fade-in'); + entry.target.classList.add("animate-fade-in"); } }); }, - { threshold: 0.1 } + { threshold: 0.1 }, ); sectionsRef.current.forEach((section) => { @@ -49,7 +49,7 @@ const Home = () => { }; return ( -
+
{ with a head start

- Empowering minorities to overcome barriers and succeed in the tech industry with confidence. + Empowering minorities to overcome barriers and succeed in the tech + industry with confidence.

- Tech illustration + Tech illustration
@@ -97,9 +102,13 @@ const Home = () => { >

Join Our Community

- Connect with like-minded individuals, share your journey, and get support from our community. + Connect with like-minded individuals, share your journey, and get + support from our community.

-
@@ -110,4 +119,5 @@ const Home = () => { ); }; -export default Home; \ No newline at end of file +export default Home; +