diff --git a/components/landingComponents/About.jsx b/components/landingComponents/About.jsx new file mode 100644 index 0000000..45d00cd --- /dev/null +++ b/components/landingComponents/About.jsx @@ -0,0 +1,78 @@ +import React from "react"; +import { Tilt } from "react-tilt"; +import { motion } from "framer-motion"; + +import { fadeIn, textVariant } from "src/utils/motion"; +import { services } from "src/constans"; +import { styles } from "src/style"; +import { SectionWrapper } from "src/hoc"; +import Image from "next/image"; + +const ServiceCard = ({ index, title, icon }) => ( + + +
+ {/* web-development */} + +

+ {title} +

+
+
+
+); + +const About = () => { + return ( + <> + +

+ Introduction. +

+
+ + + At 'Briz', our ethos is simple: empower coffee shop owners to manage + better, control operations smoothly, and serve each cup with a smile. + Our platform is designed to handle the heavy lifting of day-to-day + tasks, from inventory management to staff scheduling, so you can focus + on what matters most - your patrons and your passion for coffee. + + +
+ {services.map((service, index) => ( + + ))} +
+ + ); +}; + +export default SectionWrapper(About, "about"); diff --git a/components/landingComponents/AboutUsHero/page.jsx b/components/landingComponents/AboutUsHero/page.jsx new file mode 100644 index 0000000..12dfc32 --- /dev/null +++ b/components/landingComponents/AboutUsHero/page.jsx @@ -0,0 +1,19 @@ +import React from "react"; + +const AboutUsHero = () => { + return ( + <> +
+
+

+ Welcome to Briz +

+
+
+ + ); +}; + +export default AboutUsHero; diff --git a/components/landingComponents/Contact.jsx b/components/landingComponents/Contact.jsx new file mode 100644 index 0000000..7722ac0 --- /dev/null +++ b/components/landingComponents/Contact.jsx @@ -0,0 +1,137 @@ +"use client"; +import React, { useRef, useState } from "react"; +import { motion } from "framer-motion"; +import emailjs from "@emailjs/browser"; + +import { SectionWrapper } from "src/hoc"; +import { slideIn } from "src/utils/motion"; +import { styles } from "src/style"; +// import { EarthCanvas } from "./canvas"; + +const Contact = () => { + const formRef = useRef(); + const [form, setForm] = useState({ + name: "", + email: "", + message: "", + }); + + const [loading, setLoading] = useState(false); + + const handleChange = (e) => { + const { target } = e; + const { name, value } = target; + + setForm({ + ...form, + [name]: value, + }); + }; + + const handleSubmit = (e) => { + e.preventDefault(); + setLoading(true); + + emailjs + .send( + import.meta.env.VITE_APP_EMAILJS_SERVICE_ID, + import.meta.env.VITE_APP_EMAILJS_TEMPLATE_ID, + { + from_name: form.name, + to_name: "JavaScript Mastery", + from_email: form.email, + to_email: "sujata@jsmastery.pro", + message: form.message, + }, + import.meta.env.VITE_APP_EMAILJS_PUBLIC_KEY + ) + .then( + () => { + setLoading(false); + alert("Thank you. I will get back to you as soon as possible."); + + setForm({ + name: "", + email: "", + message: "", + }); + }, + (error) => { + setLoading(false); + console.error(error); + + alert("Ahh, something went wrong. Please try again."); + } + ); + }; + + return ( +
+ +

Get in touch

+

Contact.

+ +
+ + +