diff --git a/public/woodybackground.jpg b/public/woodybackground.jpg deleted file mode 100644 index f014b28..0000000 Binary files a/public/woodybackground.jpg and /dev/null differ diff --git a/src/App.css b/src/App.css index 6a36e5d..30fe038 100644 --- a/src/App.css +++ b/src/App.css @@ -25,7 +25,7 @@ body { body { background-color: #FFFFFF; - background-image: url("./Assets/backgroundImage.webp"); + } nav { @@ -115,14 +115,14 @@ nav { .secondary-button { padding: 1rem 2.5rem; - background-color: #fe9e0d; + background-color: #23f2dd85; outline: none; border: none; border-radius: 5rem; font-size: 1.1rem; cursor: pointer; font-weight: 600; - color: white; + color: black; transition: 0.2s; display: flex; align-items: center; @@ -135,7 +135,7 @@ nav { } .secondary-button:hover { - background-color: #e48f0f; + background-color: #05d2be85; } .about-section-container { diff --git a/src/Assets/TeamMemberPhotos/priyansu.jpg b/src/Assets/TeamMemberPhotos/priyansu.jpg new file mode 100644 index 0000000..72c335d Binary files /dev/null and b/src/Assets/TeamMemberPhotos/priyansu.jpg differ diff --git a/src/Assets/TeamMemberPhotos/priyansu.png b/src/Assets/TeamMemberPhotos/priyansu.png deleted file mode 100644 index cb41b4a..0000000 Binary files a/src/Assets/TeamMemberPhotos/priyansu.png and /dev/null differ diff --git a/src/Assets/aboutvid.mp4 b/src/Assets/aboutvid.mp4 index e3c7f02..89dc176 100644 Binary files a/src/Assets/aboutvid.mp4 and b/src/Assets/aboutvid.mp4 differ diff --git a/src/Components/About.js b/src/Components/About.js index 664cc3f..7952797 100644 --- a/src/Components/About.js +++ b/src/Components/About.js @@ -16,8 +16,8 @@ const About = () => { />
-

About

-

EventPlanner

+

About

+

EventEZ

To enhance the Tri-Valley's official website and boost local business tourism, our mission is to address existing technology limitations by diff --git a/src/Components/Corousel.js b/src/Components/Corousel.js index c758396..6854ff7 100644 --- a/src/Components/Corousel.js +++ b/src/Components/Corousel.js @@ -1,45 +1,79 @@ -import React, { useState, useEffect } from 'react'; +import React, { useState, useEffect } from "react"; import { ChevronLeft, ChevronRight } from "react-feather"; -const Carousel = ({ children: slides, autoSlide = false, autoSlideInterval = 3000 }) => { - const [curr, setCurr] = useState(0); +const Carousel = ({ + children: slides, + autoSlide = false, + autoSlideInterval = 3000, +}) => { + const [curr, setCurr] = useState(0); - const prev = () => setCurr((curr) => (curr === 0 ? slides.length - 1 : curr - 1)); + const prev = () => + setCurr((curr) => (curr === 0 ? slides.length - 1 : curr - 1)); - const next = () => setCurr((curr) => (curr === slides.length - 1 ? 0 : curr + 1)); + const next = () => + setCurr((curr) => (curr === slides.length - 1 ? 0 : curr + 1)); - useEffect(() => { - if (!autoSlide) return; - const slideInterval = setInterval(next, autoSlideInterval); - return () => clearInterval(slideInterval); - }, []); + useEffect(() => { + if (!autoSlide) return; + const slideInterval = setInterval(next, autoSlideInterval); + return () => clearInterval(slideInterval); + }, []); - return ( -

-
- {slides.map((slide, index) => ( -
- {slide} -
- ))} -
-
- - -
-
-
- {slides.map((_, i) => ( -
- ))} -
+ return ( +
+
+
+
+ {slides.map((slide, index) => ( +
+ {slide} +
+ ))} +
+
+ + +
+
+
+ {slides.map((_, i) => ( +
+ ))}
+
+
+
+
+
+

Planning an event?

+

Get it with EventEZ

+
- ); -} +
+
+ ); +}; export default Carousel; diff --git a/src/Components/Event.js b/src/Components/Event.js index b0119df..a3c0e84 100644 --- a/src/Components/Event.js +++ b/src/Components/Event.js @@ -18,11 +18,13 @@ const Event = ({ props }) => { console.log(props); return ( -
+
{props.map((event) => (
diff --git a/src/Components/EventCoverCard.js b/src/Components/EventCoverCard.js index f118815..541a6eb 100644 --- a/src/Components/EventCoverCard.js +++ b/src/Components/EventCoverCard.js @@ -16,7 +16,7 @@ const EventCoverCard = ({ events, eventId }) => {
-

+

{events[eventId - 1].name}

diff --git a/src/Components/EventPlannerAi.js b/src/Components/EventPlannerAi.js index 15918da..2161b3b 100644 --- a/src/Components/EventPlannerAi.js +++ b/src/Components/EventPlannerAi.js @@ -3,7 +3,6 @@ import axios from "axios"; import EventCoverCard from "./EventCoverCard"; import LocationOnIcon from "@mui/icons-material/LocationOn"; import LinkIcon from "@mui/icons-material/Link"; -import GoogleMapsCard from "./GoogleMapsCard"; import ReactMarkdown from "react-markdown"; import React, { useState, useCallback, useEffect } from "react"; import { @@ -88,7 +87,7 @@ const EventPlannerAi = ({ props }) => { }, [handleGetLocation]); useEffect(() => { - if (userLocation && eventLocation) { + if (userLocation && eventLocation && window.google && window.google.maps) { // Calculate distance between two points using Haversine formula const R = 6371; // Radius of the Earth in kilometers const lat1 = userLocation.lat; @@ -295,13 +294,31 @@ const EventPlannerAi = ({ props }) => {
+ {generatedAnswer && ( +
+
+

Enjoy

+

Your

+

Event

+

🎉

+

best wishes✨

+
+
+ )}
+ {!loading && !generatedAnswer && ( + <> +

Your personalized plan will appear here

+ + + + )} {loading &&

Loading...

} {error && (

{error}

diff --git a/src/Components/Footer.js b/src/Components/Footer.js index 528068c..2d0efcc 100644 --- a/src/Components/Footer.js +++ b/src/Components/Footer.js @@ -8,7 +8,7 @@ import { FaFacebookF } from "react-icons/fa"; const Footer = () => { return ( <> -