diff --git a/README.md b/README.md index 29a979a..cf9eba0 100644 --- a/README.md +++ b/README.md @@ -1 +1,34 @@ -project hack1 for buildindelhi hackathon \ No newline at end of file +# Project Title + +## Description + +This is a sample project that demonstrates the usage of Markdown in creating a README file. + +## Installation + +To install this project, simply clone the repository and navigate to the project directory. + +```bash +git clone https://github.com/username/project.git +cd project +``` + +## Usage + +To use this project, follow these steps: + +1. Step 1: Open the project in your preferred code editor. +2. Step 2: Modify the necessary files according to your requirements. +3. Step 3: Run the project using the provided command or script. + +```bash +npm start +``` + +## Contributing + +Contributions are welcome! Please fork the repository and create a pull request with your proposed changes. + +## License + +This project is licensed under the [MIT License](LICENSE). diff --git a/package-lock.json b/package-lock.json index adc79cc..ee241ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.5", + "@material-tailwind/react": "^2.1.9", "@mui/icons-material": "^5.15.20", "@mui/material": "^5.15.20", "react": "^18.3.1", @@ -988,6 +989,20 @@ "@floating-ui/utils": "^0.2.0" } }, + "node_modules/@floating-ui/react": { + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/@floating-ui/react/-/react-0.19.0.tgz", + "integrity": "sha512-fgYvN4ksCi5OvmPXkyOT8o5a8PSKHMzPHt+9mR6KYWdF16IAjWRLZPAAziI2sznaWT23drRFrYw64wdvYqqaQw==", + "dependencies": { + "@floating-ui/react-dom": "^1.2.2", + "aria-hidden": "^1.1.3", + "tabbable": "^6.0.1" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, "node_modules/@floating-ui/react-dom": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.0.tgz", @@ -1000,6 +1015,18 @@ "react-dom": ">=16.8.0" } }, + "node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-1.3.0.tgz", + "integrity": "sha512-htwHm67Ji5E/pROEAr7f8IKFShuiCKHwUC/UY4vC3I5jiSvGFAYnSYiZO5MlGmads+QqvUkR9ANHEguGrDv72g==", + "dependencies": { + "@floating-ui/dom": "^1.2.1" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, "node_modules/@floating-ui/utils": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.2.tgz", @@ -1127,6 +1154,107 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@material-tailwind/react": { + "version": "2.1.9", + "resolved": "https://registry.npmjs.org/@material-tailwind/react/-/react-2.1.9.tgz", + "integrity": "sha512-3uPlJE9yK4JF9DEQO4I1QbjR8o05+4fysLqoZ0v38TDOLE2tvDRhTBVhn6Mp9vSsq5CoJOKgemG7kbkOFAji4A==", + "dependencies": { + "@floating-ui/react": "0.19.0", + "classnames": "2.3.2", + "deepmerge": "4.2.2", + "framer-motion": "6.5.1", + "material-ripple-effects": "2.0.1", + "prop-types": "15.8.1", + "react": "18.2.0", + "react-dom": "18.2.0", + "tailwind-merge": "1.8.1" + }, + "peerDependencies": { + "react": "^16 || ^17 || ^18", + "react-dom": "^16 || ^17 || ^18" + } + }, + "node_modules/@material-tailwind/react/node_modules/react": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", + "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@material-tailwind/react/node_modules/react-dom": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", + "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.0" + }, + "peerDependencies": { + "react": "^18.2.0" + } + }, + "node_modules/@motionone/animation": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/@motionone/animation/-/animation-10.18.0.tgz", + "integrity": "sha512-9z2p5GFGCm0gBsZbi8rVMOAJCtw1WqBTIPw3ozk06gDvZInBPIsQcHgYogEJ4yuHJ+akuW8g1SEIOpTOvYs8hw==", + "dependencies": { + "@motionone/easing": "^10.18.0", + "@motionone/types": "^10.17.1", + "@motionone/utils": "^10.18.0", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/dom": { + "version": "10.12.0", + "resolved": "https://registry.npmjs.org/@motionone/dom/-/dom-10.12.0.tgz", + "integrity": "sha512-UdPTtLMAktHiqV0atOczNYyDd/d8Cf5fFsd1tua03PqTwwCe/6lwhLSQ8a7TbnQ5SN0gm44N1slBfj+ORIhrqw==", + "dependencies": { + "@motionone/animation": "^10.12.0", + "@motionone/generators": "^10.12.0", + "@motionone/types": "^10.12.0", + "@motionone/utils": "^10.12.0", + "hey-listen": "^1.0.8", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/easing": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/@motionone/easing/-/easing-10.18.0.tgz", + "integrity": "sha512-VcjByo7XpdLS4o9T8t99JtgxkdMcNWD3yHU/n6CLEz3bkmKDRZyYQ/wmSf6daum8ZXqfUAgFeCZSpJZIMxaCzg==", + "dependencies": { + "@motionone/utils": "^10.18.0", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/generators": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/@motionone/generators/-/generators-10.18.0.tgz", + "integrity": "sha512-+qfkC2DtkDj4tHPu+AFKVfR/C30O1vYdvsGYaR13W/1cczPrrcjdvYCj0VLFuRMN+lP1xvpNZHCRNM4fBzn1jg==", + "dependencies": { + "@motionone/types": "^10.17.1", + "@motionone/utils": "^10.18.0", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/types": { + "version": "10.17.1", + "resolved": "https://registry.npmjs.org/@motionone/types/-/types-10.17.1.tgz", + "integrity": "sha512-KaC4kgiODDz8hswCrS0btrVrzyU2CSQKO7Ps90ibBVSQmjkrt2teqta6/sOG59v7+dPnKMAg13jyqtMKV2yJ7A==" + }, + "node_modules/@motionone/utils": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/@motionone/utils/-/utils-10.18.0.tgz", + "integrity": "sha512-3XVF7sgyTSI2KWvTf6uLlBJ5iAgRgmvp3bpuOiQJvInd4nZ19ET8lX5unn30SlmRH7hXbBbH+Gxd0m0klJ3Xtw==", + "dependencies": { + "@motionone/types": "^10.17.1", + "hey-listen": "^1.0.8", + "tslib": "^2.3.1" + } + }, "node_modules/@mui/base": { "version": "5.0.0-beta.40", "resolved": "https://registry.npmjs.org/@mui/base/-/base-5.0.0-beta.40.tgz", @@ -1840,6 +1968,17 @@ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true }, + "node_modules/aria-hidden": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.4.tgz", + "integrity": "sha512-y+CcFFwelSXpLZk/7fMB2mUbGtX9lKycf1MWJ7CaTIERyitVlyQx6C+sxcROU2BAJ24OiZyK+8wj2i8AlBoS3A==", + "dependencies": { + "tslib": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/array-buffer-byte-length": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz", @@ -2241,6 +2380,11 @@ "node": ">= 6" } }, + "node_modules/classnames": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz", + "integrity": "sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==" + }, "node_modules/clsx": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", @@ -2410,6 +2554,14 @@ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "dev": true }, + "node_modules/deepmerge": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", + "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/define-data-property": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", @@ -3178,6 +3330,49 @@ "url": "https://github.com/sponsors/rawify" } }, + "node_modules/framer-motion": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-6.5.1.tgz", + "integrity": "sha512-o1BGqqposwi7cgDrtg0dNONhkmPsUFDaLcKXigzuTFC5x58mE8iyTazxSudFzmT6MEyJKfjjU8ItoMe3W+3fiw==", + "dependencies": { + "@motionone/dom": "10.12.0", + "framesync": "6.0.1", + "hey-listen": "^1.0.8", + "popmotion": "11.0.3", + "style-value-types": "5.0.0", + "tslib": "^2.1.0" + }, + "optionalDependencies": { + "@emotion/is-prop-valid": "^0.8.2" + }, + "peerDependencies": { + "react": ">=16.8 || ^17.0.0 || ^18.0.0", + "react-dom": ">=16.8 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/framer-motion/node_modules/@emotion/is-prop-valid": { + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz", + "integrity": "sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==", + "optional": true, + "dependencies": { + "@emotion/memoize": "0.7.4" + } + }, + "node_modules/framer-motion/node_modules/@emotion/memoize": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz", + "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==", + "optional": true + }, + "node_modules/framesync": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/framesync/-/framesync-6.0.1.tgz", + "integrity": "sha512-fUY88kXvGiIItgNC7wcTOl0SNRCVXMKSWW2Yzfmn7EKNc+MpCzcz9DhdHcdjbrtN3c6R4H5dTY2jiCpPdysEjA==", + "dependencies": { + "tslib": "^2.1.0" + } + }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -3432,6 +3627,11 @@ "node": ">= 0.4" } }, + "node_modules/hey-listen": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/hey-listen/-/hey-listen-1.0.8.tgz", + "integrity": "sha512-COpmrF2NOg4TBWUJ5UVyaCU2A88wEMkUPK4hNqyCkqHbxT92BbvfjoSozkAIIm6XhicGlJHhFdullInrdhwU8Q==" + }, "node_modules/hoist-non-react-statics": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", @@ -4085,6 +4285,11 @@ "yallist": "^3.0.2" } }, + "node_modules/material-ripple-effects": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/material-ripple-effects/-/material-ripple-effects-2.0.1.tgz", + "integrity": "sha512-hHlUkZAuXbP94lu02VgrPidbZ3hBtgXBtjlwR8APNqOIgDZMV8MCIcsclL8FmGJQHvnORyvoQgC965vPsiyXLQ==" + }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", @@ -4504,6 +4709,17 @@ "node": ">= 6" } }, + "node_modules/popmotion": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/popmotion/-/popmotion-11.0.3.tgz", + "integrity": "sha512-Y55FLdj3UxkR7Vl3s7Qr4e9m0onSnP8W7d/xQLsoJM40vs6UKHFdygs6SWryasTZYqugMjm3BepCF4CWXDiHgA==", + "dependencies": { + "framesync": "6.0.1", + "hey-listen": "^1.0.8", + "style-value-types": "5.0.0", + "tslib": "^2.1.0" + } + }, "node_modules/possible-typed-array-names": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", @@ -5282,6 +5498,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/style-value-types": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/style-value-types/-/style-value-types-5.0.0.tgz", + "integrity": "sha512-08yq36Ikn4kx4YU6RD7jWEv27v4V+PUsOGa4n/as8Et3CuODMJQ00ENeAVXAeydX4Z2j1XHZF1K2sX4mGl18fA==", + "dependencies": { + "hey-listen": "^1.0.8", + "tslib": "^2.1.0" + } + }, "node_modules/stylis": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.2.0.tgz", @@ -5378,6 +5603,16 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/tabbable": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.2.0.tgz", + "integrity": "sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==" + }, + "node_modules/tailwind-merge": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-1.8.1.tgz", + "integrity": "sha512-+fflfPxvHFr81hTJpQ3MIwtqgvefHZFUHFiIHpVIRXvG/nX9+gu2P7JNlFu2bfDMJ+uHhi/pUgzaYacMoXv+Ww==" + }, "node_modules/tailwindcss": { "version": "3.4.4", "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.4.tgz", @@ -5485,6 +5720,11 @@ "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", "dev": true }, + "node_modules/tslib": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", + "integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==" + }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", diff --git a/package.json b/package.json index ba813ea..90b90e6 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "dependencies": { "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.5", + "@material-tailwind/react": "^2.1.9", "@mui/icons-material": "^5.15.20", "@mui/material": "^5.15.20", "react": "^18.3.1", diff --git a/public/cta.png b/public/cta.png new file mode 100644 index 0000000..ec169fc Binary files /dev/null and b/public/cta.png differ diff --git a/public/perso.svg b/public/perso.svg new file mode 100644 index 0000000..2fcd87e --- /dev/null +++ b/public/perso.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/public/persoj.jpg b/public/persoj.jpg new file mode 100644 index 0000000..9b88562 Binary files /dev/null and b/public/persoj.jpg differ diff --git a/src/App.jsx b/src/App.jsx index 6c34533..ff6a261 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,18 +1,35 @@ import { useState } from 'react' -import TopOrg from './components/TopOrganization' + import Header from './components/Header' -import Hero from './components/Hero' +import Hero from './components/Home/Hero' +import Categories from './components/Home/Categories' +import Popular from './components/Home/Popular' +import Banner from './components/Home/Banner' +import TopOrg from './components/Home/TopOrganization' +import Ctabanner from './components/Home/Ctabanner' +import Newsletter from './components/Home/Newsletter' +import Organization from './components/Organization/Organization' +import UserPage from './components/UserPage/UserPage' function App() { - const [count, setCount] = useState(0) + return ( - <> -
- - - + + + // + // //
+ // //
+ // // + // // + // // + // // + // // + // // + // // + // //
+ ) } diff --git a/src/components/Button.jsx b/src/components/Button.jsx index 37a990c..fc21f2d 100644 --- a/src/components/Button.jsx +++ b/src/components/Button.jsx @@ -1,10 +1,11 @@ import React from 'react' -export default function Button({prop}) { +const Button = ({ className, text, onClick }) => { return ( -
- -
- ) -} + + ); +}; +export default Button; \ No newline at end of file diff --git a/src/components/Header.jsx b/src/components/Header.jsx index 31cd531..d7782c9 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -1,17 +1,27 @@ import React from 'react' -import Searchbar from './Searchbar' -import Navigationbar from './Navigationbar' -import logo from '../assets/Logo.png' +import Navigationbar from './Navigationbar' +import BasicMenu from './Home/Dropdown' +import Button from './Button' export default function Header() { return ( -
-
- +
+
+

TEAM NAME

- + +
+
+
+ +
+ + +
) } diff --git a/src/components/Home/Banner.jsx b/src/components/Home/Banner.jsx new file mode 100644 index 0000000..6494647 --- /dev/null +++ b/src/components/Home/Banner.jsx @@ -0,0 +1,19 @@ +import React from 'react' +import persoj from '../../../public/persoj.jpg' +import ArrowForwardIcon from '@mui/icons-material/ArrowForward'; +export default function Banner() { + return ( +
+ + +
+

Volunteering Events specially curated for you!

+ +
+ +
+ ) +} diff --git a/src/components/Carousel.jsx b/src/components/Home/Carousel.jsx similarity index 99% rename from src/components/Carousel.jsx rename to src/components/Home/Carousel.jsx index 84e3410..a89b70f 100644 --- a/src/components/Carousel.jsx +++ b/src/components/Home/Carousel.jsx @@ -1,4 +1,4 @@ -// Carousel.js + import React, { useState, useEffect } from 'react'; const images = [ diff --git a/src/components/Home/Categories.jsx b/src/components/Home/Categories.jsx new file mode 100644 index 0000000..ded2239 --- /dev/null +++ b/src/components/Home/Categories.jsx @@ -0,0 +1,16 @@ +import React from 'react' +import { Category } from '../../constants/Categories' +export default function Categories() { + return ( +
+

Explore Categories

+
+ + {Category.map((e,index)=>
+ +

{e.title}

+
)} +
+
+ ) +} diff --git a/src/components/Home/Ctabanner.jsx b/src/components/Home/Ctabanner.jsx new file mode 100644 index 0000000..e0e973a --- /dev/null +++ b/src/components/Home/Ctabanner.jsx @@ -0,0 +1,19 @@ +import React from 'react' +import cta from '../../../public/cta.png' +import CalendarMonthIcon from '@mui/icons-material/CalendarMonth'; +export default function Ctabanner() { + return ( +
+ + +
+

Organize Events hassle free with Neighbourly!!!

+ +
+ +
+ ) +} diff --git a/src/components/Dropdown.jsx b/src/components/Home/Dropdown.jsx similarity index 100% rename from src/components/Dropdown.jsx rename to src/components/Home/Dropdown.jsx diff --git a/src/components/Hero.jsx b/src/components/Home/Hero.jsx similarity index 55% rename from src/components/Hero.jsx rename to src/components/Home/Hero.jsx index 8e7969f..30db271 100644 --- a/src/components/Hero.jsx +++ b/src/components/Home/Hero.jsx @@ -1,10 +1,11 @@ import React from 'react' import Carousel from './Carousel' +import Heroimage from './Heroimage' export default function Hero() { return ( -
- +
+
) } diff --git a/src/components/Home/Heroimage.jsx b/src/components/Home/Heroimage.jsx new file mode 100644 index 0000000..bbd9056 --- /dev/null +++ b/src/components/Home/Heroimage.jsx @@ -0,0 +1,17 @@ +import React from 'react' + +export default function Heroimage() { + return ( +
+
+

Explore Nearby Volunteering opportunities. Locally and Globally.

+
+ +
+ + ) +} diff --git a/src/components/Home/Newsletter.jsx b/src/components/Home/Newsletter.jsx new file mode 100644 index 0000000..141b5c5 --- /dev/null +++ b/src/components/Home/Newsletter.jsx @@ -0,0 +1,18 @@ +import React from 'react' + +export default function Newsletter() { + return ( +
+
+

Subscribe to Our news letter

+

Receive our weekly newsletter and stay updated with latest events happening around you.

+
+
+
+ + +
+
+
+ ) +} diff --git a/src/components/Home/Popular.jsx b/src/components/Home/Popular.jsx new file mode 100644 index 0000000..9871f06 --- /dev/null +++ b/src/components/Home/Popular.jsx @@ -0,0 +1,51 @@ +import React from "react"; +import { PopularEvent } from "../../constants/Categories"; +export default function Popular() { + return ( +
+

+ Popular Volunteering Events +

+
+
+ {PopularEvent.map((e,index)=> +
+
+

+ {e.category} +

+ +
+ +
+
+

+ {e.month} +

+

+ {e.date} +

+
+
+

+ {e.title} +

+

+ {e.discription} +

+ +

+ {e.location} +

+
+
+
)} +
+
+
+ ); +} diff --git a/src/components/Home/TopOrganization.jsx b/src/components/Home/TopOrganization.jsx new file mode 100644 index 0000000..b0bb111 --- /dev/null +++ b/src/components/Home/TopOrganization.jsx @@ -0,0 +1,15 @@ +import React from 'react' +import { Organizations } from '../../constants/Categories' +export default function TopOrg() { + return ( +
+

Top Volunteering Organizations

+
+ {Organizations.map((e,index)=>
+ +

{e.name}

+
)} +
+
+ ) +} diff --git a/src/components/Navigationbar.jsx b/src/components/Navigationbar.jsx index 9d6fbdb..3a0176b 100644 --- a/src/components/Navigationbar.jsx +++ b/src/components/Navigationbar.jsx @@ -1,18 +1,16 @@ import React from 'react' -import BasicMenu from './Dropdown' +import BasicMenu from './Home/Dropdown' export default function Navigationbar() { return ( <> -
+
-
- -
+ ) } diff --git a/src/components/Organization/Card.jsx b/src/components/Organization/Card.jsx new file mode 100644 index 0000000..f1f81e7 --- /dev/null +++ b/src/components/Organization/Card.jsx @@ -0,0 +1,26 @@ +import React from 'react' +import Button from '../Button.jsx' + +function Card({imgURL,orgName,description ,URL}) { + return ( +
+
+
+
+

{orgName}

+

{description}

+
+
+
+
+

50+
Projects

+
+ +
+
+ ) +} + +export default Card diff --git a/src/components/Organization/Organization.jsx b/src/components/Organization/Organization.jsx new file mode 100644 index 0000000..336e71c --- /dev/null +++ b/src/components/Organization/Organization.jsx @@ -0,0 +1,65 @@ +import Button from '../Button.jsx' +import React, { useState ,useEffect} from 'react' +import Card from './Card.jsx' + + +function Organization () { + const data=[ + { + "_id": "667c53bdf01b57b48f6dcadf", + imgURL:'https://images.pexels.com/photos/2774556/pexels-photo-2774556.jpeg', + "user_id": "667c50e800e5a85ff9c386b6", + "name": "Green Health Organization", + "description": "THe organization works on clean city THe organization works on clean city THe organization works on clean city", + "contact_phone": "9013422132", + "contact_email": "jasjeev99@gmail.com", + "address": "Jamna parr Yamiunuaa", + "website": "www.jasjee.com" + }, + { + "_id": "667c54bef01b57b48f6dcae0", + imgURL:'https://images.pexels.com/photos/2774556/pexels-photo-2774556.jpeg', + "user_id": "667c50e800e5a85ff9c386b6", + "name": "Green Health Organization", + "description": "THe organization works on clean city THe organization works on clean city THe organization works on clean city", + "contact_phone": "9013422132", + "contact_email": "jasjeev99@gmail.com", + "address": "Jamna parr Yamiunuaa", + "website": "www.jasjee.com" + }, + { + "_id": "667c54c2f01b57b48f6dcae1", + 'imgURL':'https://images.pexels.com/photos/2774556/pexels-photo-2774556.jpeg', + "user_id": "667c50e800e5a85ff9c386b6", + "name": "Green Health Organization", + "description": "THe organization works on clean city THe organization works on clean city THe organization works on clean city", + "contact_phone": "9013422132", + "contact_email": "jasjeev99@gmail.com", + "address": "Jamna parr Yamiunuaa", + "website": "www.jasjee.com" + }, + ] + return ( + <> +
+
+

Organizations

+

Projects

+

Events

+
+
+ +
+
+ { + data.map((d)=>{ + return + }) + } + + + ) +} + +export default Organization diff --git a/src/components/Searchbar.jsx b/src/components/Searchbar.jsx deleted file mode 100644 index b8a95b8..0000000 --- a/src/components/Searchbar.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react' -import Button from './Button' -import SearchIcon from '@mui/icons-material/Search'; - -export default function Searchbar() { - return ( - <> -
-
-
- -
- - ) -} diff --git a/src/components/TopOrganization.jsx b/src/components/TopOrganization.jsx deleted file mode 100644 index 13f18ff..0000000 --- a/src/components/TopOrganization.jsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react' - -export default function TopOrg() { - return ( -
- -
- ) -} diff --git a/src/components/UserPage/EventAtt.jsx b/src/components/UserPage/EventAtt.jsx new file mode 100644 index 0000000..68a8733 --- /dev/null +++ b/src/components/UserPage/EventAtt.jsx @@ -0,0 +1,21 @@ +import React from 'react' + +function EventAtt({index ,ED,Org,location,date}) { + return ( + <> + + + + + + + + + +
{index+1}{ED}{Org}{location}{date}
+ + + ) +} + +export default EventAtt diff --git a/src/components/UserPage/UserPage.jsx b/src/components/UserPage/UserPage.jsx new file mode 100644 index 0000000..bce9291 --- /dev/null +++ b/src/components/UserPage/UserPage.jsx @@ -0,0 +1,82 @@ +import React from 'react' +import EventAtt from './EventAtt' +import EditIcon from '@mui/icons-material/Edit'; +import Button from '../Button'; + + +function UserPage() { + + const data = + { + name:'Avinash Verma', + about:'I am priest and love to care for animals.This community works on creating clean & Green environment across the whole world by planting trees,growing sapling & encouraging people.', + skills:'Gardning | Ploughing | Farming', + availability:'All Time', + userImgURl:'https://images.pexels.com/photos/842811/pexels-photo-842811.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1', + eventAttended:[ + { + Event_Details:'abcdjsnvkjhiwubbwuehfekjbc khefiuwehfiuhb kjbiuwehfiqeb adkchiuefhwiqefb kcbdaskjhwi khiuefhwbc', + organization:'smile Foundation', + location:'heeramandi,Dholakpur', + date:'10-2-2004' + + }, + { + Event_Details:'abcdjsnvkjhiwubbwuehfekjbc khefiuwehfiuhb kjbiuwehfiqeb adkchiuefhwiqefb kcbdaskjhwi khiuefhwbc', + organization:'smile Foundation', + location:'heeramandi,Dholakpur', + date:'10-2-2004' + + }, + { + Event_Details:'abcdjsnvkjhiwubbwuehfekjbc khefiuwehfiuhb kjbiuwehfiqeb adkchiuefhwiqefb kcbdaskjhwi khiuefhwbc', + organization:'smile Foundation', + location:'heeramandi,Dholakpur', + date:'10-2-2004' + + } + ] + + } + + return ( + <> +
+
+

{data.name}

+

About
{data.about}

+

Skills : {data.skills}

+

Availability : {data.availability}

+
+
+
+
+
+
+ +
+
+

EVENTS ATTENDED:

+ + + + + + + + + + + {data.eventAttended.map((d,index)=>{ + return +})} + +
S.NoEvent DetailsOrganizationLocationDate
+
+ + + ) +} + +export default UserPage +// date={d.date} location={d.location} Org={d.organization} ED={d.Event_Details} diff --git a/src/constants/Categories.jsx b/src/constants/Categories.jsx new file mode 100644 index 0000000..ae6d8ad --- /dev/null +++ b/src/constants/Categories.jsx @@ -0,0 +1,83 @@ +export const Category = [ + { + title:'Education and Mentoring', + image:'https://www.worldendeavors.com/wp-content/uploads/2023/05/ghana-art-and-design-volunteer.jpg' + }, + { + title:'Environmental Conservation', + image:'https://media.istockphoto.com/id/1351442130/photo/multiracial-volunteers-planting-in-public-park.jpg?s=612x612&w=0&k=20&c=AaM1yRn6w6XZ_R78osWzHptRvMAKK5lmNuJACb6opic=' + }, + { + title:'Community Development', + image:'https://img.freepik.com/free-photo/people-stacking-hands-together-park_53876-63293.jpg' + }, + { + title:'Disaster relief', + image:'https://media.istockphoto.com/id/947503308/photo/young-male-food-bank-volunteer-passes-out-bags-of-fruit.jpg?s=612x612&w=0&k=20&c=d-odqiQOQEwe0QerQTbyucFGmQ6kGsP6JjYCj3c8UnU=' + }, + { + title:'Animal welfare', + image:'https://img.freepik.com/free-photo/smiley-woman-playing-with-cute-dog-up-adoption_23-2148682991.jpg' + }, + { + title:'Healthcare support', + image:'https://media.istockphoto.com/id/636362028/photo/friendly-nurse-checks-young-patients-temperature-at-free-clinic.jpg?s=612x612&w=0&k=20&c=FOZrNNHtT-U1DCD_QzGKXE5GCDFF7LwbHku-TxGn5dA=' + }, +] + +export const PopularEvent = [ + { + title:'Save tiger', + discription:'Voluteer to save tigers in India.', + location:'Rajasthan India', + month:'NOV', + date:'24-26', + category:'Animal welfare', + image:'https://image.volunteerworld.com/8e618538a0376e6292064b1177a892f8e60ba29b/WL-04.jpg' + }, + { + title:'Padhega Delhi', + discription:'Voluteer to mentor underpriveleged kids in delhi.', + location:'Delhi India', + month:'AUG', + date:'01-26', + category:'Education and Mentoring', + image:'https://image.volunteerworld.com/bc2e59d5e24a94f443045f1d548a88baf3311f95/Portfolio-India-Childcare.jpg' + }, + { + title:'Healthcare Camp', + discription:'Show up to conduct a free healthcare camp in haryana.', + location:'Haryana India', + month:'JUL', + date:'10-20', + category:'Heathcare support', + image:'https://image.volunteerworld.com/feaf6c492f97c7a08eb4a615dbafe844f62d386f/Portfolio-India-Medical.jpg' + }, +] + +export const Organizations = [ + { + name:'International Volunteer HQ', + image:'https://upload.wikimedia.org/wikipedia/en/9/94/International_Volunteer_HQ_Logo.png' + }, + { + name:'VolunteerMatch', + image:'https://upload.wikimedia.org/wikipedia/commons/e/ea/VolunteerMatch_official.png' + }, + { + name:'Service Civil International', + image:'https://sci.ngo/wp-content/uploads/sci_logo_blue-2.png' + }, + { + name:'Global Volunteers', + image:'https://yt3.googleusercontent.com/ytc/AIdro_mc9kXFfBqq4JDymqPUw98MayxwFOEnYvqLLX33KtEnng=s900-c-k-c0x00ffffff-no-rj' + }, + { + name:'Love Volunteers', + image:'https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQhq71UAAaz_8La2zU_0F5Gtvc6fq9S_D1p9A-D_e8M8jKOT1QJ' + }, + { + name:'National NGO Confederations', + image:'https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcSVRh4l88q0ES48M8fyfFkp0M7EtD__lUaA9x0gxwKW_boapK6a' + }, +] \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js index 513995e..06be11a 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -7,8 +7,8 @@ export default { theme: { extend: { colors:{ - "navbar":'#002C3E', - "body":'#F6F6F6', + "navbar":'#2B293D', + "body":'#272342', "button":"#230c69" // "navbar":'', // "body":'#F6F6F6',#002C3E