diff --git a/src/components/Banner/HeroSection.js b/src/components/Banner/HeroSection.js index 147b731..a7e3a6f 100644 --- a/src/components/Banner/HeroSection.js +++ b/src/components/Banner/HeroSection.js @@ -1,4 +1,5 @@ import CommonLayout from "../Layouts/CommonLayout" +import Searchbox from "../Searchbox/Searchbox" const HeroSection = () => { return ( @@ -16,7 +17,9 @@ const HeroSection = () => {

Find Your Soulmate
and Say

'I Do' with Our Trusted Matrimony Website

-
+
+ +
diff --git a/src/components/Searchbox/Searchbox.js b/src/components/Searchbox/Searchbox.js new file mode 100644 index 0000000..832dd37 --- /dev/null +++ b/src/components/Searchbox/Searchbox.js @@ -0,0 +1,141 @@ +import React, { useState } from 'react' + +const Searchbox = () => { + + const motherTongueOptions = [ + 'English', + 'Spanish', + 'French', + 'German', + 'Hindi', + 'Arabic', + 'Chinese', + 'Japanese', + 'Other', // Add more mother tongue options as needed + ]; + + const religionOptions = [ + 'Hindu', + 'Christian', + 'Sikh', + 'Other', // Add more religion options as needed + ]; + + const [selectedMT, setselectedMT] = useState(''); + const [selectedGender, setselectedGender] = useState(''); + const [fromValue, setFromValue] = useState(18); + const [toValue, setToValue] = useState(40); + const [selectedReligion, setselectedReligion] = useState(''); + + const handleFromInputChange = (e) => { + const inputValue = e.target.value; + !isNaN(inputValue) && setFromValue(parseFloat(inputValue)); + }; + + + const handleToInputChange = (e) => { + const inputValue = e.target.value; + !isNaN(inputValue) && setToValue(parseFloat(inputValue)); + }; + + + const handleGenderChange = ({ e }) => setselectedGender(e.value); + const handleReligionChange = ({ target }) => setselectedReligion(target.value); + const handleMTChange = ({ target }) => setselectedMT(target.value); + + const onSearchClick = () => { + // Search actions + } + + return ( + <> +
+
+ +
+ + +
+
+
+ + + + +
+
+ + +
+
+ + +
+
+ +
+
+ + ) +} + +export default Searchbox \ No newline at end of file diff --git a/src/styles/tailwind.common.css b/src/styles/tailwind.common.css index 59b1985..fccabc9 100644 --- a/src/styles/tailwind.common.css +++ b/src/styles/tailwind.common.css @@ -1,3 +1,11 @@ -.btn-grade{ +.btn-grade { @apply bg-gradient-to-b from-primary to-btngrad px-5 py-1 rounded-md text-white; +} + +.custom-hover-bg { + transition: background-color 0.2s; +} + +.custom-hover-bg:hover { + background-color: #86D7DC; } \ No newline at end of file