Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
final touch
Browse files Browse the repository at this point in the history
  • Loading branch information
soniyaprasad77 committed May 20, 2024
1 parent d83bad3 commit 01f774c
Show file tree
Hide file tree
Showing 16 changed files with 147 additions and 68 deletions.
Binary file removed public/woodybackground.jpg
Binary file not shown.
8 changes: 4 additions & 4 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ body {

body {
background-color: #FFFFFF;
background-image: url("./Assets/backgroundImage.webp");

}

nav {
Expand Down Expand Up @@ -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;
Expand All @@ -135,7 +135,7 @@ nav {
}

.secondary-button:hover {
background-color: #e48f0f;
background-color: #05d2be85;
}

.about-section-container {
Expand Down
Binary file added src/Assets/TeamMemberPhotos/priyansu.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/Assets/TeamMemberPhotos/priyansu.png
Binary file not shown.
Binary file modified src/Assets/aboutvid.mp4
Binary file not shown.
4 changes: 2 additions & 2 deletions src/Components/About.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const About = () => {
/>
</div>
<div className="about-section-text-container">
<p className="primary-subheading">About</p>
<h1 className="primary-heading">EventPlanner</h1>
<p className="primary-heading">About</p>
<h1 className="primary-heading text-2xl">EventEZ</h1>
<p className="primary-text">
To enhance the Tri-Valley's official website and boost local business
tourism, our mission is to address existing technology limitations by
Expand Down
104 changes: 69 additions & 35 deletions src/Components/Corousel.js
Original file line number Diff line number Diff line change
@@ -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 (
<div className='overflow-hidden relative h-screen w-full'>
<div className='flex transition-transform ease-out duration-500' style={{ transform: `translateX(-${curr * 100}%)`, width: `${slides.length * 100}%` }}>
{slides.map((slide, index) => (
<div key={index} className="w-full flex-shrink-0">
{slide}
</div>
))}
</div>
<div className="absolute inset-0 flex items-center justify-between p-4 sm:p-6 md:p-8 lg:p-10 xl:p-12">
<button onClick={prev} className='p-1 rounded-full shadow bg-white/80 text-gray-800 hover:bg-white'>
<ChevronLeft />
</button>
<button onClick={next} className='p-1 rounded-full shadow bg-white/80 text-gray-800 hover:bg-white'>
<ChevronRight />
</button>
</div>
<div className='absolute bottom-4 right-0 left-0'>
<div className='flex items-center justify-center gap-2'>
{slides.map((_, i) => (
<div key={i} className={`transition-all w-1.5 h-1.5 bg-white rounded-full ${curr === i ? "p-0.5" : "bg-opacity-50"}`} />
))}
</div>
return (
<div>
<div>
<div className="overflow-hidden relative h-screen w-full">
<div
className="flex transition-transform ease-out duration-500"
style={{
transform: `translateX(-${curr * 100}%)`,
width: `${slides.length * 100}%`,
}}
>
{slides.map((slide, index) => (
<div key={index} className="w-full flex-shrink-0">
{slide}
</div>
))}
</div>
<div className="absolute inset-0 flex items-center justify-between p-4 sm:p-6 md:p-8 lg:p-10 xl:p-12">
<button
onClick={prev}
className="p-1 rounded-full shadow bg-white/80 text-gray-800 hover:bg-white"
>
<ChevronLeft />
</button>
<button
onClick={next}
className="p-1 rounded-full shadow bg-white/80 text-gray-800 hover:bg-white"
>
<ChevronRight />
</button>
</div>
<div className="absolute bottom-4 right-0 left-0">
<div className="flex items-center justify-center gap-2">
{slides.map((_, i) => (
<div
key={i}
className={`transition-all w-1.5 h-1.5 bg-white rounded-full ${
curr === i ? "p-0.5" : "bg-opacity-50"
}`}
/>
))}
</div>
</div>
</div>
</div>
<div className="w-full border border-gray-200 py-8 z-50">
<div className="flex justify-center gap-8">
<h1 className="text-2xl">Planning an event?</h1>
<h3 className="text-2xl">Get it with EventEZ</h3>

</div>
);
}
</div>
</div>
);
};

export default Carousel;
6 changes: 4 additions & 2 deletions src/Components/Event.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ const Event = ({ props }) => {
console.log(props);

return (
<div className={`grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6 sm:mx-16 my-6`}>
<div
className={`grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6 sm:mx-16 my-6`}
>
{props.map((event) => (
<div
key={event.id}
className="max-w-sm border border-gray-200 rounded-lg shadow relative transition duration-300 ease-in-out transform hover:scale-105 hover:bg-[#F6E2C0] hover:cursor-pointer"
className="max-w-sm border border-gray-200 rounded-lg shadow relative transition duration-300 ease-in-out transform hover:scale-105 hover:bg-[#23f2dd85] hover:cursor-pointer"
>
<Link to={"/events/" + event.id}>
<div>
Expand Down
2 changes: 1 addition & 1 deletion src/Components/EventCoverCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const EventCoverCard = ({ events, eventId }) => {
<div className="flex justify-center relative z-10 bg-white sm:mx-16 sm:mt-3 sm:mb-6 rounded-xl">
<div className="hidden md:block w-1/2 bg-white my-4 ml-4 rounded-l-xl">
<div className="h-1/2">
<h1 className=" text-2xl font-extrabold">
<h1 className=" text-3xl font-extrabold pt-4">
{events[eventId - 1].name}
</h1>
</div>
Expand Down
23 changes: 20 additions & 3 deletions src/Components/EventPlannerAi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -295,13 +294,31 @@ const EventPlannerAi = ({ props }) => {
</div>
<button
type="submit"
className="secondary-button h-10 mx-auto sm:mx-0 bg-slate-300 text-black hover:bg-gray-500"
className="secondary-button h-10 mx-auto sm:mx-0"
>
Generate Plan
</button>
{generatedAnswer && (
<div className=" flex justify-center">
<div className="text-container text-center ">
<h2 className="animated-text ">Enjoy </h2>
<h2 className="animated-text">Your</h2>
<h2 className="animated-text">Event</h2>
<h2 className="animated-text">🎉</h2>
<h2 className="animated-text"> best wishes✨</h2>
</div>
</div>
)}
</form>
</div>
<div className="border border-gray-300 w-full shadow-md rounded-lg">
{!loading && !generatedAnswer && (
<>
<h2 className=" text-2xl flex justify-center items-center">Your personalized plan will appear here</h2>


</>
)}
{loading && <p className="text-center mt-4 ">Loading...</p>}
{error && (
<p className="text-red-500 text-center mt-4">{error}</p>
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { FaFacebookF } from "react-icons/fa";
const Footer = () => {
return (
<>
<footer className=" mt-auto w-full border border-gray-200 bg-[#F6E2C0] z-50 flex justify-between items-center px-10 py-2 ">
<footer className=" mt-auto w-full border border-gray-200 bg-[#23f2dd85] z-50 flex justify-between items-center px-10 py-2 ">
<div className="container m-3 mx-auto py-4 px-6 flex justify-between items-center">
<div>
<p className="text-sm">
Expand Down
12 changes: 6 additions & 6 deletions src/Components/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ import gif2 from "../Assets/SliderImages/gif2.gif";
import vid from "../Assets/smiling.mp4";
import OurTeam from "./OurTeam";
const slides = [
<img key="gif1" className="h-screen w-screen" src={gif1} alt="Slide 1" />,
<img key="gif2" className="h-screen w-screen" src={gif2} alt="Slide 2" />,
<img key="img1" className="h-screen w-screen" src={img1} alt="Slide 3" />,
<img key="gif1" className="h-screen w-screen" src={gif1} alt="Slide 1" />,
<img key="img2" className="h-screen w-screen" src={img2} alt="Slide 4" />,
];
import backgroundImg from "../Assets/backgroundImage.webp";

const Home = () => {
return (
<>
<div
style={{backgroundImage: `url(${backgroundImg})`,}}

className=" home-container ">
<div
style={{ backgroundImage: `url(${backgroundImg})` }}
className=" home-container "
>
<div className="flex absolute h-screen bg-black">
<Carousel autoSlide autoSlideInterval={5000}>
{slides}
</Carousel>
<div className="absolute z-100 sm:text-6xl justify-center mt-80 ml-8 text-white font-pacifico">
<div className="absolute z-100 sm:text-6xl justify-center mt-80 ml-8 text-white">
Plan Smarter, Celebrate Bigger with EventEZ
</div>
</div>
Expand Down
15 changes: 7 additions & 8 deletions src/Components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import PhoneRoundedIcon from "@mui/icons-material/PhoneRounded";
import ShoppingCartRoundedIcon from "@mui/icons-material/ShoppingCartRounded";
import LuggageIcon from "@mui/icons-material/Luggage";
import { Link } from "react-router-dom";
import logo from "../Assets/tryvalleylogo.png"
import logo from "../Assets/tryvalleylogo.png";

const Navbar = () => {
const [openMenu, setOpenMenu] = useState(false);
Expand All @@ -34,31 +34,30 @@ const Navbar = () => {
text: "Testimonials",
icon: <CommentRoundedIcon />,
},

{
text: "Contact",
icon: <PhoneRoundedIcon />,
},
];
return (
<nav className="w-full border border-gray-200 py-4 z-50">
<nav className="w-full border bg-[#23f2dd85] border-gray-200 py-4 z-50">
<div className="nav-logo-container w-16 mx-8 text-8xl">
<img src={logo} alt="" />
</div>
<div className="navbar-links-container">
<ul className="flex flex-wrap items-center ">
<li>
<Link
to="/" >Home</Link>
<Link to="/">Home</Link>
</li>
<li>
<a href="#about">About</a>
<a href="#about">About</a>
</li>

<li>
<a href="#our-team">Our Team</a>
<a href="#our-team">Team</a>
</li>

<li>
<Link to="/events">
<button className="primary-button">Go to Events</button>
Expand Down
7 changes: 4 additions & 3 deletions src/Components/OurTeam.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React from "react";
import TeamMember from "./TeamMember";
import deepesh from "../Assets/TeamMemberPhotos/deepesh.jpg";
import priyansu from "../Assets/TeamMemberPhotos/priyansu.png";
import priyansu from "../Assets/TeamMemberPhotos/priyansu.jpg";
import soniya from "../Assets/TeamMemberPhotos/Soniya.png";

const OurTeam = () => {
return (
<div>
<section className="" id="our-team">
<div className="flex justify-between py-8 px-4 mx-auto max-w-screen-xl text-center lg:py-16 lg:px-6"></div>
<div className="flex justify-between py-8 pl-4 mx-auto max-w-screen-xl text-center lg:py-16 lg:px-6"></div>
<div className="mx-auto mb-12 max-w-screen-sm lg:mb-16">
<h2 className="primary-heading ">Our team</h2>
<p className="primary-text ">Meet Our Team Members</p>
Expand All @@ -21,9 +21,10 @@ const OurTeam = () => {
image={deepesh}
/>
<TeamMember
Name="Priyansu Kumar"
Name="Priyansu Mohanty"
Role="Frontend Developer"
Github="https://github.com/Priyansu-17"
Linkedin="https://www.linkedin.com/in/priyansu-mohanty-105551237/"
image={priyansu}
/>
<TeamMember
Expand Down
4 changes: 2 additions & 2 deletions src/Components/TeamMember.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ const TeamMember = ({ Name, Role, Linkedin, Github, image }) => {
<img
class="mx-auto mb-4 w-36 h-36 rounded-full"
src={image}
alt="Bonnie Avatar"
alt="User Avatar"
/>
<h3 class="mb-1 text-2xl font-bold tracking-tight text-gray-900 ">
<a href="#">{Name}</a>
</h3>
<p>{Role}</p>
<ul class="flex justify-center mt-4 space-x-4">
<ul class="flex justify-center mt-4 space-x-1">
<li>
<a
target="_blank"
Expand Down
Loading

0 comments on commit 01f774c

Please sign in to comment.