Initial commit: Complete PACS landing page
- Implemented React + Vite + Tailwind CSS setup - Created responsive landing page for Palhara SKUS Primary Agriculture Credit Society - Added hero carousel with 4 slides showcasing schemes - Built services section with 6 service cards - Implemented interactive revenue charts with dummy data - Added FAQ section with accordion functionality - Created complaint form UI - Built comprehensive footer with links and contacts - Configured custom theme colors (green, yellow, orange) - Added Framer Motion animations throughout - Implemented fully responsive design for mobile, tablet, and desktop
This commit is contained in:
9
.claude/settings.local.json
Normal file
9
.claude/settings.local.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"permissions": {
|
||||
"allow": [
|
||||
"Bash(npm install:*)"
|
||||
],
|
||||
"deny": [],
|
||||
"ask": []
|
||||
}
|
||||
}
|
||||
24
.gitignore
vendored
Normal file
24
.gitignore
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
16
README.md
Normal file
16
README.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# React + Vite
|
||||
|
||||
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
||||
|
||||
Currently, two official plugins are available:
|
||||
|
||||
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
|
||||
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
||||
|
||||
## React Compiler
|
||||
|
||||
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
|
||||
|
||||
## Expanding the ESLint configuration
|
||||
|
||||
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project.
|
||||
29
eslint.config.js
Normal file
29
eslint.config.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import js from '@eslint/js'
|
||||
import globals from 'globals'
|
||||
import reactHooks from 'eslint-plugin-react-hooks'
|
||||
import reactRefresh from 'eslint-plugin-react-refresh'
|
||||
import { defineConfig, globalIgnores } from 'eslint/config'
|
||||
|
||||
export default defineConfig([
|
||||
globalIgnores(['dist']),
|
||||
{
|
||||
files: ['**/*.{js,jsx}'],
|
||||
extends: [
|
||||
js.configs.recommended,
|
||||
reactHooks.configs.flat.recommended,
|
||||
reactRefresh.configs.vite,
|
||||
],
|
||||
languageOptions: {
|
||||
ecmaVersion: 2020,
|
||||
globals: globals.browser,
|
||||
parserOptions: {
|
||||
ecmaVersion: 'latest',
|
||||
ecmaFeatures: { jsx: true },
|
||||
sourceType: 'module',
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
|
||||
},
|
||||
},
|
||||
])
|
||||
16
index.html
Normal file
16
index.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700;800&display=swap" rel="stylesheet">
|
||||
<title>Palhara SKUS - Primary Agriculture Credit Society</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script type="module" src="/src/main.jsx"></script>
|
||||
</body>
|
||||
</html>
|
||||
3856
package-lock.json
generated
Normal file
3856
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
33
package.json
Normal file
33
package.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"name": "pacs_landing",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"lint": "eslint .",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tailwindcss/vite": "^4.1.17",
|
||||
"framer-motion": "^12.23.24",
|
||||
"react": "^19.2.0",
|
||||
"react-dom": "^19.2.0",
|
||||
"react-icons": "^5.5.0",
|
||||
"recharts": "^3.4.1",
|
||||
"swiper": "^12.0.3",
|
||||
"tailwindcss": "^4.1.17"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.39.1",
|
||||
"@types/react": "^19.2.5",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@vitejs/plugin-react": "^5.1.1",
|
||||
"eslint": "^9.39.1",
|
||||
"eslint-plugin-react-hooks": "^7.0.1",
|
||||
"eslint-plugin-react-refresh": "^0.4.24",
|
||||
"globals": "^16.5.0",
|
||||
"vite": "^7.2.4"
|
||||
}
|
||||
}
|
||||
1
public/vite.svg
Normal file
1
public/vite.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
39
src/App.css
Normal file
39
src/App.css
Normal file
@@ -0,0 +1,39 @@
|
||||
/* Global Styles */
|
||||
* {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Inter', sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
/* Custom Scrollbar */
|
||||
::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: #f1f1f1;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #4ab44d;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: #3a8f3c;
|
||||
}
|
||||
|
||||
/* Selection */
|
||||
::selection {
|
||||
background-color: #4ab44d;
|
||||
color: white;
|
||||
}
|
||||
|
||||
::-moz-selection {
|
||||
background-color: #4ab44d;
|
||||
color: white;
|
||||
}
|
||||
25
src/App.jsx
Normal file
25
src/App.jsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import Navbar from './components/Navbar';
|
||||
import HeroSection from './components/HeroSection';
|
||||
import ServicesSection from './components/ServicesSection';
|
||||
import RevenueSection from './components/RevenueSection';
|
||||
import FAQSection from './components/FAQSection';
|
||||
import ComplaintForm from './components/ComplaintForm';
|
||||
import Footer from './components/Footer';
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div className="min-h-screen bg-white">
|
||||
<Navbar />
|
||||
<main>
|
||||
<HeroSection />
|
||||
<ServicesSection />
|
||||
<RevenueSection />
|
||||
<FAQSection />
|
||||
<ComplaintForm />
|
||||
</main>
|
||||
<Footer />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
1
src/assets/react.svg
Normal file
1
src/assets/react.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>
|
||||
|
After Width: | Height: | Size: 4.0 KiB |
428
src/components/ComplaintForm.jsx
Normal file
428
src/components/ComplaintForm.jsx
Normal file
@@ -0,0 +1,428 @@
|
||||
import { useState } from 'react';
|
||||
import { motion } from 'framer-motion';
|
||||
import { FaPaperPlane, FaUser, FaEnvelope, FaPhone, FaFileAlt } from 'react-icons/fa';
|
||||
|
||||
const ComplaintForm = () => {
|
||||
const [formData, setFormData] = useState({
|
||||
name: '',
|
||||
email: '',
|
||||
phone: '',
|
||||
membershipId: '',
|
||||
category: '',
|
||||
subject: '',
|
||||
description: '',
|
||||
priority: 'medium'
|
||||
});
|
||||
|
||||
const [focusedField, setFocusedField] = useState(null);
|
||||
|
||||
const handleChange = (e) => {
|
||||
setFormData({
|
||||
...formData,
|
||||
[e.target.name]: e.target.value
|
||||
});
|
||||
};
|
||||
|
||||
const handleSubmit = (e) => {
|
||||
e.preventDefault();
|
||||
// Form submission logic will be implemented later
|
||||
console.log('Form submitted:', formData);
|
||||
alert('Thank you for your feedback! We will get back to you soon.');
|
||||
};
|
||||
|
||||
const categories = [
|
||||
'Account Issues',
|
||||
'Loan Related',
|
||||
'Interest Rates',
|
||||
'Staff Behavior',
|
||||
'Documentation',
|
||||
'Locker Services',
|
||||
'Digital Banking',
|
||||
'Other'
|
||||
];
|
||||
|
||||
return (
|
||||
<section id="complaint" className="py-20 lg:py-28 bg-gradient-to-b from-gray-50 to-white relative overflow-hidden">
|
||||
{/* Background Elements */}
|
||||
<div className="absolute top-0 left-0 w-96 h-96 bg-tertiary-200/20 rounded-full blur-3xl -translate-x-1/2 -translate-y-1/2"></div>
|
||||
<div className="absolute bottom-0 right-0 w-80 h-80 bg-accent-200/20 rounded-full blur-3xl translate-x-1/2 translate-y-1/2"></div>
|
||||
|
||||
<div className="max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
|
||||
{/* Section Header */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: -30 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.7 }}
|
||||
className="text-center mb-16"
|
||||
>
|
||||
<motion.span
|
||||
initial={{ opacity: 0, scale: 0.8 }}
|
||||
whileInView={{ opacity: 1, scale: 1 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.2, duration: 0.5 }}
|
||||
className="inline-block text-tertiary-600 font-poppins font-semibold text-sm uppercase tracking-wider mb-3"
|
||||
>
|
||||
We're Here to Listen
|
||||
</motion.span>
|
||||
<h2 className="text-4xl lg:text-5xl font-playfair font-bold text-gray-900 mb-4">
|
||||
Submit Your <span className="text-tertiary-600">Feedback</span>
|
||||
</h2>
|
||||
<p className="text-lg text-gray-600 font-inter max-w-2xl mx-auto">
|
||||
Your feedback helps us improve. Share your concerns, suggestions, or complaints with us.
|
||||
</p>
|
||||
</motion.div>
|
||||
|
||||
{/* Form Container */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 30 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.7 }}
|
||||
className="bg-white rounded-2xl shadow-2xl overflow-hidden"
|
||||
>
|
||||
<div className="grid lg:grid-cols-5 gap-0">
|
||||
{/* Left Sidebar - Info */}
|
||||
<div className="lg:col-span-2 bg-gradient-to-br from-primary-600 via-primary-700 to-primary-800 p-8 lg:p-10 text-white">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, x: -20 }}
|
||||
whileInView={{ opacity: 1, x: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.3, duration: 0.6 }}
|
||||
>
|
||||
<h3 className="text-2xl font-playfair font-bold mb-6">
|
||||
How We Handle Your Feedback
|
||||
</h3>
|
||||
|
||||
<div className="space-y-6">
|
||||
{[
|
||||
{ step: '01', title: 'Submit', desc: 'Fill out the form with your details' },
|
||||
{ step: '02', title: 'Review', desc: 'Our team reviews within 24 hours' },
|
||||
{ step: '03', title: 'Action', desc: 'We take necessary action' },
|
||||
{ step: '04', title: 'Response', desc: 'You receive a detailed response' }
|
||||
].map((item, index) => (
|
||||
<motion.div
|
||||
key={index}
|
||||
initial={{ opacity: 0, x: -20 }}
|
||||
whileInView={{ opacity: 1, x: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.4 + index * 0.1, duration: 0.5 }}
|
||||
className="flex gap-4 items-start"
|
||||
>
|
||||
<div className="flex-shrink-0 w-12 h-12 rounded-lg bg-white/10 backdrop-blur-sm flex items-center justify-center font-poppins font-bold text-lg">
|
||||
{item.step}
|
||||
</div>
|
||||
<div>
|
||||
<h4 className="font-poppins font-semibold text-lg mb-1">{item.title}</h4>
|
||||
<p className="text-primary-100 font-inter text-sm">{item.desc}</p>
|
||||
</div>
|
||||
</motion.div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<motion.div
|
||||
initial={{ opacity: 0 }}
|
||||
whileInView={{ opacity: 1 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.8, duration: 0.6 }}
|
||||
className="mt-10 pt-8 border-t border-primary-500"
|
||||
>
|
||||
<p className="text-primary-100 font-inter text-sm mb-4">
|
||||
For urgent matters, please contact us directly:
|
||||
</p>
|
||||
<div className="space-y-2 font-inter">
|
||||
<p className="flex items-center gap-2">
|
||||
<FaPhone className="text-primary-300" />
|
||||
<span>+91 98765 43210</span>
|
||||
</p>
|
||||
<p className="flex items-center gap-2">
|
||||
<FaEnvelope className="text-primary-300" />
|
||||
<span>complaints@palharaskus.in</span>
|
||||
</p>
|
||||
</div>
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
{/* Right Side - Form */}
|
||||
<div className="lg:col-span-3 p-8 lg:p-10">
|
||||
<form onSubmit={handleSubmit} className="space-y-6">
|
||||
{/* Name & Email Row */}
|
||||
<div className="grid sm:grid-cols-2 gap-6">
|
||||
{/* Name */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.2, duration: 0.5 }}
|
||||
>
|
||||
<label className="block text-sm font-poppins font-semibold text-gray-700 mb-2">
|
||||
Full Name *
|
||||
</label>
|
||||
<div className="relative">
|
||||
<div className="absolute left-4 top-1/2 -translate-y-1/2 text-gray-400">
|
||||
<FaUser />
|
||||
</div>
|
||||
<input
|
||||
type="text"
|
||||
name="name"
|
||||
value={formData.name}
|
||||
onChange={handleChange}
|
||||
onFocus={() => setFocusedField('name')}
|
||||
onBlur={() => setFocusedField(null)}
|
||||
required
|
||||
className={`w-full pl-12 pr-4 py-3 rounded-lg border-2 font-inter transition-all duration-300 focus:outline-none ${
|
||||
focusedField === 'name'
|
||||
? 'border-primary-500 bg-primary-50/30'
|
||||
: 'border-gray-200 bg-gray-50'
|
||||
}`}
|
||||
placeholder="John Doe"
|
||||
/>
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
{/* Email */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.3, duration: 0.5 }}
|
||||
>
|
||||
<label className="block text-sm font-poppins font-semibold text-gray-700 mb-2">
|
||||
Email Address *
|
||||
</label>
|
||||
<div className="relative">
|
||||
<div className="absolute left-4 top-1/2 -translate-y-1/2 text-gray-400">
|
||||
<FaEnvelope />
|
||||
</div>
|
||||
<input
|
||||
type="email"
|
||||
name="email"
|
||||
value={formData.email}
|
||||
onChange={handleChange}
|
||||
onFocus={() => setFocusedField('email')}
|
||||
onBlur={() => setFocusedField(null)}
|
||||
required
|
||||
className={`w-full pl-12 pr-4 py-3 rounded-lg border-2 font-inter transition-all duration-300 focus:outline-none ${
|
||||
focusedField === 'email'
|
||||
? 'border-primary-500 bg-primary-50/30'
|
||||
: 'border-gray-200 bg-gray-50'
|
||||
}`}
|
||||
placeholder="john@example.com"
|
||||
/>
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
{/* Phone & Membership ID Row */}
|
||||
<div className="grid sm:grid-cols-2 gap-6">
|
||||
{/* Phone */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.4, duration: 0.5 }}
|
||||
>
|
||||
<label className="block text-sm font-poppins font-semibold text-gray-700 mb-2">
|
||||
Phone Number *
|
||||
</label>
|
||||
<div className="relative">
|
||||
<div className="absolute left-4 top-1/2 -translate-y-1/2 text-gray-400">
|
||||
<FaPhone />
|
||||
</div>
|
||||
<input
|
||||
type="tel"
|
||||
name="phone"
|
||||
value={formData.phone}
|
||||
onChange={handleChange}
|
||||
onFocus={() => setFocusedField('phone')}
|
||||
onBlur={() => setFocusedField(null)}
|
||||
required
|
||||
className={`w-full pl-12 pr-4 py-3 rounded-lg border-2 font-inter transition-all duration-300 focus:outline-none ${
|
||||
focusedField === 'phone'
|
||||
? 'border-primary-500 bg-primary-50/30'
|
||||
: 'border-gray-200 bg-gray-50'
|
||||
}`}
|
||||
placeholder="+91 98765 43210"
|
||||
/>
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
{/* Membership ID */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.5, duration: 0.5 }}
|
||||
>
|
||||
<label className="block text-sm font-poppins font-semibold text-gray-700 mb-2">
|
||||
Membership ID
|
||||
</label>
|
||||
<div className="relative">
|
||||
<div className="absolute left-4 top-1/2 -translate-y-1/2 text-gray-400">
|
||||
<FaFileAlt />
|
||||
</div>
|
||||
<input
|
||||
type="text"
|
||||
name="membershipId"
|
||||
value={formData.membershipId}
|
||||
onChange={handleChange}
|
||||
onFocus={() => setFocusedField('membershipId')}
|
||||
onBlur={() => setFocusedField(null)}
|
||||
className={`w-full pl-12 pr-4 py-3 rounded-lg border-2 font-inter transition-all duration-300 focus:outline-none ${
|
||||
focusedField === 'membershipId'
|
||||
? 'border-primary-500 bg-primary-50/30'
|
||||
: 'border-gray-200 bg-gray-50'
|
||||
}`}
|
||||
placeholder="PSKUS001234"
|
||||
/>
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
{/* Category & Priority Row */}
|
||||
<div className="grid sm:grid-cols-2 gap-6">
|
||||
{/* Category */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.6, duration: 0.5 }}
|
||||
>
|
||||
<label className="block text-sm font-poppins font-semibold text-gray-700 mb-2">
|
||||
Category *
|
||||
</label>
|
||||
<select
|
||||
name="category"
|
||||
value={formData.category}
|
||||
onChange={handleChange}
|
||||
onFocus={() => setFocusedField('category')}
|
||||
onBlur={() => setFocusedField(null)}
|
||||
required
|
||||
className={`w-full px-4 py-3 rounded-lg border-2 font-inter transition-all duration-300 focus:outline-none ${
|
||||
focusedField === 'category'
|
||||
? 'border-primary-500 bg-primary-50/30'
|
||||
: 'border-gray-200 bg-gray-50'
|
||||
}`}
|
||||
>
|
||||
<option value="">Select Category</option>
|
||||
{categories.map((cat, index) => (
|
||||
<option key={index} value={cat}>
|
||||
{cat}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</motion.div>
|
||||
|
||||
{/* Priority */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.7, duration: 0.5 }}
|
||||
>
|
||||
<label className="block text-sm font-poppins font-semibold text-gray-700 mb-2">
|
||||
Priority *
|
||||
</label>
|
||||
<select
|
||||
name="priority"
|
||||
value={formData.priority}
|
||||
onChange={handleChange}
|
||||
onFocus={() => setFocusedField('priority')}
|
||||
onBlur={() => setFocusedField(null)}
|
||||
required
|
||||
className={`w-full px-4 py-3 rounded-lg border-2 font-inter transition-all duration-300 focus:outline-none ${
|
||||
focusedField === 'priority'
|
||||
? 'border-primary-500 bg-primary-50/30'
|
||||
: 'border-gray-200 bg-gray-50'
|
||||
}`}
|
||||
>
|
||||
<option value="low">Low</option>
|
||||
<option value="medium">Medium</option>
|
||||
<option value="high">High</option>
|
||||
<option value="urgent">Urgent</option>
|
||||
</select>
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
{/* Subject */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.8, duration: 0.5 }}
|
||||
>
|
||||
<label className="block text-sm font-poppins font-semibold text-gray-700 mb-2">
|
||||
Subject *
|
||||
</label>
|
||||
<input
|
||||
type="text"
|
||||
name="subject"
|
||||
value={formData.subject}
|
||||
onChange={handleChange}
|
||||
onFocus={() => setFocusedField('subject')}
|
||||
onBlur={() => setFocusedField(null)}
|
||||
required
|
||||
className={`w-full px-4 py-3 rounded-lg border-2 font-inter transition-all duration-300 focus:outline-none ${
|
||||
focusedField === 'subject'
|
||||
? 'border-primary-500 bg-primary-50/30'
|
||||
: 'border-gray-200 bg-gray-50'
|
||||
}`}
|
||||
placeholder="Brief summary of your concern"
|
||||
/>
|
||||
</motion.div>
|
||||
|
||||
{/* Description */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.9, duration: 0.5 }}
|
||||
>
|
||||
<label className="block text-sm font-poppins font-semibold text-gray-700 mb-2">
|
||||
Description *
|
||||
</label>
|
||||
<textarea
|
||||
name="description"
|
||||
value={formData.description}
|
||||
onChange={handleChange}
|
||||
onFocus={() => setFocusedField('description')}
|
||||
onBlur={() => setFocusedField(null)}
|
||||
required
|
||||
rows="5"
|
||||
className={`w-full px-4 py-3 rounded-lg border-2 font-inter transition-all duration-300 focus:outline-none resize-none ${
|
||||
focusedField === 'description'
|
||||
? 'border-primary-500 bg-primary-50/30'
|
||||
: 'border-gray-200 bg-gray-50'
|
||||
}`}
|
||||
placeholder="Please provide detailed information about your concern..."
|
||||
></textarea>
|
||||
</motion.div>
|
||||
|
||||
{/* Submit Button */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 1, duration: 0.5 }}
|
||||
>
|
||||
<motion.button
|
||||
type="submit"
|
||||
whileHover={{ scale: 1.02 }}
|
||||
whileTap={{ scale: 0.98 }}
|
||||
className="w-full bg-gradient-to-r from-primary-500 to-primary-600 hover:from-primary-600 hover:to-primary-700 text-white px-8 py-4 rounded-lg font-poppins font-semibold shadow-lg hover:shadow-xl transition-all duration-300 flex items-center justify-center gap-3"
|
||||
>
|
||||
<FaPaperPlane />
|
||||
<span>Submit Feedback</span>
|
||||
</motion.button>
|
||||
</motion.div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default ComplaintForm;
|
||||
160
src/components/FAQSection.jsx
Normal file
160
src/components/FAQSection.jsx
Normal file
@@ -0,0 +1,160 @@
|
||||
import { useState } from 'react';
|
||||
import { motion, AnimatePresence } from 'framer-motion';
|
||||
import { FaChevronDown, FaQuestionCircle } from 'react-icons/fa';
|
||||
import { faqs } from '../data/siteData';
|
||||
|
||||
const FAQSection = () => {
|
||||
const [openIndex, setOpenIndex] = useState(null);
|
||||
|
||||
const toggleFAQ = (index) => {
|
||||
setOpenIndex(openIndex === index ? null : index);
|
||||
};
|
||||
|
||||
return (
|
||||
<section id="faq" className="py-20 lg:py-28 bg-gradient-to-b from-white via-secondary-50/30 to-white relative overflow-hidden">
|
||||
{/* Background Decorations */}
|
||||
<div className="absolute top-0 right-0 w-96 h-96 bg-secondary-200/20 rounded-full blur-3xl translate-x-1/3 -translate-y-1/3"></div>
|
||||
<div className="absolute bottom-0 left-0 w-80 h-80 bg-primary-200/20 rounded-full blur-3xl -translate-x-1/3 translate-y-1/3"></div>
|
||||
|
||||
<div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
|
||||
{/* Section Header */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: -30 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.7 }}
|
||||
className="text-center mb-16"
|
||||
>
|
||||
<motion.div
|
||||
initial={{ opacity: 0, scale: 0 }}
|
||||
whileInView={{ opacity: 1, scale: 1 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.2, duration: 0.5 }}
|
||||
className="inline-flex items-center justify-center w-16 h-16 rounded-full bg-gradient-to-br from-secondary-200 to-secondary-300 mb-6"
|
||||
>
|
||||
<FaQuestionCircle className="text-3xl" style={{ color: '#715904' }} />
|
||||
</motion.div>
|
||||
<h2 className="text-4xl lg:text-5xl font-playfair font-bold text-gray-900 mb-4">
|
||||
Frequently Asked <span className="text-secondary-600">Questions</span>
|
||||
</h2>
|
||||
<p className="text-lg text-gray-600 font-inter max-w-2xl mx-auto">
|
||||
Find answers to common questions about our services, membership, and procedures
|
||||
</p>
|
||||
</motion.div>
|
||||
|
||||
{/* FAQ Accordion */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 30 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.7 }}
|
||||
className="space-y-4"
|
||||
>
|
||||
{faqs.map((faq, index) => (
|
||||
<motion.div
|
||||
key={faq.id}
|
||||
initial={{ opacity: 0, x: -20 }}
|
||||
whileInView={{ opacity: 1, x: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.1 * index, duration: 0.5 }}
|
||||
className="bg-white rounded-xl shadow-md hover:shadow-xl transition-shadow duration-300 overflow-hidden border border-gray-100"
|
||||
>
|
||||
{/* Question Button */}
|
||||
<motion.button
|
||||
onClick={() => toggleFAQ(index)}
|
||||
className="w-full flex items-center justify-between p-6 text-left focus:outline-none group"
|
||||
whileHover={{ backgroundColor: 'rgba(107, 142, 35, 0.02)' }}
|
||||
>
|
||||
<div className="flex items-start gap-4 flex-1">
|
||||
{/* Number Badge */}
|
||||
<div className="flex-shrink-0 w-8 h-8 rounded-full bg-gradient-to-br from-secondary-100 to-secondary-200 flex items-center justify-center">
|
||||
<span className="text-sm font-poppins font-bold text-secondary-700">
|
||||
{String(index + 1).padStart(2, '0')}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{/* Question Text */}
|
||||
<h3 className="font-poppins font-semibold text-lg text-gray-900 group-hover:text-primary-700 transition-colors flex-1">
|
||||
{faq.question}
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
{/* Chevron Icon */}
|
||||
<motion.div
|
||||
animate={{ rotate: openIndex === index ? 180 : 0 }}
|
||||
transition={{ duration: 0.3 }}
|
||||
className="flex-shrink-0 ml-4"
|
||||
>
|
||||
<FaChevronDown className={`text-xl transition-colors ${
|
||||
openIndex === index ? 'text-primary-600' : 'text-gray-400'
|
||||
}`} />
|
||||
</motion.div>
|
||||
</motion.button>
|
||||
|
||||
{/* Answer */}
|
||||
<AnimatePresence>
|
||||
{openIndex === index && (
|
||||
<motion.div
|
||||
initial={{ height: 0, opacity: 0 }}
|
||||
animate={{ height: 'auto', opacity: 1 }}
|
||||
exit={{ height: 0, opacity: 0 }}
|
||||
transition={{ duration: 0.3, ease: 'easeInOut' }}
|
||||
className="overflow-hidden"
|
||||
>
|
||||
<motion.div
|
||||
initial={{ y: -10 }}
|
||||
animate={{ y: 0 }}
|
||||
exit={{ y: -10 }}
|
||||
transition={{ duration: 0.3 }}
|
||||
className="px-6 pb-6 pl-[72px]"
|
||||
>
|
||||
<div className="border-l-4 border-primary-400 pl-6 py-2">
|
||||
<p className="text-gray-700 font-inter leading-relaxed">
|
||||
{faq.answer}
|
||||
</p>
|
||||
</div>
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
</motion.div>
|
||||
))}
|
||||
</motion.div>
|
||||
|
||||
{/* Still Have Questions CTA */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 30 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.5, duration: 0.7 }}
|
||||
className="mt-16 text-center bg-gradient-to-r from-primary-50 to-secondary-50 rounded-2xl p-8 lg:p-12 border border-primary-200"
|
||||
>
|
||||
<h3 className="text-2xl lg:text-3xl font-playfair font-bold text-gray-900 mb-4">
|
||||
Still have questions?
|
||||
</h3>
|
||||
<p className="text-gray-600 font-inter mb-6 max-w-xl mx-auto">
|
||||
Our team is here to help. Reach out to us and we'll get back to you as soon as possible.
|
||||
</p>
|
||||
<div className="flex flex-col sm:flex-row gap-4 justify-center">
|
||||
<motion.button
|
||||
whileHover={{ scale: 1.05 }}
|
||||
whileTap={{ scale: 0.95 }}
|
||||
className="bg-gradient-to-r from-primary-500 to-primary-600 hover:from-primary-600 hover:to-primary-700 text-white px-8 py-4 rounded-lg font-poppins font-semibold shadow-lg hover:shadow-xl transition-all duration-300"
|
||||
>
|
||||
Contact Us
|
||||
</motion.button>
|
||||
<motion.button
|
||||
whileHover={{ scale: 1.05 }}
|
||||
whileTap={{ scale: 0.95 }}
|
||||
className="bg-white hover:bg-gray-50 text-primary-700 px-8 py-4 rounded-lg font-poppins font-semibold border-2 border-primary-500 shadow-lg hover:shadow-xl transition-all duration-300"
|
||||
>
|
||||
Visit Our Branch
|
||||
</motion.button>
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default FAQSection;
|
||||
229
src/components/Footer.jsx
Normal file
229
src/components/Footer.jsx
Normal file
@@ -0,0 +1,229 @@
|
||||
import { motion } from 'framer-motion';
|
||||
import {
|
||||
FaFacebookF,
|
||||
FaTwitter,
|
||||
FaInstagram,
|
||||
FaPhoneAlt,
|
||||
FaEnvelope,
|
||||
FaMapMarkerAlt,
|
||||
FaHeart
|
||||
} from 'react-icons/fa';
|
||||
import { siteConfig, footerLinks } from '../data/siteData';
|
||||
|
||||
const Footer = () => {
|
||||
const currentYear = new Date().getFullYear();
|
||||
|
||||
return (
|
||||
<footer className="bg-gradient-to-br from-gray-900 via-gray-800 to-primary-900 text-white relative overflow-hidden">
|
||||
{/* Background Pattern */}
|
||||
<div className="absolute inset-0 opacity-5 bg-grain"></div>
|
||||
|
||||
{/* Decorative Elements */}
|
||||
<div className="absolute top-0 left-0 w-96 h-96 bg-primary-500/10 rounded-full blur-3xl -translate-x-1/2 -translate-y-1/2"></div>
|
||||
<div className="absolute bottom-0 right-0 w-80 h-80 bg-accent-500/10 rounded-full blur-3xl translate-x-1/2 translate-y-1/2"></div>
|
||||
|
||||
<div className="relative z-10">
|
||||
{/* Main Footer Content */}
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16 lg:py-20">
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12 lg:gap-8">
|
||||
{/* About Section */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.6 }}
|
||||
className="lg:col-span-1"
|
||||
>
|
||||
<h3 className="text-2xl font-playfair font-bold mb-4 text-primary-300">
|
||||
{siteConfig.name}
|
||||
</h3>
|
||||
<p className="text-gray-300 font-inter mb-6 leading-relaxed">
|
||||
{siteConfig.tagline}
|
||||
</p>
|
||||
|
||||
{/* Social Links */}
|
||||
<div className="flex gap-4">
|
||||
{[
|
||||
{ icon: FaFacebookF, href: siteConfig.social.facebook, color: 'hover:bg-blue-600' },
|
||||
{ icon: FaTwitter, href: siteConfig.social.twitter, color: 'hover:bg-accent-500' },
|
||||
{ icon: FaInstagram, href: siteConfig.social.instagram, color: 'hover:bg-pink-600' }
|
||||
].map((social, index) => (
|
||||
<motion.a
|
||||
key={index}
|
||||
href={social.href}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
whileHover={{ scale: 1.1, y: -3 }}
|
||||
whileTap={{ scale: 0.9 }}
|
||||
className={`w-10 h-10 rounded-lg bg-white/10 backdrop-blur-sm flex items-center justify-center transition-all duration-300 ${social.color}`}
|
||||
>
|
||||
<social.icon className="text-lg" />
|
||||
</motion.a>
|
||||
))}
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
{/* Quick Links */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.1, duration: 0.6 }}
|
||||
>
|
||||
<h4 className="text-lg font-poppins font-bold mb-6 text-primary-300">
|
||||
Quick Links
|
||||
</h4>
|
||||
<ul className="space-y-3">
|
||||
{footerLinks.quickLinks.map((link, index) => (
|
||||
<li key={index}>
|
||||
<motion.a
|
||||
href={link.href}
|
||||
whileHover={{ x: 5 }}
|
||||
className="text-gray-300 hover:text-primary-400 font-inter transition-colors duration-300 flex items-center gap-2 group"
|
||||
>
|
||||
<span className="w-1.5 h-1.5 rounded-full bg-primary-500 group-hover:bg-primary-400 transition-colors"></span>
|
||||
{link.label}
|
||||
</motion.a>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</motion.div>
|
||||
|
||||
{/* Services Links */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.2, duration: 0.6 }}
|
||||
>
|
||||
<h4 className="text-lg font-poppins font-bold mb-6 text-primary-300">
|
||||
Our Services
|
||||
</h4>
|
||||
<ul className="space-y-3">
|
||||
{footerLinks.services.map((link, index) => (
|
||||
<li key={index}>
|
||||
<motion.a
|
||||
href={link.href}
|
||||
whileHover={{ x: 5 }}
|
||||
className="text-gray-300 hover:text-primary-400 font-inter transition-colors duration-300 flex items-center gap-2 group"
|
||||
>
|
||||
<span className="w-1.5 h-1.5 rounded-full bg-primary-500 group-hover:bg-primary-400 transition-colors"></span>
|
||||
{link.label}
|
||||
</motion.a>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</motion.div>
|
||||
|
||||
{/* Contact Info */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.3, duration: 0.6 }}
|
||||
>
|
||||
<h4 className="text-lg font-poppins font-bold mb-6 text-primary-300">
|
||||
Contact Us
|
||||
</h4>
|
||||
<ul className="space-y-4">
|
||||
<li className="flex items-start gap-3 text-gray-300 font-inter">
|
||||
<FaPhoneAlt className="text-primary-400 mt-1 flex-shrink-0" />
|
||||
<a
|
||||
href={`tel:${siteConfig.contact.phone}`}
|
||||
className="hover:text-primary-400 transition-colors"
|
||||
>
|
||||
{siteConfig.contact.phone}
|
||||
</a>
|
||||
</li>
|
||||
<li className="flex items-start gap-3 text-gray-300 font-inter">
|
||||
<FaEnvelope className="text-primary-400 mt-1 flex-shrink-0" />
|
||||
<a
|
||||
href={`mailto:${siteConfig.contact.email}`}
|
||||
className="hover:text-primary-400 transition-colors break-all"
|
||||
>
|
||||
{siteConfig.contact.email}
|
||||
</a>
|
||||
</li>
|
||||
<li className="flex items-start gap-3 text-gray-300 font-inter">
|
||||
<FaMapMarkerAlt className="text-primary-400 mt-1 flex-shrink-0" />
|
||||
<span>{siteConfig.contact.address}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
{/* Additional Resources */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.4, duration: 0.6 }}
|
||||
className="mt-12 pt-8 border-t border-gray-700"
|
||||
>
|
||||
<div className="flex flex-wrap gap-6 justify-center">
|
||||
{footerLinks.resources.map((link, index) => (
|
||||
<motion.a
|
||||
key={index}
|
||||
href={link.href}
|
||||
whileHover={{ y: -2 }}
|
||||
className="text-sm text-gray-400 hover:text-primary-400 font-inter transition-colors duration-300"
|
||||
>
|
||||
{link.label}
|
||||
</motion.a>
|
||||
))}
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
{/* Bottom Bar */}
|
||||
<div className="border-t border-gray-700">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6">
|
||||
<motion.div
|
||||
initial={{ opacity: 0 }}
|
||||
whileInView={{ opacity: 1 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.5, duration: 0.6 }}
|
||||
className="flex flex-col md:flex-row items-center justify-between gap-4"
|
||||
>
|
||||
<p className="text-gray-400 font-inter text-sm text-center md:text-left">
|
||||
© {currentYear} {siteConfig.name}. All rights reserved.
|
||||
</p>
|
||||
|
||||
<p className="text-gray-400 font-inter text-sm flex items-center gap-2">
|
||||
Made with <FaHeart className="text-red-500 animate-pulse" /> for Rural India
|
||||
</p>
|
||||
</motion.div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Scroll to Top Button */}
|
||||
<motion.button
|
||||
onClick={() => window.scrollTo({ top: 0, behavior: 'smooth' })}
|
||||
whileHover={{ scale: 1.1, y: -5 }}
|
||||
whileTap={{ scale: 0.9 }}
|
||||
className="fixed bottom-8 right-8 w-12 h-12 bg-gradient-to-br from-primary-200 to-primary-300 hover:from-primary-300 hover:to-primary-400 rounded-full shadow-xl flex items-center justify-center z-50 transition-all duration-300"
|
||||
style={{ color: '#1e4a1f' }}
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: false }}
|
||||
>
|
||||
<svg
|
||||
className="w-6 h-6"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
strokeWidth={2}
|
||||
d="M5 10l7-7m0 0l7 7m-7-7v18"
|
||||
/>
|
||||
</svg>
|
||||
</motion.button>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
};
|
||||
|
||||
export default Footer;
|
||||
179
src/components/HeroSection.jsx
Normal file
179
src/components/HeroSection.jsx
Normal file
@@ -0,0 +1,179 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import { motion, AnimatePresence } from 'framer-motion';
|
||||
import { FaChevronLeft, FaChevronRight, FaStar } from 'react-icons/fa';
|
||||
import { heroSlides } from '../data/siteData';
|
||||
|
||||
const HeroSection = () => {
|
||||
const [currentSlide, setCurrentSlide] = useState(0);
|
||||
const [isAutoPlay, setIsAutoPlay] = useState(true);
|
||||
|
||||
useEffect(() => {
|
||||
if (!isAutoPlay) return;
|
||||
|
||||
const interval = setInterval(() => {
|
||||
setCurrentSlide((prev) => (prev + 1) % heroSlides.length);
|
||||
}, 5000);
|
||||
|
||||
return () => clearInterval(interval);
|
||||
}, [isAutoPlay]);
|
||||
|
||||
const nextSlide = () => {
|
||||
setCurrentSlide((prev) => (prev + 1) % heroSlides.length);
|
||||
setIsAutoPlay(false);
|
||||
};
|
||||
|
||||
const prevSlide = () => {
|
||||
setCurrentSlide((prev) => (prev - 1 + heroSlides.length) % heroSlides.length);
|
||||
setIsAutoPlay(false);
|
||||
};
|
||||
|
||||
const goToSlide = (index) => {
|
||||
setCurrentSlide(index);
|
||||
setIsAutoPlay(false);
|
||||
};
|
||||
|
||||
return (
|
||||
<section className="relative h-[90vh] min-h-[600px] overflow-hidden bg-gradient-to-br from-primary-100 via-primary-50 to-secondary-50">
|
||||
{/* Background Pattern */}
|
||||
<div className="absolute inset-0 opacity-5 bg-grain"></div>
|
||||
|
||||
{/* Slides */}
|
||||
<AnimatePresence mode="wait" custom={currentSlide}>
|
||||
<motion.div
|
||||
key={currentSlide}
|
||||
initial={{ x: '100%' }}
|
||||
animate={{ x: 0 }}
|
||||
exit={{ x: '-100%' }}
|
||||
transition={{ duration: 0.6, ease: [0.32, 0.72, 0, 1] }}
|
||||
className="absolute inset-0"
|
||||
>
|
||||
{/* Background Image with Overlay */}
|
||||
<div
|
||||
className="absolute inset-0 bg-cover bg-center"
|
||||
style={{ backgroundImage: `url(${heroSlides[currentSlide].image})` }}
|
||||
>
|
||||
<div className="absolute inset-0 bg-gradient-to-r from-black/70 via-black/50 to-transparent"></div>
|
||||
</div>
|
||||
|
||||
{/* Content */}
|
||||
<div className="relative h-full max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex items-center">
|
||||
<motion.div
|
||||
className="max-w-2xl text-white"
|
||||
initial={{ opacity: 0, x: -50 }}
|
||||
animate={{ opacity: 1, x: 0 }}
|
||||
transition={{ delay: 0.3, duration: 0.6 }}
|
||||
>
|
||||
{/* Badge */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: -20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ delay: 0.4, duration: 0.5 }}
|
||||
className="inline-flex items-center gap-2 bg-secondary-200 px-4 py-2 rounded-full mb-6 font-inter font-medium"
|
||||
style={{ color: '#715904' }}
|
||||
>
|
||||
<FaStar style={{ color: '#F9A22E' }} />
|
||||
<span>{heroSlides[currentSlide].badge}</span>
|
||||
</motion.div>
|
||||
|
||||
{/* Title */}
|
||||
<motion.h1
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ delay: 0.5, duration: 0.6 }}
|
||||
className="text-4xl sm:text-5xl lg:text-6xl font-playfair font-bold mb-6 leading-tight"
|
||||
>
|
||||
{heroSlides[currentSlide].title}
|
||||
</motion.h1>
|
||||
|
||||
{/* Description */}
|
||||
<motion.p
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ delay: 0.6, duration: 0.6 }}
|
||||
className="text-lg sm:text-xl text-gray-200 mb-8 font-inter leading-relaxed"
|
||||
>
|
||||
{heroSlides[currentSlide].description}
|
||||
</motion.p>
|
||||
|
||||
{/* CTA Button */}
|
||||
<motion.button
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ delay: 0.7, duration: 0.6 }}
|
||||
whileHover={{ scale: 1.05, boxShadow: "0 20px 40px rgba(0,0,0,0.3)" }}
|
||||
whileTap={{ scale: 0.95 }}
|
||||
className="bg-gradient-to-r from-secondary-500 to-tertiary-500 hover:from-secondary-600 hover:to-tertiary-600 text-gray-900 px-8 py-4 rounded-lg font-poppins font-semibold text-lg shadow-xl transition-all duration-300"
|
||||
>
|
||||
{heroSlides[currentSlide].cta}
|
||||
</motion.button>
|
||||
</motion.div>
|
||||
</div>
|
||||
</motion.div>
|
||||
</AnimatePresence>
|
||||
|
||||
{/* Navigation Arrows */}
|
||||
<div className="absolute inset-y-0 left-0 right-0 flex items-center justify-between px-4 sm:px-6 lg:px-8 pointer-events-none">
|
||||
<motion.button
|
||||
whileHover={{ scale: 1.1, x: -5 }}
|
||||
whileTap={{ scale: 0.9 }}
|
||||
onClick={prevSlide}
|
||||
className="pointer-events-auto w-12 h-12 sm:w-14 sm:h-14 rounded-full bg-white/20 backdrop-blur-md hover:bg-white/30 flex items-center justify-center text-white transition-all duration-300 shadow-lg"
|
||||
>
|
||||
<FaChevronLeft className="text-xl" />
|
||||
</motion.button>
|
||||
|
||||
<motion.button
|
||||
whileHover={{ scale: 1.1, x: 5 }}
|
||||
whileTap={{ scale: 0.9 }}
|
||||
onClick={nextSlide}
|
||||
className="pointer-events-auto w-12 h-12 sm:w-14 sm:h-14 rounded-full bg-white/20 backdrop-blur-md hover:bg-white/30 flex items-center justify-center text-white transition-all duration-300 shadow-lg"
|
||||
>
|
||||
<FaChevronRight className="text-xl" />
|
||||
</motion.button>
|
||||
</div>
|
||||
|
||||
{/* Slide Indicators */}
|
||||
<div className="absolute bottom-8 left-0 right-0 flex justify-center gap-3 px-4">
|
||||
{heroSlides.map((_, index) => (
|
||||
<motion.button
|
||||
key={index}
|
||||
onClick={() => goToSlide(index)}
|
||||
className={`h-1.5 rounded-full transition-all duration-300 ${
|
||||
index === currentSlide
|
||||
? 'w-12 bg-white shadow-lg'
|
||||
: 'w-8 bg-white/50 hover:bg-white/70'
|
||||
}`}
|
||||
whileHover={{ scale: 1.2 }}
|
||||
whileTap={{ scale: 0.9 }}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
|
||||
{/* Decorative Elements */}
|
||||
<motion.div
|
||||
animate={{
|
||||
rotate: 360,
|
||||
scale: [1, 1.2, 1]
|
||||
}}
|
||||
transition={{
|
||||
rotate: { duration: 20, repeat: Infinity, ease: "linear" },
|
||||
scale: { duration: 4, repeat: Infinity, ease: "easeInOut" }
|
||||
}}
|
||||
className="absolute top-20 right-20 w-32 h-32 rounded-full bg-primary-400/10 blur-3xl"
|
||||
/>
|
||||
<motion.div
|
||||
animate={{
|
||||
rotate: -360,
|
||||
scale: [1, 1.3, 1]
|
||||
}}
|
||||
transition={{
|
||||
rotate: { duration: 25, repeat: Infinity, ease: "linear" },
|
||||
scale: { duration: 5, repeat: Infinity, ease: "easeInOut" }
|
||||
}}
|
||||
className="absolute bottom-32 left-32 w-40 h-40 rounded-full bg-tertiary-400/10 blur-3xl"
|
||||
/>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default HeroSection;
|
||||
147
src/components/Navbar.jsx
Normal file
147
src/components/Navbar.jsx
Normal file
@@ -0,0 +1,147 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import { motion, AnimatePresence } from 'framer-motion';
|
||||
import { FaBars, FaTimes, FaLeaf } from 'react-icons/fa';
|
||||
import { siteConfig } from '../data/siteData';
|
||||
|
||||
const Navbar = () => {
|
||||
const [isOpen, setIsOpen] = useState(false);
|
||||
const [isScrolled, setIsScrolled] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
const handleScroll = () => {
|
||||
setIsScrolled(window.scrollY > 50);
|
||||
};
|
||||
|
||||
window.addEventListener('scroll', handleScroll);
|
||||
return () => window.removeEventListener('scroll', handleScroll);
|
||||
}, []);
|
||||
|
||||
const menuItems = [
|
||||
{ label: 'Home', href: '#' },
|
||||
{ label: 'Services', href: '#services' },
|
||||
{ label: 'Data & Reports', href: '#data' },
|
||||
{ label: 'FAQ', href: '#faq' },
|
||||
{ label: 'Contact', href: '#complaint' }
|
||||
];
|
||||
|
||||
return (
|
||||
<motion.nav
|
||||
initial={{ y: -100 }}
|
||||
animate={{ y: 0 }}
|
||||
transition={{ duration: 0.6, ease: 'easeOut' }}
|
||||
className={`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${
|
||||
isScrolled
|
||||
? 'bg-white/95 backdrop-blur-md shadow-lg'
|
||||
: 'bg-transparent'
|
||||
}`}
|
||||
>
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="flex items-center justify-between h-20">
|
||||
{/* Logo */}
|
||||
<motion.a
|
||||
href="#"
|
||||
className="flex items-center gap-3 group"
|
||||
whileHover={{ scale: 1.05 }}
|
||||
whileTap={{ scale: 0.95 }}
|
||||
>
|
||||
<div className="w-12 h-12 rounded-xl bg-gradient-to-br from-primary-200 to-primary-300 flex items-center justify-center shadow-lg group-hover:shadow-xl transition-all duration-300">
|
||||
<FaLeaf className="text-2xl" style={{ color: '#1e4a1f' }} />
|
||||
</div>
|
||||
<div>
|
||||
<h1 className={`text-xl font-playfair font-bold transition-colors ${
|
||||
isScrolled ? 'text-gray-900' : 'text-white'
|
||||
}`}>
|
||||
{siteConfig.name}
|
||||
</h1>
|
||||
<p className={`text-xs font-inter transition-colors ${
|
||||
isScrolled ? 'text-gray-600' : 'text-gray-200'
|
||||
}`}>
|
||||
Primary Agriculture Credit Society
|
||||
</p>
|
||||
</div>
|
||||
</motion.a>
|
||||
|
||||
{/* Desktop Menu */}
|
||||
<div className="hidden lg:flex items-center gap-8">
|
||||
{menuItems.map((item, index) => (
|
||||
<motion.a
|
||||
key={index}
|
||||
href={item.href}
|
||||
whileHover={{ y: -2 }}
|
||||
className={`font-poppins font-medium transition-colors relative group ${
|
||||
isScrolled
|
||||
? 'text-gray-700 hover:text-primary-600'
|
||||
: 'text-white hover:text-primary-300'
|
||||
}`}
|
||||
>
|
||||
{item.label}
|
||||
<span className="absolute -bottom-1 left-0 w-0 h-0.5 bg-primary-500 group-hover:w-full transition-all duration-300"></span>
|
||||
</motion.a>
|
||||
))}
|
||||
|
||||
<motion.button
|
||||
whileHover={{ scale: 1.05 }}
|
||||
whileTap={{ scale: 0.95 }}
|
||||
className="bg-gradient-to-r from-primary-500 to-primary-600 hover:from-primary-600 hover:to-primary-700 text-white px-6 py-2.5 rounded-lg font-poppins font-semibold shadow-lg hover:shadow-xl transition-all duration-300"
|
||||
>
|
||||
Become a Member
|
||||
</motion.button>
|
||||
</div>
|
||||
|
||||
{/* Mobile Menu Button */}
|
||||
<motion.button
|
||||
whileTap={{ scale: 0.9 }}
|
||||
onClick={() => setIsOpen(!isOpen)}
|
||||
className={`lg:hidden w-10 h-10 flex items-center justify-center rounded-lg transition-colors ${
|
||||
isScrolled
|
||||
? 'text-gray-900 hover:bg-gray-100'
|
||||
: 'text-white hover:bg-white/10'
|
||||
}`}
|
||||
>
|
||||
{isOpen ? <FaTimes className="text-2xl" /> : <FaBars className="text-2xl" />}
|
||||
</motion.button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Mobile Menu */}
|
||||
<AnimatePresence>
|
||||
{isOpen && (
|
||||
<motion.div
|
||||
initial={{ opacity: 0, height: 0 }}
|
||||
animate={{ opacity: 1, height: 'auto' }}
|
||||
exit={{ opacity: 0, height: 0 }}
|
||||
transition={{ duration: 0.3 }}
|
||||
className="lg:hidden bg-white border-t border-gray-200 shadow-xl overflow-hidden"
|
||||
>
|
||||
<div className="px-4 py-6 space-y-4">
|
||||
{menuItems.map((item, index) => (
|
||||
<motion.a
|
||||
key={index}
|
||||
href={item.href}
|
||||
initial={{ opacity: 0, x: -20 }}
|
||||
animate={{ opacity: 1, x: 0 }}
|
||||
transition={{ delay: 0.1 * index }}
|
||||
onClick={() => setIsOpen(false)}
|
||||
className="block px-4 py-3 rounded-lg font-poppins font-medium text-gray-700 hover:bg-primary-50 hover:text-primary-700 transition-colors"
|
||||
>
|
||||
{item.label}
|
||||
</motion.a>
|
||||
))}
|
||||
|
||||
<motion.button
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ delay: 0.4 }}
|
||||
className="w-full bg-gradient-to-r from-primary-500 to-primary-600 hover:from-primary-600 hover:to-primary-700 text-white px-6 py-3 rounded-lg font-poppins font-semibold shadow-lg transition-all duration-300"
|
||||
>
|
||||
Become a Member
|
||||
</motion.button>
|
||||
</div>
|
||||
</motion.div>
|
||||
)}
|
||||
</AnimatePresence>
|
||||
</motion.nav>
|
||||
);
|
||||
};
|
||||
|
||||
export default Navbar;
|
||||
218
src/components/RevenueSection.jsx
Normal file
218
src/components/RevenueSection.jsx
Normal file
@@ -0,0 +1,218 @@
|
||||
import { motion } from 'framer-motion';
|
||||
import { useState } from 'react';
|
||||
import {
|
||||
AreaChart,
|
||||
Area,
|
||||
BarChart,
|
||||
Bar,
|
||||
LineChart,
|
||||
Line,
|
||||
PieChart,
|
||||
Pie,
|
||||
Cell,
|
||||
XAxis,
|
||||
YAxis,
|
||||
CartesianGrid,
|
||||
Tooltip,
|
||||
Legend,
|
||||
ResponsiveContainer
|
||||
} from 'recharts';
|
||||
import { FaChartLine, FaUsers, FaRupeeSign, FaChartPie } from 'react-icons/fa';
|
||||
import { revenueData } from '../data/siteData';
|
||||
|
||||
const RevenueSection = () => {
|
||||
const [activeChart, setActiveChart] = useState('revenue');
|
||||
|
||||
const CustomTooltip = ({ active, payload, label }) => {
|
||||
if (active && payload && payload.length) {
|
||||
return (
|
||||
<div className="bg-white p-4 rounded-lg shadow-xl border border-gray-200">
|
||||
<p className="font-poppins font-semibold text-gray-900 mb-2">{label}</p>
|
||||
{payload.map((entry, index) => (
|
||||
<p key={index} className="text-sm font-inter" style={{ color: entry.color }}>
|
||||
{entry.name}: {entry.name.includes('Interest') ? '₹' : ''}{entry.value}
|
||||
{entry.name.includes('Interest') ? ' Lakhs' : entry.name === 'Members' ? '' : ' Lakhs'}
|
||||
</p>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
return (
|
||||
<section id="data" className="py-20 lg:py-28 bg-gradient-to-b from-gray-50 to-white relative overflow-hidden">
|
||||
{/* Background Elements */}
|
||||
<div className="absolute top-20 right-10 w-64 h-64 bg-accent-200/30 rounded-full blur-3xl"></div>
|
||||
<div className="absolute bottom-20 left-10 w-80 h-80 bg-primary-200/30 rounded-full blur-3xl"></div>
|
||||
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
|
||||
{/* Section Header */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: -30 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.7 }}
|
||||
className="text-center mb-16"
|
||||
>
|
||||
<motion.span
|
||||
initial={{ opacity: 0, scale: 0.8 }}
|
||||
whileInView={{ opacity: 1, scale: 1 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.2, duration: 0.5 }}
|
||||
className="inline-block text-accent-600 font-poppins font-semibold text-sm uppercase tracking-wider mb-3"
|
||||
>
|
||||
Transparency & Growth
|
||||
</motion.span>
|
||||
<h2 className="text-4xl lg:text-5xl font-playfair font-bold text-gray-900 mb-4">
|
||||
Our Financial <span className="text-accent-600">Performance</span>
|
||||
</h2>
|
||||
<p className="text-lg text-gray-600 font-inter max-w-2xl mx-auto">
|
||||
Track our growth and performance metrics. Committed to transparency and community prosperity.
|
||||
</p>
|
||||
</motion.div>
|
||||
|
||||
{/* Key Metrics Cards */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 30 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.7 }}
|
||||
className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 mb-16"
|
||||
>
|
||||
{[
|
||||
{ icon: FaUsers, label: 'Total Members', value: revenueData.keyMetrics.totalMembers, bgColor: 'from-primary-200 to-primary-300', iconColor: '#1e4a1f' },
|
||||
{ icon: FaRupeeSign, label: 'Total Deposits', value: revenueData.keyMetrics.totalDeposits, bgColor: 'from-accent-200 to-accent-300', iconColor: '#0c4a6e' },
|
||||
{ icon: FaChartLine, label: 'Active Loans', value: revenueData.keyMetrics.activeLoanAccounts, bgColor: 'from-tertiary-200 to-tertiary-300', iconColor: '#713e04' },
|
||||
{ icon: FaChartPie, label: 'Interest Disbursed', value: revenueData.keyMetrics.interestDisbursed, bgColor: 'from-secondary-200 to-secondary-300', iconColor: '#715904' }
|
||||
].map((metric, index) => (
|
||||
<motion.div
|
||||
key={index}
|
||||
initial={{ opacity: 0, scale: 0.9 }}
|
||||
whileInView={{ opacity: 1, scale: 1 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.1 * index, duration: 0.5 }}
|
||||
whileHover={{ y: -5, transition: { duration: 0.2 } }}
|
||||
className="bg-white rounded-xl p-6 shadow-lg hover:shadow-2xl transition-all duration-300 border border-gray-100"
|
||||
>
|
||||
<div className={`w-12 h-12 rounded-lg bg-gradient-to-br ${metric.bgColor} flex items-center justify-center mb-4`}>
|
||||
<metric.icon className="text-2xl" style={{ color: metric.iconColor }} />
|
||||
</div>
|
||||
<p className="text-sm font-inter text-gray-600 mb-1">{metric.label}</p>
|
||||
<p className="text-3xl font-poppins font-bold text-gray-900">{metric.value}</p>
|
||||
</motion.div>
|
||||
))}
|
||||
</motion.div>
|
||||
|
||||
{/* Chart Tabs */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0 }}
|
||||
whileInView={{ opacity: 1 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.7 }}
|
||||
className="bg-white rounded-2xl shadow-xl p-6 lg:p-8"
|
||||
>
|
||||
{/* Tab Buttons */}
|
||||
<div className="flex flex-wrap gap-3 mb-8 border-b border-gray-200 pb-4">
|
||||
{[
|
||||
{ id: 'revenue', label: 'Monthly Revenue', icon: FaChartLine },
|
||||
{ id: 'loans', label: 'Loan Distribution', icon: FaChartPie },
|
||||
{ id: 'growth', label: 'Member Growth', icon: FaUsers }
|
||||
].map((tab) => (
|
||||
<motion.button
|
||||
key={tab.id}
|
||||
onClick={() => setActiveChart(tab.id)}
|
||||
whileHover={{ scale: 1.05 }}
|
||||
whileTap={{ scale: 0.95 }}
|
||||
className={`flex items-center gap-2 px-6 py-3 rounded-lg font-poppins font-semibold transition-all duration-300 ${
|
||||
activeChart === tab.id
|
||||
? 'bg-gradient-to-r from-primary-500 to-primary-600 text-white shadow-lg'
|
||||
: 'bg-gray-100 text-gray-600 hover:bg-gray-200'
|
||||
}`}
|
||||
>
|
||||
<tab.icon />
|
||||
<span className="hidden sm:inline">{tab.label}</span>
|
||||
</motion.button>
|
||||
))}
|
||||
</div>
|
||||
|
||||
{/* Charts */}
|
||||
<motion.div
|
||||
key={activeChart}
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.5 }}
|
||||
className="h-[400px]"
|
||||
>
|
||||
{activeChart === 'revenue' && (
|
||||
<ResponsiveContainer width="100%" height="100%">
|
||||
<AreaChart data={revenueData.monthlyRevenue}>
|
||||
<defs>
|
||||
<linearGradient id="colorDeposits" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="5%" stopColor="#0ea5e9" stopOpacity={0.8} />
|
||||
<stop offset="95%" stopColor="#0ea5e9" stopOpacity={0} />
|
||||
</linearGradient>
|
||||
<linearGradient id="colorLoans" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="5%" stopColor="#4ab44d" stopOpacity={0.8} />
|
||||
<stop offset="95%" stopColor="#4ab44d" stopOpacity={0} />
|
||||
</linearGradient>
|
||||
<linearGradient id="colorInterest" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="5%" stopColor="#F9A22E" stopOpacity={0.8} />
|
||||
<stop offset="95%" stopColor="#F9A22E" stopOpacity={0} />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<CartesianGrid strokeDasharray="3 3" stroke="#e5e7eb" />
|
||||
<XAxis dataKey="month" stroke="#6b7280" style={{ fontFamily: 'Inter' }} />
|
||||
<YAxis stroke="#6b7280" style={{ fontFamily: 'Inter' }} />
|
||||
<Tooltip content={<CustomTooltip />} />
|
||||
<Legend wrapperStyle={{ fontFamily: 'Inter' }} />
|
||||
<Area type="monotone" dataKey="deposits" stroke="#0ea5e9" fillOpacity={1} fill="url(#colorDeposits)" name="Deposits (Lakhs)" />
|
||||
<Area type="monotone" dataKey="loans" stroke="#4ab44d" fillOpacity={1} fill="url(#colorLoans)" name="Loans (Lakhs)" />
|
||||
<Area type="monotone" dataKey="interest" stroke="#F9A22E" fillOpacity={1} fill="url(#colorInterest)" name="Interest (Lakhs)" />
|
||||
</AreaChart>
|
||||
</ResponsiveContainer>
|
||||
)}
|
||||
|
||||
{activeChart === 'loans' && (
|
||||
<ResponsiveContainer width="100%" height="100%">
|
||||
<PieChart>
|
||||
<Pie
|
||||
data={revenueData.loanDistribution}
|
||||
cx="50%"
|
||||
cy="50%"
|
||||
labelLine={false}
|
||||
label={({ name, percent }) => `${name} ${(percent * 100).toFixed(0)}%`}
|
||||
outerRadius={120}
|
||||
fill="#8884d8"
|
||||
dataKey="value"
|
||||
>
|
||||
{revenueData.loanDistribution.map((entry, index) => (
|
||||
<Cell key={`cell-${index}`} fill={entry.color} />
|
||||
))}
|
||||
</Pie>
|
||||
<Tooltip content={<CustomTooltip />} />
|
||||
<Legend wrapperStyle={{ fontFamily: 'Inter' }} />
|
||||
</PieChart>
|
||||
</ResponsiveContainer>
|
||||
)}
|
||||
|
||||
{activeChart === 'growth' && (
|
||||
<ResponsiveContainer width="100%" height="100%">
|
||||
<BarChart data={revenueData.memberGrowth}>
|
||||
<CartesianGrid strokeDasharray="3 3" stroke="#e5e7eb" />
|
||||
<XAxis dataKey="year" stroke="#6b7280" style={{ fontFamily: 'Inter' }} />
|
||||
<YAxis stroke="#6b7280" style={{ fontFamily: 'Inter' }} />
|
||||
<Tooltip content={<CustomTooltip />} />
|
||||
<Legend wrapperStyle={{ fontFamily: 'Inter' }} />
|
||||
<Bar dataKey="members" fill="#4ab44d" name="Members" radius={[8, 8, 0, 0]} />
|
||||
</BarChart>
|
||||
</ResponsiveContainer>
|
||||
)}
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default RevenueSection;
|
||||
178
src/components/ServicesSection.jsx
Normal file
178
src/components/ServicesSection.jsx
Normal file
@@ -0,0 +1,178 @@
|
||||
import { motion } from 'framer-motion';
|
||||
import {
|
||||
FaPiggyBank,
|
||||
FaHandHoldingUsd,
|
||||
FaCreditCard,
|
||||
FaLock,
|
||||
FaMoneyCheckAlt,
|
||||
FaMobileAlt
|
||||
} from 'react-icons/fa';
|
||||
import { services } from '../data/siteData';
|
||||
|
||||
const iconMap = {
|
||||
FaPiggyBank,
|
||||
FaHandHoldingUsd,
|
||||
FaCreditCard,
|
||||
FaLock,
|
||||
FaMoneyCheckAlt,
|
||||
FaMobileAlt
|
||||
};
|
||||
|
||||
const ServicesSection = () => {
|
||||
const containerVariants = {
|
||||
hidden: { opacity: 0 },
|
||||
visible: {
|
||||
opacity: 1,
|
||||
transition: {
|
||||
staggerChildren: 0.1
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const cardVariants = {
|
||||
hidden: { opacity: 0, y: 50 },
|
||||
visible: {
|
||||
opacity: 1,
|
||||
y: 0,
|
||||
transition: {
|
||||
duration: 0.6,
|
||||
ease: "easeOut"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<section id="services" className="py-20 lg:py-28 bg-gradient-to-b from-white via-primary-50/30 to-white relative overflow-hidden">
|
||||
{/* Background Decorations */}
|
||||
<div className="absolute top-0 left-0 w-72 h-72 bg-primary-200/20 rounded-full blur-3xl -translate-x-1/2 -translate-y-1/2"></div>
|
||||
<div className="absolute bottom-0 right-0 w-96 h-96 bg-accent-200/20 rounded-full blur-3xl translate-x-1/2 translate-y-1/2"></div>
|
||||
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
|
||||
{/* Section Header */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: -30 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ duration: 0.7 }}
|
||||
className="text-center mb-16"
|
||||
>
|
||||
<motion.span
|
||||
initial={{ opacity: 0, scale: 0.8 }}
|
||||
whileInView={{ opacity: 1, scale: 1 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.2, duration: 0.5 }}
|
||||
className="inline-block text-primary-600 font-poppins font-semibold text-sm uppercase tracking-wider mb-3"
|
||||
>
|
||||
Our Services
|
||||
</motion.span>
|
||||
<h2 className="text-4xl lg:text-5xl font-playfair font-bold text-gray-900 mb-4">
|
||||
Financial Solutions for{' '}
|
||||
<span className="text-primary-600">Rural Communities</span>
|
||||
</h2>
|
||||
<p className="text-lg text-gray-600 font-inter max-w-2xl mx-auto">
|
||||
Comprehensive banking and credit services designed specifically for farmers and rural entrepreneurs
|
||||
</p>
|
||||
</motion.div>
|
||||
|
||||
{/* Services Grid */}
|
||||
<motion.div
|
||||
variants={containerVariants}
|
||||
initial="hidden"
|
||||
whileInView="visible"
|
||||
viewport={{ once: true, margin: "-100px" }}
|
||||
className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"
|
||||
>
|
||||
{services.map((service, index) => {
|
||||
const IconComponent = iconMap[service.icon];
|
||||
|
||||
return (
|
||||
<motion.div
|
||||
key={service.id}
|
||||
variants={cardVariants}
|
||||
whileHover={{
|
||||
y: -10,
|
||||
transition: { duration: 0.3, ease: "easeOut" }
|
||||
}}
|
||||
className="group relative"
|
||||
>
|
||||
{/* Card */}
|
||||
<div className="relative h-full bg-white rounded-2xl shadow-lg hover:shadow-2xl transition-shadow duration-300 overflow-hidden border border-gray-100">
|
||||
{/* Gradient Background on Hover */}
|
||||
<div className="absolute inset-0 bg-gradient-to-br from-primary-500/5 to-accent-500/5 opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
|
||||
|
||||
<div className="relative p-8">
|
||||
{/* Icon */}
|
||||
{IconComponent && (
|
||||
<motion.div
|
||||
whileHover={{ rotate: [0, -10, 10, -10, 0], scale: 1.1 }}
|
||||
transition={{ duration: 0.5 }}
|
||||
className="w-16 h-16 rounded-xl bg-gradient-to-br from-primary-200 to-primary-300 flex items-center justify-center mb-6 shadow-lg group-hover:shadow-xl transition-shadow"
|
||||
>
|
||||
<IconComponent className="text-3xl" style={{ color: '#1e4a1f' }} />
|
||||
</motion.div>
|
||||
)}
|
||||
|
||||
{/* Title */}
|
||||
<h3 className="text-2xl font-poppins font-bold text-gray-900 mb-3 group-hover:text-primary-700 transition-colors">
|
||||
{service.title}
|
||||
</h3>
|
||||
|
||||
{/* Description */}
|
||||
<p className="text-gray-600 font-inter mb-6 leading-relaxed">
|
||||
{service.description}
|
||||
</p>
|
||||
|
||||
{/* Features List */}
|
||||
<ul className="space-y-2">
|
||||
{service.features.map((feature, idx) => (
|
||||
<motion.li
|
||||
key={idx}
|
||||
initial={{ opacity: 0, x: -10 }}
|
||||
whileInView={{ opacity: 1, x: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.1 * idx }}
|
||||
className="flex items-center gap-2 text-sm text-gray-700 font-inter"
|
||||
>
|
||||
<div className="w-1.5 h-1.5 rounded-full bg-primary-500"></div>
|
||||
<span>{feature}</span>
|
||||
</motion.li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
{/* Decorative Corner */}
|
||||
<div className="absolute top-0 right-0 w-20 h-20 bg-gradient-to-br from-primary-400/10 to-transparent rounded-bl-full"></div>
|
||||
</div>
|
||||
|
||||
{/* Bottom Border Animation */}
|
||||
<div className="absolute bottom-0 left-0 right-0 h-1 bg-gradient-to-r from-primary-500 to-accent-500 transform scale-x-0 group-hover:scale-x-100 transition-transform duration-300 origin-left"></div>
|
||||
</div>
|
||||
</motion.div>
|
||||
);
|
||||
})}
|
||||
</motion.div>
|
||||
|
||||
{/* Call to Action */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 30 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
viewport={{ once: true }}
|
||||
transition={{ delay: 0.5, duration: 0.7 }}
|
||||
className="text-center mt-16"
|
||||
>
|
||||
<p className="text-gray-600 font-inter mb-6">
|
||||
Need help choosing the right service for you?
|
||||
</p>
|
||||
<motion.button
|
||||
whileHover={{ scale: 1.05 }}
|
||||
whileTap={{ scale: 0.95 }}
|
||||
className="bg-gradient-to-r from-primary-500 to-primary-600 hover:from-primary-600 hover:to-primary-700 text-white px-8 py-4 rounded-lg font-poppins font-semibold shadow-lg hover:shadow-xl transition-all duration-300"
|
||||
>
|
||||
Talk to Our Experts
|
||||
</motion.button>
|
||||
</motion.div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default ServicesSection;
|
||||
207
src/data/siteData.js
Normal file
207
src/data/siteData.js
Normal file
@@ -0,0 +1,207 @@
|
||||
// Site-wide configuration and data
|
||||
|
||||
export const siteConfig = {
|
||||
name: "Palhara SKUS",
|
||||
fullName: "Palhara Sahakari Krishi Upaj Samiti",
|
||||
tagline: "Empowering Rural Communities Through Financial Inclusion",
|
||||
contact: {
|
||||
phone: "+91 98765 43210",
|
||||
email: "info@palharaskus.in",
|
||||
address: "Village Palhara, Tehsil Office Road, District Bhilwara, Rajasthan - 311001"
|
||||
},
|
||||
social: {
|
||||
facebook: "https://facebook.com/palharaskus",
|
||||
twitter: "https://twitter.com/palharaskus",
|
||||
instagram: "https://instagram.com/palharaskus"
|
||||
}
|
||||
};
|
||||
|
||||
// Gallery/Hero Slides
|
||||
export const heroSlides = [
|
||||
{
|
||||
id: 1,
|
||||
title: "Special Fixed Deposit Schemes",
|
||||
description: "Earn up to 8.5% interest on your deposits. Secure your future with our trusted FD plans.",
|
||||
image: "https://images.unsplash.com/photo-1464226184884-fa280b87c399?w=1400&h=700&fit=crop&q=80",
|
||||
cta: "Open FD Account",
|
||||
badge: "8.5% Interest"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Agriculture Loan at Low Interest",
|
||||
description: "Get instant agriculture loans at just 7% interest. Support your farming needs with easy repayment options.",
|
||||
image: "https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1400&h=700&fit=crop&q=80",
|
||||
cta: "Apply for Loan",
|
||||
badge: "7% Interest"
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Kisan Credit Card Facility",
|
||||
description: "Access credit anytime with our Kisan Credit Card. Flexible limits and minimal documentation.",
|
||||
image: "https://images.unsplash.com/photo-1560493676-04071c5f467b?w=1400&h=700&fit=crop&q=80",
|
||||
cta: "Get KCC Now",
|
||||
badge: "Instant Approval"
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Safe & Secure Locker Facility",
|
||||
description: "Protect your valuable documents and jewelry. Premium locker facility available at affordable rates.",
|
||||
image: "https://images.unsplash.com/photo-1566281796817-93bc94d7dbd2?w=1400&h=700&fit=crop&q=80",
|
||||
cta: "Book a Locker",
|
||||
badge: "₹500/year"
|
||||
}
|
||||
];
|
||||
|
||||
// Services offered
|
||||
export const services = [
|
||||
{
|
||||
id: 1,
|
||||
icon: "FaPiggyBank",
|
||||
title: "Savings & Deposits",
|
||||
description: "Secure savings accounts and fixed deposits with competitive interest rates for rural communities.",
|
||||
features: ["Savings Account", "Fixed Deposit", "Recurring Deposit", "Senior Citizen Schemes"]
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
icon: "FaHandHoldingUsd",
|
||||
title: "Agricultural Loans",
|
||||
description: "Easy access to agricultural loans for crop cultivation, equipment purchase, and farm development.",
|
||||
features: ["Crop Loan", "Farm Equipment Loan", "Land Development", "Subsidy Assistance"]
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
icon: "FaCreditCard",
|
||||
title: "Credit Card & Overdraft",
|
||||
description: "Kisan Credit Card and overdraft facilities for immediate financial needs with flexible repayment.",
|
||||
features: ["Kisan Credit Card", "Cash Credit", "Overdraft Facility", "Working Capital"]
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
icon: "FaLock",
|
||||
title: "Locker Facility",
|
||||
description: "Safe and secure locker services to protect your valuable documents, jewelry, and assets.",
|
||||
features: ["Small Locker", "Medium Locker", "Large Locker", "24/7 Security"]
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
icon: "FaMoneyCheckAlt",
|
||||
title: "Insurance Services",
|
||||
description: "Comprehensive insurance coverage for crops, livestock, life, and assets at affordable premiums.",
|
||||
features: ["Crop Insurance", "Life Insurance", "Livestock Insurance", "Asset Coverage"]
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
icon: "FaMobileAlt",
|
||||
title: "Digital Banking",
|
||||
description: "Modern digital banking services including mobile banking, online transfers, and payment solutions.",
|
||||
features: ["Mobile Banking", "Online Transfer", "Bill Payments", "SMS Alerts"]
|
||||
}
|
||||
];
|
||||
|
||||
// FAQ Data
|
||||
export const faqs = [
|
||||
{
|
||||
id: 1,
|
||||
question: "What is a Primary Agriculture Credit Society (PACS)?",
|
||||
answer: "PACS is a grassroots level cooperative credit society that provides financial services to farmers and rural communities. We offer loans, deposits, and various banking services tailored for agricultural needs."
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
question: "How can I become a member of Palhara SKUS?",
|
||||
answer: "To become a member, you need to be a resident of our operational area. Visit our office with your Aadhar card, PAN card, and passport-size photographs. Fill out the membership form and pay the nominal membership fee to get started."
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
question: "What documents are required for an agricultural loan?",
|
||||
answer: "You'll need: Aadhar card, PAN card, land documents, membership certificate, bank statements (last 6 months), and crop cultivation details. Additional documents may be required based on the loan amount."
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
question: "What are the interest rates for Fixed Deposits?",
|
||||
answer: "Our FD interest rates range from 6.5% to 8.5% per annum, depending on the tenure and amount. Senior citizens get an additional 0.5% interest. Minimum tenure is 6 months."
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
question: "How do I apply for a Kisan Credit Card?",
|
||||
answer: "Visit our branch with your land documents, Aadhar card, and membership details. Our staff will help you fill out the KCC application form. Approval typically takes 3-5 working days."
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
question: "Are my deposits safe with PACS?",
|
||||
answer: "Yes, absolutely. We are registered under the Cooperative Societies Act and are regularly audited. Your deposits are insured and protected under cooperative banking regulations."
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
question: "What is the locker rental fee?",
|
||||
answer: "Locker charges vary by size: Small (₹500/year), Medium (₹800/year), Large (₹1200/year). One-time refundable security deposit is also required."
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
question: "Do you provide crop insurance?",
|
||||
answer: "Yes, we facilitate crop insurance through government schemes like Pradhan Mantri Fasal Bima Yojana (PMFBY). We assist members in enrollment and claim processing."
|
||||
}
|
||||
];
|
||||
|
||||
// Revenue/Financial Data (dummy data)
|
||||
export const revenueData = {
|
||||
monthlyRevenue: [
|
||||
{ month: "Apr", deposits: 45, loans: 32, interest: 8 },
|
||||
{ month: "May", deposits: 52, loans: 38, interest: 9.5 },
|
||||
{ month: "Jun", deposits: 48, loans: 42, interest: 10 },
|
||||
{ month: "Jul", deposits: 61, loans: 45, interest: 11.2 },
|
||||
{ month: "Aug", deposits: 58, loans: 48, interest: 11.8 },
|
||||
{ month: "Sep", deposits: 65, loans: 52, interest: 12.5 },
|
||||
{ month: "Oct", deposits: 72, loans: 55, interest: 13 },
|
||||
{ month: "Nov", deposits: 68, loans: 58, interest: 13.8 },
|
||||
{ month: "Dec", deposits: 75, loans: 62, interest: 14.5 },
|
||||
{ month: "Jan", deposits: 82, loans: 65, interest: 15 },
|
||||
{ month: "Feb", deposits: 78, loans: 68, interest: 15.5 },
|
||||
{ month: "Mar", deposits: 85, loans: 72, interest: 16.2 }
|
||||
],
|
||||
loanDistribution: [
|
||||
{ name: "Crop Loan", value: 45, color: "#4ab44d" },
|
||||
{ name: "Equipment Loan", value: 20, color: "#FADD48" },
|
||||
{ name: "Land Development", value: 15, color: "#F9A22E" },
|
||||
{ name: "KCC", value: 12, color: "#B1E1B3" },
|
||||
{ name: "Others", value: 8, color: "#0ea5e9" }
|
||||
],
|
||||
memberGrowth: [
|
||||
{ year: "2019", members: 1200 },
|
||||
{ year: "2020", members: 1450 },
|
||||
{ year: "2021", members: 1680 },
|
||||
{ year: "2022", members: 1920 },
|
||||
{ year: "2023", members: 2250 },
|
||||
{ year: "2024", members: 2580 }
|
||||
],
|
||||
keyMetrics: {
|
||||
totalMembers: "2,580+",
|
||||
totalDeposits: "₹12.5 Cr",
|
||||
activeLoanAccounts: "1,245",
|
||||
interestDisbursed: "₹145 Lakhs"
|
||||
}
|
||||
};
|
||||
|
||||
// Footer Links
|
||||
export const footerLinks = {
|
||||
quickLinks: [
|
||||
{ label: "About Us", href: "#about" },
|
||||
{ label: "Our Services", href: "#services" },
|
||||
{ label: "Interest Rates", href: "#rates" },
|
||||
{ label: "Membership", href: "#membership" },
|
||||
{ label: "Contact", href: "#contact" }
|
||||
],
|
||||
services: [
|
||||
{ label: "Savings Account", href: "#savings" },
|
||||
{ label: "Fixed Deposits", href: "#fd" },
|
||||
{ label: "Loans", href: "#loans" },
|
||||
{ label: "Kisan Credit Card", href: "#kcc" },
|
||||
{ label: "Locker Facility", href: "#locker" }
|
||||
],
|
||||
resources: [
|
||||
{ label: "FAQs", href: "#faq" },
|
||||
{ label: "Download Forms", href: "#forms" },
|
||||
{ label: "Privacy Policy", href: "#privacy" },
|
||||
{ label: "Terms & Conditions", href: "#terms" },
|
||||
{ label: "Complaint Status", href: "#complaint-status" }
|
||||
]
|
||||
};
|
||||
51
src/index.css
Normal file
51
src/index.css
Normal file
@@ -0,0 +1,51 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
@theme {
|
||||
--color-primary-50: #f0faf1;
|
||||
--color-primary-100: #e1f5e2;
|
||||
--color-primary-200: #c3ebc5;
|
||||
--color-primary-300: #B1E1B3;
|
||||
--color-primary-400: #8fd591;
|
||||
--color-primary-500: #6dc96f;
|
||||
--color-primary-600: #4ab44d;
|
||||
--color-primary-700: #3a8f3c;
|
||||
--color-primary-800: #2d6e2e;
|
||||
--color-primary-900: #1e4a1f;
|
||||
|
||||
--color-secondary-50: #fffef0;
|
||||
--color-secondary-100: #fefce1;
|
||||
--color-secondary-200: #fdf9c3;
|
||||
--color-secondary-300: #fcf5a5;
|
||||
--color-secondary-400: #fbf087;
|
||||
--color-secondary-500: #FADD48;
|
||||
--color-secondary-600: #f5d10a;
|
||||
--color-secondary-700: #c9a908;
|
||||
--color-secondary-800: #9d8106;
|
||||
--color-secondary-900: #715904;
|
||||
|
||||
--color-tertiary-50: #fef7f0;
|
||||
--color-tertiary-100: #feeee1;
|
||||
--color-tertiary-200: #fddec3;
|
||||
--color-tertiary-300: #fccda5;
|
||||
--color-tertiary-400: #fabb87;
|
||||
--color-tertiary-500: #F9A22E;
|
||||
--color-tertiary-600: #f58c0a;
|
||||
--color-tertiary-700: #c97008;
|
||||
--color-tertiary-800: #9d5706;
|
||||
--color-tertiary-900: #713e04;
|
||||
|
||||
--color-accent-50: #f0f9ff;
|
||||
--color-accent-100: #e0f2fe;
|
||||
--color-accent-200: #bae6fd;
|
||||
--color-accent-300: #7dd3fc;
|
||||
--color-accent-400: #38bdf8;
|
||||
--color-accent-500: #0ea5e9;
|
||||
--color-accent-600: #0284c7;
|
||||
--color-accent-700: #0369a1;
|
||||
--color-accent-800: #075985;
|
||||
--color-accent-900: #0c4a6e;
|
||||
|
||||
--font-poppins: 'Poppins', sans-serif;
|
||||
--font-inter: 'Inter', sans-serif;
|
||||
--font-playfair: 'Playfair Display', serif;
|
||||
}
|
||||
10
src/main.jsx
Normal file
10
src/main.jsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import './index.css'
|
||||
import App from './App.jsx'
|
||||
|
||||
createRoot(document.getElementById('root')).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
)
|
||||
71
tailwind.config.js
Normal file
71
tailwind.config.js
Normal file
@@ -0,0 +1,71 @@
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
export default {
|
||||
content: [
|
||||
"./index.html",
|
||||
"./src/**/*.{js,ts,jsx,tsx}",
|
||||
],
|
||||
theme: {
|
||||
extend: {
|
||||
fontFamily: {
|
||||
poppins: ['Poppins', 'sans-serif'],
|
||||
inter: ['Inter', 'sans-serif'],
|
||||
playfair: ['Playfair Display', 'serif'],
|
||||
},
|
||||
colors: {
|
||||
// Rural India inspired color palette
|
||||
primary: {
|
||||
50: '#f0faf1',
|
||||
100: '#e1f5e2',
|
||||
200: '#c3ebc5',
|
||||
300: '#B1E1B3',
|
||||
400: '#8fd591',
|
||||
500: '#6dc96f',
|
||||
600: '#4ab44d',
|
||||
700: '#3a8f3c',
|
||||
800: '#2d6e2e',
|
||||
900: '#1e4a1f',
|
||||
},
|
||||
secondary: {
|
||||
50: '#fffef0',
|
||||
100: '#fefce1',
|
||||
200: '#fdf9c3',
|
||||
300: '#fcf5a5',
|
||||
400: '#fbf087',
|
||||
500: '#FADD48',
|
||||
600: '#f5d10a',
|
||||
700: '#c9a908',
|
||||
800: '#9d8106',
|
||||
900: '#715904',
|
||||
},
|
||||
tertiary: {
|
||||
50: '#fef7f0',
|
||||
100: '#feeee1',
|
||||
200: '#fddec3',
|
||||
300: '#fccda5',
|
||||
400: '#fabb87',
|
||||
500: '#F9A22E',
|
||||
600: '#f58c0a',
|
||||
700: '#c97008',
|
||||
800: '#9d5706',
|
||||
900: '#713e04',
|
||||
},
|
||||
accent: {
|
||||
50: '#f0f9ff',
|
||||
100: '#e0f2fe',
|
||||
200: '#bae6fd',
|
||||
300: '#7dd3fc',
|
||||
400: '#38bdf8',
|
||||
500: '#0ea5e9',
|
||||
600: '#0284c7',
|
||||
700: '#0369a1',
|
||||
800: '#075985',
|
||||
900: '#0c4a6e',
|
||||
}
|
||||
},
|
||||
backgroundImage: {
|
||||
'grain': "url(\"data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E\")",
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [],
|
||||
}
|
||||
8
vite.config.js
Normal file
8
vite.config.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react(), tailwindcss()],
|
||||
})
|
||||
Reference in New Issue
Block a user